@charset "UTF-8";
/* ============================================================
   Mysuru Fertility Centre — design system
   ------------------------------------------------------------
   Structure of this file:
     1. Tokens        6. Header & navigation
     2. Reset         7. Footer
     3. Typography    8. Sections & components
     4. Layout        9. Forms
     5. Buttons      10. Responsive
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Blue system. Derived from clinical lighting, not corporate blue. */
  --ink:        #0A1A2F;   /* headings, body on light */
  --ink-70:     #33455C;   /* secondary text */
  --ink-50:     #64788F;   /* captions, meta */
  --navy:       #103A6B;   /* primary brand */
  --navy-deep:  #071B33;   /* top bar, footer */
  --blue:       #1A6BC4;   /* actions, links */
  --blue-hover: #14559D;
  --wash:       #E8F1FB;   /* pale section fill */
  --wash-soft:  #F3F8FD;
  --paper:      #FBFCFE;   /* page ground */
  --white:      #FFFFFF;
  --line:       #D8E3F0;   /* hairlines */
  --line-soft:  #EAF0F7;

  /* One accent, reserved for reassurance signals only. */
  --teal:       #0F6E68;
  --teal-wash:  #E3F2F0;

  /* States */
  --danger:     #B42318;
  --danger-wash:#FEF3F2;
  --amber:      #B54708;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans:    "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Modular scale, base 17px */
  --t-xs:   0.765rem;   /* 13 */
  --t-sm:   0.882rem;   /* 15 */
  --t-base: 1rem;       /* 17 */
  --t-md:   1.235rem;   /* 21 */
  --t-lg:   1.53rem;    /* 26 */
  --t-xl:   1.94rem;    /* 33 */
  --t-2xl:  2.41rem;    /* 41 */
  --t-3xl:  3rem;       /* 51 */
  --t-4xl:  3.76rem;    /* 64 */

  /* Spacing */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.5rem;   --s-8: 3rem;
  --s-9: 4rem;     --s-10: 5rem;    --s-11: 6.5rem;

  /* Radii — deliberately varied by hierarchy, not one value everywhere */
  --r-sm: 3px;    /* inputs, tags */
  --r-md: 6px;    /* panels */
  --r-lg: 10px;   /* feature blocks */
  --r-pill: 999px;

  /* Shadows — used sparingly, only for things that genuinely float */
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, .06);
  --shadow-md: 0 4px 16px rgba(10, 26, 47, .08);
  --shadow-lg: 0 16px 48px rgba(10, 26, 47, .12);

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --header-h: 72px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-70);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

/* Keyboard focus must always be visible. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Let keyboard users jump straight to the content. */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: 200; padding: var(--s-3) var(--s-5);
  background: var(--navy); color: var(--white);
  font-weight: 600; border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.2vw, var(--t-4xl)); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, var(--t-2xl)); }
h3 { font-size: clamp(1.28rem, 1.1rem + .8vw, var(--t-lg)); }
h4 { font-size: var(--t-md); }
h5, h6 { font-size: var(--t-base); font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 var(--s-4); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); }

strong, b { font-weight: 600; color: var(--ink); }

.lead {
  font-size: clamp(var(--t-base), .95rem + .4vw, var(--t-md));
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 62ch;
}

/* A short line that introduces a section. Not an all-caps eyebrow —
   it is a readable sentence fragment marked by a short rule. */
.section-intro {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-sm); font-weight: 600;
  color: var(--navy); margin-bottom: var(--s-4);
}
.section-intro::before {
  content: ""; width: 28px; height: 2px;
  background: var(--blue); flex: none;
}

.muted { color: var(--ink-50); }
.small { font-size: var(--t-sm); }
.tiny  { font-size: var(--t-xs); }

