/* ============================================================
   Vardham Healthcare — Design System v2
   Premium medical aesthetic · warm Indian palette · motion-aware
   ============================================================ */

:root {
  /* Core palette */
  --teal-950: #052e2b;
  --teal-900: #0b3a36;
  --teal-800: #0d4f48;
  --teal-700: #0f766e;
  --teal-600: #14857c;
  --teal-500: #2dd4bf;
  --teal-200: #99f6e4;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;

  --saffron-700: #b45309;
  --saffron-600: #d97706;
  --saffron-500: #f59e0b;
  --saffron-100: #fef3c7;
  --saffron-50:  #fff7ed;

  --gold:        #c9a45c;

  /* Neutrals — warm */
  --cream-50:    #fdfbf6;
  --cream-100:   #f7f2e8;
  --sand:        #f1ead9;
  --ink:         #0d1b1a;
  --ink-2:       #2f4744;
  --ink-3:       #5a6e6c;
  --ink-4:       #889a98;
  --line:        #e6e0cf;
  --line-2:      #d8d0bb;

  /* Accents */
  --rose:        #f43f5e;
  --plum:        #7c3aed;

  /* Brand (logo) — bright cyan-teal as used in the actual Vardham logo */
  --brand:       #0BA5B3;
  --brand-dark:  #0A8E9C;

  /* Surfaces */
  --bg:          #ffffff;
  --bg-warm:     var(--cream-50);
  --bg-deep:     var(--teal-950);

  /* Shadows — soft, layered */
  --shadow-xs: 0 1px 2px rgba(13,27,26,.04);
  --shadow-sm: 0 1px 3px rgba(13,27,26,.06), 0 1px 2px rgba(13,27,26,.04);
  --shadow-md: 0 8px 16px -4px rgba(13,27,26,.08), 0 4px 8px -4px rgba(13,27,26,.04);
  --shadow-lg: 0 24px 48px -12px rgba(13,27,26,.14), 0 12px 24px -12px rgba(13,27,26,.06);
  --shadow-xl: 0 40px 80px -20px rgba(13,27,26,.18), 0 24px 40px -16px rgba(13,27,26,.10);
  --shadow-glow: 0 0 0 1px rgba(20,133,124,.10), 0 24px 48px -16px rgba(20,133,124,.25);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 999px;

  /* Containers */
  --container: 1240px;
  --container-narrow: 920px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Inter", Georgia, "Times New Roman", serif;

  /* Easing */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--teal-900); }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -.025em;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .55em;
  font-variation-settings: "opsz" 32, "SOFT" 30;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.4rem);
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
h3 {
  font-size: 1.3rem;
  font-family: var(--font-sans);
  letter-spacing: -.015em;
  font-weight: 600;
  line-height: 1.25;
}
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-2); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
}

::selection { background: var(--teal-200); color: var(--teal-950); }

/* Container */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

