/* Lightworks Vision — bold palette by default. Layout: two-row header (action bar + logo/nav/contact), then calm stacked bands; no hero image. */
:root {
  --charcoal: #252423;      /* brand charcoal: headings, logo */
  --ink: #1f1e1d;           /* body text, a shade deeper for long reading */
  --sage: #92a09f;          /* brand sage: accents, rules, decoration only */
  --sage-deep: #355552;     /* sage darkened for text, links, buttons (6.2:1 on white) */
  --sage-light: #9fb0ad;    /* brand light sage: borders */
  --mist: #e6ecea;          /* tinted band background */
  --paper: #ffffff;
  --muted: #474544;         /* secondary text (6.5:1) */
  --bar-bg: #1d1c1b;        /* top action bar */
  --rule: #252423;          /* header bottom rule */
  --intro-bg: #2f4341;      /* intro band */
  --intro-fg: #e9efed;
  --intro-head: #ffffff;
  --intro-accent: #c3d2cf;  /* tagline */
  --btn-bg: #ffffff;
  --btn-fg: #1f2f2d;
  --btn-line: #ffffff;
  --dark: #1d1c1b;          /* action bar, philosophy band, footer */
  --phil-bg: #252423;

  --font-display: "Barlow", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Calibri", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);

  --radius: 10px;
  --wrap: 1160px;
  --scale: 1;
  color-scheme: light;
}

/* Brand palette (Emily's original values), kept for comparison */
:root[data-palette="brand"] {
  --charcoal: #545150;
  --ink: #3b3938;
  --muted: #5f5d5c;
  --sage-deep: #566463;
  --sage-light: #bdc5c4;
  --mist: #eef1f0;
  --bar-bg: #545150;
  --rule: #bdc5c4;
  --intro-bg: #e2e8e6;
  --intro-fg: #3b3938;
  --intro-head: #545150;
  --intro-accent: #566463;
  --btn-bg: #566463;
  --btn-fg: #ffffff;
  --btn-line: #566463;
  --phil-bg: #545150;
  --dark: #545150;
}

/* High-contrast reading mode */
:root[data-contrast="high"] {
  --ink: #111111;
  --charcoal: #1f1e1e;
  --muted: #2b2a2a;
  --sage-deep: #2f3a39;
  --sage-light: #6f7b7a;
  --mist: #f4f6f5;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--charcoal); text-wrap: balance; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--charcoal); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }

/* Placeholder content still to be supplied */
.tbd { text-decoration: underline dashed var(--sage); text-underline-offset: 4px; color: var(--muted); }

/* Shared type pieces */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.textlink {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--sage-deep);
  border-bottom: 1.5px solid var(--sage-light);
  padding-bottom: 2px;
}
.textlink::after { content: " →"; }
.textlink:hover { border-color: var(--sage-deep); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.03em;
  text-decoration: none; border: 1.5px solid var(--sage-deep);
  transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--sage-deep); color: #fff; }
.btn--primary:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.btn--ghost { background: transparent; color: var(--sage-deep); }
.btn--ghost:hover { background: var(--mist); color: var(--charcoal); }
.pill { border-radius: 999px; padding: 4px 14px; text-decoration: none; font-weight: 600; }

/* Alert */
.alert { background: #f6efd9; color: #4d3f12; border-bottom: 1px solid #e3d5a5; }
.alert__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.alert__close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: inherit; cursor: pointer; padding: 4px 8px; }

