/* ==========================================================================
   Michelle J. Place, MD — Quiet Luxury design system
   Derived from the Stitch "Michelle Place MD Redesign" blueprint.
   Playfair Display (display/headlines) + Montserrat (body/labels)
   ========================================================================== */

:root {
  /* Color tokens */
  --primary: #426167;
  --primary-container: #5b7a81;
  --slate-teal: #5f7e85;
  --on-primary: #ffffff;
  --linen: #faf9f6;
  --surface: #faf9f6;
  --surface-low: #f4f3f1;
  --surface-container: #efeeeb;
  --surface-high: #e9e8e5;
  --warm-stone: #e5e0da;
  --rich-charcoal: #2c2e30;
  --deep-earth: #4b4337;
  --on-surface: #1a1c1a;
  --on-surface-variant: #414849;
  --outline: #72787a;
  --outline-variant: #c1c8c9;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 1280px;
  --section-gap: 120px;
  --gutter: 32px;
  --margin-desktop: 80px;
  --margin-mobile: 20px;

  --radius: 2px;
  --shadow-luxury: 0 10px 40px rgba(44, 46, 48, 0.06);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Typography --------------------------------------------------------------*/
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--rich-charcoal); margin: 0; }
.display-lg { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.headline-lg { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; font-weight: 500; }
.headline-md { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; font-weight: 500; }
.headline-sm { font-size: 24px; line-height: 1.4; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 1.6; }
.body-sm { font-size: 14px; line-height: 1.5; }
.label-lg {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
}
.label-md {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2;
}
.eyebrow {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 18px;
}

/* Layout helpers ----------------------------------------------------------*/
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--margin-desktop);
  padding-right: var(--margin-desktop);
}
.section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.bg-linen { background: var(--linen); }
.bg-surface-low { background: var(--surface-low); }

/* Buttons -----------------------------------------------------------------*/
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 18px 40px;
  transition: all 0.3s ease;
  text-align: center;
}
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-luxury); }
.btn--primary:hover { opacity: 0.9; }
.btn--outline {
  background: transparent; color: var(--rich-charcoal);
  border: 1px solid var(--rich-charcoal);
}
.btn--outline:hover { background: var(--rich-charcoal); color: var(--on-primary); }
.btn--charcoal { background: var(--rich-charcoal); color: var(--on-primary); }
.btn--charcoal:hover { background: var(--primary); }
.btn--small { padding: 12px 24px; }
.text-link {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}
.text-link:hover { opacity: 0.7; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.3s ease;
}
.arrow-link:hover { transform: translateX(6px); }
.arrow-link svg { width: 18px; height: 18px; }

/* Announcement bar --------------------------------------------------------*/
.announce {
  background: var(--slate-teal);
  color: var(--on-primary);
  text-align: center;
  padding: 9px var(--margin-mobile);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.announce a { color: inherit; text-decoration: underline; margin-left: 8px; }
.announce a:hover { opacity: 0.8; }

/* Header ------------------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 224, 218, 0.6);
}
.site-header__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 80px; gap: 24px;
}
.site-header__logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > .nav-item { position: relative; }
.main-nav a.nav-link {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 30px 0;
  display: inline-block;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.main-nav a.nav-link:hover, .main-nav .nav-item.active > a.nav-link { color: var(--primary); }
.main-nav .nav-item.active > a.nav-link { border-bottom: 2px solid var(--primary); }

/* Dropdowns */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  min-width: 260px;
  padding: 18px 0;
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
  z-index: 60;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 28px;
  font-size: 13.5px; color: var(--on-surface-variant);
  transition: all 0.2s ease;
}
.dropdown a:hover { color: var(--primary); background: var(--surface-low); padding-left: 34px; }
.dropdown .dropdown__label {
  padding: 10px 28px 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--outline);
}

/* Mega menu */
.dropdown--mega {
  display: grid; grid-template-columns: repeat(4, 1fr);
  min-width: 940px; padding: 30px 20px;
  gap: 8px;
}
.dropdown--mega .mega-col a { padding: 7px 20px; }
.dropdown--mega .mega-col a:hover { padding-left: 26px; }
.dropdown--mega .mega-col > a.mega-title {
  font-family: var(--font-display);
  font-size: 17px; color: var(--rich-charcoal);
  padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--warm-stone);
}

