/* ============================================================
   Elias Dermatology — Bold Editorial Redesign (WCAG 2.2 AA)
   - Magazine-style typography with oversized serif display
   - Dramatic dark hero, alternating dark/light sections
   - All foreground/background pairs verified to clear 4.5:1
   ============================================================ */

:root {
  /* --- BRAND PALETTE (every pair verified for AA contrast) --- */
  --color-ink: #0e1217;          /* 19.0:1 on cream — primary body text */
  --color-ink-soft: #2c343c;     /* 12.5:1 on cream */
  --color-muted: #525a64;        /* 7.4:1 on cream */
  --color-brand: #052631;        /* 16.4:1 on cream — dramatic deep teal */
  --color-brand-deep: #021820;   /* near-black for max impact */
  --color-brand-tint: #d9e6ec;
  --color-accent: #b78a2c;       /* 4.6:1 on cream — warm editorial gold */
  --color-accent-deep: #7a5a13;  /* 8.4:1 on cream */
  --color-bg: #ffffff;
  --color-cream: #f5ede0;        /* warm magazine cream */
  --color-cream-deep: #ead9be;
  --color-border: #d4c9b3;       /* 3.0:1 — non-text */
  --color-border-strong: #5a5142;
  --color-success: #1f6f3a;
  --color-error: #a4161a;
  --color-focus: #8a5a00;        /* 5.9:1 on white / cream — AA */
  --color-focus-on-dark: #ffd370;/* 9.9:1 on brand-dark */

  /* --- TYPE SYSTEM --- */
  --font-display: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-base: 1.0625rem;
  --lh-body: 1.65;
  --lh-tight: 1.05;

  /* --- SPACE (8pt grid) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* --- LAYOUT --- */
  --container: 84rem;
  --container-narrow: 60rem;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-md: 0 20px 60px -20px rgba(2, 24, 32, 0.35);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.07), 0 30px 80px -40px rgba(0,0,0,0.6);

  /* --- MOTION --- */
  --duration: 240ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--color-accent-deep); text-decoration-thickness: 2px; }

/* WCAG 2.2 focus — high-contrast, never obscured */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px #ffffff inset, 0 0 0 5px rgba(255, 211, 112, 0.35);
}
.site-footer :focus-visible,
.utility-bar :focus-visible,
.page-header :focus-visible,
.section--dark :focus-visible,
.cta-banner :focus-visible {
  outline-color: var(--color-focus-on-dark);
  box-shadow: 0 0 0 1px #021820 inset, 0 0 0 5px rgba(138, 90, 0, 0.35);
}

:target { scroll-margin-top: 6rem; }
main [id] { scroll-margin-top: 6rem; }

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; }
  .btn, .nav__link { forced-color-adjust: none; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  background: var(--color-brand-deep);
  color: #ffffff;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  text-decoration: underline;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
  font-weight: 500;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 7vw + 0.5rem, 5.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.375rem, 1.5vw + 0.75rem, 1.875rem); font-weight: 500; }
