/* ==========================================================================
   Babylon Primary Care — styles
   Brand colors pulled from logo: teal #0D5560, green #2DB47C
   ========================================================================== */

:root {
  --teal-950: #062B31;
  --teal-900: #0A3E46;
  --teal: #0D5560;
  --teal-700: #136873;
  --green: #2DB47C;
  --green-600: #1E9A66;
  --green-700: #167A51;
  --mint-50: #F3FAF7;
  --mint-100: #E4F5ED;
  --mint-200: #C8EAD9;
  --ink: #16282C;
  --body: #4A5C60;
  --muted: #5A6B6F;
  --green-on-dark: #8FE3BB;
  --line: #E1EAE8;
  --white: #FFFFFF;
  --bg: #FFFFFF;

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6, 43, 49, .06), 0 2px 8px rgba(6, 43, 49, .05);
  --shadow: 0 10px 30px -10px rgba(6, 43, 49, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 43, 49, .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .footer :focus-visible, .cta :focus-visible, .approach :focus-visible, .facts :focus-visible, .doctor__badge :focus-visible, .callbar :focus-visible, .skip-link:focus-visible { outline-color: var(--green-on-dark); }
.btn--primary:focus-visible { outline-color: var(--teal-900); }
.table-wrap:focus-visible { outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }

.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--green-on-dark); }

.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p:last-child { font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--primary { background: var(--green); color: var(--teal-950); box-shadow: 0 8px 20px -8px rgba(45, 180, 124, .7); }
.btn--primary:hover { background: #26A36F; color: var(--teal-950); transform: translateY(-1px); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--ghost { color: var(--teal); background: var(--mint-100); }
.btn--ghost:hover { background: var(--mint-200); color: var(--teal-900); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--teal); }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-900); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
a.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar__phone { font-weight: 600; color: #fff; }
.topbar__status .is-open { color: var(--green-on-dark); font-weight: 600; }
.topbar__status .is-closed { color: #F2B8A0; font-weight: 600; }

/* ---------- Header / Nav ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 170px; height: auto; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: block; padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); border-radius: 999px; }
.nav__list a:hover { color: var(--teal); background: var(--mint-50); }
.nav__list a[aria-current="page"] { color: var(--teal); }
.nav__list a[aria-current="page"]::after { content: ""; display: block; height: 2px; width: 18px; margin: 3px auto 0; border-radius: 2px; background: var(--green); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--mint-100); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, var(--mint-100) 0%, transparent 60%), linear-gradient(180deg, var(--mint-50) 0%, #fff 100%); padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.hero__inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 500; color: var(--ink); }
.hero__points svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--mint-100); fill: none; stroke: var(--green-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.hero__media { position: relative; }
.hero__media picture img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: 38% center; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__media::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; border-radius: var(--radius-lg); background: var(--green); opacity: .16; z-index: -1; }
.hero__card { position: absolute; left: -28px; bottom: 32px; display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 300px; }
.hero__card strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; line-height: 1.2; }
.hero__card span { font-size: .85rem; color: var(--muted); }
.hero__card-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal); }
.hero__card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__pulse { position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 60px; z-index: 0; }
.hero__pulse path { fill: none; stroke: var(--green); stroke-width: 2; opacity: .35; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: pulse-draw 2.8s ease-out .3s forwards; }
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }

/* ---------- Quick info ---------- */
.quick { position: relative; z-index: 2; margin-top: -44px; }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick__item { display: flex; align-items: center; gap: 16px; padding: 24px 28px; color: inherit; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
a.quick__item:hover { background: var(--mint-50); color: inherit; }
.quick__item small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quick__item strong { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.quick__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mint-100); }
.quick__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Doctor ---------- */
.doctor__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.doctor__media { position: relative; }
.doctor__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.doctor__media::before { content: ""; position: absolute; top: -18px; left: -18px; width: 55%; height: 55%; border-radius: var(--radius-lg); border: 2px solid var(--mint-200); z-index: -1; }
.doctor__badge { position: absolute; right: -20px; top: 36px; padding: 14px 18px; border-radius: var(--radius); background: var(--teal); color: #fff; box-shadow: var(--shadow); max-width: 220px; }
.doctor__badge strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--green-on-dark); }
.doctor__badge span { font-size: .84rem; line-height: 1.35; display: block; color: rgba(255,255,255,.9); }
.doctor__copy h2 { margin-bottom: .15em; }
.doctor__title { font-family: var(--font-head); font-weight: 600; color: var(--green-700); margin-bottom: 1.4rem; }
.doctor__quote { position: relative; padding: 18px 22px; margin: 1.6rem 0; border-left: 4px solid var(--green); background: var(--mint-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.5; color: var(--teal-900); }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 1.8rem; }
.creds li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.4; }
.creds strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.creds__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mint-100); }
.creds__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Services ---------- */
.services { background: var(--mint-50); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { position: relative; display: block; padding: 32px 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); color: var(--body); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--body); }
.service:hover::after { transform: scaleX(1); }
.service p { margin: 0; font-size: .96rem; }
.service__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--teal); margin-bottom: 20px; transition: background-color .25s ease; }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { background: var(--teal-700); }

