/* ============================================================================
   KITEEZI DOCTORS HEALTH SERVICES — DESIGN SYSTEM & STYLES
   Sections: 1 Tokens · 2 Reset · 3 Layout · 4 Typography · 5 Buttons
   6 Header · 7 Hero · 8 Contact bar · 9 Cards & grids · 10 Sections
   11 Forms · 12 Accordion · 13 Footer · 14 Utilities/anim · 15 Responsive
   ========================================================================== */

/* ---- 1. Design tokens ------------------------------------------------- */
:root {
  /* Brand palette — the client's exact colour system. Every other token on
     this page is mathematically derived FROM these eight values (a darkened
     shade for text/button fills that need 4.5:1 contrast, a light tint for
     backgrounds) so nothing "random" enters the palette. Two documented
     exceptions: --star (gold, the universal rating-star convention) and the
     --on-dark-* scale (plain white at reduced opacity over the primary blue,
     not a new colour). */
  --primary:      #0B4F71;  /* deep medical blue — major headings, nav branding, important sections */
  --secondary:    #159A9C;  /* teal — primary CTAs, icons, links, interactive elements */
  --accent-green: #43A047;  /* green — used sparingly for health/wellness accents */
  --bg:           #F4FAFC;  /* soft blue-white — section backgrounds */
  --white:        #FFFFFF;  /* fixed pure white — text/labels on permanently-dark sections
                                (pagehero, footer, CTA band, topbar). Deliberately NOT themed:
                                those sections stay dark blue in both light and dark mode, so
                                their white text must stay white regardless of theme. */
  --ink:          #17324D;  /* main text */
  --muted:        #607D8B;  /* secondary text */
  --line:         #DCEAF0;  /* borders */
  --danger:       #D32F2F;  /* reserved: form errors only — this site runs no emergency programme */

  /* ---- Derived tones (computed, not hand-picked) ----------------------
     "-dark" = the base colour deepened ~16-18% toward black, used only where
     text or a white/light label sits on top of a solid fill and needs full
     4.5:1 body-text contrast. "-tint" = the base colour lightened toward
     white, used for icon tiles, hover backgrounds and callout panels. */
  --primary-dark:   #09415D;
  --primary-deep:   #07344B;
  --primary-tint:   #E7F0F4;
  --secondary-dark: #128183;
  --secondary-tint: #E3F4F4;
  --green-dark:     #38863C;
  --green-tint:     #E7F5E8;
  --green-line:     #BDDEBF;
  --muted-tint:     #E6EAEC;
  --danger-dark:    #B32828;
  --danger-tint:    #FBEAEA;
  --star:           #F2B705; /* exception: universal rating-star convention */

  /* Theme-adaptive aliases — these three exist because the base colour they
     alias is ALSO used as a fixed background on permanently-dark sections
     (see --white above) and can't itself invert for dark mode without
     breaking those. In light mode each equals its base colour exactly; only
     the dark override below changes them. */
  --surface: var(--white);           /* card/header/form backgrounds — inverts in dark mode */
  --heading: var(--primary);         /* h1/h2, brand name, stat numbers — lightens in dark mode */
  --link:    var(--secondary-dark);  /* links, eyebrows, nav hover — lightens in dark mode */
  --green-text: var(--green-dark);   /* form-success copy — lightens in dark mode */

  --body:    var(--ink);
  --bg-soft: var(--bg);

  /* Text/icons on solid dark-blue sections (topbar, footer, pagehero, cta
     band): plain white stepped down in opacity, not a separate colour. */
  --on-dark-1:       rgba(255,255,255,.95);
  --on-dark-2:       rgba(255,255,255,.78);
  --on-dark-3:       rgba(255,255,255,.65);
  --on-dark-icon:    rgba(255,255,255,.7);
  --on-dark-line:    rgba(255,255,255,.15);
  --on-dark-surface: rgba(255,255,255,.08);
  --on-dark-surface-hover: rgba(255,255,255,.16);

  --shadow-xs: 0 1px 2px rgba(11,79,113,.08);
  --shadow-sm: 0 4px 14px rgba(11,79,113,.09);
  --shadow-md: 0 12px 32px rgba(11,79,113,.12);
  --shadow-lg: 0 24px 60px rgba(11,79,113,.16);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1220px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-head: "Sora", var(--font-sans);

  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

/* Dark mode — applied via [data-theme="dark"] on <html>, set by the inline
   script in <head> (before first paint, to avoid a flash) from a saved
   preference or, failing that, the OS setting; toggled by the header button
   wired in components.js. The brand is intentionally light, so this is kept
   a legible, low-glare dark pass rather than a full second design. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EAF2F6; --muted: #9FB4C2; --body: var(--ink);
  --bg: #0B1D29; --bg-soft: #0F2634;
  --line: #24404F; --primary-tint: #16323F; --secondary-tint: #123334;
  --green-tint: #12301A; --green-line: #1E4A26; --muted-tint: #1B2B33;
  --danger-tint: #3A1414;
  /* --white is intentionally NOT overridden here — see its definition above. */
  --surface: #122C3D;
  --heading: #4FA3CE;
  --link: #3FD0CC;
  --green-text: #5FCE68;
  --shadow-sm: 0 4px 14px rgba(0,0,0,.35);
  --shadow-md: 0 12px 32px rgba(0,0,0,.42);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
}

