/* ==========================================================================
   The Village Doctor — site styles (v4)
   Palette taken from the logo: navy wordmark, teal cross, sage roof, terracotta heart.
   Mobile-first. All text colours meet WCAG 2.2 AA on their backgrounds.
   ========================================================================== */

:root {
  --navy: #22394A;        /* headings, body text */
  --teal: #2F6878;        /* primary actions, links */
  --teal-hover: #245564;
  --teal-deep: #1C3A45;   /* dark sections, footer */
  --teal-soft: #E6EFEF;
  --sage: #5B7F63;
  --sage-soft: #EEF2EC;
  --clay: #A65A3E;        /* terracotta accent (text-safe) */
  --clay-light: #E9B497;  /* accent on dark */
  --cream: #F6F2EA;
  --paper: #FFFDF9;
  --white: #FFFFFF;
  --muted: #55656B;
  --line: #E4DFD5;
  --field: #7F8F95;
  --error: #B3261E;
  --ok: #2E6B45;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9DCDD;

  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-accent: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 58, 69, .06), 0 8px 24px rgba(28, 58, 69, .08);
  --shadow-lg: 0 2px 4px rgba(28, 58, 69, .06), 0 18px 48px rgba(28, 58, 69, .14);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 650; line-height: 1.15; letter-spacing: -.022em; color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -.028em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
