/* ==========================================================================
   Cataract Surgeon Flushing — Envision Eye Group
   Design system: premium / calm / trustworthy American medical aesthetic.
   ========================================================================== */

:root {
  /* Brand colors — sampled from the Envision Eye Group logo */
  --navy-900: #0F2438;
  --navy-800: #15304B;
  --navy-700: #1C3E5E;
  --navy-600: #2A5375;
  --blue-500: #3D7CA6;
  --teal-500: #4FB8B2;
  --teal-400: #7FCFC9;
  --teal-100: #E7F5F4;
  --white: #FFFFFF;
  --ink: #1B2733;
  --slate-600: #4E5D6C;
  --slate-400: #7C8A97;
  --bg-soft: #F6F9FA;
  --bg-soft-2: #EFF4F5;
  --line: #E2E9EC;
  --line-strong: #CBD6DA;
  --gold-accent: #C7A55B; /* used sparingly: credential badges only */

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --container-narrow: 860px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 36, 56, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 36, 56, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 36, 56, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

p { color: var(--slate-600); }
p.lede { font-size: 1.15rem; color: var(--slate-600); line-height: 1.7; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 24px; }

section { padding: clamp(3.5rem, 3rem + 2vw, 6.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal-500); display: inline-block; }
.section-navy .eyebrow { color: var(--teal-400); }
.section-navy .check-list li { color: rgba(255,255,255,0.92); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--teal-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--navy-900); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy-900); transform: translateY(-2px); }
.btn-on-dark { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: var(--white); color: var(--navy-900); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
  background: transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }

.site-header.is-scrolled,
.site-header.is-open,
body.no-hero .site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  height: 76px;
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 42px; width: auto; transition: filter 0.3s var(--ease); }
body.no-hero .logo-link img,
.site-header.is-scrolled .logo-link img,
.site-header.is-open .logo-link img { filter: none; }
.site-header:not(.is-scrolled):not(.is-open) .logo-mark-white { display: block; }
.site-header:not(.is-scrolled):not(.is-open) .logo-mark-color { display: none; }
.site-header.is-scrolled .logo-mark-white,
.site-header.is-open .logo-mark-white,
body.no-hero .logo-mark-white { display: none; }
.site-header.is-scrolled .logo-mark-color,
.site-header.is-open .logo-mark-color,
body.no-hero .logo-mark-color { display: block; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2.1rem; }
.main-nav a {
  font-weight: 500; font-size: 0.98rem; color: var(--white);
  position: relative; padding: 6px 0; transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--teal-500); transition: width 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.site-header.is-scrolled .main-nav a, body.no-hero .main-nav a { color: var(--navy-900); }

.header-cta { display: none; align-items: center; gap: 1.1rem; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.site-header.is-scrolled .header-phone, body.no-hero .header-phone { color: var(--navy-900); }
.header-phone svg { width: 18px; height: 18px; color: var(--teal-400); }

.menu-toggle {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  color: var(--white); font-weight: 600; font-size: 0.9rem; padding: 8px;
}
.site-header.is-scrolled .menu-toggle, .site-header.is-open .menu-toggle, body.no-hero .menu-toggle { color: var(--navy-900); }
.menu-toggle .bars { width: 22px; height: 16px; position: relative; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 7px; }
.menu-toggle .bars span:nth-child(3) { top: 14px; }
.site-header.is-open .menu-toggle .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--white);
  padding: calc(var(--header-h) + 1rem) 24px 2rem;
  display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 1.05rem 0; font-family: var(--font-display); font-size: 1.5rem;
  color: var(--navy-900); border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 1.6rem; }
.mobile-menu-contact { margin-top: auto; padding-top: 2rem; color: var(--slate-600); }
.mobile-menu-contact a { color: var(--navy-900); font-weight: 600; }

/* Fixed mobile bottom nav */
.mobile-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(15,36,56,0.08);
}
.mobile-tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 2px 8px; font-size: 0.66rem; font-weight: 600; color: var(--slate-400); text-align: center;
}
.mobile-tabbar a svg { width: 21px; height: 21px; }
.mobile-tabbar a.active, .mobile-tabbar a:active { color: var(--teal-500); }
.mobile-tabbar a.tabbar-cta { color: var(--teal-500); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; color: var(--white); isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,36,56,0.55) 0%, rgba(15,36,56,0.20) 32%, rgba(15,36,56,0.20) 55%, rgba(15,36,56,0.78) 100%);
}
.hero-content { position: relative; padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); width: 100%; }
.hero-content .eyebrow { color: var(--teal-400); }
.hero-content .eyebrow::before { background: var(--teal-400); }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 1.1rem; }
.hero .lede { color: rgba(255,255,255,0.86); max-width: 46ch; font-size: 1.15rem; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.8rem 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.22); }
.hero-fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.hero-fact span { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 1.8rem 0; background: var(--navy-900); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 0.7rem; color: rgba(255,255,255,0.86); font-size: 0.92rem; font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--teal-400); flex-shrink: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card-link {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.7rem 1.9rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { font-size: 0.96rem; margin: 0; flex: 1; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-500); font-size: 0.92rem; margin-top: 0.4rem; }
.card-cta svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.card-link:hover .card-cta svg { transform: translateX(4px); }

