/* =========================================================================
   Dr. K. C. Patel — Bone and Joint Care
   Palette derived from the practice logo: slate navy + teal, mint neutrals.
   See /DESIGN-SYSTEM.md
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Navy — from logo wordmark & runner figure */
  /* Navy is defined at body scope below — see BRAND SCOPE. */

  --white: #FFFFFF;
  --slate-50: #F7F9FA;
  --slate-100: #EEF2F5;

  /* Accent — warm highlight for pricing/urgency (from reference) */
  --amber-600: #C2701C;
  --amber-500: #E08A3C;
  --amber-100: #FBEEDF;

  /* Text */
  --text-900: #16283A;
  --text-700: #3A5162;
  --text-500: #64798A;   /* 4.6:1 on white */
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #C5D8DE;

  /* Structure */
  --border-100: #E8EEF1;
  --border-200: #D9E3E8;
  --danger-600: #C0392B;
  --success-600: #2F7A6C;

  /* Typography */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: clamp(2rem, 1.7rem + 1.4vw, 2.5rem);
  --text-5xl: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);
  --text-6xl: clamp(2.75rem, 1.9rem + 3.6vw, 4.25rem);

  /* Spacing (8pt) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;
  --space-10: 7rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Elevation — navy-tinted */
  --shadow-sm: 0 1px 2px rgba(27, 46, 63, 0.06), 0 1px 3px rgba(27, 46, 63, 0.05);
  --shadow-md: 0 6px 18px -6px rgba(27, 46, 63, 0.12), 0 2px 6px rgba(27, 46, 63, 0.05);
  --shadow-lg: 0 20px 44px -14px rgba(27, 46, 63, 0.18), 0 4px 12px rgba(27, 46, 63, 0.06);
  --shadow-xl: 0 32px 70px -18px rgba(27, 46, 63, 0.24);

  /* Motion */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 360ms;

  /* Layout */
  --container-max: 1240px;
  --gutter: 20px;
}

/* -------------------------------------------------------------------------
   BRAND SCOPE
   Elementor exposes its Global Colors on `.elementor-kit-N`, which it puts on
   <body> — not :root. So the brand ramp has to live at body scope for
   var(--e-global-color-accent) to resolve. Everything on the page inherits
   from body, so the derived values reach the whole document.
   ------------------------------------------------------------------------- */