/* Sections */
.section { padding: clamp(56px, 6vw, 80px) 0; position: relative; }
.section--warm { background: var(--bg-warm); }
.section--cream { background: var(--cream-100); }
.section--deep { background: var(--bg-deep); color: #cdeae6; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: #a4c4c0; }

.section-header { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.section-header--left { text-align: left; margin-left: 0; }
.section-header p { color: var(--ink-2); font-size: 1.08rem; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 8px 14px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  border: 1px solid var(--teal-100);
}
.eyebrow--saffron { color: var(--saffron-700); background: var(--saffron-50); border-color: var(--saffron-100); }
.eyebrow--ghost { background: transparent; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------
   Top contact bar
   ------------------------------------------------------------ */
.topbar {
  background: var(--teal-950);
  color: #cdeae6;
  font-size: .82rem;
  position: relative;
  z-index: 60;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0; flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--teal-200); }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar__group span { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.topbar__group span svg,
.topbar__group a svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar__group a { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(230,224,207,.6);
  transition: box-shadow .2s var(--ease-out);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.95); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 32px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem; letter-spacing: -.015em;
}
.logo:hover { color: var(--teal-900); }
/* Full horizontal logo lockup (emblem + wordmark from logo.png) */
.logo__mark {
  width: 168px; height: 48px;
  border-radius: 0;
  background: url('/assets/img/logo.png') no-repeat left center / contain;
  display: block;
  flex-shrink: 0;
  /* hide the fallback "V" text but keep DOM intact for screen readers */
  color: transparent; font-size: 0;
  box-shadow: none;
}
.logo__mark::after { content: none; }
/* Hide the redundant inline brand text — full name + wordmark is in the image */
.logo > span:not(.logo__mark) { display: none; }
.logo__sub {
  display: block; font-family: var(--font-sans);
  font-size: .7rem; color: var(--ink-3); font-weight: 500;
  letter-spacing: .04em; margin-top: 2px;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: .94rem;
  padding: 10px 14px; border-radius: 10px;
  transition: all .2s var(--ease-out);
}
.nav a:hover { color: var(--teal-800); background: var(--teal-50); }
.nav a.active { color: var(--teal-800); background: var(--teal-50); }
.nav__cta {
  background: var(--ink) !important; color: #fff !important;
  padding: 11px 20px !important; border-radius: var(--r-full) !important;
  font-weight: 600 !important; margin-left: 6px;
}
.nav__cta:hover { background: var(--teal-900) !important; }

.nav-toggle {
  display: none; background: var(--teal-50); border: 1px solid var(--teal-100);
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; color: var(--teal-800);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff !important;
  padding: 14px 22px; border-radius: var(--r-full);
  font-weight: 600; font-size: .96rem;
  border: 1.5px solid var(--ink);
  transition: all .25s var(--ease-out);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover {
  background: var(--teal-900); border-color: var(--teal-900);
  color: #fff !important; transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--teal-700); border-color: var(--teal-700); }
.btn--primary:hover { background: var(--teal-900); border-color: var(--teal-900); }
.btn--saffron { background: var(--saffron-600); border-color: var(--saffron-600); }
.btn--saffron:hover { background: var(--saffron-700); border-color: var(--saffron-700); }
.btn--ghost {
  background: transparent; color: var(--ink) !important; border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.btn--outline-light {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,.3);
}
.btn--outline-light:hover { background: #fff; color: var(--teal-900) !important; border-color: #fff; }
.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 16px; font-size: .88rem; }

/* ------------------------------------------------------------
   Icon tile (gradient rounded square wrapper for icons)
   ------------------------------------------------------------ */
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  color: var(--teal-800);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.icon-tile svg { width: 24px; height: 24px; stroke-width: 1.8; }
.icon-tile--saffron { background: linear-gradient(135deg, var(--saffron-50), var(--saffron-100)); color: var(--saffron-700); }
.icon-tile--rose { background: linear-gradient(135deg, #fff1f2, #ffe4e6); color: #be123c; }
.icon-tile--plum { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #6d28d9; }
.icon-tile--ink { background: linear-gradient(135deg, var(--ink), var(--teal-900)); color: #fff; }
.icon-tile--lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-tile--lg svg { width: 30px; height: 30px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(20,133,124,.10), transparent 60%),
    radial-gradient(800px 500px at -5% 100%, rgba(217,119,6,.07), transparent 60%),
    linear-gradient(180deg, var(--cream-50), #fff);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13,27,26,.05) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 5vw, 80px);
  align-items: center; position: relative;
}
.hero__title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.1;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--teal-700), var(--saffron-600));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 560px;
  margin-top: 8px;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px;
}
.hero__trust {
  display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero__trust-item { display: flex; gap: 14px; align-items: center; }
.hero__trust-item strong {
  display: block; font-family: var(--font-display); font-weight: 500;
  color: var(--ink); font-size: 1.6rem; line-height: 1;
}
.hero__trust-item span { font-size: .88rem; color: var(--ink-3); margin-top: 4px; display: block; }

/* Hero visual composition
   Main card sizes to its content; decorative cards float at corners. */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 32px 28px 36px;   /* room for floating rating + badge to peek at corners */
}
.hero__visual-card {
  position: absolute;
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  padding: 26px;
  animation: float 7s ease-in-out infinite;
}
.hero__visual-card--main {
  position: relative;
  inset: auto;
  width: 100%;
  background: linear-gradient(160deg, var(--teal-800) 0%, var(--teal-950) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 40px 80px -20px rgba(11,58,54,.5), 0 24px 40px -16px rgba(11,58,54,.3);
  animation-delay: -1s;
  display: flex; flex-direction: column; gap: 20px;
  overflow: hidden;
}
.hero__visual-card--main::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(45,212,191,.3), transparent 60%),
    radial-gradient(400px 200px at 10% 110%, rgba(217,119,6,.2), transparent 60%);
  pointer-events: none;
}
.hero__visual-card--main h3 {
  font-family: var(--font-display); color: #fff;
  font-size: 1.5rem; font-weight: 500; line-height: 1.2;
  position: relative; z-index: 1;
}
.hero__visual-card--main p { color: rgba(255,255,255,.72); position: relative; z-index: 1; }
.hero__visual-card--badge {
  bottom: 0; left: 0;
  padding: 16px 20px;
  display: flex; gap: 12px; align-items: center;
  animation-delay: -3s;
  max-width: calc(100% - 40px);
}
.hero__visual-card--badge .icon-tile { width: 44px; height: 44px; }
.hero__visual-card--badge strong {
  display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink);
}
.hero__visual-card--badge span { font-size: .82rem; color: var(--ink-3); }
.hero__visual-card--rating {
  top: 0; right: 0;
  padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  animation-delay: -5s;
  z-index: 4;
}
.hero__visual-card--rating .stars { color: var(--saffron-500); font-size: 1.1rem; letter-spacing: 2px; }
.hero__visual-card--rating strong { display: block; font-family: var(--font-display); color: var(--ink); }
.hero__visual-card--rating span { font-size: .78rem; color: var(--ink-3); }

.hero__hours-mini { list-style: none; padding: 0; margin: 20px 0 0; }
.hero__hours-mini li {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.15);
  font-size: .92rem; color: rgba(255,255,255,.85);
}
.hero__hours-mini li:last-child { border-bottom: 0; }
.hero__hours-mini .closed { color: #fda4af; font-weight: 600; }
.hero__hours-mini .open { color: var(--teal-200); font-weight: 600; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__visual-card { animation: none; }
}

/* ------------------------------------------------------------
   Marquee — trust strip
   ------------------------------------------------------------ */
.marquee {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.marquee__track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.marquee__track span {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .92rem; letter-spacing: .01em;
}
.marquee__track span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--saffron-500);
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Service cards (feature cards)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all .35s var(--ease-out);
  isolation: isolate;
}
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,133,124,.04), transparent 50%);
  opacity: 0; transition: opacity .35s var(--ease-out);
  z-index: -1;
}
.feature:hover {
  border-color: var(--teal-200);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature:hover::before { opacity: 1; }
.feature .icon-tile { margin-bottom: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 1.18rem; }
.feature p { font-size: .96rem; margin: 0; color: var(--ink-2); }
.feature__link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal-700); font-weight: 600; font-size: .9rem;
}
.feature__link:hover { gap: 10px; }