/* ---------- 4. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(var(--s-8), 5vw, var(--s-11)); }
.section-sm { padding-block: clamp(var(--s-7), 4vw, var(--s-9)); }
.section-wash { background: var(--wash-soft); }
.section-blue { background: var(--navy-deep); color: #C9D8EA; }
.section-blue h1, .section-blue h2, .section-blue h3 { color: var(--white); }
.section-blue .section-intro { color: #8FB6E0; }
.section-blue .section-intro::before { background: #8FB6E0; }

.section-head { max-width: 64ch; margin-bottom: var(--s-7); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin-block: var(--s-7); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: var(--t-sm); font-weight: 600; line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--wash); border-color: var(--blue); color: var(--navy); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: var(--white); }

.btn-whatsapp { background: #128C7E; color: var(--white); }
.btn-whatsapp:hover { background: #0E6F63; color: var(--white); }

.btn-lg { padding: 1.1rem 1.9rem; font-size: var(--t-base); }
.btn-sm { padding: .65rem 1rem; font-size: var(--t-xs); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* A plain text link that behaves like a call to action. */
.link-cta {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; font-size: var(--t-sm);
  color: var(--blue); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.link-cta:hover { color: var(--blue-hover); }

/* ---------- 6. HEADER & NAVIGATION ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: #A8C2DE;
  font-size: var(--t-xs);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.utility-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 38px; flex-wrap: wrap;
}
.utility-bar a { color: #DCE8F5; text-decoration: none; }
.utility-bar a:hover { color: var(--white); text-decoration: underline; }
.utility-bar svg { width: 13px; height: 13px; flex: none; }
.utility-facts { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.utility-facts span { display: inline-flex; align-items: center; gap: var(--s-2); }
.utility-facts svg { opacity: .75; }
.utility-actions { display: flex; align-items: center; gap: var(--s-4); }
.utility-actions a { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch a, .lang-switch span {
  padding: 2px 7px; border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--t-xs); text-decoration: none;
}
.lang-switch .is-current { background: rgba(255,255,255,.14); color: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: none; }
/* The clinic's own mark. It carries its own blue shape, so it sits on
   the page directly rather than inside a coloured tile. */
.brand-mark {
  width: 44px; height: 44px; flex: none;
  display: block; object-fit: contain;
}
.site-footer .brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display); font-size: var(--t-md);
  color: var(--ink); font-weight: 600; letter-spacing: -0.01em;
}
.brand-tag { font-size: 0.7rem; color: var(--ink-50); letter-spacing: .01em; }

.primary-nav { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.primary-nav > li { list-style: none; position: relative; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: var(--s-3) var(--s-3);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-70);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); border-radius: var(--r-sm);
}
.nav-link:hover { color: var(--navy); background: var(--wash-soft); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--navy); font-weight: 600; }
.nav-link svg { width: 13px; height: 13px; transition: transform .18s ease; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 3rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s-6);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5) var(--s-6);
}
.mega[hidden] { display: none; }
.mega-col h3 {
  font-family: var(--font-sans); font-size: var(--t-xs);
  font-weight: 700; color: var(--navy); margin-bottom: var(--s-3);
  padding-bottom: var(--s-2); border-bottom: 1px solid var(--line-soft);
}
.mega-col a {
  display: block; padding: 5px 0;
  font-size: var(--t-sm); color: var(--ink-70); text-decoration: none;
}
.mega-col a:hover { color: var(--blue); }
.mega-foot {
  grid-column: 1 / -1; margin-top: var(--s-2); padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap;
}

.header-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--s-9) + env(safe-area-inset-bottom, 0px));
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-head {
  position: sticky; top: 0; background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line);
}
.mobile-nav-body { padding: var(--s-5); }
.mobile-group + .mobile-group { margin-top: var(--s-5); }
.mobile-group > h3 {
  font-family: var(--font-sans); font-size: var(--t-xs); font-weight: 700;
  color: var(--navy); margin-bottom: var(--s-2);
}
.mobile-nav a {
  display: block; padding: var(--s-3) 0;
  font-size: var(--t-base); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { color: var(--blue); }

/* ---------- 7. FOOTER ---------- */
.site-footer { background: var(--navy-deep); color: #A8C2DE; font-size: var(--t-sm); }
.site-footer a { color: #C9D8EA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h3 {
  font-family: var(--font-sans); color: var(--white);
  font-size: var(--t-xs); font-weight: 700; margin-bottom: var(--s-4);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: var(--s-6); padding-block: var(--s-9) var(--s-7);
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--s-2); }

/* Contact rows in the footer: a small fixed-size icon, optically aligned
   with the first line of text rather than stretching to the row height. */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}