body {
  /* ---------------------------------------------------------------------
     BRAND COLOUR — the single knob.

     Every teal/mint value below is derived from --brand with color-mix(), so
     changing this one value re-skins the whole site.

     It reads Elementor's Global "Accent" colour first, so the normal way to
     change it is:
         Elementor -> Site Settings -> Global Colors -> Accent
     which updates every page with no code edit. The hex after the comma is
     only a fallback if that global is ever unset.

     CONTRAST: --brand carries white button text and body links, so it must
     stay dark enough for 4.5:1 on white. Verified options:
         #2F7A6C  teal  5.1:1   logo colour, current default
         #1E5F8C  blue  5.6:1
         #2B4257  navy  10.4:1  matches the heading navy
     A light or mid-tone brand colour will fail contrast — check before shipping.
     --------------------------------------------------------------------- */
  /* == CHANGE THE SITE COLOURS ==
     All three below read straight from Elementor:
         Site Settings -> Global Colors
         (direct link: /wp-admin/post.php?post=5&action=elementor)
     Pick a swatch, hit Update, done — every page follows.

     CONTRAST: "Brand (CTA)" carries white button text and body links, so it
     must stay dark enough for 4.5:1 on white. Verified:
         #2F7A6C  teal   5.1:1   logo colour  <- current
         #1E5F8C  blue   6.8:1
         #2B4257  navy  10.4:1   matches headings
     Anything lighter will make button text hard to read.
  */
  /* Each maps to a swatch in Elementor -> Site Settings -> Global Colors.
     Change them there and the whole site follows — no code edit needed.
     The hex after each comma is only a fallback if that global is unset. */
  --navy-900: var(--e-global-color-primary,   #1B2E3F);  /* "Navy (headings)" */
  --navy-800: var(--e-global-color-secondary, #2B4257);  /* "Navy 800"        */
  --brand:    var(--e-global-color-accent,    #2F7A6C);  /* "Brand (CTA)"     */

  /* Derived from --navy-800 — do not hand-edit. */
  --navy-700: color-mix(in srgb, var(--navy-800) 82%, #fff);
  --navy-600: color-mix(in srgb, var(--navy-800) 64%, #fff);
  --navy-400: color-mix(in srgb, var(--navy-800) 40%, #fff);

  /* Derived ramp — do not hand-edit; change --brand instead.

     FLAT: 700/600/500 are all the exact brand colour, so buttons, the accent
     heading, the hero shape and section rules render identically.

     Two are deliberately NOT flat:
       --teal-800  darker, so buttons still visibly change on hover/press.
       --teal-100/200  light tints — these are BACKGROUNDS behind brand-coloured
                       icons and pills. Flattening them would put the icon and
                       its tile in the same colour and make the glyph vanish. */
  --teal-800: color-mix(in srgb, var(--brand) 82%, #000);
  --teal-700: var(--brand);
  --teal-600: var(--brand);
  --teal-500: var(--brand);
  --teal-400: color-mix(in srgb, var(--brand) 45%, #fff);
  --teal-200: color-mix(in srgb, var(--brand) 30%, #fff);
  --teal-100: color-mix(in srgb, var(--brand) 15%, #fff);

  /* Mint grounds — tints of the same brand hue */
  /* Accent for text/icons sitting ON a dark surface. Mixed far enough toward
     white that contrast holds for ANY brand value — necessary because the
     brand is currently #2B4257, identical to --navy-800, which made every
     --teal-400 accent on navy fail at ~2:1. Do not swap this back to a
     brand-weighted tint without re-checking contrast. */
  --on-dark: color-mix(in srgb, var(--brand) 18%, #fff);

  --mint-50:  color-mix(in srgb, var(--brand) 4%, #fff);
  --mint-100: color-mix(in srgb, var(--brand) 8%, #fff);
  --mint-200: color-mix(in srgb, var(--brand) 13%, #fff);
}


@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* -------------------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-700);
  background: var(--white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--teal-200); }

.skip-link {
  position: absolute; left: var(--space-4); top: -60px;
  background: var(--navy-800); color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); z-index: 1000; font-weight: 600;
  transition: top var(--duration-base) var(--ease-premium);
}
.skip-link:focus { top: var(--space-4); }

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-xl); font-weight: 700; }
h4 { font-size: var(--text-base); font-weight: 700; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }

p { max-width: 68ch; }
.lede { font-size: var(--text-lg); color: var(--text-500); line-height: 1.65; }
.on-dark p, .on-dark .lede { color: var(--text-inverse-muted); }

.accent { color: var(--teal-600); }
.text-muted { color: var(--text-500); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Pill badge — "Trusted Care. Better Health." */
.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--teal-100); color: var(--teal-700);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
}
.pill svg { width: 16px; height: 16px; }

/* Section heading with underline rule (reference style) */
.section-title { text-align: center; margin-bottom: var(--space-7); }
.section-title h2 { display: inline-block; }
.section-title h2::after {
  content: ""; display: block;
  width: 56px; height: 3px; margin: var(--space-3) auto 0;
  background: var(--teal-500); border-radius: var(--radius-full);
}
.section-title p { margin: var(--space-4) auto 0; max-width: 60ch; }

/* -------------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container-max);
  margin-inline: auto; padding-inline: var(--gutter);
}
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.bg-mint { background: var(--mint-50); }
.bg-slate { background: var(--slate-50); }
.on-dark { background: var(--navy-800); color: #fff; }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --_bg: var(--teal-700);
  --_fg: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: var(--_bg); color: var(--_fg);
  font-weight: 600; font-size: var(--text-base);
  white-space: nowrap; touch-action: manipulation;
  transition: background var(--duration-base) var(--ease-premium),
              color var(--duration-base) var(--ease-premium),
              border-color var(--duration-base) var(--ease-premium),
              transform var(--duration-fast) var(--ease-premium),
              box-shadow var(--duration-base) var(--ease-premium);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { background: var(--teal-800); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }

.btn--outline {
  --_bg: transparent; --_fg: var(--teal-700);
  border-color: var(--teal-700);
}
.btn--outline:hover { background: var(--teal-700); color: #fff; }

.btn--navy { --_bg: var(--navy-800); }
.btn--navy:hover { background: var(--navy-900); }

.btn--white { --_bg: #fff; --_fg: var(--teal-700); }
.btn--white:hover { background: var(--mint-100); color: var(--teal-800); }

.on-dark .btn--outline { --_fg: #fff; border-color: rgba(255,255,255,0.4); }
.on-dark .btn--outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn--sm { min-height: 42px; padding-inline: var(--space-5); font-size: var(--text-sm); }
.btn--lg { min-height: 54px; padding-inline: var(--space-7); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--text-sm); color: var(--teal-700);
  transition: gap var(--duration-base) var(--ease-premium);
}
.link-arrow:hover { gap: var(--space-3); }
.link-arrow svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------------------
   6. TOP UTILITY BAR
   ------------------------------------------------------------------------- */
.utility-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-100);
  font-size: var(--text-xs);
  color: var(--text-500);
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 42px; flex-wrap: wrap;
}
.utility-left, .utility-right {
  display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
}
.utility-left span { display: inline-flex; align-items: center; gap: var(--space-2); }
.utility-left svg { width: 14px; height: 14px; color: var(--teal-600); }
.utility-right a { transition: color var(--duration-base); }
.utility-right a:hover { color: var(--teal-700); }
@media (max-width: 767.98px) { .utility-bar { display: none; } }

/* -------------------------------------------------------------------------
   7. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--duration-base) var(--ease-premium),
              border-color var(--duration-base) var(--ease-premium);
}
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: blur(12px); } }
.site-header.is-scrolled { border-color: var(--border-100); box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 78px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
/* Fallback wordmark shown only if the logo image is unavailable */
.brand-fallback {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-display); font-weight: 800;
  color: var(--navy-800); letter-spacing: -0.01em;
}
.brand-fallback span { font-size: var(--text-lg); }
.brand-fallback small {
  font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--teal-600); font-weight: 700; text-transform: uppercase;
}

.nav-links { display: none; align-items: center; gap: var(--space-6); }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-sm); font-weight: 600; color: var(--text-700);
  padding-block: var(--space-3);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-base), border-color var(--duration-base);
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] { color: var(--teal-700); border-color: var(--teal-600); }
.nav-links svg { width: 13px; height: 13px; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-phone {
  display: none; align-items: center; gap: var(--space-3);
  padding-right: var(--space-4); border-right: 1px solid var(--border-200);
}
.nav-phone .icon-circle {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.nav-phone .icon-circle svg { width: 18px; height: 18px; }
.nav-phone .num { font-size: var(--text-sm); font-weight: 700; color: var(--navy-800); }
.nav-phone .lbl { display: block; font-size: 0.68rem; color: var(--text-500); font-weight: 500; }

.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--mint-100); border: none; color: var(--navy-800);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-phone { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-drawer {
  position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 90;
  padding: var(--space-5) var(--gutter);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--space-1);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-premium),
              transform var(--duration-base) var(--ease-premium),
              visibility 0s linear var(--duration-base);
}
.mobile-drawer.is-open {
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: opacity var(--duration-base) var(--ease-premium),
              transform var(--duration-base) var(--ease-premium), visibility 0s;
}
.mobile-drawer a {
  display: flex; align-items: center; min-height: 52px;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base); font-weight: 600; color: var(--navy-800);
  border-bottom: 1px solid var(--border-100);
}
.mobile-drawer .btn { margin-top: var(--space-5); }
@media (min-width: 1100px) { .mobile-drawer { display: none; } }