.feature--big {
  padding: 40px;
  background: linear-gradient(155deg, var(--teal-800), var(--teal-950));
  color: #fff; border: 0;
}
.feature--big h3, .feature--big p { color: #fff; }
.feature--big p { color: rgba(255,255,255,.7); }
.feature--big::before { display: none; }

/* ============================================================
   Process steps
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  position: relative;
}
.step {
  position: relative;
  padding: 28px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.step__num {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--teal-200);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin: 0 0 6px; }
.step p { font-size: .94rem; margin: 0; }

/* ============================================================
   Doctor showcase
   ============================================================ */
.doctor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.doctor-pro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .35s var(--ease-out);
  position: relative;
}
.doctor-pro:hover {
  border-color: var(--teal-200);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.doctor-pro__visual {
  aspect-ratio: 1/1;
  position: relative;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  display: grid; place-items: center;
  overflow: hidden;
}
.doctor-pro__visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(20,133,124,.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(217,119,6,.12), transparent 50%);
}
.doctor-pro__initials {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 500;
  color: var(--teal-800);
  letter-spacing: -.04em;
  line-height: 1;
}
/* Real doctor photo — fills the visual area, sits ON TOP of the placeholder initials.
   Using high z-index instead of :has() for maximum browser compatibility. */
.doctor-pro__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 5;            /* above gradient ::before AND below badge */
  background: var(--teal-50); /* covers anything underneath, even before image loads */
}
.doctor-pro__visual .doctor-pro__badge { z-index: 10; }
/* Belt-and-braces: hide placeholder initials when an img child exists */
.doctor-pro__visual:has(.doctor-pro__photo) .doctor-pro__initials { display: none; }
.doctor-pro__visual--saffron { background: linear-gradient(135deg, var(--saffron-100), var(--saffron-50)); }
.doctor-pro__visual--saffron::before {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(217,119,6,.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20,133,124,.1), transparent 50%);
}
.doctor-pro__visual--saffron .doctor-pro__initials { color: var(--saffron-700); }
.doctor-pro__visual--saffron .doctor-pro__badge::before {
  background: var(--saffron-500);
  box-shadow: 0 0 0 3px rgba(245,158,11,.3);
}
.doctor-pro__badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: .76rem; font-weight: 600; color: var(--teal-800);
  display: inline-flex; gap: 6px; align-items: center;
}
.doctor-pro__badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(45,212,191,.3);
}
.doctor-pro__body { padding: 28px 30px 30px; }
.doctor-pro__body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 0; }
.doctor-pro__role { color: var(--teal-700); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.doctor-pro__creds { color: var(--ink-3); font-size: .88rem; margin-top: 6px; }
.doctor-pro__chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px;
}
.chip {
  font-size: .78rem; padding: 5px 11px;
  background: var(--cream-100); color: var(--ink-2);
  border-radius: var(--r-full); font-weight: 500;
  border: 1px solid var(--line);
}