/* Action bar */
.actionbar { background: var(--dark); color: #e8ebea; font-size: 0.95rem; }
.actionbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 8px; flex-wrap: wrap; }
.actionbar__info { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.actionbar a { color: #fff; text-decoration: none; }
.actionbar a:hover { text-decoration: underline; color: #fff; }
.actionbar__hours.tbd { color: #c9cfce; text-decoration-color: #8e9a99; }
.actionbar__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.actionbar .pill--light { background: var(--sage-light); color: #2e3534; padding: 3px 16px; }
.actionbar .pill--light:hover { background: #fff; color: #2e3534; text-decoration: none; }

/* Masthead */
.masthead { background: var(--paper); border-bottom: 2px solid var(--rule); position: relative; }
.site-header { position: relative; z-index: 20; }
@media (min-width: 821px) {
  html { scroll-padding-top: 170px; }
  .site-header { position: sticky; top: env(safe-area-inset-top, 0px); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--dark); }
  .masthead__inner, .masthead__logo img { transition: padding .25s ease, width .25s ease; }
  .site-header.is-compact .masthead__inner { padding-block: 10px; }
  .site-header.is-compact .masthead__logo img { width: 190px; }
  .site-header.is-compact .contactbox { font-size: 1rem; line-height: 1.35; }
  .site-header.is-compact { box-shadow: 0 4px 16px rgba(20, 20, 20, 0.08); }
}
.masthead__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 22px; }
.masthead__logo img { width: 280px; height: auto; }
.menu-toggle { display: none; }

.primary__list { display: flex; justify-content: center; gap: 8px; }
.primary__item { position: relative; }
.primary__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--charcoal); padding: 12px 16px; border-radius: 8px;
}
.primary__btn:hover, .primary__btn[aria-expanded="true"] { background: var(--mist); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.primary__btn[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 300px; background: var(--paper);
  border: 1px solid var(--sage-light); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(40, 45, 44, 0.12);
  padding: 8px; display: none;
}
.primary__btn[aria-expanded="true"] + .dropdown { display: block; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--mist); }
.dd__title { display: block; color: var(--charcoal); font-weight: 600; }
.dd__sub { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.primary__mobile-extras { display: none; }

.contactbox {
  display: grid; gap: 2px;
  padding-left: 22px; border-left: 2px solid var(--sage-light);
  font-size: 1.125rem; line-height: 1.45; color: var(--ink);
}
.contactbox a { color: var(--ink); text-decoration: none; }
.contactbox a:hover { color: var(--sage-deep); text-decoration: underline; }
.contactbox b { font-family: var(--font-display); color: var(--sage-deep); font-weight: 600; margin-right: 4px; }
.contactbox__addr { font-weight: 600; color: var(--charcoal); }
.contactbox__phone { font-weight: 600; margin-top: 6px; }

/* Intro */
.intro { background: var(--intro-bg); color: var(--intro-fg); }
.intro__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(1.75rem, 3.5vw, 3rem); }
.tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-1); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--intro-accent); margin-bottom: 0.7rem;
}
.intro h1 { margin-left: -0.04em; color: var(--intro-head); font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.12; letter-spacing: 0.005em; max-width: 18ch; }
.intro__lede { font-size: var(--step-1); line-height: 1.5; color: var(--intro-fg); max-width: 46ch; margin-top: 0.8rem; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.intro .btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-line); }
.intro .btn--primary:hover { background: var(--intro-head); color: var(--intro-bg); border-color: var(--intro-head); }
.intro .btn--ghost { color: var(--intro-head); border-color: var(--btn-line); }
.intro .btn--ghost:hover { background: transparent; color: var(--intro-head); text-decoration: underline; }
/* Location photo */
.location__photo { margin: 0; }
.location__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.location__photo figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

/* Photo carousel */
.carousel { width: 100%; max-width: 480px; justify-self: end; }
.carousel__track { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--paper); }
.carousel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.carousel__slide.is-active { opacity: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #f3f5f4 0 12px, #eaeeed 12px 24px);
  color: #5f5d5c; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
}
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
.carousel__arrow {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--intro-accent); background: transparent; color: var(--intro-head);
  font-size: 1.3rem; line-height: 1;
}
.carousel__dots { display: flex; gap: 8px; }
.carousel__pause {
  min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--intro-accent); background: transparent; color: var(--intro-head);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em;
}
.carousel__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid var(--intro-accent); background: transparent; cursor: pointer; }
.carousel__dots button[aria-current="true"] { background: var(--intro-head); border-color: var(--intro-head); }