/* -------------------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------------------- */
.hero { background: var(--mint-50); overflow: hidden; position: relative; }
.hero .container {
  display: grid; gap: var(--space-7);
  padding-block: var(--space-8) 0;
}
@media (min-width: 1000px) {
  .hero .container {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: end; gap: var(--space-6);
    padding-block: var(--space-8) 0;
  }
}

.hero-copy { padding-bottom: var(--space-8); }
.hero-copy h1 { margin-top: var(--space-5); }
.hero-copy .lede { margin-top: var(--space-5); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* Hero stat row with circular icons (reference style) */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: start; gap: var(--space-6);
  margin-top: var(--space-7); padding-top: var(--space-6);
  border-top: 1px solid var(--border-200);
}
@media (max-width: 599.98px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
}
.hero-stat { display: flex; align-items: center; gap: var(--space-3); }
.hero-stat .icon-circle {
  width: 46px; height: 46px; border-radius: var(--radius-full);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-stat .icon-circle svg { width: 22px; height: 22px; }
.hero-stat .num {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; color: var(--navy-900); line-height: 1.1;
}
.hero-stat .lbl { font-size: var(--text-xs); color: var(--text-500); }
@media (max-width: 599.98px) {
  .hero-stat { flex-direction: column; text-align: center; gap: var(--space-2); }
}

/* Doctor photo with teal shape behind (reference style) */
.hero-figure {
  position: relative;
  align-self: end;
  display: flex; justify-content: center;
  min-height: 320px;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 86%;
  background: var(--teal-500);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  /* organic curve on the top-left, echoing the logo swoosh */
  border-top-left-radius: 45% 22%;
  border-top-right-radius: 18% 12%;
}
.hero-figure::after {
  /* dotted texture accent, like the reference */
  content: "";
  position: absolute;
  right: 4%; top: 14%;
  width: 108px; height: 88px;
  background-image: radial-gradient(var(--teal-200) 1.8px, transparent 1.8px);
  background-size: 13px 13px;
  opacity: 0.85;
}
.hero-photo {
  position: relative; z-index: 2;
  width: auto; max-height: 620px;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 18px 36px rgba(27, 46, 63, 0.18));
}
/* Placeholder shown until the real cut-out photo is added */
.hero-photo-placeholder {
  position: relative; z-index: 2;
  width: 100%; max-width: 380px; aspect-ratio: 3/4;
  display: grid; place-items: center;
  align-self: end;
  color: rgba(255,255,255,0.85);
  text-align: center; padding: var(--space-6);
  font-size: var(--text-sm);
}
.hero-photo-placeholder svg { width: 92px; height: 92px; margin-bottom: var(--space-4); }

/* Floating 24/7 card */
.hero-float-card {
  position: absolute; z-index: 3;
  right: 0; bottom: 15%;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; gap: var(--space-3);
  max-width: 210px;
}
.hero-float-card .icon-circle {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-float-card .icon-circle svg { width: 20px; height: 20px; }
.hero-float-card strong {
  display: block; font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 800; color: var(--navy-900); line-height: 1;
}
.hero-float-card span { font-size: var(--text-xs); color: var(--text-500); }
@media (max-width: 999.98px) {
  .hero-float-card { right: var(--space-3); bottom: var(--space-6); }
}

/* -------------------------------------------------------------------------
   9. SERVICE CARDS
   ------------------------------------------------------------------------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform var(--duration-base) var(--ease-premium),
              box-shadow var(--duration-base) var(--ease-premium),
              border-color var(--duration-base) var(--ease-premium);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}
.service-card .icon-tile {
  width: 62px; height: 62px; border-radius: var(--radius-md);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; margin-bottom: var(--space-5);
}
.service-card .icon-tile svg { width: 30px; height: 30px; }
.service-card p {
  margin-top: var(--space-3); font-size: var(--text-sm);
  color: var(--text-500); flex-grow: 1;
}
.service-card .link-arrow { margin-top: var(--space-5); }

/* -------------------------------------------------------------------------
   10. FEATURE ROW (packages / why-us / cta / emergency)
   ------------------------------------------------------------------------- */
.feature-tile {
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  min-height: 260px;
  border: 1px solid var(--border-100);
  background: #fff;
  overflow: hidden;
  position: relative;
}
.feature-tile h3 { font-size: var(--text-lg); }
.feature-tile.is-mint { background: var(--mint-100); border-color: var(--mint-200); }
.feature-tile.is-navy { background: var(--navy-800); border-color: var(--navy-800); }
.feature-tile.is-navy h3, .feature-tile.is-navy strong { color: #fff; }
.feature-tile.is-navy p { color: var(--text-inverse-muted); }

.price-tag {
  margin-top: var(--space-3);
  font-size: var(--text-xs); font-weight: 600; color: var(--amber-600);
}
.price-tag b {
  display: block; font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 800; color: var(--amber-600); line-height: 1.1;
}
.check-list { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.check-list li {
  display: flex; gap: var(--space-2); align-items: flex-start;
  font-size: var(--text-sm); color: var(--text-700);
}
.check-list svg { width: 17px; height: 17px; color: var(--teal-600); flex-shrink: 0; margin-top: 3px; }
.feature-tile .btn { margin-top: auto; align-self: flex-start; }
.feature-tile .tile-photo {
  width: 100%; height: 120px; object-fit: cover;
  border-radius: var(--radius-sm); margin-top: var(--space-4);
}
.emergency-num {
  font-family: var(--font-display); font-size: var(--text-4xl);
  font-weight: 800; color: var(--amber-500); line-height: 1;
  margin-top: var(--space-2);
}

/* -------------------------------------------------------------------------
   11. ABOUT / DOCTOR PROFILE
   ------------------------------------------------------------------------- */
.about-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }

.about-figure { position: relative; }
.about-figure img {
  width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg);
  background: var(--mint-100);
}
.about-figure .accent-shape {
  position: absolute; inset: auto auto -18px -18px;
  width: 140px; height: 140px; z-index: -1;
  background-image: radial-gradient(var(--teal-200) 2px, transparent 2px);
  background-size: 14px 14px;
}
.about-badge {
  position: absolute; right: -12px; bottom: 24px;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--space-4) var(--space-5);
  text-align: center;
}
.about-badge b {
  display: block; font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 800; color: var(--teal-700); line-height: 1;
}
.about-badge span { font-size: var(--text-xs); color: var(--text-500); }