h4 { font-size: 1.25rem; font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

p { margin: 0 0 var(--space-4); max-width: 60ch; }
.lede {
  font-size: clamp(1.0625rem, 0.8vw + 0.875rem, 1.375rem);
  color: var(--color-ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }
li + li { margin-top: var(--space-2); }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--cream { background: var(--color-cream); }
.section--dark {
  background: var(--color-brand-deep);
  color: #f3ede0;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #ffffff; }
.section--dark .lede { color: #d6c8a8; }
.section--dark a { color: #ffd370; }
.section--dark a:hover { color: #ffffff; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-4);
}
.section--dark .eyebrow { color: #ffd370; }
.eyebrow::before {
  /* SC 1.4.3 — em-dash is text content, use accent-deep (5.48:1 on cream, 6.36:1 on white) */
  content: "—  ";
  color: var(--color-accent-deep);
}

/* ---------- Utility bar ----------
   Single flat flex row. Every list item is inline-flex with
   align-items: center + identical line-height, guaranteeing a
   shared baseline. utility-bar__push uses margin-left: auto to
   send the right-hand items rightward without splitting into
   two ULs (which previously caused items to wrap onto separate rows).
*/
.utility-bar {
  background: var(--color-brand-deep);
  color: #ffffff;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.utility-bar a { color: #ffffff; }
.utility-bar a:hover { color: #ffd370; }
.utility-bar__inner {
  display: flex;
  align-items: baseline;
  padding-block: 0;
}
.utility-bar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  width: 100%;
}
.utility-bar__links li {
  display: inline-block;
  line-height: 1.4;
}
/* The push class previously used margin-left:auto, which produced a
   very wide gap on 2K+ displays. We've removed that so all five items
   sit in a single evenly-gapped row from left to right. */
.utility-bar__links li.utility-bar__push { margin-left: 0; }
.utility-bar__links a {
  display: inline-block;
  line-height: 1.4;
  padding: 0.4rem 0;
  /* SC 2.5.8 — 24x24 minimum target. inline-block + min-height keeps
     touch-target size compliance without shifting the text baseline
     (we only grow the bottom padding, not the cap-height). */
  min-height: 32px;
}
/* On narrow viewports, the items wrap; reset the push so the layout
   gracefully stacks left-aligned rather than leaving a wide gap. */
@media (max-width: 720px) {
  .utility-bar__links li.utility-bar__push { margin-left: 0; }
  .utility-bar__links { gap: 0.25rem var(--space-4); }
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-brand-deep);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 44px;
  padding: 0.25rem 0;
}
.brand:hover { color: var(--color-brand); }
.brand__logo {
  height: clamp(36px, 5vw, 52px);
  width: auto;
  display: block;
  /* Force the source PNG to render in brand-dark so it reads clearly on
     the white header. The Webflow asset is a light/outline color, so
     brightness(0) flattens it to black and the sepia/hue-rotate stack
     tints that black to our brand teal (#052631). */
  filter: brightness(0) saturate(100%) invert(13%) sepia(36%) saturate(2316%) hue-rotate(166deg) brightness(96%) contrast(98%);
}

/* ---------- Primary nav ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--color-brand-deep);
  color: var(--color-brand-deep);
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle__icon { display: inline-block; margin-right: 0.4em; }

/* Primary nav — baseline alignment ensures every item's text baseline
   sits on the same horizontal line, regardless of whether the item is
   a plain <a> or a button-shaped pill. Line-height is locked to 1
   throughout so no inherited 1.65 from <body> can drift the baseline. */
.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.primary-nav__list > li {
  display: inline-block;
  line-height: 1;
}
.primary-nav__list > li > a { line-height: 1; }
/* Pills inside the primary nav are compact and use the same line-height
   as the plain text links, so the text baseline matches exactly. */
.primary-nav__list .btn {
  display: inline-block;
  text-align: center;
  min-height: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  line-height: 1;
}
.nav__link {
  display: inline-block;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.6rem 0;
  line-height: 1;
  letter-spacing: 0.01em;
  min-height: 36px;
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--color-accent);
}
.nav__link[aria-current="page"],
.nav__link[data-active="true"] {
  color: var(--color-brand-deep);
  /* SC 1.4.1 — pair color with weight so state isn't conveyed by color
     alone, but DO NOT add a border-bottom (that visually pushed the
     active item out of line with the others). */
  font-weight: 700;
  border-bottom-color: transparent;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .primary-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .primary-nav[hidden] { display: none; }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) 0;
  }
  .primary-nav__list li { border-top: 1px solid var(--color-border); }
  .primary-nav__list li:first-child { border-top: 0; }
  .nav__link {
    padding: var(--space-4) clamp(1.25rem, 5vw, 3rem);
    border-bottom: 0;
    width: 100%;
  }
  .nav__link[aria-current="page"] {
    background: var(--color-cream);
    border-bottom: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--primary {
  background: var(--color-brand-deep);
  color: #ffffff;
  border-color: var(--color-brand-deep);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}
.btn--secondary {
  background: transparent;
  color: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-brand-deep);
  color: #ffffff;
}
.btn--accent {
  background: var(--color-accent-deep);
  color: #ffffff;
  border-color: var(--color-accent-deep);
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
}
.btn--ghost-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: #ffffff;
  color: var(--color-brand-deep);
}
.btn--large { font-size: 1.0625rem; padding: 1rem 2rem; min-height: 56px; }

/* ============================================================
   HERO — full-bleed dark, oversized serif, layered offset image
   ============================================================ */
.hero {
  background: var(--color-brand-deep);
  color: #f3ede0;
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -5% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(183,138,44,0.25), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__title { color: #ffffff; margin-bottom: var(--space-5); }
.hero__title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}
.hero__lede {
  color: #d6c8a8;
  font-size: clamp(1.0625rem, 0.8vw + 0.95rem, 1.375rem);
  max-width: 44ch;
  margin-bottom: var(--space-6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--space-5);
}
.hero__trust li { font-weight: 500; color: #f3ede0; }
.hero__trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: #ffd370;
  line-height: 1;
  margin-bottom: 0.25em;
}
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(255, 211, 112, 0.18), transparent 60%),
    var(--color-brand);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero__visual-inner {
  position: absolute;
  inset: 8%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
}
.hero__visual-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffd370;
  margin-bottom: var(--space-3);
}
.hero__visual-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
}
@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 4 / 3; max-width: 32rem; margin-inline: auto; }
}