.header-cta { white-space: nowrap; padding: 14px 28px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  position: relative; z-index: 210;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--rich-charcoal);
  margin: 5px auto;
  transition: all 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero (home) -------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 72% center;
  transform: translateX(14%) scale(1.3);
  transform-origin: 50% 40%;
}
@media (max-width: 900px) {
  .hero__bg { transform: none; background-position: 60% center; }
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(250,249,246,0.94) 8%, rgba(250,249,246,0.72) 38%, rgba(250,249,246,0.15) 68%, transparent);
}
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__content h1 em { font-style: italic; font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.hero__side-caption {
  position: absolute; bottom: 100px; right: 34px; z-index: 2;
  font-size: 11px; letter-spacing: 0.35em; color: rgba(44,46,48,0.45);
  writing-mode: vertical-rl;
}

/* Page hero (inner pages) -------------------------------------------------*/
.page-hero {
  background: var(--surface-low);
  border-bottom: 1px solid var(--warm-stone);
  padding: 84px 0 64px;
  position: relative; overflow: hidden;
}
.page-hero__ghost {
  position: absolute; right: -40px; bottom: -60px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 200px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(66, 97, 103, 0.12);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.breadcrumbs {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--outline); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span.sep { margin: 0 8px; }
.page-hero .tagline { margin-top: 16px; color: var(--on-surface-variant); font-size: 15px; }

/* Section headers ----------------------------------------------------------*/
.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section-head p { color: var(--on-surface-variant); font-size: 18px; margin: 18px 0 0; }

/* Bento grid (home procedures) ---------------------------------------------*/
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.bento__cell {
  position: relative; overflow: hidden;
  height: 480px;
  display: block;
}
.bento__cell--wide { grid-column: span 8; }
.bento__cell--narrow { grid-column: span 4; }
.bento__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s ease;
}
.bento__cell:hover .bento__img { transform: scale(1.05); }
.bento__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,46,48,0.82), rgba(44,46,48,0.12) 55%, transparent);
}
.bento__body { position: absolute; bottom: 0; left: 0; padding: 40px; width: 100%; }
.bento__body h3 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.bento__body p { color: rgba(255,255,255,0.82); max-width: 420px; margin: 0 0 20px; }
.bento__body .arrow-link { color: #fff; }

/* About split ---------------------------------------------------------------*/
.about-split {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px;
  align-items: center;
}
.about-split__media { position: relative; }
.about-split__media .frame {
  aspect-ratio: 4 / 5;
  background: var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
  position: relative; z-index: 1;
}
.about-split__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-split__media::after {
  content: "";
  position: absolute; right: -28px; bottom: -28px;
  width: 190px; height: 190px;
  background: rgba(66, 97, 103, 0.1);
}
.about-split__text p { color: var(--on-surface-variant); }
.about-split__text .lede { font-size: 18px; }
.ghost-word {
  position: absolute; left: -60px; top: 20px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 240px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(66, 97, 103, 0.15);
  opacity: 0.35;
  pointer-events: none; user-select: none;
}

/* Badges strip */
.badges {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
  border-top: 1px solid rgba(229,224,218,0.7);
  padding-top: 32px; margin-top: 40px;
}
.badges img {
  height: 74px; width: auto;
  transition: transform 0.3s ease;
}
.badges img:hover { transform: translateY(-2px); }

/* Testimonials ---------------------------------------------------------------*/
.testimonial-carousel { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.testimonial-carousel .quote-mark {
  font-family: var(--font-display);
  font-size: 130px; line-height: 0.5;
  color: rgba(66, 97, 103, 0.18);
  display: block; margin-bottom: 34px;
}
.t-slide { display: none; }
.t-slide.active { display: block; animation: fadeUp 0.6s ease; }
.t-slide blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.5;
  color: var(--deep-earth);
  margin: 0 0 36px;
}
.t-slide cite {
  font-style: normal;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary);
}
.t-nav { display: flex; justify-content: center; gap: 16px; margin-top: 56px; }
.t-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--warm-stone);
  background: transparent;
  color: var(--rich-charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.t-nav button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.t-nav svg { width: 20px; height: 20px; }

/* Review cards (testimonials page) */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--gutter); }
.review-card {
  background: #fff;
  border: 1px solid var(--warm-stone);
  padding: 40px 36px;
  box-shadow: var(--shadow-luxury);
  display: flex; flex-direction: column;
}
.review-card__stars { color: #b8975a; letter-spacing: 4px; font-size: 15px; margin-bottom: 18px; }
.review-card h3 { font-size: 20px; font-style: italic; font-weight: 600; margin-bottom: 14px; }
.review-card p { color: var(--on-surface-variant); font-size: 15px; flex: 1; margin: 0 0 18px; }
.review-card .review-card__author {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
}
.review-card .disclaimer { font-size: 11px; color: var(--outline); margin-top: 10px; flex: 0; }

/* Lead-gen / contact ---------------------------------------------------------*/
.leadgen { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.contact-info { margin-top: 48px; display: grid; gap: 34px; }
.contact-info .info-row { display: flex; gap: 18px; align-items: flex-start; }
.contact-info .info-row svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.contact-info h4 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rich-charcoal);
  margin-bottom: 5px;
}
.contact-info p { color: var(--on-surface-variant); margin: 0; }

.form-panel { background: #fff; padding: 48px; box-shadow: var(--shadow-luxury); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-surface-variant);
}
.field input, .field select, .field textarea {
  border: none; border-bottom: 1px solid var(--warm-stone);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--on-surface);
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--primary);
}
.field textarea { resize: none; }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 8px 0 20px; font-size: 13px; color: var(--on-surface-variant); }
.checkbox-row input { accent-color: var(--primary); width: 16px; height: 16px; }
.form-success {
  display: none;
  background: var(--surface-low);
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  color: var(--on-surface-variant);
  margin-top: 20px;
}

/* Map */
.map-embed { border: 1px solid var(--warm-stone); box-shadow: var(--shadow-luxury); }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Prose (generated content pages) -------------------------------------------*/
.page-layout {
  display: grid; grid-template-columns: minmax(0, 7.5fr) 4fr; gap: 80px;
  align-items: flex-start;
}
.page-layout--full { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.prose h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 500;
  margin: 56px 0 20px;
}
.prose h3 { font-size: 21px; font-weight: 600; margin: 40px 0 16px; }
.prose h4 { font-size: 17px; margin: 32px 0 12px; }
.prose p { color: var(--on-surface-variant); margin: 0 0 20px; }
.prose > p:first-child { font-size: 18px; }
.prose ul, .prose ol { color: var(--on-surface-variant); padding-left: 22px; margin: 0 0 24px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--primary); }
.prose a { border-bottom: 1px solid rgba(66,97,103,0.35); transition: border-color 0.2s ease; }
.prose a:hover { border-bottom-color: var(--primary); }
.prose blockquote {
  border-left: 3px solid var(--primary);
  background: var(--surface-low);
  margin: 32px 0; padding: 26px 30px;
  font-family: var(--font-display); font-style: italic;
  font-size: 18px; color: var(--deep-earth);
}
.prose img { margin: 28px 0; box-shadow: var(--shadow-luxury); }

/* Sidebar ---------------------------------------------------------------------*/
.sidebar { position: sticky; top: 112px; display: grid; gap: var(--gutter); }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--warm-stone);
  padding: 36px 32px;
  box-shadow: var(--shadow-luxury);
}
.sidebar-card--cta { background: var(--rich-charcoal); border: none; }
.sidebar-card--cta h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.sidebar-card--cta p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0 0 24px; }
.sidebar-card--cta .phone {
  display: block;
  font-family: var(--font-display); font-size: 26px; color: #fff;
  margin-bottom: 24px;
}
.sidebar-card h3 { font-size: 20px; margin-bottom: 18px; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card ul li { border-bottom: 1px solid var(--surface-high); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul a {
  display: block; padding: 11px 2px;
  font-size: 14px; color: var(--on-surface-variant);
  transition: all 0.2s ease;
}
.sidebar-card ul a:hover { color: var(--primary); padding-left: 8px; }
.sidebar-card ul a.current { color: var(--primary); font-weight: 600; }

/* Card grids (categories, gallery, blog, staff) --------------------------------*/
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.p-card {
  position: relative; display: block; overflow: hidden;
  background: var(--surface-low);
  border: 1px solid var(--warm-stone);
  transition: all 0.35s ease;
}
.p-card:hover { box-shadow: var(--shadow-luxury); transform: translateY(-4px); }
.p-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--warm-stone); }