/* ---- 2. Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--primary); color: var(--white); padding: .7rem 1.1rem;
  border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---- 3. Layout --------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--blue { background: linear-gradient(180deg, var(--primary), var(--primary-deep)); color: var(--on-dark-2); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }

/* ---- 4. Typography --------------------------------------------- */
h1, h2 { font-family: var(--font-head); color: var(--heading); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.02em; }
h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--body); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--link);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--secondary); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue .eyebrow { color: var(--on-dark-1); }
.section--blue .eyebrow::before { background: var(--on-dark-2); }
.text-muted { color: var(--muted); }

/* ---- 5. Buttons ---------------------------------------------- */
.btn {
  --btn-bg: var(--secondary-dark); --btn-fg: var(--white); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), filter .18s var(--ease);
  box-shadow: var(--shadow-xs); text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(.94); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { --btn-bg: var(--secondary-dark); }
.btn--blue { --btn-bg: var(--primary); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--heading); --btn-bd: var(--line); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--primary-tint); filter: none; }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--primary); }
.btn--outline-white { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.55); box-shadow: none; }
.btn--outline-white:hover { --btn-bg: rgba(255,255,255,.12); filter: none; }
.btn--whatsapp { --btn-bg: var(--green-dark); --btn-fg: var(--white); }
.btn--sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.link-more { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--link); display: inline-flex; align-items: center; gap: .35rem; }
.link-more::after { content: "→"; transition: transform .18s var(--ease); }
.link-more:hover { text-decoration: none; }
.link-more:hover::after { transform: translateX(4px); }

/* ---- 6. Header / navigation --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.site-header > .container { max-width: 1360px; }
.nav { display: flex; align-items: center; gap: .6rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 1.02rem; letter-spacing: -.01em; }
.brand__sub { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav__drawer { display: contents; }
.nav__links { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: .85rem; color: var(--body);
  padding: .5rem .42rem; border-radius: 8px; position: relative; white-space: nowrap;
}
.nav__link:hover { color: var(--link); text-decoration: none; background: var(--secondary-tint); }
.nav__link.is-active { color: var(--link); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .2rem; height: 2px;
  background: var(--secondary); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .45rem; margin-left: .35rem; flex-shrink: 0; }
.nav__cta .btn { padding: .58rem .78rem; font-size: .8rem; }
.nav__cta .btn svg { width: 15px; height: 15px; }
.theme-toggle {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--heading); flex-shrink: 0; margin-left: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.theme-toggle:hover { background: var(--secondary-tint); border-color: var(--secondary); color: var(--link); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); margin-left: auto;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--heading);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.5px); }

/* Announcement strip above header */
.topbar {
  background: var(--primary-deep); color: var(--on-dark-2); font-size: .82rem;
}
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; padding-block: .5rem; }
.topbar a { color: var(--white); font-weight: 600; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item svg { width: 15px; height: 15px; }

/* ---- 7. Hero — full-bleed photo background with content overlaid --- */
.hero {
  position: relative; overflow: hidden; background: var(--primary-deep);
  display: flex; align-items: center; min-height: clamp(520px, 78vh, 680px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,52,75,.92) 0%, rgba(7,52,75,.72) 42%, rgba(7,52,75,.32) 75%, rgba(7,52,75,.18) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem, 7vw, 5rem); }