/* Quick actions */
.quick { padding-block: 2.5rem 1rem; }
.quick .eyebrow { margin-bottom: 1.1rem; }
.quick__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.quick__tile {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; height: 100%;
  padding: 18px 18px; border: 1.5px solid var(--sage-light); border-radius: 14px;
  text-decoration: none; background: var(--paper);
  transition: border-color .15s, background-color .15s;
}
.quick__tile:hover { border-color: var(--sage-deep); background: var(--mist); }
.quick__tile svg { grid-row: span 2; width: 34px; height: 34px; fill: none; stroke: var(--sage-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quick__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--charcoal); line-height: 1.25; }
.quick__sub { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

/* Doctor */
.doctor { padding-block: 3.5rem; }
.doctor__inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.doctor__card { margin: 0; border-radius: 16px; overflow: hidden; background: var(--charcoal); color: #fff; }
.doctor__photo {
  display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 20%;
}
.doctor__card figcaption { padding: 16px 18px 18px; display: grid; gap: 4px; }
.doctor__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.02em; }
.doctor__creds { color: #d7dcdb; font-size: 0.95rem; line-height: 1.45; }
.doctor__text { display: grid; gap: 1rem; max-width: 64ch; }
.doctor__lead { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.25; color: var(--charcoal); }
.doctor__text .textlink { justify-self: start; margin-top: 0.25rem; }
.affiliations { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--sage-light); }
.affiliations a { display: block; border-radius: 6px; }
.affiliations img[src*="aao"] { width: 150px; height: auto; }
.affiliations img[src*="abo"] { width: 84px; height: auto; }

/* Services */
.services { padding-block: 3rem; border-top: 1px solid var(--sage-light); }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.services__grid a {
  display: grid; gap: 6px; height: 100%;
  padding: 22px 22px 24px; border-radius: 14px; text-decoration: none;
  background: var(--mist); border: 1.5px solid transparent;
  transition: border-color .15s;
}
.services__grid a:hover { border-color: var(--sage); }
.svc__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--charcoal); letter-spacing: 0.01em; }
.svc__title::after { content: " →"; color: var(--sage-deep); }
.svc__sub { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.svc--alt a { background: var(--paper); border-color: var(--sage-light); }

/* Philosophy */
.philosophy { padding-block: 3rem; background: var(--dark); color: #e9ecec; }
.philosophy .eyebrow { color: var(--sage-light); }
.philosophy .textlink { color: #fff; border-color: var(--sage); }
.philosophy__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.philosophy__grid > div { border-top: 2px solid var(--sage); padding-top: 1rem; }
.philosophy h3 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); margin-bottom: 0.5rem; }
.philosophy p { color: #dfe3e2; }

/* Location */
.location { padding-block: 3.5rem; }
.location__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.location__text { display: grid; gap: 1rem; }
.location__addr { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.25; color: var(--charcoal); }
.location__hours { display: grid; gap: 4px; margin: 0; }
.location__hours div { display: grid; grid-template-columns: 70px 1fr; }
.location__hours dt { font-family: var(--font-display); font-weight: 600; color: var(--sage-deep); letter-spacing: 0.04em; }
.location__hours dd { margin: 0; }
.location__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.location__media {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 16px;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, #eef1f0 0 12px, #e7ebea 12px 24px);
  border: 1.5px solid var(--sage-light);
  color: var(--muted); font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
}

/* Footer */
.footer { background: var(--dark); color: #d9dddc; padding-block: 3rem 1.5rem; font-size: 0.98rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { width: 180px; }
.footer__tag { font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.85rem; color: var(--sage-light); margin-top: 14px; }
.footer__h { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 0.75rem; }
.footer p + p { margin-top: 0.75rem; }
.footer__list { display: grid; gap: 6px; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #8e9a99; font-size: 1.1rem; }
.social a:hover { background: #fff; color: var(--dark); border-color: #fff; text-decoration: none; }
.social svg { width: 1em; height: 1em; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #4a4847; font-size: 0.88rem; color: #b9bfbe; }

/* Phone-only bottom bar */
.mobilebar { display: none; }

/* Reading options */
.a11y { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; }
.a11y__btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); color: var(--charcoal);
  border: 1.5px solid var(--sage); box-shadow: 0 6px 18px rgba(40, 45, 44, 0.15);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; cursor: pointer;
}
.a11y__panel {
  position: absolute; right: 0; bottom: 64px; width: 260px;
  background: var(--paper); border: 1px solid var(--sage-light); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(40, 45, 44, 0.16); padding: 16px;
}
.a11y__title { font-weight: 600; color: var(--charcoal); margin-bottom: 0.5rem; }
.a11y__label { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); margin: 0.75rem 0 0.4rem; }
.a11y__row { display: flex; gap: 8px; }
.a11y__row button {
  flex: 1; min-height: 42px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--sage-light); background: var(--paper); color: var(--charcoal);
  font-family: var(--font-body); font-weight: 600;
}
.a11y__row button[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--intro-bg); color: var(--intro-fg); }
.page-hero .wrap { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.page-hero__eyebrow { color: var(--intro-accent); margin-bottom: 0.6rem; }
.page-hero h1 { color: var(--intro-head); font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.12; max-width: 22ch; }
.page-hero__lede { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; margin-top: 0.8rem; color: var(--intro-fg); }
.jumplinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.jumplinks a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--intro-accent); color: var(--intro-head); text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em;
}
.jumplinks a:hover { background: var(--intro-head); color: var(--intro-bg); border-color: var(--intro-head); }