h1 em, h2 em, .accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--teal); }
strong { font-weight: 700; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--clay-light); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 .8125rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.on-dark .eyebrow::before { background: var(--clay-light); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px; font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(47, 104, 120, .25); }
.btn--primary:hover { background: var(--teal-hover); color: #fff; }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal-soft); color: var(--teal-hover); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { background: var(--teal-soft); color: var(--teal-deep); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--whatsapp { background: #128C7E; color: #fff; }
.btn--whatsapp:hover { background: #0E7166; color: #fff; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--teal); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.on-dark .link-arrow { color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-deep); color: var(--on-dark-muted); font-size: .875rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__group { display: flex; align-items: center; gap: 18px; }
.topbar__hours { display: none; }
.topbar__emergency { display: none; }
@media (min-width: 900px) { .topbar__hours, .topbar__emergency { display: inline; } }

.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9AA9AD; box-shadow: 0 0 0 3px rgba(154,169,173,.25); }
.status.is-open::before { background: #5CC48A; box-shadow: 0 0 0 3px rgba(92,196,138,.28); }
.status.is-closed::before { background: var(--clay-light); box-shadow: 0 0 0 3px rgba(233,180,151,.25); }
.status--light { color: var(--navy); }
.status--light.is-open::before { background: #2E8B57; }
.status--light.is-closed::before { background: var(--clay); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .96); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(28, 58, 69, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
@media (min-width: 768px) { .brand img { height: 56px; } }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link { display: block; padding: 10px 14px; border-radius: 999px; font: 600 .975rem/1.2 var(--font-body); color: var(--navy); text-decoration: none; }
.nav__link:hover { background: var(--teal-soft); color: var(--teal-hover); }
.nav__link[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-book { display: none; }

@media (max-width: 1079px) {
  .nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.is-open .nav__link { padding: 16px 12px; border-radius: var(--radius-sm); font-size: 1.0625rem; }
  .nav__mobile-extra { margin-top: 16px; display: grid; gap: 10px; }
}
@media (min-width: 1080px) {
  .nav { display: block; }
  .nav__mobile-extra { display: none; }
  .menu-toggle { display: none; }
  .header-book { display: inline-flex; }
  .header-call { display: inline-flex; }
}

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28,58,69,.08); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; font: 700 .8125rem/1 var(--font-body); color: var(--navy); text-decoration: none; }
.action-bar a .icon { width: 22px; height: 22px; color: var(--teal); }
.action-bar a.is-primary { background: var(--teal); color: #fff; }
.action-bar a.is-primary .icon { color: #fff; }
.action-bar a + a { border-left: 1px solid var(--line); }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 1080px) { .action-bar { display: none; } body { padding-bottom: 0; } }

.wa-float { display: none; }
@media (min-width: 1080px) {
  .wa-float { display: grid; place-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #128C7E; color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s, background .2s; }
  .wa-float:hover { background: #0E7166; color: #fff; transform: translateY(-2px); }
  .wa-float .icon { width: 30px; height: 30px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--cream { background: var(--cream); }
.section--sage { background: var(--sage-soft); }
.section--dark { background: var(--teal-deep); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: var(--clay-light); }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 48px; margin-bottom: 56px; } }
.section-head--center { text-align: center; justify-items: center; grid-template-columns: 1fr !important; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } .split--wide-right { grid-template-columns: .85fr 1.15fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); padding: 40px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(47,104,120,.12), transparent 65%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 96px; } .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.hero h1 { margin-bottom: 20px; }
.hero__intro { font-size: clamp(1.125rem, 1.7vw, 1.3rem); max-width: 34ch; color: var(--muted); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__doctor { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 460px; }
.hero__doctor .badge-icon { width: 48px; height: 48px; }
.hero__doctor strong { display: block; font-size: 1rem; }
.hero__doctor span { color: var(--muted); font-size: .9375rem; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hours-card { position: relative; margin: -56px 16px 0 auto; max-width: 320px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px 22px; }
@media (min-width: 960px) { .hours-card { position: absolute; left: -40px; bottom: -32px; margin: 0; } }
.hours-card h2 { font-size: 1rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.hours-card .status { margin-bottom: 10px; font-size: .9375rem; }

/* ---------- Badge icon ---------- */
.badge-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); flex-shrink: 0; }
.badge-icon .icon { width: 24px; height: 24px; }
.on-dark .badge-icon { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Quick info strip ---------- */
.quick { margin-top: -1px; padding: 0 0 24px; }
.quick__grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .quick__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .quick__grid { grid-template-columns: repeat(4, 1fr); } }
.quick__item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--navy); transition: border-color .2s, box-shadow .2s; }
a.quick__item:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--navy); }
.quick__item strong { display: block; font-size: 1rem; }
.quick__item span { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.45; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: #CBD6D6; box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 4px 0 20px; }
.card li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9875rem; }
.card li:last-child { border-bottom: 0; }
.card li .icon { color: var(--sage); width: 18px; height: 18px; margin-top: 4px; }
.card .link-arrow { margin-top: auto; }
.card--link .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card--feature { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--on-dark-muted); }
.card--feature h3 { color: #fff; font-size: 1.6rem; }
.card--feature p { color: var(--on-dark-muted); }

/* ---------- Media ---------- */
.media { position: relative; }
.media img { width: 100%; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow); }
.media--portrait img { aspect-ratio: 4 / 5; }
.media--landscape img { aspect-ratio: 4 / 3; }
.media__tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); border-radius: 999px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow); font-weight: 600; font-size: .9375rem; }
.media__tag .badge-icon { width: 36px; height: 36px; }
.media__tag .badge-icon .icon { width: 18px; height: 18px; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--sage); margin-top: 3px; }
.on-dark .check-list .icon { color: var(--clay-light); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; display: grid; gap: 4px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 1.4rem/1.2 var(--font-accent); font-style: italic; color: var(--teal); }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .9875rem; }
.on-dark .steps li { border-color: rgba(255,255,255,.15); }
.on-dark .steps li::before { color: var(--clay-light); }
.on-dark .steps strong { color: #fff; }
.on-dark .steps span { color: var(--on-dark-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-deep); font-size: .875rem; font-weight: 600; }

/* ---------- Notes ---------- */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--cream); border-left: 4px solid var(--sage); font-size: .9875rem; color: var(--navy); }
.note .icon { color: var(--sage); margin-top: 3px; }
.note--warn { background: #FBF0EA; border-left-color: var(--clay); }
.note--warn .icon { color: var(--clay); }
.on-dark .note { background: rgba(255,255,255,.07); color: var(--on-dark-muted); border-left-color: var(--clay-light); }
.on-dark .note .icon { color: var(--clay-light); }

/* ---------- Hours table ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--teal); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.on-dark .hours th, .on-dark .hours td { border-color: rgba(255,255,255,.15); color: var(--on-dark-muted); }
.on-dark .hours tr.is-today th, .on-dark .hours tr.is-today td { color: #fff; }
.hours-note { font-size: .875rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: linear-gradient(180deg, var(--cream), var(--paper)); padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-head { padding: 64px 0 80px; } }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-head .lead { max-width: 60ch; color: var(--muted); margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: .9375rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #A3ADB0; }
.breadcrumb a { color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.subnav a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; gap: 28px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
@media (min-width: 900px) { .service-block { grid-template-columns: 300px 1fr; gap: 64px; padding: 72px 0; } }
.service-block__head .badge-icon { margin-bottom: 18px; }
.service-block__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service-block__body > p:first-child { font-size: 1.125rem; }
.two-col-list { display: grid; gap: 10px 32px; list-style: none; padding: 0; margin: 0 0 24px; }
@media (min-width: 640px) { .two-col-list { grid-template-columns: 1fr 1fr; } }
.two-col-list li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.two-col-list .icon { color: var(--sage); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font: 650 1.0625rem/1.4 var(--font-head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--teal); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] { border-color: #CBD6D6; box-shadow: var(--shadow); }
.faq .faq__a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin: 16px 0 10px; font-size: 1.2rem; }
.contact-card p { color: var(--muted); }
.contact-card .big-link { display: block; font: 650 1.25rem/1.3 var(--font-head); color: var(--navy); text-decoration: none; margin-bottom: 4px; }
.contact-card .big-link:hover { color: var(--teal); }
.contact-card .stack { display: grid; gap: 10px; margin-top: 16px; }

.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--teal-soft) radial-gradient(circle at 30% 40%, rgba(47,104,120,.14), transparent 60%); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; }
.map__placeholder p { margin: 0; max-width: 38ch; color: var(--muted); font-size: .9375rem; }

/* ---------- Emergency ---------- */
.emergency { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: #FBF0EA; border: 1px solid #F0D5C7; }
.emergency .icon { color: var(--clay); width: 26px; height: 26px; }
.emergency h3 { font-size: 1.1rem; margin: 0 0 6px; }
.emergency p { margin: 0; font-size: .9875rem; }
.emergency a { font-weight: 700; color: var(--clay); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--teal-deep); color: var(--on-dark-muted); padding: 48px 28px; display: grid; gap: 24px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr auto; align-items: center; padding: 64px; } }
.cta h2 { color: #fff; margin: 0 0 10px; }
.cta h2 em { color: var(--clay-light); }
.cta p { margin: 0; max-width: 52ch; }
.cta::after { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 60px rgba(255,255,255,.03); pointer-events: none; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 40px; } }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .875rem; color: var(--muted); }
.req { color: var(--clay); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: var(--radius-sm); background: #fff; color: var(--navy); font: 400 1rem/1.4 var(--font-body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,104,120,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .error { display: none; color: var(--error); font-size: .875rem; font-weight: 600; }
.field.has-error .error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #E8F3EC; color: var(--ok); }
.form-status.is-error { background: #FBEAE8; color: var(--error); }
.form-disclaimer { font-size: .875rem; color: var(--muted); margin: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: .4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: #33474F; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .9875rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--cream); font-weight: 700; }
.placeholder { background: #FFF3C4; padding: 0 4px; border-radius: 4px; font-weight: 600; color: #5C4400; }
.toc { background: var(--cream); border-radius: var(--radius); padding: 24px; margin-bottom: 40px; }
.toc h2 { font-size: 1.1rem !important; margin: 0 0 12px !important; padding: 0 !important; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 1fr 300px; gap: 64px; align-items: start; } .legal-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.1rem; }
.aside-card p { font-size: .9375rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--on-dark-muted); padding: 64px 0 0; font-size: .9875rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1fr 1.1fr; } }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-title { font: 700 .8125rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--clay-light); margin: 0 0 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-emergency { margin-top: 20px; padding: 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.footer-emergency strong { color: #fff; display: block; margin-bottom: 6px; }
.footer-emergency p { margin: 0 0 10px; font-size: .9375rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .875rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .action-bar, .wa-float, .site-footer, .cta { display: none !important; }
  body { padding: 0; }
}

/* ---------- Utilities ---------- */
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.05rem; margin-top: 8px; }
.spacer { height: 24px; }
.btn-row--center { justify-content: center; }
.contact-card .hours { margin-top: 6px; }
.contact-card h2.h3 { margin: 16px 0 10px; }
.contact-card h2.h3 + .status, .contact-card h3 + .status { margin-bottom: 4px; }
.hours td { white-space: nowrap; padding-left: 12px; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; }
@media (min-width: 700px) { .prose table { display: table; } }
.aside-card { overflow-wrap: anywhere; }
@media (min-width: 1080px) { .footer-bottom { padding-right: 84px; } }
@media (max-width: 639px) {
  .topbar .container { min-height: 36px; }
  .topbar__phone { display: none; }
  .topbar .status { font-size: .8125rem; white-space: nowrap; }
}

/* ---------- Logos: animated hero logo + play-once header logo ---------- */
.brand img { height: 46px; width: auto; transform: translateX(-6.3%); }
@media (min-width: 768px) { .brand img { height: 56px; } }
.hero__logo { position: relative; display: block; width: fit-content; margin: 0 0 18px -12px; }
.hero__logo img { width: 170px; height: auto; }
@media (min-width: 960px) { .hero__logo img { width: 250px; } }
.logo-toggle { position: absolute; right: -40px; top: 38%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--teal); cursor: pointer; opacity: .75; transition: opacity .2s; }
.logo-toggle:hover, .logo-toggle:focus-visible { opacity: 1; }
.logo-toggle .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.logo-toggle .icon-play { display: none; }
.logo-toggle[aria-pressed="true"] .icon-pause { display: none; }
.logo-toggle[aria-pressed="true"] .icon-play { display: block; }
@media (prefers-reduced-motion: reduce) { .logo-toggle { display: none; } }