/* ============================================================
   Testimonials
   ============================================================ */
.tm-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.tm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  transition: all .35s var(--ease-out);
}
.tm:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tm__quote {
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: 1;
  color: var(--teal-100);
  position: absolute; top: 18px; right: 24px;
  font-style: italic;
}
.tm__stars {
  color: var(--saffron-500); letter-spacing: 3px;
  font-size: 1rem; margin-bottom: 14px;
}
.tm p {
  font-family: var(--font-display);
  font-size: 1.08rem; line-height: 1.55;
  color: var(--ink); font-weight: 400;
  font-style: italic;
}
.tm__author { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.tm__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  color: var(--teal-800);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600;
}
.tm__author strong { color: var(--ink); font-family: var(--font-sans); font-size: .95rem; }
.tm__author span { display: block; color: var(--ink-3); font-size: .82rem; }

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(155deg, var(--teal-800), var(--teal-950));
  color: #fff;
  position: relative;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(45,212,191,.18), transparent 60%),
    radial-gradient(600px 400px at -10% 100%, rgba(217,119,6,.15), transparent 60%);
  pointer-events: none;
}
.stat {
  padding: 44px 32px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
.stat:last-child { border-right: 0; }
.stat strong {
  font-family: var(--font-display);
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1; color: #fff;
  letter-spacing: -.03em;
}
.stat span { color: rgba(255,255,255,.7); font-size: .92rem; margin-top: 6px; display: block; }

/* ============================================================
   Specialty pills
   ============================================================ */
.pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 24px 0 36px;
}
.pill {
  padding: 9px 16px; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--line);
  font-size: .86rem; font-weight: 500; color: var(--ink-2);
  transition: all .2s var(--ease-out);
}
.pill:hover {
  border-color: var(--teal-700); color: var(--teal-800);
  background: var(--teal-50);
}

/* ============================================================
   Locations
   ============================================================ */