.hero__content { max-width: 620px; }
.hero__eyebrow { color: var(--secondary); }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 46ch; color: var(--on-dark-1); }
.hero__cta { margin: 1.6rem 0 1.9rem; }
.hero__trust { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.2rem; max-width: 460px; }
.hero__trust li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--white); font-weight: 500; list-style: none; }
.hero__trust svg { width: 20px; height: 20px; color: var(--accent-green); flex-shrink: 0; }
.hero__tag {
  position: absolute; z-index: 2; top: 20px; right: 20px; margin: 0; background: var(--surface);
  color: var(--link); font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  padding: .55rem 1rem; border-radius: 999px; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: .45rem;
}
.hero__tag svg { width: 17px; height: 17px; color: var(--accent-green); flex-shrink: 0; }
.hero__badge {
  position: absolute; z-index: 2; right: 20px; bottom: 24px; background: var(--surface); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .7rem; font-size: .85rem; max-width: 230px;
}
.hero__badge svg { width: 34px; height: 34px; color: var(--accent-green); flex-shrink: 0; }
.hero__badge strong { display: block; font-family: var(--font-head); color: var(--ink); }

/* Page hero (interior pages) */
.pagehero { background: linear-gradient(180deg, var(--primary), var(--primary-deep)); color: var(--on-dark-2); }
.pagehero__inner { padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.pagehero h1 { color: var(--white); margin-bottom: .3em; }
.pagehero p { max-width: 60ch; color: var(--on-dark-2); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--on-dark-2); margin-bottom: 1rem; }
.breadcrumb a { color: var(--on-dark-1); }
.breadcrumb span[aria-current] { color: var(--white); }

/* ---- 8. Quick contact bar ---------------------------------- */
.contact-bar { background: linear-gradient(100deg, var(--primary-dark), var(--primary)); color: var(--white); }
.contact-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding-block: 1.4rem;
}
.contact-bar__icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--on-dark-surface); border-radius: 12px; }
.contact-bar__icon svg { width: 26px; height: 26px; color: var(--white); }
.contact-bar__text { margin-right: auto; }
.contact-bar__text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.contact-bar__text span { color: var(--on-dark-2); font-size: .92rem; }
.contact-bar .btn-row { flex-shrink: 0; }

/* ---- 9. Cards & grids ------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  display: flex; flex-direction: column; gap: .6rem; height: 100%;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--secondary-tint); color: var(--secondary); margin-bottom: .3rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--accent .card__icon { background: var(--green-tint); color: var(--accent-green); }
.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; font-size: .93rem; color: var(--body); }
.card .link-more { margin-top: auto; padding-top: .4rem; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--secondary-tint); color: var(--secondary);
  display: grid; place-items: center; flex-shrink: 0; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { font-size: .92rem; margin: 0; }

/* Media frames (SVG placeholder art) */
.frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--primary-tint); }
.frame img, .frame svg { width: 100%; display: block; }
.img-note {
  font-size: .78rem; color: var(--muted); margin-top: .5rem; display: flex; gap: .4rem; align-items: center;
}
.img-note::before { content: "🛈"; }

/* Doctor card */
.doctor { text-align: left; }
.doctor__photo { border-radius: var(--radius); overflow: hidden; background: var(--primary-tint); aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.doctor__photo svg, .doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin: 0; }
.doctor__spec { color: var(--link); font-weight: 600; font-size: .85rem; margin: .1rem 0 .5rem; }
.doctor__meta { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; background: var(--secondary-tint); color: var(--link);
  font-family: var(--font-head); letter-spacing: .02em;
}
.badge--warn { background: var(--muted-tint); color: var(--ink); }

/* Package / pricing card */
.pkg { position: relative; }
.pkg.is-featured { border-color: var(--secondary); box-shadow: var(--shadow-md); }
.pkg__flag { position: absolute; top: -12px; right: 1.25rem; background: var(--secondary-dark); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; font-family: var(--font-head); }
.pkg__price { font-family: var(--font-head); font-weight: 700; color: var(--heading); font-size: 1.5rem; }
.pkg__price small { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.pkg__list { list-style: none; display: grid; gap: .5rem; margin: .4rem 0 1rem; }
.pkg__list li { display: flex; gap: .55rem; font-size: .9rem; }
.pkg__list li::before { content: "✓"; color: var(--accent-green); font-weight: 700; flex-shrink: 0; }

/* Accepted insurance providers */
.insurers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.insurer {
  /* Always white, not the theme-adaptive surface: these logo files have a
     solid white background baked in, so they need a fixed white card to sit
     on cleanly in both light and dark mode. */
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.5rem; height: 76px; display: grid; place-items: center;
  flex: 0 0 auto; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.insurer:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.insurer img { max-height: 42px; max-width: 130px; width: auto; height: auto; object-fit: contain; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.25rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--heading); }
.stat__label { font-size: .82rem; color: var(--muted); }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: .8rem; }
.quote__stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }
.quote__text { font-size: .98rem; color: var(--ink); }
.quote__who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--secondary-dark); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.quote__name { font-weight: 600; color: var(--ink); font-size: .9rem; }

/* Blog cards */
.post__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: .9rem; background: var(--primary-tint); }
.post__media svg, .post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__cat { font-size: .74rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .08em; }
.post h3 { font-size: 1.12rem; margin: .3rem 0 .4rem; }
.post__meta { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

/* Announcements */
.announce { display: flex; flex-direction: column; gap: .5rem; border-left: 4px solid var(--accent-green); }
.announce__date { font-size: .85rem; color: var(--muted); }

/* ---- 10. Content sections -------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--secondary);
  background: var(--secondary-tint); border-radius: 0 12px 12px 0; color: var(--ink);
}
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--secondary);
  background: var(--secondary-tint); border-radius: 12px; padding: 1rem 1.25rem; font-size: .92rem;
}
.info-list { list-style: none; display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list svg { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; margin-top: .2rem; }
.info-list strong { color: var(--ink); font-family: var(--font-head); display: block; font-size: .9rem; }
.info-list span { font-size: .92rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: .5rem 1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--body);
  transition: all .18s var(--ease);
}
.pill:hover { border-color: var(--secondary); color: var(--link); }
.pill.is-active { background: var(--secondary-dark); border-color: var(--secondary-dark); color: var(--white); }

/* Map */
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); background: var(--primary-tint); aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  color: var(--heading); padding: 2rem; font-size: .9rem; }
.map-placeholder svg { width: 46px; height: 46px; margin: 0 auto .6rem; }