.credential-list { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.credential-item { display: flex; gap: var(--space-4); }
.credential-item .icon-tile {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.credential-item .icon-tile svg { width: 22px; height: 22px; }
.credential-item p { font-size: var(--text-sm); margin-top: 2px; }

/* -------------------------------------------------------------------------
   12. PROCESS STEPS
   ------------------------------------------------------------------------- */
.process-grid { display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { text-align: center; }
.process-step .num-circle {
  counter-increment: step;
  width: 62px; height: 62px; margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: #fff; border: 2px solid var(--teal-200);
  color: var(--teal-700);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800;
}
.process-step .num-circle::before { content: counter(step, decimal-leading-zero); }
.process-step p { margin: var(--space-2) auto 0; font-size: var(--text-sm); max-width: 30ch; }

/* -------------------------------------------------------------------------
   13. STATS BAND
   ------------------------------------------------------------------------- */
.stats-band { background: var(--navy-800); }
.stat-block { text-align: center; }
.stat-block .stat-num {
  font-family: var(--font-display); font-size: var(--text-5xl);
  font-weight: 800; color: #fff; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.stat-block .stat-num .unit { color: var(--teal-400); }
.stat-block p {
  margin: var(--space-3) auto 0; font-size: var(--text-sm);
  color: var(--text-inverse-muted); max-width: 26ch;
}

/* -------------------------------------------------------------------------
   14. TESTIMONIALS
   ------------------------------------------------------------------------- */
.testimonial-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 85%;
  gap: var(--space-5); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: var(--space-3);
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .testimonial-track { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .testimonial-track { grid-auto-columns: 31.5%; } }

.testimonial-card {
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border-100);
  border-radius: var(--radius-md); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.testimonial-stars { display: flex; gap: 3px; color: var(--amber-500); }
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial-card blockquote { font-size: var(--text-sm); color: var(--text-700); line-height: 1.7; }
.testimonial-meta {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-4);
  border-top: 1px solid var(--border-100);
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800;
}
.testimonial-meta strong { display: block; font-size: var(--text-sm); color: var(--navy-900); }
.testimonial-meta span { font-size: var(--text-xs); color: var(--text-500); }

.carousel-nav { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.cnav-btn {
  width: 46px; height: 46px; border-radius: var(--radius-full);
  border: 1px solid var(--border-200); background: #fff; color: var(--navy-800);
  display: grid; place-items: center;
  transition: background var(--duration-base), color var(--duration-base), border-color var(--duration-base);
}
.cnav-btn svg { width: 18px; height: 18px; }
.cnav-btn:hover { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* -------------------------------------------------------------------------
   15. FAQ / INSURANCE
   ------------------------------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.chip {
  padding: var(--space-2) var(--space-4);
  background: #fff; border: 1px solid var(--border-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; color: var(--navy-700);
}

.accordion { display: grid; gap: var(--space-3); }
.accordion-item {
  background: #fff; border: 1px solid var(--border-100);
  border-radius: var(--radius-md); overflow: hidden;
}
.accordion-item.is-open { border-color: var(--teal-200); }
.accordion-trigger {
  width: 100%; min-height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5);
  background: transparent; border: none; text-align: left;
  font-size: var(--text-base); font-weight: 600; color: var(--navy-900);
}
.accordion-trigger .chev {
  width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-premium);
}
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-slow) var(--ease-premium);
}
.accordion-panel > div { overflow: hidden; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel p { padding: 0 var(--space-5) var(--space-5); font-size: var(--text-sm); }

/* -------------------------------------------------------------------------
   16. APPOINTMENT CTA + FORM
   ------------------------------------------------------------------------- */
.cta-split {
  display: grid; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
@media (min-width: 1000px) { .cta-split { grid-template-columns: 1fr 1fr; } }
.cta-info { background: var(--navy-800); color: #fff; padding: var(--space-8) var(--space-7); }
.cta-info ul { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.cta-info li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  font-size: var(--text-sm); color: var(--text-inverse-muted);
}
.cta-info li svg { width: 20px; height: 20px; color: var(--teal-400); flex-shrink: 0; margin-top: 2px; }

.cta-form { background: #fff; padding: var(--space-8) var(--space-7); }
.field { margin-bottom: var(--space-5); }
.field label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--navy-900); margin-bottom: var(--space-2);
}
.field .req { color: var(--danger-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-200); border-radius: var(--radius-sm);
  background: var(--slate-50); font-size: var(--text-base);
  transition: border-color var(--duration-base), box-shadow var(--duration-base), background var(--duration-base);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-400); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  background: #fff; border-color: var(--teal-600);
  box-shadow: 0 0 0 4px var(--teal-100);
}
.field-help { font-size: var(--text-xs); color: var(--text-500); margin-top: var(--space-2); }
.field-error {
  font-size: var(--text-xs); color: var(--danger-600); margin-top: var(--space-2);
  display: none; align-items: center; gap: var(--space-1);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger-600); }
.field.has-error .field-error { display: flex; }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-status {
  margin-top: var(--space-4); padding: var(--space-4);
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600;
  display: none; align-items: center; gap: var(--space-2);
}
.form-status.is-visible { display: flex; }
.form-status.success { background: var(--teal-100); color: var(--teal-800); }
.form-status svg { width: 18px; height: 18px; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--text-inverse-muted); padding-top: var(--space-9); }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { margin-top: var(--space-4); font-size: var(--text-sm); max-width: 34ch; }
.footer-col h4 {
  color: #fff; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col ul { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.footer-col a, .footer-col li { font-size: var(--text-sm); }
.footer-col a { transition: color var(--duration-base); }
.footer-col a:hover { color: var(--teal-400); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  transition: background var(--duration-base), border-color var(--duration-base);
}
.footer-social a:hover { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: var(--space-8); padding-block: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between; font-size: var(--text-xs);
}
.footer-bottom-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   18. MOBILE CTA BAR + BACK TO TOP
   ------------------------------------------------------------------------- */
.mobile-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #fff; border-top: 1px solid var(--border-100);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--gutter);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  display: flex; gap: var(--space-3);
}
.mobile-cta-bar .btn { flex: 1; }
@media (min-width: 1100px) { .mobile-cta-bar { display: none; } }

.back-to-top {
  position: fixed; right: var(--space-5);
  bottom: calc(var(--space-5) + 76px);
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--teal-700); color: #fff; border: none;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); z-index: 96;
  transition: opacity var(--duration-base) var(--ease-premium),
              transform var(--duration-base) var(--ease-premium),
              visibility var(--duration-base);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }
@media (min-width: 1100px) { .back-to-top { bottom: var(--space-6); } }

/* -------------------------------------------------------------------------
   19. SCROLL REVEAL
   ------------------------------------------------------------------------- */
/* Scroll-reveal is opt-in, gated behind the `js` class that an inline script in
   <head> sets before first paint. Without JS — or if main.js fails to load or
   throws — content stays plainly visible instead of a blank page. */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-premium),
              transform var(--duration-slow) var(--ease-premium);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