.loc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}
.loc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .3s var(--ease-out);
}
.loc:hover { box-shadow: var(--shadow-lg); }
.loc__map {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal-100), var(--cream-100));
  position: relative;
  overflow: hidden;
}
.loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc__body { padding: 28px 30px 30px; }
.loc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.loc__head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; }
.loc__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-full);
  background: var(--teal-50); color: var(--teal-800);
  border: 1px solid var(--teal-100);
}
.loc__tag--branch { background: var(--saffron-50); color: var(--saffron-700); border-color: var(--saffron-100); }
.loc address { font-style: normal; color: var(--ink-2); line-height: 1.7; font-size: .96rem; }
.loc__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
  position: relative;
  margin: 0;
  padding: clamp(64px, 8vw, 96px) 0;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950));
  color: #fff;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(217,119,6,.2), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(45,212,191,.18), transparent 60%);
}
.cta-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-strip h2 { color: #fff; margin: 0 0 8px; max-width: 600px; }
.cta-strip p { color: rgba(255,255,255,.7); margin: 0; max-width: 540px; }
.cta-strip .btn { background: #fff; color: var(--teal-900) !important; border-color: #fff; }
.cta-strip .btn:hover { background: var(--saffron-500); border-color: var(--saffron-500); color: #fff !important; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  transition: all .25s var(--ease-out);
}
.faq details[open] {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-weight: 300;
  font-size: 1.6rem; color: var(--teal-700);
  transition: transform .25s var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-2); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #b4c4c2;
  padding: 72px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,133,124,.4), transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand .logo { color: #fff; }
.footer__brand .logo__mark { box-shadow: none; }
.footer__brand p { color: #8aa19f; margin-top: 16px; max-width: 320px; }
.footer h4 { color: #fff; font-size: .92rem; font-weight: 600; margin: 0 0 18px; font-family: var(--font-sans); letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer a { color: #b4c4c2; font-size: .94rem; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06);
  display: grid; place-items: center; color: #fff;
  transition: all .2s var(--ease-out);
}
.socials a:hover { background: var(--teal-700); border-color: var(--teal-700); transform: translateY(-2px); }
.socials a svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #6e8482;
}
.footer__bottom a { color: #6e8482; }
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   Mobile sticky bottom action bar
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  box-shadow: 0 -8px 24px -8px rgba(13,27,26,.12);
  gap: 8px;
}
.mobile-bar a {
  flex: 1;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: .72rem; font-weight: 600;
  gap: 4px;
}
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar a.primary {
  background: var(--teal-700); color: #fff;
}
.mobile-bar a.saffron {
  background: var(--saffron-50); color: var(--saffron-700);
}

/* ============================================================
   Page head (inner pages)
   ============================================================ */
.page-head {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(20,133,124,.10), transparent 60%),
    linear-gradient(180deg, var(--cream-50), #fff);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 820px; font-size: clamp(1.85rem, 3.6vw, 2.85rem); line-height: 1.12; }
.crumb { color: var(--ink-3); font-size: .88rem; margin-bottom: 18px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--teal-700); }

/* ============================================================
   Forms
   ============================================================ */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .9rem; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  font: inherit; color: var(--ink);
  background: #fff;
  transition: all .2s var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 4px rgba(20,133,124,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .note { font-size: .85rem; color: var(--ink-3); margin: 0; }

/* ============================================================
   Blog cards
   ============================================================ */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .3s var(--ease-out);
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal-200); }
.post__cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  position: relative; overflow: hidden;
}
.post__cover::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(20,133,124,.2), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(217,119,6,.15), transparent 50%);
}
.post--saffron .post__cover { background: linear-gradient(135deg, var(--saffron-100), var(--saffron-50)); }
.post--saffron .post__cover::before {
  background-image:
    radial-gradient(circle at 30% 40%, rgba(217,119,6,.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(20,133,124,.12), transparent 50%);
}
.post__body { padding: 26px 28px 28px; }
.post .tag {
  display: inline-block;
  background: var(--teal-50); color: var(--teal-800);
  font-size: .72rem; font-weight: 600; padding: 4px 11px;
  border-radius: var(--r-full); margin-bottom: 12px;
  border: 1px solid var(--teal-100);
  letter-spacing: .04em; text-transform: uppercase;
}
.post h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--teal-700); }
.post p { font-size: .95rem; color: var(--ink-2); margin: 8px 0 0; }
.post .meta { font-size: .82rem; color: var(--ink-3); margin-top: 16px; display: flex; gap: 10px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 22px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 56px; }
.mb-4 { margin-bottom: 32px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual {
    max-width: 480px;
    margin: 0 auto;
    justify-self: center;
  }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Mobile */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0; align-items: stretch;
    position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px; box-shadow: var(--shadow-lg);
    animation: slideDown .25s var(--ease-out);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
  }
  .nav.is-open a {
    padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%;
    border-radius: 0;
  }
  .nav.is-open a:last-child { border-bottom: 0; }
  .nav.is-open .nav__cta {
    margin: 12px 0 4px; text-align: center;
    border-radius: var(--r-full) !important;
  }
  .nav-toggle { display: inline-flex; }

  .header__inner { height: 70px; }
  .logo { font-size: 1.05rem; }
  .logo__mark { width: 38px; height: 38px; }

  .topbar__group:first-child { display: none; }
  .topbar__inner { justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid > div:last-child { grid-column: auto; }

  .cta-strip__inner { flex-direction: column; text-align: center; }
  .cta-strip__inner h2 { max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 24px; }

  .feature { padding: 26px; }
  .doctor-pro__body { padding: 24px; }
  .tm { padding: 26px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 480px) {
  .hero__visual-card--rating { right: 0; }
  .hero__visual-card--badge { left: 0; }
  .topbar__inner { font-size: .76rem; }
  .topbar__group { gap: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .header, .footer, .mobile-bar, .cta-strip, .topbar, .marquee { display: none; }
  body { color: #000; }
}

/* ============================================================
   v3 — Mobile UX overhaul
   ============================================================ */

/* Generic responsive split grid (used on /book.html) */
.split-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .split-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Full-width doctor profile card (used on /doctors.html) — side-by-side at desktop */
.doctor-pro--full {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  align-items: stretch;
}
.doctor-pro--full .doctor-pro__visual {
  aspect-ratio: 4/5;
  height: 100%;
}
.doctor-pro--full .doctor-pro__initials {
  font-size: clamp(3.5rem, 8vw, 6rem);
}
.doctor-pro--full .doctor-pro__body {
  padding: clamp(28px, 4vw, 44px);
}
@media (max-width: 900px) {
  .doctor-pro--full {
    grid-template-columns: 1fr;
  }
  .doctor-pro--full .doctor-pro__visual {
    aspect-ratio: 1/1;
    max-height: 480px;
  }
}
@media (max-width: 640px) {
  .doctor-pro--full .doctor-pro__visual {
    aspect-ratio: 4/3;
    max-height: 360px;
  }
}

/* Horizontally scrollable pills on mobile */
@media (max-width: 768px) {
  .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 24px 14px;
    margin: 16px -24px 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
}

/* Page head — tighter on mobile */
@media (max-width: 768px) {
  .page-head { padding: 44px 0 32px; }
  .page-head h1 { font-size: clamp(1.85rem, 6.5vw, 2.4rem); line-height: 1.1; }
  .page-head .lead { font-size: 1rem; }
  .crumb { margin-bottom: 12px; font-size: .82rem; }
  .eyebrow { font-size: .7rem; padding: 6px 11px; margin-bottom: 12px; }
}

/* Hero — refine mobile composition */
@media (max-width: 768px) {
  .hero { padding: 32px 0 56px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.08; }
  .hero__lead { font-size: 1rem; }
  .hero__cta { gap: 10px; margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero__cta .btn--lg { padding: 15px 22px; font-size: .95rem; }
  .hero__trust {
    gap: 18px; margin-top: 28px; padding-top: 22px;
    flex-direction: column; align-items: flex-start;
  }
  .hero__trust-item { width: 100%; }
  .hero__trust-item strong { font-size: 1.3rem; }
  .hero__visual { max-width: 100%; }
  .hero__visual-card--main { padding: 22px; }
  .hero__visual-card--main h3 { font-size: 1.25rem; }
  .hero__visual-card--main p { font-size: .92rem; }
  .hero__hours-mini li { padding: 7px 0; font-size: .86rem; }
}

/* Section padding on small mobile */
@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .section-header { margin-bottom: 36px; }
  h2 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
}

/* Service feature cards — tighter padding on mobile */
@media (max-width: 768px) {
  .feature { padding: 22px; }
  .feature h3 { font-size: 1.08rem; }
  .feature p { font-size: .92rem; }
}

/* Stats — better mobile layout */
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px; }
  .stat strong { font-size: 1.9rem; }
  .stat span { font-size: .8rem; }
}

/* Process steps — tighter on mobile */
@media (max-width: 768px) {
  .process { gap: 14px; }
  .step { padding: 22px; }
  .step__num { width: 38px; height: 38px; margin-bottom: 12px; font-size: 1.05rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .9rem; }
}

/* Testimonials on mobile */
@media (max-width: 768px) {
  .tm { padding: 24px; }
  .tm p { font-size: 1rem; line-height: 1.55; }
  .tm__quote { font-size: 3.5rem; right: 18px; top: 12px; }
}

/* FAQ on mobile */
@media (max-width: 768px) {
  .faq details { padding: 18px 20px; }
  .faq summary { font-size: .96rem; }
}

/* Locations on mobile */
@media (max-width: 768px) {
  .loc__body { padding: 22px 22px 24px; }
  .loc__head h3 { font-size: 1.25rem; }
  .loc address { font-size: .92rem; }
}

/* Footer on mobile */
@media (max-width: 768px) {
  .footer { padding: 56px 0 96px; }
  .footer__grid { margin-bottom: 36px; gap: 28px; }
  .footer__brand p { margin-top: 12px; font-size: .9rem; }
  .footer h4 { font-size: .88rem; margin-bottom: 12px; }
  .footer a { font-size: .9rem; }
}

/* CTA strip on mobile */
@media (max-width: 768px) {
  .cta-strip { padding: 48px 0; }
  .cta-strip h2 { font-size: 1.6rem; }
  .cta-strip__inner .btn { width: 100%; justify-content: center; }
}

/* Form — bigger touch targets, tighter padding */
@media (max-width: 768px) {
  .field input,
  .field select,
  .field textarea { padding: 14px 14px; font-size: 16px; /* prevents iOS zoom */ }
  .form .btn { width: 100%; justify-content: center; }
  .field label { font-size: .95rem; }
}

/* Mobile bar — bigger touch targets, refined visuals */
@media (max-width: 768px) {
  .mobile-bar {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    gap: 6px;
  }
  .mobile-bar a {
    padding: 11px 4px;
    min-height: 56px;
    font-size: .7rem;
    gap: 3px;
    transition: transform .15s var(--ease-out);
  }
  .mobile-bar a:active { transform: scale(0.96); }
  .mobile-bar a svg { width: 22px; height: 22px; }
  .mobile-bar a.primary { box-shadow: 0 4px 14px -2px rgba(15,118,110,.4); }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .header__inner { gap: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 9px 11px; font-size: .9rem; }
  .nav__cta { padding: 10px 16px !important; }
  .hero { padding: 56px 0 80px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tighter topbar on small mobile */
@media (max-width: 480px) {
  .topbar { font-size: .78rem; }
  .topbar__inner { padding: 8px 0; gap: 10px; }
  .topbar__group { gap: 12px; }
  .topbar__group:first-child { display: none; }
}

/* Smaller, denser nav header on mobile */
@media (max-width: 768px) {
  .header__inner { height: 64px; }
  .logo__mark { width: 132px; height: 40px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav.is-open { top: 64px; padding: 10px 18px; }
  .nav.is-open a { padding: 12px 0; font-size: .98rem; }
}
@media (max-width: 380px) {
  .logo__mark { width: 116px; height: 36px; }
}

/* Smooth focus rings (a11y) */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 6px;
}
a:focus-visible, button:focus-visible {
  outline-offset: 3px;
}

/* Ensure tap targets meet a11y minimum */
@media (max-width: 768px) {
  .btn, .nav a, .mobile-bar a, .field input, .field select { min-height: 44px; }
  .btn--sm { min-height: 40px; }
}

/* Better marquee on mobile — slower, smaller */
@media (max-width: 768px) {
  .marquee { padding: 14px 0; }
  .marquee__track { gap: 36px; animation-duration: 50s; }
  .marquee__track span { font-size: .85rem; }
}

/* Section header alignment on mobile */
@media (max-width: 768px) {
  .section-header { margin-bottom: 36px; padding: 0 4px; }
  .section-header p { font-size: 1rem; }
}

/* Hide marquee on very small screens */
@media (max-width: 360px) {
  .marquee { display: none; }
}

/* ============================================================
   ARTICLE / Long-form content
   ============================================================ */

/* Article hero */
.article-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(800px 400px at 90% -10%, rgba(20,133,124,.10), transparent 60%),
    linear-gradient(180deg, var(--cream-50), #fff);
  border-bottom: 1px solid var(--line);
}
.article-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  max-width: 840px;
  margin: 14px 0 18px;
  line-height: 1.12;
}
.article-hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 760px;
  color: var(--ink-2);
}
.byline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px; margin-top: 28px; font-size: .92rem; color: var(--ink-3);
}
.byline .author {
  display: flex; align-items: center; gap: 10px;
}
.byline .author__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  color: var(--teal-800); display: grid; place-items: center;
  font-weight: 600; font-size: .9rem;
}
.byline .author strong { color: var(--ink); font-weight: 600; }
.byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