/* ============================================================
   BOLD STATS strip
   ============================================================ */
.stats {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.stats__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: end;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
  line-height: 0.95;
  color: var(--color-brand-deep);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

/* ============================================================
   SECTION INTROS
   ============================================================ */
.section__intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: var(--space-7);
  align-items: end;
}
.section__intro h2 { margin: 0; }
@media (max-width: 760px) { .section__intro { grid-template-columns: 1fr; } }

/* ============================================================
   SPECIALTY CARDS — magazine grid
   ============================================================ */
.spec-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.spec {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  overflow: hidden;
}
.spec::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  /* SC 1.4.11 — accent-deep clears 3:1 on every spec background */
  background: linear-gradient(90deg, var(--color-accent-deep), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.spec:hover {
  border-color: var(--color-brand-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.spec:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .spec:hover { transform: none; }
}
.spec__index {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--color-accent-deep);
  letter-spacing: 0.04em;
}
.spec__title { font-size: 1.5rem; margin: 0; }
.spec__title a {
  color: var(--color-brand-deep);
  text-decoration: none;
}
.spec__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
}
.spec__title a:hover { color: var(--color-accent-deep); text-decoration: underline; }
.spec__body { color: var(--color-ink-soft); margin: 0; font-size: 0.9375rem; }
.spec__more {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}
/* SC 2.4.13 — focus wraps whole card */
.spec__title a:focus-visible { outline: none; box-shadow: none; }
.spec:has(.spec__title a:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px #ffffff inset, 0 0 0 5px rgba(255, 211, 112, 0.35);
}

/* ============================================================
   PHYSICIANS — editorial two-up
   ============================================================ */
.physician-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  /* Strict 2 × 2 layout — physicians on top row, PAs on second row. */
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .physician-grid { grid-template-columns: 1fr; }
}
.physician {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.section--dark .physician {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #f3ede0;
}
.section--dark .physician__name { color: #ffffff; }
.section--dark .physician__role { color: #d6c8a8; }
.physician__photo {
  /* Square aspect ratio (1:1) — matches the square portrait crops.
     Background is per-photo via the --photo-bg custom property so
     there's no cream flash during loading and no visible seam at the
     photo edge. */
  aspect-ratio: 1 / 1;
  background: var(--photo-bg, linear-gradient(160deg, var(--color-cream-deep), var(--color-cream)));
  position: relative;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.physician__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* For square head-and-shoulders portraits, center keeps the face in the middle */
  object-position: center center;
  display: block;
}
/* fallback placeholder centering when no <img> present */
.physician__photo:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-deep);
  font-weight: 600;
  text-align: center;
  padding: var(--space-6);
}
.section--dark .physician__photo {
  background: linear-gradient(160deg, #0b323f, #052631);
  color: #ffd370;
  border-bottom-color: rgba(255,255,255,0.12);
}
.physician__placeholder { font-size: 0.9375rem; }
.physician__placeholder small {
  color: var(--color-muted);
  display: block;
  margin-top: 0.4em;
  font-size: 0.8125rem;
}
.section--dark .physician__placeholder small { color: #c8b88f; }
.physician__body { padding: clamp(1.5rem, 3vw, 2.25rem); }
.physician__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 1.875rem);
  margin: 0 0 var(--space-2);
  font-weight: 500;
}
.physician__role {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

/* ============================================================
   REVIEWS — magazine pull quote
   ============================================================ */
.reviews {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.review {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  position: relative;
}
.review::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  left: 0.5em;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  /* Decorative quote — accent-deep clears 3:1 on cream/white at full opacity */
  color: var(--color-accent-deep);
  opacity: 0.45;
}
.review__stars {
  color: var(--color-accent-deep);
  margin-bottom: var(--space-2);
  font-weight: 700;
  letter-spacing: 0.18em;
  position: relative;
  z-index: 1;
}
.review__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 var(--space-3);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.review__body {
  color: var(--color-ink-soft);
  margin: 0 0 var(--space-4);
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}
.review__author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  min-height: 56px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent-deep);
  width: 24px;
  text-align: center;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { background: var(--color-cream); }
.faq__item summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: -3px;
}
.faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-ink-soft);
}

/* ============================================================
   LOCATIONS
   ============================================================ */