.urgent { margin-top: 2rem; padding: 18px 22px; border-radius: 12px; background: #f6efd9; color: #4d3f12; border: 1.5px solid #e3d5a5; }
.urgent h2 { color: #4d3f12; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.35rem; }
.urgent a { color: #4d3f12; font-weight: 600; }

.svc-list { display: grid; margin-top: 2rem; }
.svc-band:nth-child(odd) { background: var(--mist); }
.svc-band:nth-child(odd) .svc__note { background: var(--paper); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 56px; padding-block: 3rem; }
.svc h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; margin-bottom: 0.75rem; }
.svc__intro p { font-size: 1.1rem; line-height: 1.6; max-width: 52ch; }
.svc__detail { display: grid; gap: 0.6rem; align-content: start; }
.svc__detail h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); margin-top: 0.4rem; }
.svc__detail ul { display: grid; gap: 8px; }
.svc__detail li { position: relative; padding-left: 20px; line-height: 1.5; }
.svc__detail li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-deep); }
.svc__detail strong { color: var(--charcoal); }
.svc__note { margin-top: 0.4rem; padding: 12px 16px; background: var(--mist); border-radius: 10px; font-size: 0.98rem; }
.svc__columns { grid-template-columns: 1fr; }

.cta-band { background: var(--intro-bg); color: var(--intro-fg); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 2.5rem; }
.cta-band h2 { color: var(--intro-head); font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); }
.cta-band p { margin-top: 0.3rem; }
.cta-band p a { color: var(--intro-head); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-line); }
.btn--light:hover { background: var(--intro-head); color: var(--intro-bg); }
.btn--outline-light { background: transparent; color: var(--intro-head); border-color: var(--btn-line); }
.btn--outline-light:hover { color: var(--intro-head); text-decoration: underline; }

@media (max-width: 820px) {
  .svc { grid-template-columns: 1fr; padding-block: 2.25rem; }
  .cta-band__actions .btn { flex: 1 1 100%; }
}