/* Article body / prose */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink-2);
}
.article-body p { font-size: 1.06rem; margin: 0 0 1.2em; }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  margin: 56px 0 18px;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--ink);
}
.article-body h2:first-child,
.article-body h3:first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--teal-700); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--teal-700); border-bottom: 1px solid var(--teal-100); }
.article-body a:hover { border-bottom-color: var(--teal-700); }
.article-body blockquote {
  border-left: 3px solid var(--teal-700);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink);
}
.article-body hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 40px 0;
}
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.4em 0; font-size: .95rem;
}
.article-body table th,
.article-body table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-body table th {
  background: var(--cream-100);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.article-body table tr:hover td { background: var(--bg-warm); }

/* TL;DR / Quick answer callout (AEO friendly) */
.tldr {
  background: linear-gradient(155deg, var(--teal-50), #fff);
  border: 1px solid var(--teal-100);
  border-left: 4px solid var(--teal-700);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 0 0 36px;
  font-size: 1rem;
}
.tldr__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-800);
  margin-bottom: 10px;
}
.tldr__label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(45,212,191,.25);
}
.tldr p { margin: 0; color: var(--ink); font-weight: 500; }
.tldr p + p { margin-top: 8px; }
.tldr ul { margin: 8px 0 0; padding-left: 1.2em; }
.tldr ul li { color: var(--ink); }