.footer-contact svg {
  width: 15px; height: 15px;
  flex: none;
  margin-top: 3px;
  color: #7FB2E8;
  stroke-width: 1.75;
}
.footer-contact span, .footer-contact a { min-width: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--s-5);
  display: flex; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap; font-size: var(--t-xs); color: #7E9BBB;
}
.badge-compliance {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: rgba(15,110,104,.22); border: 1px solid rgba(90,190,180,.32);
  color: #8ED8D0; border-radius: var(--r-sm);
  font-size: var(--t-xs); font-weight: 600;
}
.badge-compliance svg { width: 13px; height: 13px; }

/* ---------- 8. SECTIONS & COMPONENTS ---------- */

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--wash-soft) 0%, var(--white) 72%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(var(--s-6), 4vw, var(--s-9));
  align-items: center;
  padding-block: clamp(var(--s-7), 4.5vw, var(--s-10));
}
.hero-copy { max-width: 38rem; }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { margin-bottom: var(--s-6); }

/* The emphasised half of the headline. */
.hero h1 em {
  font-style: italic;
  color: var(--navy);
}

/* Small capsule label above the headline. */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 7px 15px;
  background: var(--wash); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--s-5);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--blue); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }

/* Three headline facts, separated from the actions by a rule. */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  margin: 0;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem);
  font-weight: 500; color: var(--ink); line-height: 1.1;
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: var(--t-xs); color: var(--ink-50); line-height: 1.4;
}

/* Framed hero image with a caption card resting over its lower edge. */
.hero-media { position: relative; }
.hero-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--wash);
}
.hero-frame img {
  width: 100%; display: block;
  aspect-ratio: 5 / 4; object-fit: cover;
}
.hero-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.hero-overlay-text { min-width: 0; }
.hero-overlay .label {
  display: block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 3px;
}
.hero-overlay strong {
  display: block; font-family: var(--font-display);
  font-size: var(--t-md); font-weight: 500; color: var(--ink); line-height: 1.2;
}
.hero-overlay span.sub { font-size: var(--t-xs); color: var(--ink-50); }
.hero-overlay .mark {
  width: 40px; height: 40px; flex: none; margin-left: auto;
  display: block; object-fit: contain;
}

/* The "reception desk" bar under the hero. */
.desk-bar { background: var(--navy); color: #CDDDEE; }
.desk-bar .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.desk-item {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding-block: var(--s-5);
}
.desk-item + .desk-item { border-left: 1px solid rgba(255,255,255,.14); padding-left: var(--s-5); }
.desk-item svg { width: 19px; height: 19px; color: #7FB2E8; flex: none; margin-top: 3px; }
.desk-item strong { display: block; color: var(--white); font-size: var(--t-sm); font-weight: 600; }
.desk-item span { font-size: var(--t-xs); color: #A8C2DE; }
.desk-item a { color: var(--white); text-decoration: none; }
.desk-item a:hover { text-decoration: underline; }

/* Cards — deliberately three different treatments, not one card kit. */

/* (a) Bordered panel, for navigational items. */
.panel {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
a.panel:hover, button.panel:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }

/* A panel that is a button needs the browser's button styling stripped. */
button.panel {
  width: 100%;
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

/* The one highlighted card in the grid — the navigator entry point. */
.panel-accent { background: var(--wash-soft); border-color: var(--blue); }
.panel-accent .panel-icon { background: var(--navy); color: var(--white); }
.panel h3 { margin-bottom: var(--s-2); font-size: var(--t-md); }
.panel p { font-size: var(--t-sm); color: var(--ink-70); margin-bottom: var(--s-4); }
.panel .link-cta { margin-top: auto; align-self: flex-start; }
.panel-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--wash); color: var(--navy);
  display: grid; place-items: center; margin-bottom: var(--s-4);
}
.panel-icon svg { width: 19px; height: 19px; }

/* (b) Ruled list item, for dense reference content — no box at all. */
.ruled { border-top: 1px solid var(--line); }
.ruled > * { padding-block: var(--s-5); border-bottom: 1px solid var(--line); }

/* (c) Numbered step, used ONLY where content is a real sequence. */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: var(--t-lg);
  color: var(--blue); line-height: 1;
  padding-top: 4px; min-width: 2.5rem;
}
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: var(--t-sm); }

/* Tag / pill */
.tag {
  display: inline-block; padding: 3px 9px;
  background: var(--wash); color: var(--navy);
  border-radius: var(--r-sm); font-size: var(--t-xs); font-weight: 600;
}
.tag-teal { background: var(--teal-wash); color: var(--teal); }

/* Accordion (FAQs, conditions) */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-5) 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--t-md);
  color: var(--ink); line-height: 1.35;
}
.accordion-trigger:hover { color: var(--blue); }
.accordion-trigger svg {
  width: 18px; height: 18px; flex: none; margin-top: 4px;
  color: var(--blue); transition: transform .2s ease;
}
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion-panel { padding-bottom: var(--s-5); max-width: 70ch; }
.accordion-panel[hidden] { display: none; }

/* Clinician portrait on the Doctors page */
.doctor-photo {
  width: 148px; height: 148px; flex: none;
  border-radius: var(--r-md);
  object-fit: cover; object-position: center center;
  border: 1px solid var(--line);
  background: var(--wash);
}
.doctor-initials {
  display: grid; place-items: center;
  color: var(--navy);
  font-family: var(--font-display); font-size: 2.6rem; letter-spacing: .02em;
}
@media (max-width: 480px) {
  .doctor-photo { width: 112px; height: 112px; }
  .doctor-initials { font-size: 2rem; }
}

/* Testimonial */
.quote {
  border-left: 2px solid var(--blue);
  padding-left: var(--s-5);
}
.quote blockquote {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display); font-size: var(--t-md);
  line-height: 1.5; color: var(--ink);
}
.quote figcaption { font-size: var(--t-sm); color: var(--ink-50); }
.quote figcaption strong { display: block; color: var(--ink); }

/* Article card */
.article-card { display: flex; flex-direction: column; text-decoration: none; }
.article-card .tag { align-self: flex-start; margin-bottom: var(--s-3); }
.article-card h3 {
  font-size: var(--t-md); margin-bottom: var(--s-2); line-height: 1.3;
}
.article-card:hover h3 { color: var(--blue); }
.article-card p { font-size: var(--t-sm); margin-bottom: var(--s-3); }
.article-meta { margin-top: auto; font-size: var(--t-xs); color: var(--ink-50); }

/* Prose — long-form article body */
.prose { max-width: 70ch; font-size: var(--t-md); line-height: 1.72; }
.prose h2 { margin-top: var(--s-8); font-size: var(--t-xl); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote {
  margin: var(--s-6) 0; padding: var(--s-5);
  background: var(--wash-soft); border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display); font-size: var(--t-md); color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-5); font-size: var(--t-sm); }
.prose th, .prose td { padding: var(--s-3); border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--wash-soft); color: var(--ink); font-weight: 600; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Medical disclaimer */
.disclaimer {
  padding: var(--s-5);
  background: var(--wash-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  color: var(--ink-70);
}
.disclaimer strong { color: var(--ink); }

/* Page header (interior pages) */
.page-head { background: var(--wash-soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(var(--s-7), 4vw, var(--s-9)); }
.breadcrumbs { font-size: var(--t-xs); color: var(--ink-50); margin-bottom: var(--s-4); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs a { color: var(--ink-50); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line); }

/* Final call to action */
.cta-band { background: var(--navy-deep); color: #C9D8EA; }
.cta-band .wrap { padding-block: clamp(var(--s-8), 5vw, var(--s-10)); }
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { max-width: 54ch; margin-bottom: var(--s-6); }

/* Floating help button */
.concierge-btn {
  position: fixed; right: var(--s-5);
  bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--navy); color: var(--white);
  border: 0; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); cursor: pointer;
  font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 600;
}
.concierge-btn:hover { background: var(--blue); }
.concierge-btn svg { width: 17px; height: 17px; }

/* Mobile sticky action bar */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  background: var(--white); border-top: 1px solid var(--line);
  padding: var(--s-2) var(--s-3);
  padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(3, 1fr); gap: var(--s-2);
  box-shadow: 0 -2px 12px rgba(10,26,47,.07);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: var(--s-2); font-size: 0.68rem; font-weight: 600;
  color: var(--navy); text-decoration: none; border-radius: var(--r-sm);
}
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar .is-primary { background: var(--blue); color: var(--white); }