/* Before / After badge on gallery photos */
.gallery-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(44, 46, 48, 0.68); color: #fff;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  pointer-events: none;
}
.gallery-badge--after { background: var(--primary); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.p-card:hover .p-card__media img { transform: scale(1.06); }
.p-card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-high), var(--warm-stone));
}
.p-card__media--placeholder span {
  font-family: var(--font-display); font-style: italic;
  color: var(--outline); font-size: 15px;
}
.p-card__body { padding: 24px 26px 28px; }
.p-card__body h3 { font-size: 19px; margin-bottom: 6px; }
.p-card__body p { font-size: 13.5px; color: var(--on-surface-variant); margin: 0 0 14px; }
.p-card__body .arrow-link { font-size: 11px; }

/* Blog cards */
.blog-card { background: #fff; border: 1px solid var(--warm-stone); display: flex; flex-direction: column; }
.blog-card__body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.blog-card__date {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--outline); margin-bottom: 12px;
}
.blog-card h3 { font-size: 21px; line-height: 1.35; margin-bottom: 14px; }
.blog-card p { font-size: 14px; color: var(--on-surface-variant); flex: 1; margin: 0 0 20px; }

/* CTA band ---------------------------------------------------------------------*/
.cta-band {
  background: var(--rich-charcoal);
  color: #fff;
  text-align: center;
  padding: 96px var(--margin-mobile);
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 560px; margin: 0 auto 40px; }

/* Footer -------------------------------------------------------------------------*/
.site-footer {
  background: var(--surface-low);
  border-top: 1px solid var(--warm-stone);
  padding: 96px 0 32px;
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--gutter); }
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 24px; filter: grayscale(1); opacity: 0.85; }
.site-footer__brand p { font-size: 14px; color: var(--on-surface-variant); max-width: 280px; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rich-charcoal);
  margin-bottom: 24px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 14px; }
.site-footer ul a { font-size: 14px; color: var(--on-surface-variant); transition: color 0.2s ease; }
.site-footer ul a:hover { color: var(--primary); }
.site-footer address { font-style: normal; font-size: 14px; color: var(--on-surface-variant); line-height: 1.8; }
.site-footer address a { color: var(--on-surface-variant); }
.site-footer address a:hover { color: var(--primary); }
.site-footer__legal {
  margin-top: 80px; padding-top: 28px;
  border-top: 1px solid rgba(229,224,218,0.8);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--on-surface-variant);
}
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__legal a { color: var(--on-surface-variant); }
.site-footer__legal a:hover { color: var(--primary); }

/* Cookie banner --------------------------------------------------------------------*/
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--warm-stone);
  padding: 16px var(--margin-desktop);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cookie-banner p { font-size: 13px; color: var(--on-surface-variant); margin: 0; }
.cookie-banner .btn { padding: 10px 28px; }

/* Reveal animation -------------------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* FAQ / details ----------------------------------------------------------------------*/
.prose details {
  border: 1px solid var(--warm-stone);
  background: #fff;
  margin-bottom: 12px;
  padding: 0 24px;
}
.prose details summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-display); font-size: 17px; color: var(--rich-charcoal);
  list-style: none;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; float: right; color: var(--primary); font-size: 20px; }
.prose details[open] summary::after { content: "–"; }

/* Responsive ---------------------------------------------------------------------------*/
@media (max-width: 1180px) {
  .dropdown--mega { min-width: 720px; grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 22px; }
}

@media (max-width: 1024px) {
  :root { --section-gap: 88px; }
  .container { padding-left: 40px; padding-right: 40px; }
  .bento__cell--wide, .bento__cell--narrow { grid-column: span 12; height: 380px; }
  .about-split { grid-template-columns: 1fr; gap: 48px; }
  .leadgen { grid-template-columns: 1fr; gap: 56px; }
  .page-layout { grid-template-columns: 1fr; gap: 56px; }
  .sidebar { position: static; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(400px, 88vw);
    background: var(--linen);
    box-shadow: -20px 0 60px rgba(44,46,48,0.18);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 96px 36px 48px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav > .nav-item { border-bottom: 1px solid var(--warm-stone); }
  .main-nav a.nav-link { display: block; padding: 18px 0; font-size: 14px; }
  .main-nav .nav-item.active > a.nav-link { border-bottom: none; }
  .dropdown, .dropdown--mega {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    display: none;
    min-width: 0; box-shadow: none; border: none;
    background: transparent;
    padding: 0 0 16px 16px;
    grid-template-columns: 1fr;
  }
  .nav-item.open > .dropdown { display: block; }
  .nav-item.open > .dropdown--mega { display: grid; }
  .dropdown a, .dropdown--mega .mega-col a { padding: 8px 0; }
  .dropdown a:hover { padding-left: 6px; background: none; }
  .nav-item.has-dropdown > a.nav-link::after { content: " +"; color: var(--primary); }
  .nav-item.open.has-dropdown > a.nav-link::after { content: " –"; }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }
  .container { padding-left: var(--margin-mobile); padding-right: var(--margin-mobile); }
  .hero { min-height: 78vh; }
  .hero__actions .btn { width: 100%; }
  .hero__side-caption { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 32px 24px; }
  .card-grid, .card-grid--4, .card-grid--2, .review-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .bento__body { padding: 26px; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero__ghost { font-size: 110px; }
  .cookie-banner { padding: 16px var(--margin-mobile); }
}

/* ==========================================================================
   About section components (bio, staff, facility, forms, financing, media)
   ========================================================================== */

/* Video embeds */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--rich-charcoal);
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
}
.video-embed iframe, .video-embed video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-section { max-width: 900px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
.video-card { background: #fff; border: 1px solid var(--warm-stone); display: flex; flex-direction: column; }
.video-card .video-embed { box-shadow: none; }
.video-card__body { padding: 24px 28px 30px; }
.video-card__body h3 { font-size: 20px; margin-bottom: 8px; }
.video-card__body p { font-size: 14px; color: var(--on-surface-variant); margin: 0; }

/* Bio (About Dr. Place) */
.bio-layout {
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  gap: 72px; align-items: start;
}
.bio-side { position: sticky; top: 112px; display: grid; gap: var(--gutter); }
.bio-side .frame {
  background: var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
}
.bio-side .frame img { width: 100%; display: block; }
.cred-card {
  background: #fff; border: 1px solid var(--warm-stone);
  padding: 32px 30px;
}
.cred-card h3 { font-size: 19px; margin-bottom: 16px; }
.cred-card ul { list-style: none; margin: 0; padding: 0; }
.cred-card li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--surface-high);
  font-size: 14px; color: var(--on-surface-variant);
  position: relative;
}
.cred-card li:last-child { border-bottom: none; }
.cred-card li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 7px; height: 7px;
  background: var(--primary);
}

/* Staff */
.staff-card {
  display: grid; grid-template-columns: 320px 1fr;
  background: #fff; border: 1px solid var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
  max-width: 860px; margin: 0 auto;
}
.staff-card__media { background: var(--warm-stone); }
.staff-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff-card__body { padding: 44px 48px; align-self: center; }
.staff-card__body h3 { font-size: 26px; margin-bottom: 6px; }
.staff-card__body .role {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.staff-card__body p { font-size: 15px; color: var(--on-surface-variant); margin: 0; }

/* Action cards (portal, forms, financing) */
.action-card {
  background: #fff; border: 1px solid var(--warm-stone);
  padding: 44px 40px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: all 0.35s ease;
}
.action-card:hover { box-shadow: var(--shadow-luxury); transform: translateY(-4px); }
.action-card .logo-img { height: 60px; width: auto; object-fit: contain; margin-bottom: 24px; }
.action-card h3 { font-size: 21px; margin-bottom: 12px; }
.action-card p { font-size: 14px; color: var(--on-surface-variant); flex: 1; margin: 0 0 28px; }

/* Notice box (Open Payments etc.) */
.notice {
  background: var(--surface-low);
  border-left: 3px solid var(--outline-variant);
  padding: 26px 30px;
  font-size: 13px; line-height: 1.7;
  color: var(--on-surface-variant);
}
.notice h4 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rich-charcoal);
  margin-bottom: 10px;
}