/* ---------- Approach ---------- */
.approach { background: var(--teal); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.approach::before { content: ""; position: absolute; right: -200px; top: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(45,180,124,.22), transparent 70%); }
.approach__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; position: relative; }
.approach h2, .approach h3 { color: #fff; }
.approach__copy > p { font-size: 1.08rem; }
.approach__media { position: relative; padding-bottom: 18%; }
.approach__media > picture:first-child img { width: 88%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 60% center; border-radius: var(--radius-lg); }
.approach__media-sm { position: absolute; right: 0; bottom: 0; width: 55%; }
.approach__media-sm img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% center; border-radius: var(--radius); border: 6px solid var(--teal); box-shadow: var(--shadow-lg); }
.approach__list { display: grid; gap: 22px; margin-top: 2rem; }
.approach__list li { display: flex; gap: 18px; align-items: flex-start; }
.approach__list h3 { margin-bottom: .25em; font-size: 1.1rem; }
.approach__list p { margin: 0; font-size: .96rem; }
.approach__num { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(45,180,124,.6); color: var(--green-on-dark); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }

/* ---------- Resources ---------- */
.resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.resource p { font-size: .96rem; flex: 1; }
.resource__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mint-100); margin-bottom: 18px; }
.resource__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #fff 0%, var(--mint-50) 100%); padding-bottom: calc(var(--section) * .8); }
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__info > p { font-size: 1.05rem; }
.contact__details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.8rem 0; }
.contact__details dt { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__details dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.45; }
.contact__details dd a { color: var(--teal); font-size: 1.15rem; }

.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .95rem; }
.hours th, .hours td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today { background: var(--mint-100); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }

.contact__form { padding: clamp(28px, 4vw, 44px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.contact__form h3 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.form-embed { min-height: 360px; }
.form-embed iframe { width: 100%; min-width: 100%; border: 0; }
.form-embed__placeholder { height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--mint-200); border-radius: var(--radius); background: var(--mint-50); color: var(--muted); text-align: center; padding: 24px; }
.form-embed__placeholder svg { width: 40px; height: 40px; fill: none; stroke: var(--green-600); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-embed__placeholder p { margin: 0; font-family: var(--font-head); font-weight: 600; }
.contact__note { margin: 1.2rem 0 0; font-size: .84rem; color: var(--muted); }

/* ---------- Map ---------- */
.map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.85); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-950); color: rgba(255,255,255,.72); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: var(--green-on-dark); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 200px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; }
.footer .footer__heading { color: #fff; font-family: var(--font-head); font-weight: 700; line-height: 1.3; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__list { display: grid; gap: 10px; }
.footer__hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 220px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1160px) {
  .header__btn { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .brand img { width: 140px; }

  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: 20px var(--gutter) 32px; background: #fff;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 16px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current="page"]::after { display: none; }
  .nav__cta { display: grid; gap: 12px; margin-top: 28px; }
  .nav__cta .btn { padding: 16px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }

  .hero__inner, .doctor__inner, .approach__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 680px; }
  .hero__media { max-width: 680px; }
  .hero__card { left: 16px; bottom: 16px; }
  .doctor__media { max-width: 460px; }
  .doctor__badge { right: 16px; }
  .approach__media { max-width: 620px; }

  .services__grid, .resources__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .topbar__item:first-child { display: none; }
  .topbar__inner { justify-content: space-between; }

  .hero { padding-top: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media::before { display: none; }
  .hero__media picture img { aspect-ratio: 4 / 3; }

  .quick { margin-top: -28px; }
  .quick__grid { grid-template-columns: 1fr; }
  .quick__item { padding: 18px 20px; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }

  .doctor__media::before { display: none; }
  .creds { grid-template-columns: 1fr; }

  .services__grid, .resources__grid { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .hours { font-size: .9rem; }
  .hours th, .hours td { padding: 11px 14px; }

  .map iframe { height: 320px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }

  .callbar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -6px 20px rgba(6,43,49,.12);
  }
  .callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; }
  .callbar__call { background: var(--teal); color: #fff; }
  .callbar__call:hover { color: #fff; }
  .callbar__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .callbar__book { background: var(--green); color: var(--teal-950); }
}

@media (max-width: 420px) {
  .topbar { font-size: .8rem; }
  .hero__card { position: static; margin-top: 16px; max-width: none; box-shadow: var(--shadow-sm); }
  .doctor__badge { position: static; margin-top: 16px; max-width: none; }
}

/* ==========================================================================
   Inner pages (About)
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 90% 0%, var(--mint-100) 0%, transparent 60%), linear-gradient(180deg, var(--mint-50) 0%, #fff 100%); padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.page-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.page-hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 560px; margin-bottom: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% center; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.page-hero .hero__pulse { bottom: 24px; }

.breadcrumb { margin-bottom: 1.4rem; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb a { color: var(--teal); font-weight: 600; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Practice intro ---------- */
.practice__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.practice__copy p { font-size: 1.05rem; }
.practice__copy p:last-child { margin-bottom: 0; }

.facts { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--teal); color: rgba(255,255,255,.85); box-shadow: var(--shadow); }
.facts h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.facts dl { display: grid; gap: 16px; margin: 0; }
.facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-on-dark); margin-bottom: 2px; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 600; color: #fff; line-height: 1.45; }
.facts dd a { color: #fff; }
.facts dd a:hover { color: var(--green-on-dark); }

/* ---------- Values ---------- */
.values { background: var(--mint-50); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { font-size: 1.1rem; }
.value p { margin: 0; font-size: .95rem; }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal); margin-bottom: 18px; }
.value__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Training timeline ---------- */
.training { background: var(--mint-50); }
.training__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.training__head { position: sticky; top: calc(var(--header-h) + 24px); }
.training__head p:last-child { font-size: 1.05rem; margin-bottom: 0; }
.timeline { position: relative; margin: 0; padding: 0 0 0 36px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--green), var(--teal)); border-radius: 2px; opacity: .5; }
.timeline li { position: relative; padding: 22px 26px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline li:last-child { border-color: var(--mint-200); background: var(--mint-100); }
.timeline li:last-child::before { background: var(--green); }
.timeline__tag { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: 6px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: .2em; }
.timeline p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--teal); color: rgba(255,255,255,.82); padding-block: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -180px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(45,180,124,.2), transparent 70%); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta h2 { color: #fff; }
.cta__copy > p { font-size: 1.08rem; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--teal); border-color: #fff; }
.cta__info { display: grid; gap: 18px; }
.cta__info li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-family: var(--font-head); font-weight: 600; line-height: 1.5; }
.cta__info small { display: block; font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-on-dark); margin-bottom: 2px; }
.cta__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(45,180,124,.16); }
.cta__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1024px) {
  .page-hero__inner, .practice__inner, .training__inner, .cta__inner { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 680px; }
  .facts, .training__head { position: static; }
  .values__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero { padding-top: 28px; }
  .values__grid { grid-template-columns: 1fr; }
  .facts { padding: 26px 22px; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 5px; }
  .timeline li { padding: 18px 20px; }
  .timeline li::before { left: -29px; }
  .cta__actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Services page
   ========================================================================== */
.svc-intro { padding-bottom: calc(var(--section) * .5); }
.svc-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.svc-jump a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-family: var(--font-head); font-weight: 700; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.svc-jump a:hover { border-color: var(--mint-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--teal); }
.svc-jump__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--teal); }
.svc-jump__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.svc-list { padding-top: calc(var(--section) * .5); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-row + .svc-row { margin-top: clamp(64px, 9vw, 112px); }
.svc-row--flip .svc-row__media { order: 2; }
.svc-row__media { position: relative; }
.svc-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.svc-row__media::before { content: ""; position: absolute; inset: auto -16px -16px auto; width: 45%; height: 45%; border-radius: var(--radius-lg); background: var(--green); opacity: .14; z-index: -1; }
.svc-row--flip .svc-row__media::before { inset: auto auto -16px -16px; }
.svc-row__num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: var(--green-700); padding: 4px 12px; border-radius: 999px; background: var(--mint-100); margin-bottom: 14px; }
.svc-row__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.svc-row__copy h3 { font-size: 1rem; margin: 1.6rem 0 .8rem; }
.svc-row__copy > p { font-size: 1.04rem; }

