/* FemGyn Healthcare Clinic — cinematic women's-health design system (v2).
   Thesis: care across every season of a woman's life.
   Dark, warm hero "cover" (aubergine + gold), light editorial body.
   Brand plum from the clinic signage is the ink; warm gold is the accent;
   WhatsApp green is reserved strictly for actions. See content/clinic.json. */

:root {
  /* Brand ink */
  --plum: #5A2150;
  --plum-deep: #3E1538;
  --aubergine: #2A0D26;
  --aubergine-2: #17060F;

  /* Supporting */
  --mauve: #B98FB0;
  --blush: #F4DCEA;
  --rose: #E7B8D4;

  /* Accent: warm gold */
  --gold: #C9993F;
  --gold-soft: #E4C079;
  --gold-bright: #F0D28A;
  --gold-ink: #7A5A16;

  /* Surfaces */
  --paper: #FCF8F4;
  --paper-2: #F6EDF2;
  --paper-3: #F1E3EC;
  --card: #FFFFFF;

  /* Action */
  --whatsapp: #25D366;
  --whatsapp-ink: #0B7A54;

  /* Text */
  --ink: #2A2230;
  --muted: #6B6172;
  --line: #EADCE6;

  --radius: 18px;
  --radius-lg: 30px;
  --radius-xl: 44px;
  --maxw: 1180px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --shadow-sm: 0 2px 10px -6px rgba(42, 13, 38, .35);
  --shadow: 0 22px 50px -30px rgba(42, 13, 38, .55);
  --shadow-gold: 0 18px 44px -26px rgba(122, 90, 22, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--paper); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }
img, svg { max-width: 100%; }
a { color: var(--plum); }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--display); color: var(--plum-deep); line-height: 1.06; margin: 0 0 .5em; font-weight: 550; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); letter-spacing: -.02em; font-weight: 500; }
h2 { font-size: clamp(1.95rem, 4.8vw, 3rem); letter-spacing: -.012em; }
h3 { font-size: 1.3rem; font-weight: 560; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
  margin: 0 0 1.1em; display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 58ch; }
.note { color: var(--muted); font-size: .96rem; }

/* Skip link + focus */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px;
}