.locations {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.location {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.section--dark .location {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #f3ede0;
}
.section--dark .location__name { color: #ffffff; }
.section--dark .location address { color: #ede0c6; }
.section--dark .location dt { color: #ffd370; }
.section--dark .location dd { color: #ede0c6; }
.section--dark .location dd a { color: #ffd370; }
.section--dark .location dd a:hover { color: #ffffff; }
.location__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  margin: 0 0 var(--space-2);
  font-weight: 500;
}
.location address {
  font-style: normal;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-4);
  font-size: 1.0625rem;
}
.location dl {
  margin: 0 0 var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-5);
}
.location dt {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.location dd { margin: 0; color: var(--color-ink-soft); }

/* ============================================================
   FORMS
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field__label {
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.9375rem;
}
.field__help { font-size: 0.875rem; color: var(--color-muted); }
.field__required { color: var(--color-error); margin-left: 2px; font-weight: 700; }
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  min-height: 48px;
  width: 100%;
  max-width: 36rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-brand-deep);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 var(--space-6);
}
legend {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0 var(--space-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-brand-deep);
  color: #e9e2cf;
  padding-block: var(--space-9) var(--space-5);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent 50%);
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #ffd370; }
.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-bottom: var(--space-7);
}
.site-footer__heading {
  color: #ffd370;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin: 0 0 var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: var(--space-1) 0; }
.site-footer ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0;
}
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  font-size: 0.9375rem;
  color: #d6cdb3;
  line-height: 1.4;
  /* Previously used justify-content: space-between which created a
     huge gap on 2K+ displays and made the legal links look
     disconnected from the copyright. Now everything is left-aligned
     with one consistent 2rem gap. */
}
.site-footer__legal > * { margin: 0; padding: 0; }
.site-footer__legal p {
  margin: 0;
  line-height: 1.4;
}
.site-footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
.site-footer__legal-nav li {
  line-height: 1.4;
}
.site-footer__legal-nav a {
  display: inline-block;
  line-height: 1.4;
  padding: 0.4rem 0;
  min-height: 32px; /* SC 2.5.8 — touch target */
}

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  background: var(--color-brand-deep);
  color: #ffffff;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.page-header h1 { color: #ffffff; margin: 0; font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); }
.page-header__lede { color: #d6c8a8; margin-top: var(--space-3); max-width: 56ch; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: 0.875rem;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #d6c8a8;
}
.breadcrumbs li + li::before { content: "/"; color: #a5916b; }
.breadcrumbs a { color: #ffd370; }
.breadcrumbs a:hover { color: #ffffff; }

/* ============================================================
   CTA BANNER — cinematic
   ============================================================ */
.cta-banner {
  background:
    radial-gradient(circle at 20% 0%, rgba(183,138,44,0.35), transparent 50%),
    var(--color-brand-deep);
  color: #ffffff;
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw + 0.75rem, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cta-banner .lede { color: #d6c8a8; margin-inline: auto; }
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

/* ============================================================
   PRESS MARQUEE
   ============================================================ */
.press {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.press__label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-deep);
  margin: 0 0 var(--space-4);
  text-align: center;
}
.press__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.press__list li {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1vw + 0.875rem, 1.625rem);
  color: var(--color-brand-deep);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-deep);
  background: #ffffff;
  color: var(--color-brand-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 60;
  transition: background-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.back-to-top:hover {
  background: var(--color-brand-deep);
  color: #ffffff;
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  background: var(--color-brand-deep);
  color: #ffffff;
}
.back-to-top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .back-to-top:hover { transform: none; }
}

/* ============================================================
   Utility helpers
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   MOBILE-NARROW TIGHTENING (<400px)
   ============================================================ */
@media (max-width: 400px) {
  :root { --fs-base: 1rem; }
  .container { padding-inline: 1rem; }
  .hero { padding-block: 2.5rem; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 1rem; }
  .hero__trust strong { font-size: 1.75rem; }
  .site-header__inner { gap: 0.5rem; padding-block: 0.75rem; }
  .brand { font-size: 1rem; }
  .brand__logo { height: 32px; }
  .utility-bar { font-size: 0.8125rem; }
  .utility-bar__inner { gap: 0.5rem; }
  .cta-banner__actions { flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; }
  .back-to-top { width: 48px; height: 48px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat__value { font-size: 2.25rem; }
  .press__list { gap: 1rem 1.5rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .utility-bar, .nav-toggle, .primary-nav, .cta-banner, .site-footer, .back-to-top { display: none; }
  body { color: #000; background: #fff; }
  .hero { background: #fff; color: #000; }
  .hero__title, .section--dark h1, .section--dark h2 { color: #000; }
  .section--dark { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .section, .page-header { padding: 1rem 0; }
}