/* Callout (events) */
.callout {
  text-align: center;
  background: #fff; border: 1px solid var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  padding: 72px 40px;
  max-width: 760px; margin: 0 auto;
}
.callout h2 { margin-bottom: 14px; }
.callout p { color: var(--on-surface-variant); max-width: 480px; margin: 0 auto 32px; }

@media (max-width: 1024px) {
  .bio-layout { grid-template-columns: 1fr; gap: 48px; }
  .bio-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
  .bio-side { grid-template-columns: 1fr; }
  .staff-card { grid-template-columns: 1fr; }
  .staff-card__body { padding: 32px 28px; }
}

/* Procedure directory lists (procedures overview cards) */
.p-card__list {
  list-style: none;
  margin: 0 0 20px; padding: 14px 0 0;
  border-top: 1px solid var(--surface-high);
  columns: 2; column-gap: 24px;
}
.p-card__list li { margin-bottom: 8px; break-inside: avoid; }
.p-card__list a {
  font-size: 13px; color: var(--on-surface-variant);
  transition: color 0.2s ease;
}
.p-card__list a:hover { color: var(--primary); }
@media (max-width: 640px) {
  .p-card__list { columns: 1; }
}

/* Article figure (procedure detail pages) */
.article-figure {
  float: right;
  width: min(360px, 42%);
  margin: 6px 0 28px 36px;
}
.article-figure img {
  width: 100%;
  box-shadow: var(--shadow-luxury);
  border: 1px solid var(--warm-stone);
  margin: 0;
}
@media (max-width: 640px) {
  .article-figure { float: none; width: 100%; margin: 0 0 28px; }
}

/* Product cards (skin care shop) */
.product-card {
  background: #fff;
  border: 1px solid var(--warm-stone);
  display: flex; flex-direction: column;
  transition: all 0.35s ease;
}
.product-card:hover { box-shadow: var(--shadow-luxury); transform: translateY(-4px); }
.product-card__media {
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 24px;
  display: flex; align-items: center; justify-content: center;
}
.product-card__media img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--surface-high);
  text-align: center;
}
.product-card__body h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ==========================================================================
   Review submission (QR-gated /review page) + live testimonials
   ========================================================================== */
.review-form-wrap {
  background: #fff;
  border: 1px solid var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  padding: 48px 48px 40px;
}
.review-form .req { color: #b8975a; }
.review-form .form-note {
  font-size: 12.5px; color: var(--outline);
  text-align: center; margin: 16px 0 0;
}
.form-error {
  display: none;
  background: #fbeaea;
  border-left: 3px solid #b3402f;
  color: #7c2c20;
  padding: 14px 18px; margin-top: 18px;
  font-size: 14px;
}

/* Star rating input (row-reverse so hover/checked cascade left) */
.star-rating {
  display: inline-flex; flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px; padding-top: 4px;
}
.star-rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-rating label {
  font-size: 32px; line-height: 1; color: var(--warm-stone);
  cursor: pointer; transition: color 0.15s ease; margin: 0;
}
.star-rating input:checked ~ label { color: #c99a3f; }
.star-rating label:hover,
.star-rating label:hover ~ label { color: #d8b45e; }
.star-rating input:focus-visible ~ label { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Success panel (replaces form after submit) */
.form-success--panel {
  display: none;
  text-align: center;
  background: #fff;
  border: 1px solid var(--warm-stone);
  border-left: 1px solid var(--warm-stone);
  box-shadow: var(--shadow-luxury);
  padding: 64px 48px;
}
.form-success--panel.is-visible { display: block; }
.form-success__mark {
  width: 64px; height: 64px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 30px;
}
.form-success--panel h3 { font-size: 26px; margin-bottom: 12px; }
.form-success--panel p { color: var(--on-surface-variant); max-width: 420px; margin: 0 auto 28px; }

@media (max-width: 640px) {
  .review-form-wrap { padding: 32px 24px 28px; }
}