/* ---- Header / nav (transparent over dark hero, solidifies on scroll) ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(252, 248, 244, .85); backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, transform .4s var(--ease);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 38px; flex: none; transition: fill .3s ease; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 550; font-size: 1.4rem; color: var(--plum-deep); letter-spacing: -.01em; transition: color .3s ease; }
.brand-sub { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; margin-top: 4px; transition: color .3s ease; }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; transition: color .3s ease; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width .25s ease; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-toggle { background: none; border: 0; font-size: 1.6rem; color: var(--plum); cursor: pointer; line-height: 1; transition: color .3s ease; }
.nav-mobile { display: none; flex-direction: column; gap: 2px; padding: 6px 0 16px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 13px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 10px; border: 0; }

/* Transparent state — only when the page declares a dark hero and we're at the top */
body.hero-dark .site-header:not(.scrolled) {
  background: transparent; border-color: transparent; backdrop-filter: none;
}
body.hero-dark .site-header:not(.scrolled) .brand-name,
body.hero-dark .site-header:not(.scrolled) .nav-links a:not(.btn),
body.hero-dark .site-header:not(.scrolled) .nav-toggle { color: #fff; }
body.hero-dark .site-header:not(.scrolled) .brand-mark { fill: #fff; }
body.hero-dark .site-header:not(.scrolled) .brand-sub { color: var(--gold-soft); }
body.hero-dark .site-header:not(.scrolled) .btn-primary { background: var(--gold); color: #2A1A02; box-shadow: none; }
body.hero-dark .site-header:not(.scrolled) .btn-primary:hover { background: var(--gold-soft); }

/* Push non-hero pages below the fixed header */
body:not(.hero-dark) { padding-top: 74px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; text-align: center; cursor: pointer; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 19px; font-size: .92rem; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--plum-deep); }
.btn-gold { background: var(--gold); color: #2A1A02; box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-whatsapp { background: var(--whatsapp); color: #06281d; }
.btn-whatsapp:hover { background: #1fbf5b; }
.btn-ghost { background: transparent; color: var(--plum); border: 1.5px solid var(--mauve); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--plum); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.wa-ico { width: 18px; height: 18px; fill: currentColor; }

/* ---- Inner-page light hero header ---- */
.hero { position: relative; overflow: hidden; padding: 66px 0 50px;
  background:
    radial-gradient(90% 70% at 85% -10%, var(--blush) 0%, transparent 58%),
    linear-gradient(168deg, #FDF6F0 0%, var(--paper) 60%); }
.hero h1 { max-width: 18ch; }
.hero .lede { margin-top: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---- Compact dark page cover (inner pages) ---- */
.page-cover { position: relative; overflow: hidden; padding: 140px 0 66px; color: #F6E7F0;
  background:
    radial-gradient(55% 80% at 85% 0%, rgba(201,153,63,.22), transparent 55%),
    radial-gradient(50% 70% at 8% 110%, rgba(231,184,212,.16), transparent 60%),
    linear-gradient(155deg, #3A1034 0%, var(--aubergine) 55%, var(--aubergine-2) 100%); }
.page-cover .eyebrow { color: var(--gold-soft); }
.page-cover .eyebrow::before { background: var(--gold-soft); }
.page-cover h1 { color: #FDF4FA; max-width: 20ch; }
.page-cover h1 .accent { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.page-cover .lede { color: #E4C9DA; max-width: 52ch; margin-top: 18px; }
.page-cover .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Cinematic hero cover ---- */
.hero-cover {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 90px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(201,153,63,.30) 0%, transparent 60%),
    radial-gradient(55% 50% at 12% 90%, rgba(231,184,212,.22) 0%, transparent 60%),
    linear-gradient(155deg, #3A103448 0%, var(--aubergine) 42%, var(--aubergine-2) 100%);
  color: #F6E7F0;
}
.orb-field { position: absolute; inset: 0; z-index: -1; will-change: transform; transition: transform .35s var(--ease); }
.hero-cover .orb {
  position: absolute; border-radius: 50%; filter: blur(8px); opacity: .8;
  will-change: transform;
}
.orb-1 { width: 340px; height: 340px; top: 6%; right: 4%;
  background: radial-gradient(circle at 35% 35%, rgba(240,210,138,.55), rgba(201,153,63,.05) 65%); animation: drift1 16s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; bottom: -4%; left: -3%;
  background: radial-gradient(circle at 40% 40%, rgba(231,184,212,.5), rgba(231,184,212,0) 65%); animation: drift2 20s ease-in-out infinite; }
.orb-3 { width: 150px; height: 150px; top: 44%; left: 66%;
  background: radial-gradient(circle at 40% 40%, rgba(185,143,176,.5), transparent 66%); animation: drift1 22s ease-in-out infinite reverse; }
.hero-cover .grain { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 3px 3px; }

.hero-inner { max-width: 24ch; }
.hero-cover .eyebrow { color: var(--gold-soft); }
.hero-cover .eyebrow::before { background: var(--gold-soft); }
.hero-cover h1 { color: #FDF4FA; max-width: 15ch; }
.hero-cover h1 .accent { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.hero-cover .lede { color: #E4C9DA; max-width: 44ch; margin: 24px 0 0; }
.hero-cover .cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-cover .trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: .9rem; color: #C9A7BE; }
.hero-cover .trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.hero-cover .trust-line span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); flex: none; }

/* Page-load choreography */
.rise { opacity: 0; transform: translateY(22px); animation: fadeUp .9s var(--ease) forwards; }
.rise.r1 { animation-delay: .08s; } .rise.r2 { animation-delay: .2s; } .rise.r3 { animation-delay: .34s; } .rise.r4 { animation-delay: .48s; } .rise.r5 { animation-delay: .6s; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #C9A7BE;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold-soft), transparent); animation: cue 1.8s ease-in-out infinite; }

/* ---- Ticker ---- */
.ticker { background: var(--plum-deep); color: #F3E2EE; overflow: hidden; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: inline-flex; gap: 44px; white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: #F3E2EE; display: inline-flex; align-items: center; gap: 44px; }
.ticker span::after { content: "✦"; color: var(--gold-soft); font-style: normal; font-size: .8rem; }

/* ---- Life Arc — the signature ---- */
.arc { background: var(--paper); padding: 90px 0; }
.arc-head { max-width: 62ch; margin-bottom: 46px; }
.arc-track { position: relative; display: grid; gap: 26px; }
.arc-track::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--gold-soft), var(--rose), var(--mauve)); transform-origin: top;
  animation: growLine 1.2s var(--ease) both; }
.stage { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.stage-node { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--gold); color: var(--plum-deep);
  display: grid; place-items: center; font-family: var(--display); font-size: 1.25rem; font-weight: 600;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), background .25s ease, color .25s ease; }
.stage:hover .stage-node { transform: scale(1.08); background: var(--gold); color: #2A1A02; }
.stage-body { padding-top: 4px; }
.stage-body h3 { color: var(--plum); margin-bottom: .3em; }
.stage-tag { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); display: block; margin-bottom: .5em; }
.stage-body .note { max-width: 54ch; }

/* ---- Full-bleed statement cover ---- */
.statement {
  position: relative; overflow: hidden; color: #FBEDF6; text-align: center; padding: 96px 0;
  background:
    radial-gradient(70% 90% at 20% 10%, rgba(201,153,63,.22), transparent 55%),
    linear-gradient(150deg, var(--plum) 0%, var(--plum-deep) 60%, var(--aubergine) 100%);
}
.statement .wrap { position: relative; z-index: 1; }
.statement .eyebrow { color: var(--gold-soft); justify-content: center; }
.statement .eyebrow::before { background: var(--gold-soft); }
.statement blockquote { margin: 0 auto; max-width: 20ch; font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.08; color: #fff; letter-spacing: -.01em; }
.statement blockquote em { font-style: italic; color: var(--gold-soft); }
.statement p.sub { color: #D9B9CF; max-width: 46ch; margin: 20px auto 0; }
.statement .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* ---- Services hall (interactive grid) ---- */
.hall { padding: 90px 0; }
.hall-grid { display: grid; gap: 16px; grid-template-columns: 1fr; perspective: 1200px; }
.svc {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
  transform-style: preserve-3d;
}
.svc::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(120% 100% at 100% 0%, rgba(201,153,63,.12), transparent 55%); }
.svc:hover { transform: translateY(-6px) rotateX(3deg); box-shadow: var(--shadow); border-color: var(--paper-3); }
.svc:hover::before { opacity: 1; }
.svc .idx { font-family: var(--display); font-size: .9rem; color: var(--gold-ink); font-weight: 600; }
.svc h3 { color: var(--plum); margin: 10px 0 .3em; }
.svc .note { position: relative; }
.svc .more { display: inline-block; margin-top: 12px; font-size: .84rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-ink); }

/* ---- Night section ---- */
.night { background: radial-gradient(80% 90% at 85% 10%, #4A1743 0%, transparent 55%),
  linear-gradient(160deg, var(--aubergine) 0%, var(--aubergine-2) 100%);
  color: #F3E2EE; padding: 90px 0; position: relative; overflow: hidden; }
.night::before { content: ""; position: absolute; top: -40px; right: -40px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,153,63,.22), transparent 70%); }
.night .eyebrow { color: var(--gold-soft); }
.night .eyebrow::before { background: var(--gold-soft); }
.night h2 { color: #fff; max-width: 18ch; }
.night-lede { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 3vw, 1.9rem); font-style: italic; color: #F6E7F0; line-height: 1.35; max-width: 24ch; margin: 0 0 1rem; }
.night p.note { color: #D9B9CF; font-size: 1.02rem; max-width: 48ch; }
.night .cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.night-grid { display: grid; gap: 34px; align-items: center; }

/* ---- Generic sections ---- */
.section { padding: 80px 0; }
.section.tint { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--paper-3); }
.card h2, .card h3 { color: var(--plum); }
.card .price { font-weight: 700; color: var(--gold-ink); margin: 12px 0 0; }
.card.feature { padding: 28px 26px; }
.feature-ico { width: 30px; height: 30px; margin-bottom: 14px; display: block;
  fill: none; stroke: var(--plum); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Stat row */
.marquee-stats { display: grid; gap: 2px; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 4px; }
.stat b { font-family: var(--display); display: block; font-size: 2.1rem; color: var(--plum); font-weight: 600; line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .92rem; color: var(--muted); }

/* Doctor */
.doctor { display: grid; gap: 28px; align-items: center; }
.doctor-portrait { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow); position: relative; }
.doctor-portrait .mono { font-family: var(--display); font-size: 4.5rem; color: rgba(228,192,121,.9); font-weight: 500; }
.doctor-portrait .pending { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,226,238,.6); }
.doctor h2 { margin-bottom: .2em; }
.doctor .role { font-family: var(--sans); font-weight: 600; color: var(--gold-ink); letter-spacing: .04em; margin-bottom: 1rem; }

/* Testimonials */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote p { font-family: var(--display); font-size: 1.14rem; color: var(--plum-deep); margin: 0 0 14px; font-style: italic; }
.quote cite { font-style: normal; font-weight: 600; color: var(--muted); font-size: .9rem; }
.empty-note { border: 1.5px dashed var(--mauve); border-radius: var(--radius); padding: 22px 26px; color: var(--muted); background: var(--paper-2); }

/* CTA band */
.cta-band { padding: 80px 0; background: var(--paper-2); }
.cta-band .inner { background: radial-gradient(70% 120% at 88% 20%, #4A1743 0%, transparent 60%),
  linear-gradient(140deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #fff; border-radius: var(--radius-xl); padding: 60px 40px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band .inner::before { content: ""; position: absolute; bottom: -60px; left: -30px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(201,153,63,.28), transparent 70%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #EBD3E4; max-width: 48ch; margin: 0 auto 26px; position: relative; }
.cta-band .cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; position: relative; }

/* Forms */
.field { display: grid; gap: 14px; max-width: 480px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--plum-deep); margin-bottom: -6px; }
.field input, .field select, .field textarea { padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }

/* Honeypot: off-screen rather than display:none, which some bots skip. Never
   shown, never focusable, never announced. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent — checkbox beside its label, not stacked like the other fields. */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 4px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum-deep); }
.consent label { font-weight: 400; font-size: .88rem; line-height: 1.5; color: var(--muted); margin-bottom: 0; }

.form-status { font-size: .9rem; margin: 0; min-height: 1.2em; }
.form-status.ok  { color: var(--plum-deep); font-weight: 600; }
.form-status.bad { color: #b3261e; font-weight: 600; }

/* Booking — "what happens next" steps (book.html) */
.book-steps { display: grid; gap: 22px; margin: 24px 0; }
.book-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.book-step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gold); color: #2A1A02; font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  box-shadow: var(--shadow-gold); }
.book-step h3 { color: var(--plum); font-size: 1.08rem; margin-bottom: .25em; }
.book-step .note { margin: 0; }

/* Footer */
.site-footer { background: linear-gradient(160deg, var(--aubergine) 0%, var(--aubergine-2) 100%); color: #E9D6E3; padding: 64px 0 34px; margin-top: 8px; }
.site-footer a { color: var(--gold-soft); }
.site-footer .cols { display: grid; gap: 30px; grid-template-columns: 1fr; }
.site-footer h2, .site-footer h4 { font-family: var(--display); color: #fff; margin: 0 0 12px; font-size: 1.15rem; font-weight: 500; }
/* Semantic heading level without the display size — keeps the outline valid where a
   section heading must be an h2 but should read at h3 scale. */
.as-h3 { font-size: 1.3rem; font-weight: 560; letter-spacing: 0; }
.site-footer .muted { color: #C29CB6; font-size: .92rem; }
.site-footer .legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #A688A0; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; } .reveal.d3 { transition-delay: .27s; } .reveal.d4 { transition-delay: .36s; }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px 8px; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; flex: 0 0 86%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; }
.slide .step { font-family: var(--display); font-size: 1rem; font-weight: 600; color: #2A1A02; background: var(--gold); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.slide h3 { color: var(--plum); }
.carousel-dots { display: flex; gap: 9px; justify-content: center; margin-top: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--paper-3); transition: background .2s, transform .2s; }
.dot.active { background: var(--gold); transform: scale(1.3); }

/* FAQ */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 12px; }
.faq > summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--plum-deep); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); line-height: 1; transition: transform .2s; }
.faq[open] > summary::after { transform: rotate(45deg); }
.faq > p { margin: 0 0 20px; color: var(--muted); }

/* ---- Keyframes ---- */
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px, 30px) scale(1.06); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, -22px) scale(1.08); } }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes growLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---- Tablet+ ---- */
@media (min-width: 760px) {
  .slide { flex-basis: 46%; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .hall-grid { grid-template-columns: repeat(2, 1fr); }
  .marquee-stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 8px 24px; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
}

@media (min-width: 960px) {
  .hero-inner { max-width: 28ch; }
  .night-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .doctor { grid-template-columns: .8fr 1.2fr; gap: 48px; }
  .hall-grid { grid-template-columns: repeat(4, 1fr); }
  .arc-track { gap: 8px; }
  .stage { grid-template-columns: 72px 1fr; gap: 26px; padding: 22px 0; }
  .arc-track::before { left: 35px; }
  .stage-node { width: 72px; height: 72px; font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* --- Patient reviews (homepage) --------------------------------------------
   Rendered from content/reviews.json. Extends .card, so only the parts .card
   does not already provide are defined here. */
.review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 1.05rem;
                     line-height: 1.6; color: var(--ink); font-style: italic; }
.review figcaption { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line);
                     padding-top: 12px; margin-top: auto; }
.stars { letter-spacing: 3px; color: var(--gold); font-size: 1rem; line-height: 1; }

/* --- /tools calculators ----------------------------------------------------- */
.calc-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.calc-tab { flex: 1; padding: 11px 10px; border: 1px solid var(--line); border-radius: 999px;
            background: var(--paper); color: var(--muted); cursor: pointer;
            font: inherit; font-size: 0.95rem; transition: all .18s ease; }
.calc-tab.is-on { background: var(--plum); border-color: var(--plum); color: #fff; font-weight: 600; }
.calc label { display: block; margin: 16px 0 6px; font-weight: 500; color: var(--ink); }
.calc input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
              background: var(--paper); font: inherit; color: var(--ink); }
.calc input:focus { outline: 2px solid var(--mauve); outline-offset: 1px; }
.calc #calc-go { margin-top: 20px; width: 100%; justify-content: center; }
.calc-out:empty { display: none; }
.calc-out { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-headline { font-family: var(--display); font-size: 1.2rem; line-height: 1.55; color: var(--plum); }
.calc-headline strong { font-size: 1.45rem; }
.calc-disclaimer { margin-top: 20px; color: var(--muted); }

/* --- Map (click-to-load) ---------------------------------------------------- */
.map-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 280px;
             border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
             background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-load { position: absolute; inset: 0; width: 100%; height: 100%; display: flex;
            flex-direction: column; align-items: center; justify-content: center; gap: 8px;
            border: 0; cursor: pointer; font: inherit; text-align: center; padding: 24px;
            background: var(--paper-2); color: var(--plum); transition: background .18s ease; }
.map-load:hover { background: var(--paper-3); }
.map-load:focus-visible { outline: 2px solid var(--mauve); outline-offset: -4px; }
.map-pin { color: var(--plum); }
.map-load-text { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.map-load-note { font-size: 0.85rem; color: var(--muted); max-width: 34ch; line-height: 1.5; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }
