/* Sadhana Clinic — "Neighbourhood Calm" design system. See specs/03-design-system.md */

/* ---------- Tokens ---------- */
/* "Clean Care" tokens. See specs/03. Light by default; dark follows the device
   unless the visitor picks a theme (html[data-theme]). */
:root {
  --teal-900: #0e3b3c;
  --teal-700: #00797a;
  --teal-100: #e0f2f1;
  --coral-700: #b8432c;
  --coral-500: #e8664f;
  --coral-100: #fdece8;
  --base-50: #ffffff;
  --base-100: #f3f7f7;
  --ink-700: #263238;
  --ink-500: #566870;
  --line: #dde6e7;
  --ok: #2e7d4f;
  --warn: #a15c00;
  --surface: #ffffff;
  --on-primary: #ffffff;
  --band-bg: #0e3b3c;
  --band-ink: #e0f2f1;
  --band-muted: #a9c9c8;
  --arch-from: var(--teal-100);
  --arch-to: var(--coral-100);
  --shadow: 0 1px 2px rgb(14 59 60 / 0.06), 0 8px 24px rgb(14 59 60 / 0.08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 32px;
  --container: 1180px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --teal-900: #e0f2f1;
  --teal-700: #4db6ac;
  --teal-100: #12302f;
  --coral-700: #ff8a73;
  --coral-500: #ff8a73;
  --coral-100: #3a211c;
  --base-50: #0f1719;
  --base-100: #142023;
  --ink-700: #cfd8dc;
  --ink-500: #90a4ae;
  --line: #26363a;
  --ok: #6fcf97;
  --warn: #f2b45a;
  --surface: #172427;
  --on-primary: #062021;
  --band-bg: #0a1214;
  --band-ink: #e0f2f1;
  --band-muted: #a9c9c8;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
  --arch-from: #12302f;
  --arch-to: #132225;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal-900: #e0f2f1;
  --teal-700: #4db6ac;
  --teal-100: #12302f;
  --coral-700: #ff8a73;
  --coral-500: #ff8a73;
  --coral-100: #3a211c;
  --base-50: #0f1719;
  --base-100: #142023;
  --ink-700: #cfd8dc;
  --ink-500: #90a4ae;
  --line: #26363a;
  --ok: #6fcf97;
  --warn: #f2b45a;
  --surface: #172427;
  --on-primary: #062021;
  --band-bg: #0a1214;
  --band-ink: #e0f2f1;
  --band-muted: #a9c9c8;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
  --arch-from: #12302f;
  --arch-to: #132225;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base-50);
  color: var(--ink-700);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--teal-900);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 60;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-700); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
@media (max-width: 400px) { :root { --gutter: 16px; } }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--base-100); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section__head p { margin: 0; color: var(--ink-500); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral-700); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.1875rem; color: var(--ink-700); }
.muted { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal-700); color: var(--on-primary); }
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--accent { background: var(--coral-700); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--teal-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-700); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.875rem; font-weight: 600; color: var(--teal-900); white-space: nowrap;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-500); position: relative; }
.status[data-state="open"] .status__dot { background: var(--ok); }
.status[data-state="soon"] .status__dot { background: var(--warn); }
.status[data-state="open"] .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0; animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--base-50) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); margin-right: auto; }
.brand__mark {
  width: 38px; height: 44px; border-radius: 19px 19px 6px 6px;
  background: var(--teal-700); color: var(--on-primary);
  display: grid; place-items: center; font: 600 1.25rem/1 var(--font-display);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 1.25rem/1.1 var(--font-display); }
.brand__sub { font-size: 0.75rem; color: var(--ink-500); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink-700); font-weight: 500; font-size: 0.9688rem;
}
.nav a:hover { background: var(--teal-100); color: var(--teal-900); }
.nav a[aria-current="page"] { color: var(--teal-900); background: var(--teal-100); font-weight: 700; }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--teal-900); cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1279px) {
  .site-header .status { display: none; }
}
@media (max-width: 1023px) {
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--base-50); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.0625rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--coral-700); font-weight: 500; }
.hero .status { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero__areas { margin-top: 28px; font-size: 0.9375rem; color: var(--ink-500); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }

/* Arch motif with kolam dot pattern */
.arch {
  position: relative; border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--teal-700) 28%, transparent) 1.6px, transparent 2px) 0 0 / 22px 22px,
    linear-gradient(170deg, var(--arch-from), var(--arch-to));
  aspect-ratio: 4 / 5; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.arch::before {
  content: ""; position: absolute; inset: 14px; border-radius: inherit;
  border: 1.5px dashed color-mix(in srgb, var(--teal-700) 35%, transparent); z-index: -1;
}
.arch__monogram {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: var(--teal-700); color: var(--on-primary);
  display: grid; place-items: center; font: 500 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--base-50) 70%, transparent);
}
@media (max-width: 860px) { .hero .arch { max-width: 420px; width: 100%; margin-inline: auto; aspect-ratio: 5 / 5.4; } }

.today-card {
  background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 20px 22px;
}
.today-card__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.today-card__hours { font: 600 1.375rem/1.3 var(--font-display); color: var(--teal-900); margin: 4px 0 12px; }
.today-card .status { border: 0; padding: 0; background: none; }

/* ---------- Fact strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.fact { background: var(--surface); padding: 22px 24px; }
.fact__num { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1 var(--font-display); color: var(--teal-900); }
.fact__label { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-500); }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Care bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.care-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.care-tile:nth-child(1) {
  grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(circle at center, rgb(255 255 255 / .14) 1.6px, transparent 2px) 0 0 / 22px 22px,
    var(--teal-700);
  border-color: transparent;
}
.care-tile:nth-child(1) h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.care-tile:nth-child(1) li { font-size: 1.0625rem; }
.care-tile:nth-child(1) h3, .care-tile:nth-child(1) li { color: var(--on-primary); }
.care-tile:nth-child(1) .icon-arch { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
.care-tile:nth-child(1) li::before { background: var(--on-primary); }
.care-tile h3 { margin: 0; }
.care-tile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.care-tile li { position: relative; padding-left: 18px; font-size: 0.9688rem; }
.care-tile li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral-500); }
.icon-arch {
  width: 48px; height: 54px; border-radius: 24px 24px 10px 10px;
  background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center;
}
.icon-arch svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .care-tile:nth-child(1) { grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .care-tile:nth-child(1) { grid-column: auto; }
}

/* ---------- Doctor ---------- */
.doctor { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.doctor .arch { aspect-ratio: 4 / 4.6; }
.doctor__name { margin-bottom: 4px; }
.doctor__role { color: var(--coral-700); font-weight: 600; margin-bottom: 24px; }
.creds { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.creds li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.creds svg { width: 20px; height: 20px; color: var(--teal-700); flex: none; margin-top: 3px; }
@media (max-width: 860px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor .arch { max-width: 340px; width: 100%; margin-inline: auto; }
}

/* ---------- Packages ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-700);
  font: 600 0.9375rem/1 var(--font-body);
}
.chip:hover { border-color: var(--teal-700); }
.chip[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: var(--on-primary); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.pkg {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.pkg:hover { box-shadow: var(--shadow); }
.pkg:target, .pkg.is-highlight { border-color: var(--coral-500); box-shadow: 0 0 0 3px var(--coral-100); }
.pkg__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--teal-100); color: var(--teal-700);
}
.pkg h3 { margin: 0; }
.pkg__for { margin: -6px 0 0; color: var(--ink-500); font-size: 0.9688rem; }
.pkg__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pkg__offer { font: 600 2rem/1 var(--font-display); color: var(--coral-700); }
.pkg__mrp { color: var(--ink-500); text-decoration: line-through; }
.pkg__save { font-size: 0.8125rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 3px 8px; border-radius: 6px; }
.pkg__ask { font: 600 1.25rem/1.2 var(--font-display); color: var(--teal-900); }
.pkg details { border-top: 1px dashed var(--line); padding-top: 12px; }
.pkg summary {
  cursor: pointer; font-weight: 600; color: var(--teal-700); list-style: none;
  display: flex; align-items: center; justify-content: space-between; min-height: 32px;
}
.pkg summary::-webkit-details-marker { display: none; }
.pkg summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.pkg details[open] summary::after { transform: rotate(45deg); }
.pkg details ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.9375rem; }
.pkg details li { display: flex; gap: 8px; }
.pkg details li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--ok); }
.pkg .btn { margin-top: auto; }
.pkg-empty { padding: 32px; text-align: center; color: var(--ink-500); }

/* ---------- Finder ---------- */
.finder {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px);
}
.finder fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.finder legend { font: 600 1.125rem/1.3 var(--font-display); color: var(--teal-900); margin-bottom: 12px; padding: 0; }
.finder__step { font-size: 0.8125rem; color: var(--ink-500); font-weight: 700; display: block; font-family: var(--font-body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.radio-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-card span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 500; font-size: 0.9688rem;
  background: var(--base-50);
}
.radio-card input:checked + span { border-color: var(--teal-700); background: var(--teal-100); color: var(--teal-900); font-weight: 700; }
.radio-card input:focus-visible + span { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.finder__result { background: var(--base-100); border-radius: var(--r-md); padding: 24px; align-self: start; }
.finder__result h3 { margin-bottom: 4px; }
.finder__list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.finder__list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface); border-radius: var(--r-sm); border: 1px solid var(--line);
  text-decoration: none; color: var(--teal-900); font-weight: 600;
}
.finder__list a:hover { border-color: var(--teal-700); }
.finder__list .price { color: var(--coral-700); font-family: var(--font-display); white-space: nowrap; }
.finder__note { font-size: 0.875rem; color: var(--ink-500); margin: 0; }
.finder__note--flag { color: var(--warn); font-weight: 600; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } }

/* ---------- Lab ---------- */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: var(--coral-100); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); }
.lab__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab__spec { background: var(--surface); border-radius: var(--r-sm); padding: 18px; font-weight: 600; color: var(--teal-900); display: flex; gap: 10px; align-items: center; }
.lab__spec svg { width: 20px; height: 20px; color: var(--coral-700); }
@media (max-width: 760px) { .lab { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral-100); color: var(--coral-700); font: 600 1.25rem/1 var(--font-display); margin-bottom: 16px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-500); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.value h3 { margin-bottom: 6px; }
.value p { margin: 0; color: var(--ink-500); font-size: 0.9688rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- Two-column prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head p { font-size: 1.1875rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- Dark band ---------- */
.band { background: var(--band-bg); color: var(--band-ink); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); }
.band h2, .band h3 { color: var(--band-ink); }
.band p, .band .muted { color: var(--band-muted); }
.band__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.band .btn--ghost { color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 30%, transparent); }
.band .btn--primary { background: var(--band-ink); color: var(--band-bg); }
.band .hours-table td, .band .hours-table th { border-color: color-mix(in srgb, var(--band-ink) 18%, transparent); color: var(--band-ink); }
.band .hours-table tr.is-today { background: color-mix(in srgb, var(--band-ink) 10%, transparent); }
@media (max-width: 860px) { .band__grid { grid-template-columns: 1fr; } }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; color: var(--teal-900); }
.hours-table tr.is-today { background: var(--teal-100); }
.hours-table tr.is-today th::after { content: " · Today"; color: var(--coral-700); font-weight: 700; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); }
.card + .card { margin-top: 20px; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list svg { width: 22px; height: 22px; color: var(--teal-700); flex: none; margin-top: 2px; }
.info-list strong { display: block; color: var(--teal-900); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; color: var(--teal-900); font-size: 0.9688rem; }
.field .req { color: var(--coral-700); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--base-50); color: var(--ink-700);
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-700); outline: 3px solid var(--coral-500); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--coral-700); }
.field__error { color: var(--coral-700); font-size: 0.875rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: 0.875rem; color: var(--ink-500); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.needs .radio-card span { font-size: 0.875rem; min-height: 40px; padding: 6px 12px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--coral-100); color: var(--ink-700); font-size: 0.9688rem;
}
.notice svg { width: 22px; height: 22px; color: var(--coral-700); flex: none; }
.notice strong { color: var(--teal-900); }
.form-success { padding: 18px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--teal-900); font-weight: 600; }
.form-success[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--base-100); border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-700); text-decoration: none; }
.site-footer a:hover { color: var(--teal-700); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-500); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgb(0 0 0 / 0.06);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; justify-content: center;
    text-decoration: none; color: var(--teal-900); font-size: 0.8125rem; font-weight: 600; border-radius: var(--r-sm);
  }
  .action-bar a svg { width: 22px; height: 22px; color: var(--teal-700); }
  .action-bar a.is-primary { background: var(--teal-700); color: var(--on-primary); }
  .action-bar a.is-primary svg { color: var(--on-primary); }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status__dot::after { animation: none !important; }
  .btn:hover { transform: none; }
}