/* Appointment request page */
.ways { padding-block: 2rem 1rem; }
.ways__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.way { display: grid; align-content: start; gap: 0.75rem; padding: 0 28px 26px; border: 1.5px solid var(--sage-light); border-radius: 16px; background: var(--paper); overflow: hidden; }
.way > .eyebrow:first-child { margin: 0 -28px 0.6rem; padding: 14px 28px; background: var(--intro-bg); color: var(--intro-head); }
.way__big { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.1; color: var(--charcoal); overflow-wrap: anywhere; }
.way__big a { color: inherit; text-decoration: none; }
.way__email { font-size: clamp(1.2rem, 1rem + 1.2vw, 1.625rem); overflow-wrap: normal; user-select: all; }
.way__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.way__btn { justify-self: start; margin-top: 0.25rem; cursor: pointer; }
.way__status { min-height: 1.4em; font-size: 0.95rem; color: var(--sage-deep); }
.next-steps { padding-block: 1.5rem 3.5rem; }
.next-steps .eyebrow { margin-bottom: 1rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 22px; background: var(--mist); border-radius: 14px; line-height: 1.5; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--sage-deep); color: #fff; font-family: var(--font-display); font-weight: 600; }
.steps strong { display: block; color: var(--charcoal); font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.steps__portal { margin-top: 1.25rem; }
@media (max-width: 820px) {
  .ways__grid, .steps { grid-template-columns: 1fr; }
}

/* Referring physicians page */
.ref-details { padding-block: 2.5rem; margin-top: 1.5rem; background: var(--mist); }
.ref-details + .next-steps { padding-top: 2.75rem; }
.ref-details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.ref-details .eyebrow { margin-bottom: 0.9rem; }
.ref-list { display: grid; gap: 8px; }
.ref-list li { position: relative; padding-left: 20px; line-height: 1.5; }
.ref-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-deep); }
@media (max-width: 820px) { .ref-details__grid { grid-template-columns: 1fr; } }

/* About page */
.bio { padding-block: 3rem; }
.bio__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; }
.bio__side { display: grid; gap: 1.25rem; }
.bio__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
.bio__facts { display: grid; gap: 12px; margin: 0; padding: 18px 20px; background: var(--mist); border-radius: 14px; }
.bio__facts dt { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); }
.bio__facts dd { margin: 2px 0 0; line-height: 1.45; }
.affiliations--side { margin-top: 0; padding-top: 0; border-top: 0; }

/* Long-form text */
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); margin-top: 1rem; }
.prose p { line-height: 1.7; }
.prose__lead { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.45; color: var(--charcoal); }
.prose__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 1.25rem; }

/* Philosophy tagline */
.tagline-band { padding-block: 3rem; text-align: center; }
.tagline-band__line { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-deep); }
.tagline-band__text { max-width: 56ch; margin: 0.9rem auto 0; font-size: 1.1rem; line-height: 1.6; }

/* First visit */
.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eyebrow--spaced { margin-top: 1.75rem; }
.ref-details p + p { margin-top: 0.75rem; }
.visit-addr { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--charcoal); margin-bottom: 0.5rem; }
.visit-btns { margin-top: 1rem; }
.way .ref-list { margin-top: 0.25rem; }

/* Insurance */
.plans-sec { padding-block: 2.5rem 2rem; }
.plans-sec .eyebrow { margin-bottom: 1rem; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.plans__status { margin-left: 6px; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.plans li { display: flex; flex-wrap: wrap; align-items: center; align-content: center; min-height: 64px; padding: 12px 14px 12px 16px; border: 1.5px solid var(--sage-light); border-left: 5px solid var(--sage-deep); border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; white-space: nowrap; color: var(--charcoal); background: var(--paper); }
.plans__note { margin-top: 1.25rem; max-width: 70ch; }
.svc__detail p { line-height: 1.6; }

/* FAQ */
.faq-sec { padding-block: 2.5rem 3.5rem; }
.faq { max-width: 860px; }
.faq .eyebrow { margin: 2rem 0 0.75rem; }
.faq .eyebrow:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--sage-light); }
.faq details:first-of-type, .faq .eyebrow + details { border-top: 1px solid var(--sage-light); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 4px; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--sage-light); color: var(--sage-deep); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.faq summary:hover { color: var(--sage-deep); }
.faq details p { padding: 0 4px 18px; max-width: 70ch; line-height: 1.65; }

@media (max-width: 1200px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .bio__grid { grid-template-columns: 1fr; gap: 28px; }
  .bio__photo { max-width: 320px; }
  .steps--four { grid-template-columns: 1fr; }
}