/* Dialog (booking modal, navigator) */
dialog.modal {
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink-70); background: var(--white);
}
dialog.modal::backdrop { background: rgba(7, 27, 51, .55); backdrop-filter: blur(2px); }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.modal-head h2 { font-size: var(--t-lg); margin: 0; }
.modal-body { padding: var(--s-6); overflow-y: auto; }
.modal-close {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink-70);
}
.modal-close:hover { background: var(--wash); color: var(--ink); }
.modal-close svg { width: 17px; height: 17px; }

/* ---------- 9. FORMS ---------- */
.field { margin-bottom: var(--s-5); }
.field label {
  display: block; margin-bottom: var(--s-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-50); font-size: var(--t-xs); }
.req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: var(--t-base);
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: #B9CCE2; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,107,196,.16);
}
.textarea { resize: vertical; min-height: 6rem; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364788F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 15px;
  padding-right: 2.5rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

/* Inline validation */
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180,35,24,.12);
}
.field-error {
  display: block; margin-top: var(--s-2);
  font-size: var(--t-xs); font-weight: 600; color: var(--danger);
}
.field-error[hidden] { display: none; }

/* Checkbox */
.check { display: flex; gap: var(--s-3); align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.check label { font-weight: 400; font-size: var(--t-sm); color: var(--ink-70); }

/* Choice buttons (navigator, second opinion) */
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice {
  padding: 0.6rem 1rem;
  font-family: var(--font-sans); font-size: var(--t-sm); font-weight: 500;
  background: var(--white); color: var(--ink-70);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s ease;
}
.choice:hover { border-color: var(--blue); color: var(--navy); }
.choice[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}

/* Form result messages */
.form-status { margin-bottom: var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); font-size: var(--t-sm); }
.form-status[hidden] { display: none; }
.form-status-ok { background: var(--teal-wash); border: 1px solid #A8D8D2; color: #0B4F4A; }
.form-status-error { background: var(--danger-wash); border: 1px solid #FDA29B; color: #912018; }
.form-status strong { display: block; margin-bottom: var(--s-1); }

.form-privacy { font-size: var(--t-xs); color: var(--ink-50); margin-top: var(--s-4); }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Discretion mode hides clinical and personal imagery. */
body.discreet img.sensitive { filter: blur(18px); }

/* ---------- 10. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 960px) {
  .primary-nav, .utility-bar { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-book-desktop { display: none; }
  /* On a phone the reading order is: headline, promise, actions, facts,
     then the photograph — the image follows the copy rather than
     pushing it below the fold. */
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-copy { max-width: none; }
  /* A little taller than on desktop, so the building's signage still
     clears the caption card resting over the lower edge. */
  .hero-frame img { aspect-ratio: 4 / 3; object-position: center 42%; }
  .desk-bar .wrap { grid-template-columns: 1fr; }
  .desk-item + .desk-item {
    border-left: 0; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 64px; }         /* room for the mobile bar */
  .mobile-bar { display: grid; }
  .concierge-btn { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 720px) {
  :root { --t-base: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: var(--s-2); }
  .step::before { padding-top: 0; }
  /* Stacked full-width actions — on a phone these are the primary controls. */
  .hero-actions { gap: var(--s-2); }
  .hero-actions .btn { flex: 1 1 100%; }
  /* The three facts stay on one row; they are short and read as a set. */
  .hero-stats { gap: var(--s-3); padding-top: var(--s-5); }
  .hero-stats dt { font-size: 1.12rem; }
  .hero-stats dd { font-size: 0.7rem; }
  .hero-overlay { left: 10px; right: 10px; bottom: 10px; padding: var(--s-3) var(--s-4); gap: var(--s-3); }
  .hero-overlay .mark { width: 34px; height: 34px; }
  .hero-overlay strong { font-size: var(--t-base); }
  .eyebrow { font-size: 0.66rem; padding: 6px 12px; }
  .modal-body, .modal-head { padding-inline: var(--s-5); }
}

@media (max-width: 420px) {
  .wrap { padding-inline: var(--s-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .concierge-btn span { display: none; }
  .concierge-btn { padding: var(--s-3); border-radius: 50%; }
}

/* ---------- PRINT ---------- */
@media print {
  .utility-bar, .site-header, .mobile-bar, .concierge-btn, .cta-band, .site-footer { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