.icon-card { padding: 2.1rem 1.8rem; text-align: left; }
.icon-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.icon-card .icon-wrap svg { width: 26px; height: 26px; color: var(--teal-500); }

/* ---------- Split / feature sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); align-self: stretch; }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.split-copy ul.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list svg { width: 20px; height: 20px; color: var(--teal-500); flex-shrink: 0; margin-top: 2px; }

/* ---------- Steps / patient journey ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.05rem;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; }

/* ---------- Doctor section ---------- */
.doctor-card { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.doctor-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 3 / 4; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-credentials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 1.8rem; }
.credential-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--teal-100); color: var(--navy-800); font-size: 0.82rem; font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-900);
}
.faq-q .plus { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--navy-900); transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.faq-q .plus::before { left: 2px; right: 2px; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { top: 2px; bottom: 2px; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item.is-open .faq-q { color: var(--teal-500); }

/* Dark section context: navy-on-navy is unreadable, flip to light */
.section-navy .faq-item { border-bottom-color: rgba(255,255,255,0.18); }
.section-navy .faq-q { color: var(--white); }
.section-navy .faq-q .plus::before, .section-navy .faq-q .plus::after { background: var(--white); }
.section-navy .faq-item.is-open .faq-q { color: var(--teal-400); }
.section-navy .faq-item.is-open .faq-q .plus::before, .section-navy .faq-item.is-open .faq-q .plus::after { background: var(--teal-400); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding-bottom: 1.6rem; padding-right: 2.5rem; }
.faq-a p { margin: 0; }

/* ---------- Forms ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 0.45rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.9rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font-size: 0.98rem; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate-400); }

/* ---------- Footer ---------- */
footer { background: var(--navy-900); color: var(--white); padding: 4.5rem 0 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 40px; width: auto; object-fit: contain; margin-bottom: 1.1rem; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 32ch; }
.footer-section h3 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.2rem; }
.footer-section ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-section a, .footer-section p { color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.7; }
.footer-section a:hover { color: var(--teal-400); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--teal-500); border-color: var(--teal-500); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.8rem 0 2.2rem; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }
.footer-partner a { color: var(--teal-400); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 1.1rem 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--slate-400); }
.breadcrumb a { color: var(--slate-400); }
.breadcrumb a:hover { color: var(--teal-500); }
.breadcrumb li:last-child { color: var(--navy-800); font-weight: 500; }
.page-header.with-media .breadcrumb ol, .page-header.with-media .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-header.with-media .breadcrumb a:hover { color: var(--teal-400); }
.page-header.with-media .breadcrumb li:last-child { color: var(--white); }

/* ---------- Page header (non-hero pages) ---------- */
.page-header { padding: calc(var(--header-h) + 2.6rem) 0 3rem; background: var(--bg-soft); }
.page-header.with-media { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.page-header.with-media::before {
  content: ""; position: absolute; inset: 0; background-image: var(--bg-img); background-size: cover; background-position: center;
  opacity: 0.28; z-index: 0;
}
.page-header.with-media .container { position: relative; z-index: 1; }
.page-header.with-media h1 { color: var(--white); }
.page-header.with-media p { color: rgba(255,255,255,0.78); }
.page-header p.lede { max-width: 60ch; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); border-radius: var(--radius-lg); padding: clamp(2.5rem, 4vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; color: var(--white); }
.cta-banner h2 { color: var(--white); max-width: 20ch; }
.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--bg-soft-2); color: var(--slate-600); font-size: 0.82rem; font-weight: 500; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.skip-link {
  position: absolute; left: -999px; top: auto; background: var(--navy-900); color: var(--white);
  padding: 0.9rem 1.3rem; z-index: 1000; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 24px; top: 24px; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

/* ---------- Article (blog) ---------- */
.article-body { max-width: var(--container-narrow); margin-inline: auto; }
.article-body h2 { margin-top: 2.4rem; margin-bottom: 0.9rem; }
.article-body h3 { margin-top: 1.8rem; margin-bottom: 0.7rem; }
.article-body p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; color: var(--slate-600); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; color: var(--slate-400); font-size: 0.9rem; margin-bottom: 1.6rem; }
.article-hero-img { border-radius: var(--radius-lg); overflow: hidden; margin: 2rem 0; box-shadow: var(--shadow-md); }
.article-callout { background: var(--teal-100); border-left: 4px solid var(--teal-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.3rem 1.6rem; margin: 1.8rem 0; }
.article-callout p { color: var(--navy-800); margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 96px; }
  .main-nav { display: block; }
  .header-cta { display: flex; }
  .menu-toggle, .mobile-menu, .mobile-tabbar { display: none !important; }
  body { padding-bottom: 0 !important; }
}

@media (max-width: 1023px) {
  body { padding-bottom: 64px; } /* space for fixed tabbar */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .split, .doctor-card { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { min-height: 240px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-facts { gap: 1.4rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