.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.5; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23167A51' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checklist--cols { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.expect { background: var(--mint-50); }
.expect__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.expect__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.expect__steps { list-style: none; padding: 0; }
.expect__steps h3 { color: var(--ink); }
.expect__steps .approach__num { border-color: var(--green); color: var(--green-700); background: #fff; }

/* ---------- Contact page ---------- */
.quick--page { margin-top: -40px; }
.page-hero--compact { padding-bottom: clamp(96px, 10vw, 136px); }
.page-hero--compact .page-hero__media img { aspect-ratio: 16 / 10; }
.page-hero--compact .hero__pulse { bottom: 56px; }

@media (max-width: 1024px) {
  .svc-jump { grid-template-columns: 1fr 1fr; }
  .svc-row, .expect__inner { grid-template-columns: 1fr; }
  .svc-row--flip .svc-row__media { order: 0; }
  .svc-row__media, .expect__media { max-width: 680px; }
}
@media (max-width: 760px) {
  .svc-jump { grid-template-columns: 1fr; }
  .svc-row__media::before { display: none; }
  .checklist--cols { grid-template-columns: 1fr; }
  .quick--page { margin-top: -28px; }
}

/* ==========================================================================
   Legal pages (Privacy Policy, Accessibility)
   ========================================================================== */
.page-hero--text { padding-bottom: clamp(48px, 6vw, 72px); }
.page-hero--text .page-hero__lead { max-width: 680px; }
.legal__date { margin: 1rem 0 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.legal { padding-top: clamp(48px, 6vw, 72px); }
.legal__inner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mint-50); }
.legal__toc-title { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); margin-bottom: .8rem; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--body); }
.legal__toc a:hover { background: #fff; color: var(--teal); }

.prose { max-width: 760px; min-width: 0; }
.legal__inner > * { min-width: 0; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin: 2.4rem 0 .8rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.callout { padding: 16px 20px; border-left: 4px solid var(--green); background: var(--mint-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; color: var(--teal-900); }
.legal__address { font-style: normal; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.2em; line-height: 1.7; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

@media (max-width: 1024px) {
  .legal__inner { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .legal__toc ol { grid-template-columns: 1fr; }
  .data-table tbody td:first-child { white-space: normal; }
  .data-table th, .data-table td { padding: 12px 14px; }
}

/* ---------- Narrow-screen reflow (320px) ---------- */
.contact__inner > * { min-width: 0; }
@media (max-width: 380px) {
  .hours th, .hours td { padding: 10px 12px; }
  .hours td { white-space: normal; }
  .hours tr.is-today th::after { display: block; width: max-content; margin: 4px 0 0; }
  .contact__form { padding: 22px 18px; }
}

/* ==========================================================================
   Insurance page
   ========================================================================== */
.plans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 16px 18px 16px 50px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.plan::before { content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23167A51' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.3; }
.plan__note { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.plans__updated { margin: 28px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

.plans-info { background: var(--mint-50); }
.plans-info__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.notice { display: flex; gap: 18px; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.notice h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .7rem; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--ink); }
.notice__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); }
.notice__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plans-steps h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .2rem; }
.plans-steps .approach__list { margin-top: 1.4rem; }

@media (max-width: 1160px) { .plans__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .plans-info__inner { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .plans__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan { padding: 14px 12px 14px 44px; min-height: 64px; }
  .plan::before { left: 12px; }
  .notice { flex-direction: column; gap: 14px; }
}
@media (max-width: 480px) { .plans__grid { grid-template-columns: 1fr; } }

/* Links inside running text are underlined so they are not identified by color alone */
main p a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