/* ---- 11. Forms ----------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px var(--secondary-tint);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); min-height: 1em; }
.field--full { grid-column: 1 / -1; }
.form__note { font-size: .82rem; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }

.form-success {
  display: none; gap: .9rem; align-items: flex-start; padding: 1.25rem 1.4rem;
  border-radius: var(--radius); background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green-text);
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--accent-green); }
.form-success h3 { color: var(--green-text); margin: 0 0 .2rem; font-size: 1.05rem; }
.form-success p { margin: 0; font-size: .92rem; }
.form-success__actions { margin-top: .9rem; }

/* Toast notifications */
.toast-wrap {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 300; display: grid; gap: .6rem;
  max-width: min(360px, calc(100vw - 2rem));
}
.toast {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-left: 4px solid var(--secondary); border-radius: 12px; padding: .9rem 1rem;
  box-shadow: var(--shadow-md); display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; animation: toast-in .3s var(--ease);
}
.toast--success { border-left-color: var(--accent-green); }
.toast--error { border-left-color: var(--danger); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }
.toast--success svg { color: var(--accent-green); }
.toast--error svg { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---- 12. Accordion (FAQ) ------------------------------ */
.accordion { display: grid; gap: .8rem; }
.acc {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.acc.is-open { border-color: var(--secondary); box-shadow: var(--shadow-sm); }
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.acc__btn:hover { color: var(--link); }
.acc__icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 50% 2px auto 2px; height: 2px; background: var(--secondary);
  border-radius: 2px; transform: translateY(-50%); transition: transform .25s var(--ease);
}
.acc__icon::after { transform: translateY(-50%) rotate(90deg); }
.acc.is-open .acc__icon::after { transform: translateY(-50%) rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 1.3rem 1.2rem; margin: 0; font-size: .94rem; }

/* ---- 13. Footer -------------------------------------- */
.site-footer { background: var(--primary-deep); color: var(--on-dark-2); font-size: .92rem; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: var(--white); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__sub { color: var(--on-dark-3); }
.footer__motto { margin: .8rem 0 0; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--white); }
.footer__desc { margin: .4rem 0 1rem; max-width: 32ch; color: var(--on-dark-2); }
.footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__list { list-style: none; display: grid; gap: .6rem; }
.footer__contact { list-style: none; display: grid; gap: .8rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--on-dark-icon); flex-shrink: 0; margin-top: .2rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px; background: var(--on-dark-surface);
  display: grid; place-items: center; transition: background .18s var(--ease);
}
.footer__social a:hover { background: var(--on-dark-surface-hover); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid var(--on-dark-line); padding-block: 1.3rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: .84rem; color: var(--on-dark-3);
}
.footer__legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__disclaimer { padding-bottom: 1.5rem; font-size: .78rem; color: var(--on-dark-3); max-width: 90ch; }

/* ---- 14. Utilities & animation --------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }
.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;
}
.divider { height: 1px; background: var(--line); margin-block: clamp(2rem, 5vw, 3.5rem); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Floating WhatsApp + back to top */
.fab {
  position: fixed; right: 1rem; z-index: 200; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-md); border: 0; color: var(--white);
  transition: transform .2s var(--ease), opacity .2s var(--ease), visibility .2s;
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 24px; height: 24px; }
.fab--whatsapp { bottom: 5.4rem; background: var(--green-dark); }
.fab--top { bottom: 1rem; background: var(--primary); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--primary), var(--primary-deep)); color: var(--white); border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.25rem); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-dark-2); max-width: 52ch; margin-inline: auto; }

/* ---- 15. Responsive ------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1400px) {
  .nav__toggle { display: flex; margin-left: auto; }
  .nav__drawer { display: none; }
  .nav.is-open .nav__drawer {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 1.1rem var(--gutter) 1.4rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: .15rem; margin: 0;
  }
  .nav.is-open .nav__link { padding: .85rem .6rem; font-size: 1rem; border-radius: 10px; }
  .nav.is-open .nav__link.is-active::after { display: none; }
  .nav.is-open .nav__link.is-active { background: var(--secondary-tint); }
  .nav.is-open .nav__cta {
    display: flex; flex-direction: column; align-items: stretch; gap: .6rem; margin: 0;
    border-top: 1px solid var(--line); padding-top: 1rem;
  }
  .nav.is-open .nav__cta .btn { padding: .9rem 1rem; font-size: .95rem; }
  .nav.is-open .nav__cta .btn svg { width: 18px; height: 18px; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .hero { min-height: clamp(460px, 82vh, 620px); }
  .split.reverse .split__media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-bar__text { margin-right: 0; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .form__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .hero__trust { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .toast-wrap { left: 1rem; right: 1rem; max-width: none; }
  .hero__tag { top: 12px; right: 12px; font-size: .74rem; padding: .45rem .8rem; }
  /* The floating badge would overlap the trust checkmarks once content wraps
     this tall on a narrow screen; "Patient-Centered Care" is already one of
     those checkmarks, so hide the card here rather than risk the overlap. */
  .hero__badge { display: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .fab, .contact-bar, .topbar, .toast-wrap { display: none !important; }
  body { color: #000; }
  .card, .form-card { box-shadow: none; border: 1px solid #ccc; }
}