/* Package preparation note (specs/01 Q10) */
.pkg__prep { display: flex; gap: 8px; margin: 0; font-size: 0.875rem; color: var(--ink-700); }
.pkg__prep svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--coral-700); }

/* ---------- Spec 02 review additions ---------- */
[hidden] { display: none !important; }

/* FR-13 text size */
html.text-lg { font-size: 120%; }
.textsize-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--teal-900);
  font: 700 1rem/1 var(--font-body);
}
.textsize-btn:hover { border-color: var(--teal-700); }
.textsize-btn[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: var(--on-primary); }
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .site-header__inner { gap: 10px; }
}

/* FR-12 Google rating */
.rating {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--ink-700); font-size: 0.9375rem;
}
.rating strong { color: var(--teal-900); }
.rating__star { color: #e0a100; font-size: 1.1em; }
.rating:hover span:last-child { text-decoration: underline; }
.hero__rating { margin: 20px 0 0; }

/* FR-14 consent banner */
.consent {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 18px 20px; font-size: 0.9375rem;
}
.consent p { margin: 0 0 12px; }
@media (max-width: 767px) { .consent { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* FR-7 nested patient group + call fallback */
#other-patient { padding: 0; }
.form .btn--block + .btn--block { margin-top: 10px; }

/* ---------- Spec 03 review: theme toggle + header tools ---------- */
.header-tools, .nav-tools { display: flex; gap: 8px; align-items: center; }
.nav-tools { display: none; }
.theme-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none; cursor: pointer; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--teal-900);
}
.theme-btn:hover { border-color: var(--teal-700); }
.theme-btn svg { width: 22px; height: 22px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
@media (max-width: 440px) {
  .header-tools { display: none; }
  .nav-tools { display: flex; padding: 12px 16px 0; border-top: 1px solid var(--line); margin-top: 8px; }
  .nav-tools::before { content: "Display"; font-size: 0.875rem; font-weight: 600; color: var(--ink-500); margin-right: auto; }
}

/* ---------- Spec 04 review: FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 18px; }
.faq__item summary {
  cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; color: var(--teal-900);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-700); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 16px; }

/* ---------- Spec 04 review: five-item nav fit ---------- */
.nav a, .header-cta, .brand__name, .brand__sub, .site-header .status { white-space: nowrap; }
.site-header__inner { gap: 14px; }
.nav { gap: 2px; }
.nav a { padding: 10px 12px; }

/* ---------- QA (T24): links in text must not rely on colour alone ---------- */
.footer-bottom a, .linklike, .notice a, .finder__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- QA (T24): reserve header space before JS runs (CLS) ---------- */
.header-slot { height: 73px; border-bottom: 1px solid var(--line); background: var(--base-50); }

/* CLS guard: JS-filled slots reserve a screen of space until rendered, so the sections below don't jump */
[data-render="care"]:empty, [data-render="packages"]:empty,
[data-render="finder"]:empty, [data-render="faq"]:empty { min-height: 100vh; }

/* ---------- QA (T24): A+ header fit. Bigger text needs the compact header sooner ---------- */
html.text-lg .site-header .status { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) {
  html.text-lg .menu-btn { display: grid; }
  html.text-lg .header-cta { display: none; }
  html.text-lg .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--base-50); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    display: none;
  }
  html.text-lg .nav.is-open { display: flex; }
  html.text-lg .nav a { padding: 14px 16px; font-size: 1.0625rem; }
}

/* ---------- QA (T24): narrow-width overflow. Grid columns may shrink below their longest word ---------- */
.footer-grid > *, .lab > *, .lab__spec { min-width: 0; }
.site-footer a, .lab__spec { overflow-wrap: anywhere; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .lab { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .lab__specs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .action-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } .action-bar a { min-width: 0; } }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
fieldset { min-width: 0; }
.contact-grid > *, .form > * { min-width: 0; }
.radio-card span { white-space: normal; }
/* Header pill: when closed, the next-opening detail is too long for the nav row (full text stays in hero + contact card) */
.site-header .status[data-state="closed"] .status__more { display: none; }
/* Outside the header, the pill may wrap at narrow widths with A+ */
main .status { white-space: normal; max-width: 100%; }