/* Final color choice: the deep green carries the intro, Our Philosophy, and the footer; the top bar stays near-black */
.philosophy { background: var(--intro-bg); }
.philosophy .eyebrow { color: var(--intro-accent); }
.philosophy__grid > div { border-top-color: var(--intro-accent); }
.footer { background: var(--intro-bg); }
.footer__legal { border-top-color: #4c605e; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .masthead__inner { grid-template-columns: auto 1fr; }
  .contactbox { display: none; }
  .primary__list { justify-content: flex-end; }
  .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .actionbar__hours { display: none; }
  .actionbar__links a:not(.pill) { display: none; }
  .masthead__inner { grid-template-columns: 1fr auto; padding-block: 12px; }
  .masthead__logo img { width: 190px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1.5px solid var(--sage-light); border-radius: 999px;
    padding: 8px 16px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--charcoal); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .primary { grid-column: 1 / -1; display: none; border-top: 1px solid var(--sage-light); padding-top: 8px; }
  .primary.is-open { display: block; }
  .primary__list { flex-direction: column; gap: 0; }
  .primary__btn { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.15rem; }
  .dropdown { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
  .primary__mobile-extras { display: grid; gap: 4px; border-top: 1px solid var(--sage-light); margin-top: 8px; padding-top: 8px; }
  .primary__mobile-extras a { padding: 10px 4px; font-weight: 600; color: var(--charcoal); text-decoration: none; }

  .intro__inner { grid-template-columns: 1fr; }
  .carousel { display: none; }
  .doctor__inner { grid-template-columns: 1fr; gap: 28px; }
  .doctor__card { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .doctor__photo { aspect-ratio: 1; height: 100%; object-position: 50% 25%; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philosophy__grid { grid-template-columns: 1fr; gap: 20px; }
  .location__inner { grid-template-columns: 1fr; }

  .mobilebar {
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--paper); border-top: 1px solid var(--sage-light);
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  .mobilebar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; text-decoration: none;
    border: 1.5px solid var(--sage-deep); color: var(--sage-deep);
  }
  .mobilebar .mobilebar__primary { background: var(--sage-deep); color: #fff; }
  body { padding-bottom: 76px; }
  .a11y { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .tagline { font-size: 1rem; letter-spacing: 0.16em; }
  .quick__grid, .services__grid, .footer__inner { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .intro__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


.ways__grid--aligned .way__big { font-size: clamp(1.2rem, 1rem + 1.2vw, 1.625rem); }
/* Request an Appointment: line up matching rows across the Call and Email cards */
@supports (grid-template-rows: subgrid) {
  .ways__grid--aligned .way { grid-row: span 4; grid-template-rows: subgrid; gap: 0.75rem; }
  .ways__grid--aligned .way__big { align-self: center; }
  .ways__grid--aligned .way__big { font-size: clamp(1.2rem, 1rem + 1.2vw, 1.625rem); }
}
@media (max-width: 820px) { .ways__grid--aligned .way { grid-row: auto; grid-template-rows: none; } }

/* Equal space above and below the card contents */
.ways__grid--aligned .way { padding-bottom: 28px; }
.ways__grid--aligned .way > .eyebrow:first-child { margin-bottom: calc(28px - 0.75rem); }
.ways__grid--aligned .way__actions { align-items: center; }
.ways__grid--aligned .way > .way__btn, .ways__grid--aligned .way__actions { align-self: start; }
.ways__grid--aligned .way__status { min-height: 0; flex-basis: 100%; }
.ways__grid--aligned .way__status:empty { display: none; }

/* Legal pages (Notice of Privacy Practices, Privacy Policy) */
.legal-sec { padding-block: 2.5rem 4rem; }
.legal { max-width: 72ch; }
.legal h2 { max-width: none; border-top: 1px solid var(--mist); padding-top: 1.25rem; }
.legal ul { display: grid; gap: .65rem; padding-left: 1.25rem; line-height: 1.65; }
.legal__meta { color: var(--charcoal); background: var(--mist); padding: 10px 14px; border-radius: 6px; justify-self: start; }
.page-hero__lede a { color: inherit; text-decoration: underline; }