/* Callouts */
.callout {
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex; gap: 16px;
  border: 1px solid var(--line);
  background: var(--bg-warm);
}
.callout__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-800);
}
.callout__icon svg { width: 20px; height: 20px; }
.callout p { margin: 0; color: var(--ink-2); }
.callout p + p { margin-top: 8px; }
.callout strong { color: var(--ink); }
.callout--info { background: var(--teal-50); border-color: var(--teal-100); }
.callout--warn { background: #fff8ef; border-color: #fde6c4; }
.callout--warn .callout__icon { background: var(--saffron-100); color: var(--saffron-700); }
.callout--danger { background: #fff1f2; border-color: #fecdd3; }
.callout--danger .callout__icon { background: #ffe4e6; color: #be123c; }
.callout--success { background: #f0fdf4; border-color: #bbf7d0; }
.callout--success .callout__icon { background: #dcfce7; color: #15803d; }

/* When to see a doctor — special callout */
.see-doctor {
  background: linear-gradient(155deg, #fff1f2, #fff);
  border: 1px solid #fecdd3;
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 36px 0;
}
.see-doctor h3 {
  display: flex; align-items: center; gap: 10px;
  color: #be123c;
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.see-doctor h3 svg { width: 22px; height: 22px; }
.see-doctor p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.see-doctor ul { margin: 8px 0 0; padding-left: 1.2em; }
.see-doctor ul li { color: var(--ink-2); font-size: .96rem; }
.see-doctor a { color: #be123c; font-weight: 600; }

/* Key takeaways box (numbered grid) */
.takeaways {
  background: var(--ink);
  color: #cdeae6;
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 40px);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.takeaways::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% -20%, rgba(45,212,191,.18), transparent 60%);
  pointer-events: none;
}
.takeaways h3 {
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: 1.4rem; margin: 0 0 22px; position: relative;
}
.takeaway-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}
.takeaway-grid > div {
  display: flex; gap: 12px; align-items: flex-start;
}
.takeaway-grid .num {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(45,212,191,.15);
  color: var(--teal-200);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1rem;
}
.takeaway-grid p { margin: 0; color: #b4c4c2; font-size: .94rem; line-height: 1.5; }
.takeaway-grid strong { color: #fff; display: block; margin-bottom: 2px; }

/* Author card */
.author-card {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  margin: 56px 0 32px;
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  align-items: flex-start;
}
.author-card__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  color: var(--teal-800);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
}
.author-card__avatar--saffron {
  background: linear-gradient(135deg, var(--saffron-100), #fde68a);
  color: var(--saffron-700);
}
.author-card h4 { font-size: 1.1rem; margin: 0 0 4px; }
.author-card .role { color: var(--teal-700); font-size: .88rem; font-weight: 600; }
.author-card p { font-size: .94rem; margin: 8px 0 12px; }

/* Disclaimer */
.disclaimer {
  font-size: .85rem;
  color: var(--ink-3);
  background: var(--bg-warm);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin: 32px 0;
}
.disclaimer strong { color: var(--ink-2); }

/* Related articles */
.related {
  background: var(--bg-warm);
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}
.related h3 {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  margin: 0 0 40px;
}

/* Mobile article tweaks */
@media (max-width: 768px) {
  .article-body { font-size: 1rem; line-height: 1.7; }
  .article-body p { font-size: 1rem; }
  .article-body h2 { margin: 40px 0 14px; }
  .tldr { padding: 18px 20px; }
  .callout { padding: 16px 18px; gap: 12px; }
  .callout__icon { width: 36px; height: 36px; }
  .takeaways { padding: 24px; }
  .author-card { grid-template-columns: 56px 1fr; padding: 22px; }
  .author-card__avatar { width: 56px; height: 56px; }
  .see-doctor { padding: 20px; }
}
