/* =========================================================
   All Family Care — Design System
   Fonts: Fraunces (display) · Public Sans (body) · IBM Plex Mono (labels)
   ========================================================= */

/* Fonts (Fraunces / Public Sans / IBM Plex Mono) are enqueued via
   wp_enqueue_style() in inc/enqueue.php — not @import'd here, so the
   browser can start fetching them in parallel with this stylesheet
   instead of waiting on this file to parse first. */

:root {
  --teal: #057785;
  --teal-deep: #044A54;
  --teal-darker: #033238;
  --teal-tint: #EAF4F4;
  --teal-tint-2: #DCEEEE;
  --cream: #FBF8F2;
  --cream-2: #F5F0E6;
  --gold: #C98A2B;
  --gold-deep: #A96F1C;
  --gold-text: #8F5D17; /* WCAG AA-compliant (5.61:1 on white) for gold used as text on light backgrounds - --gold-deep only reaches 4.22:1, which fails the 4.5:1 AA threshold for normal text */
  --gold-light: #E8BD70; /* WCAG-compliant (3:1+, the graphical-object threshold) for gold icons on dark teal backgrounds - plain --gold only reaches 1.80:1 on --teal and 2.18:1 on the why-trust icon-wrap's blended background, both real failures */
  --ink: #1E2B2B;
  --ink-soft: #4A5A5A;
  --white: #FFFFFF;
  --border: #E1DED3;
  --error: #B3261E;
  --shadow: 0 20px 50px -25px rgba(3, 50, 56, 0.35);
  --shadow-rest: 0 2px 10px -2px rgba(3, 50, 56, 0.12), 0 1px 3px rgba(3, 50, 56, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  color: var(--teal-darker);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
/* Links inline within body text need a non-color cue too (WCAG 1.4.1) -
   scoped to paragraph context specifically so buttons, nav, and card
   links (already distinguished by their own shape/layout) aren't affected. */
p a { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 5px var(--ink);
  border-radius: 4px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--white), 0 0 0 5px var(--ink); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(169, 111, 28, 0.6);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-deep);
}
.btn-outline:hover { background: var(--teal-tint); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.site-header .btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ---------- Insurance topbar (scrolls away, not sticky) ---------- */
.topbar {
  background: var(--teal);
  color: rgba(255,255,255,0.95);
}
.topbar-inner {
  padding: 8px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  gap: 8px;
}
.topbar-inner span { display: flex; align-items: center; gap: 7px; text-align: center; }
.topbar-inner svg { flex-shrink: 0; color: var(--gold-light); }

/* ---------- Header (2 layers, sticky as one unit) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  box-shadow: 0 1px 0 var(--border);
}

/* Layer 2: logo (bigger) + language/phone/Book Appointment */
.header-main { background: rgba(251, 248, 242, 0.96); backdrop-filter: blur(8px); position: relative; z-index: 20; }
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px clamp(12px, 4vw, 28px);
  max-width: 1180px;
  margin: 0 auto;
  gap: clamp(8px, 3vw, 24px);
  transition: padding 0.2s ease;
}
.site-header.is-scrolled .header-main-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-scrolled .logo-link { max-width: clamp(110px, 32vw, 210px); }
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; max-width: clamp(130px, 40vw, 270px); transition: max-width 0.2s ease; }
.logo-link img { width: 100%; height: auto; }

.header-cta { display: flex; align-items: center; gap: clamp(4px, 1.8vw, 16px); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-darker);
  white-space: nowrap;
}
.header-phone svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.nav-toggle svg { pointer-events: none; }

/* Layer 3: pages navigation, its own row */
.header-nav-row { background: rgba(251, 248, 242, 0.96); border-top: 1px solid var(--border); position: relative; z-index: 10; }
.header-nav-inner {
  padding: 12px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: nowrap; }
.main-nav > a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-darker);
  white-space: nowrap;
}
.main-nav a.active { color: var(--gold-text); }

.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-darker);
  white-space: nowrap;
}
.nav-dropdown .chevron { transition: transform 0.15s ease; }
.nav-dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 260px;
  z-index: 50;
}
/* Invisible hover bridge: covers the 14px gap above the panel so the pointer
   never leaves .nav-dropdown's hoverable area while moving from the "Services"
   link down into the panel. Without this, crossing that gap breaks :hover and
   the panel snaps shut mid-move. */
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.dropdown-panel a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.dropdown-panel a.dropdown-all {
  font-weight: 700;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  margin-bottom: 6px;
  padding-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-nav-row {
    /* Collapsed visually (not display:none) so the absolutely-positioned
       .main-nav dropdown panel nested inside can still render when open. */
    border-top: none;
    height: 0;
    overflow: visible;
  }
  .header-nav-inner { padding: 0; }

  .main-nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 10px 28px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px -20px rgba(3, 50, 56, 0.3);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 90;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .dropdown-panel { display: block; position: static; box-shadow: none; border: none; padding: 4px 0 4px 14px; margin-top: 4px; }
  .nav-dropdown .chevron { display: none; }
}
@media (max-width: 640px) {
  .header-phone span.phone-text { display: none; }
  .topbar-inner { padding: 7px 14px; font-size: 0.72rem; }
}
.header-cta .btn.btn-gold {
  padding: clamp(7px, 2vw, 14px) clamp(10px, 3vw, 26px);
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  box-shadow: 0 6px 18px -6px rgba(169, 111, 28, 0.55);
  font-weight: 700;
}
.cta-short { display: none; }
@media (max-width: 560px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
}
.nav-toggle { padding: clamp(4px, 1.5vw, 8px) clamp(6px, 2vw, 10px); }

/* Hero */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero h1 { margin-bottom: 0.4em; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.hero-lede { font-size: 1.12rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .hero-ctas, .spotlight-ctas { flex-direction: column; }
  .hero-ctas .btn, .spotlight-ctas .btn { width: 100%; }
  .header-cta .btn { white-space: nowrap; }
}

.hero-media { position: relative; }
/* Image-left variant (About page, single-service.php) — flips visual
   order only; the text content stays first in the DOM. */
.hero-image-left .hero-media { order: -1; }
.hero-media .photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-media .photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 340px;
  margin: 0 auto;
  padding: 34px 0;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Sections */
section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-teal { background: var(--teal-tint); }
.section-deep {
  background: var(--teal-deep);
  color: var(--white);
}
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep p { color: rgba(255,255,255,0.78); }
.section-deep .eyebrow { color: var(--white); }
.section-deep .eyebrow::before { background: var(--gold); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Location quick-picker cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.location-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.location-card .card-img { background: var(--teal-tint); }
.location-card-body { padding: 26px 26px 24px; }
.location-card h3 { margin-bottom: 6px; }
.location-card .addr { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.location-card .hours-chip {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  background: var(--teal-tint);
  color: var(--teal-deep);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.card-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Services grid */
/* Provider preview */
.provider-mini {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
}
.avatar-placeholder {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(155deg, var(--teal), var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  flex-shrink: 0;
  position: relative;
}
.avatar-placeholder.lg { width: 200px; height: 200px; font-size: 2.6rem; }

/* Real provider photos — same footprint as the placeholder circles they replace */
.avatar-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-photo-sm { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
img.avatar-photo.size-medium, .doctor-spotlight img.avatar-photo { width: 200px; height: 200px; }


/* Review feed */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--gold-text); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.review-card p { font-style: italic; color: var(--ink); flex-grow: 1; }
.review-footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.85rem;
  flex-shrink: 0;
}
.review-name { font-size: 0.85rem; color: var(--ink); font-weight: 700; font-style: normal; display: block; }
.review-verified {
  font-size: 0.76rem; color: var(--teal-deep); font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}

/* Timeline (About page storytelling) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--teal-tint-2);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--teal-tint-2);
}
.timeline-item h3 { margin-bottom: 6px; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  text-align: center;
  padding: 32px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--teal); }
.value-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--teal-deep);
}

/* Quote block */
.quote-block {
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 26px;
  margin: 30px 0;
}
.quote-block p {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: var(--teal-darker);
  font-style: italic;
  line-height: 1.4;
}
.quote-block cite { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); font-family: 'Public Sans', sans-serif; }

/* Forms */
.form-error-message { color: var(--error); margin-bottom: 20px; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .form-card { padding: 26px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-darker);
  margin-bottom: 7px;
}
.field .req { color: var(--gold-text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 22px; }
.consent-row input { margin-top: 4px; }
.consent-row label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 400; }
.form-success {
  display: none;
  background: var(--teal-tint);
  border: 1px solid var(--teal-tint-2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--teal-deep);
  font-weight: 600;
}
.form-success.show { display: block; }
.form-card form.hide { display: none; }

/* Map embed */
.map-embed {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: var(--radius-md);
  filter: saturate(0.85);
}

/* Footer */
.site-footer {
  background: var(--teal);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.6fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-locations-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 26px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 46px; width: auto; }
.footer-logo img.custom-logo { filter: brightness(0) invert(1); } /* uploaded logos are usually dark-on-transparent; this approximates the same reverse/white treatment the static fallback logo already has, without needing a second upload field */
.footer-brand-col p { color: var(--white); }
.footer-hours { font-size: 0.88rem; margin-top: -4px; }
.footer-emergency {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.15);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
}
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.15s ease;
}
.footer-social a:hover, .footer-social a:focus-visible { background: var(--gold); }

.footer-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 700px) { .footer-locations-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-locations-grid { grid-template-columns: 1fr; } }
.footer-location-item { font-size: 0.88rem; line-height: 1.7; }
.footer-location-item strong { display: block; color: var(--white); margin-bottom: 4px; font-size: 0.92rem; }

/* Page header (interior pages) */
.page-header {
  padding: 56px 0 46px;
  background: var(--teal-tint);
  text-align: center;
}
.page-header .eyebrow { justify-content: center; }
.page-header p { max-width: 60ch; margin: 0 auto; }

/* Utility */
.text-center { text-align: center; }
.stack-gap > * + * { margin-top: 18px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 30px; } }
.rounded-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rounded-photo img { width: 100%; height: 100%; object-fit: cover; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 4px 6px 4px 0;
}

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; background: none; border: none; padding: 0;
  cursor: pointer; font-weight: 600; color: var(--teal-darker);
  font-family: 'Fraunces', serif; font-size: 1.05rem;
}
.faq-question:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.faq-icon { flex-shrink: 0; color: var(--gold-deep); transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(90deg); }
.faq-answer { margin-top: 10px; }
.faq-answer p { margin: 0; }

.callout-band {
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.callout-band h3 { color: var(--white); margin-bottom: 6px; }
.callout-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }


.service-card-lg {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card-lg:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.card-img { position: relative; aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-icon-badge {
  position: absolute;
  bottom: -18px; left: 18px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
}
/* When a card's image slot has no photo, center the badge instead of
   pinning it bottom-left over a photo that isn't there. */
.card-img:not(:has(img)) .card-icon-badge { position: static; margin: 0 auto; }

/* Related Services — image + title cards (single-service.php) */
.related-service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.related-service-card .card-img { width: 100%; height: 200px; aspect-ratio: auto; background: var(--teal-tint); }
.related-service-card .card-img:not(:has(img)) { display: flex; align-items: center; justify-content: center; }
.related-service-card h3 { font-size: 1rem; margin: 18px 16px 20px; color: var(--teal-darker); }

/* Info cards — "What's Included" / "Who This Is For" on single-service.php */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  padding: 28px 24px;
}
.info-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
@media (max-width: 640px) { .info-card { padding: 22px 20px; } }

/* Service page intro heading + paragraph — sits above the What's Included /
   Who This Is For cards, directly under the hero. Nested inside
   .section-head.center, which already handles max-width/centering/bottom
   margin, so this only needs to adjust what's specific to the paragraph
   itself. */
.service-intro-lede { font-size: 1.08rem; }
@media (max-width: 640px) { .service-intro-lede { font-size: 1rem; } }

/* The hero component already has 80px of its own bottom padding — the
   default `section { padding: 80px 0; }` stacking directly on top of that
   (padding never collapses the way margins do) was leaving ~160px of dead
   space before this section's content. Tightened to a single, intentional
   gap instead of two stacked ones. */
.service-intro-section { padding-top: 24px; }

.service-card-lg .card-body { padding: 30px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-lg h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card-lg p { font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.service-card-lg .btn { align-self: flex-start; }

/* ---------- Facility gallery slider (About page) — shows one large
   photo at a time via data-visible="1" on the shared slider JS,
   rather than the services/testimonials 3-up pattern. ---------- */
.facility-gallery-section { padding: 80px 0; }
.facility-gallery .services-slider-track > * { flex: 0 0 100%; }
.gallery-slide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  background: rgba(255,255,255,0.08);
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 28px 20px;
  background: linear-gradient(to top, rgba(3,50,56,0.85), transparent);
  color: var(--white);
  font-size: 0.92rem;
  margin: 0;
}
.facility-gallery .slider-arrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: var(--white); }
.facility-gallery .slider-arrow:hover:not(:disabled) { background: rgba(255,255,255,0.22); }
@media (max-width: 600px) { .gallery-slide { aspect-ratio: 4 / 3; } }

/* ---------- Doctor photo frame — a proper portrait frame that fills its
   column at a fixed aspect ratio, replacing the old small circular avatar
   that floated in a mostly-empty box on both the single-provider page and
   the homepage spotlight. ---------- */
.doctor-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(155deg, var(--teal), var(--teal-deep));
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-photo-img { width: 100%; height: 100%; object-fit: cover; }
.doctor-photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.doctor-photo-placeholder .avatar-placeholder.lg { background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.3); }
.doctor-photo-placeholder .provider-photo-caption { color: rgba(255,255,255,0.75); margin: 0; }
@media (max-width: 860px) { .doctor-photo-frame { max-width: 320px; margin: 0 auto; } }

/* Light-background context (single-provider.php uses .two-col on a plain
   section, not the dark .doctor-spotlight gradient) */
.doctor-card-full .doctor-photo-placeholder .provider-photo-caption { color: var(--ink-soft); }

/* Compact mode — homepage spotlight: tighter body copy, no oversized gap
   between the trimmed teaser and the quote block. */
.doctor-card-compact p { margin-bottom: 0.85em; }

/* Full-width eyebrow + name header above the photo/bio two-col grid,
   spanning the full card width instead of being squeezed into the
   narrow text column next to the photo. */
.doctor-card-full-wrap .eyebrow { margin-bottom: 10px; }
.doctor-card-full-wrap > h1, .doctor-card-full-wrap > h2 { margin-bottom: 28px; }
.doctor-card-full-wrap .two-col { margin-top: 0; }


.doctor-spotlight {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
}
/* Intentionally NOT display:grid here — this box wraps a single child
   (doctor-card.php's own .two-col, a 1fr/1fr grid). Making this element a
   grid too left that lone child auto-placed into column 1 only, leaving
   the second column entirely blank — the "empty right side" bug. Let the
   inner .two-col (already shared with single-provider.php) own the layout;
   this element only supplies the dark gradient background and padding. */
@media (max-width: 860px) { .doctor-spotlight { padding: 34px 26px; text-align: center; } }
.doctor-spotlight h2, .doctor-spotlight h3 { color: var(--white); }
.doctor-spotlight p { color: rgba(255,255,255,0.82); }
.doctor-spotlight .eyebrow { color: var(--white); }
.doctor-spotlight .eyebrow::before { background: var(--gold); }
.doctor-spotlight .doctor-photo-frame { background: rgba(255,255,255,0.1); box-shadow: none; }
.doctor-spotlight .doctor-photo-placeholder .avatar-placeholder.lg { background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.35); }
.provider-photo-caption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 14px; }
.doctor-spotlight .provider-photo-caption { color: rgba(255,255,255,0.7); }
.doctor-spotlight .badge-pill { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: var(--white); }
.doctor-spotlight .quote-block { border-left-color: var(--gold); }
.doctor-spotlight .quote-block p { color: var(--white); }
.doctor-spotlight .quote-block cite { color: rgba(255,255,255,0.7); }
@media (max-width: 860px) { .doctor-spotlight .quote-block { text-align: left; } }
.spotlight-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 860px) { .spotlight-ctas { justify-content: center; } }

/* ---------- Insights ---------- */
.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insight-card-img { position: relative; height: 170px; }
.insight-card-img img { width: 100%; height: 100%; object-fit: cover; }
.insight-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.insight-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--teal-deep);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(3,50,56,0.18);
  position: absolute;
  bottom: 12px;
  left: 14px;
}
.insight-card .insight-date { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; display:block; }
.insight-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.insight-card p {
  font-size: 0.9rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.insight-card a.read-more { font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* Insight article page */
.article-meta { display: flex; gap: 14px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; flex-wrap: wrap; }
.article-body { max-width: 700px; margin: 0 auto; }
.article-body h2 { margin-top: 40px; }
.article-body p { font-size: 1.02rem; }

/* ---------- Form extras: radio pills, fieldsets, member rows ---------- */
.radio-pill-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.radio-pill {
  position: relative;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--cream);
  transition: all 0.15s ease;
}
.radio-pill input:checked + span {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-deep);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 2px; }

.form-fieldset {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
}
.form-fieldset legend {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding: 0 8px;
}
.member-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 700px) { .member-row { grid-template-columns: 1fr 1fr; } }
.member-row input { min-width: 0; width: 100%; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--cream); font-size: 0.88rem; font-family: 'Public Sans', sans-serif; }
/* Grid/flex children must be allowed to shrink below their content's intrinsic width */
.form-row > .field, .member-row > input, .checkbox-grid > .checkbox-item, .radio-pill-group > .radio-pill { min-width: 0; }
.member-row input:focus { outline: none; border-color: var(--teal); background: var(--white); }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
@media (max-width: 560px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); }
.checkbox-item input { margin-top: 3px; }

.form-note {
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--teal-deep);
  margin-bottom: 24px;
}

.grid-hub-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-hub-services { grid-template-columns: 1fr; } }

/* ---------- Help links ("How may we help you?") — icon CTA grid just
   below the hero, styled after the practice's reference design: a
   rounded-square colored icon tile per link, varied tints kept on-brand. ---------- */
.help-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 720px) { .help-links-grid { grid-template-columns: repeat(2, 1fr); } }
.help-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-rest);
  padding: 32px 18px;
  color: var(--teal-darker);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.help-link-card:hover, .help-link-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
  color: var(--teal-darker);
}
.help-link-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.help-link-card:hover .help-link-icon, .help-link-card:focus-visible .help-link-icon {
  transform: scale(1.06);
}
/* Four on-brand tints, rotating per card so the row reads as varied and
   inviting (like the reference) without breaking from the palette. */
.help-link-tint-1 .help-link-icon { background: var(--teal-tint); color: var(--teal-deep); }
.help-link-tint-2 .help-link-icon { background: var(--cream-2); color: var(--gold-deep); }
.help-link-tint-3 .help-link-icon { background: var(--teal-tint-2); color: var(--teal-darker); }
.help-link-tint-4 .help-link-icon { background: #F3E4C8; color: var(--gold-deep); }
.help-link-title { font-weight: 600; font-size: 0.98rem; }
@media (prefers-reduced-motion: reduce) {
  .help-link-card, .help-link-icon { transition: none; }
  .help-link-card:hover, .help-link-card:focus-visible { transform: none; }
}


.stats-strip-section { padding: 0 0 20px; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -50px;
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.stat-item {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.stat-item strong { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--teal-darker); }
.stat-item span { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}
@media (max-width: 500px) { .stats-strip { margin-top: 20px; } }

/* ---------- Card slider (services and testimonials both use this — shows
   exactly 3 at a time, clean not congested — via the shared [data-slider]
   markup pattern). ---------- */
.services-slider { display: flex; align-items: center; gap: 14px; }
.services-slider-viewport { overflow: hidden; flex: 1; min-width: 0; }
.services-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-slider-track > * { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 900px) { .services-slider-track > * { flex: 0 0 calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .services-slider-track > * { flex: 0 0 100%; } }

.slider-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
}
.slider-arrow:hover:not(:disabled) { background: var(--teal-tint); }
.slider-arrow:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 560px) { .slider-arrow { width: 38px; height: 38px; } }

/* ---------- Why Patients Trust (dark section, before doctor spotlight) ---------- */
.why-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .why-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-trust-grid { grid-template-columns: 1fr; } }
.why-trust-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.why-trust-card:hover, .why-trust-card:focus-within {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.13);
  border-color: rgba(232,189,112,0.55);
  box-shadow: 0 20px 45px -20px rgba(0,0,0,0.45), 0 0 0 1px rgba(232,189,112,0.15), 0 0 32px -6px rgba(232,189,112,0.35);
}
.why-trust-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  margin: 0 auto 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.why-trust-card:hover .icon-wrap, .why-trust-card:focus-within .icon-wrap {
  transform: scale(1.1);
  background: rgba(232,189,112,0.22);
}
.why-trust-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.why-trust-card p { color: rgba(255,255,255,0.82); font-size: 0.9rem; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .why-trust-card, .why-trust-card .icon-wrap { transition: none; }
  .why-trust-card:hover, .why-trust-card:focus-within { transform: none; }
}

/* ---------- Partner organization cards ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 800px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 22px; }

/* ---------- Trust badges strip (insurance/review-platform logos) — sits
   right under the stats strip, visual proof for the numbers claimed there. ---------- */
.trust-badges-heading {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.trust-badges-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.trust-badge { display: flex; align-items: center; opacity: 0.75; transition: opacity 0.2s ease; }
.trust-badge:hover, .trust-badge:focus-visible { opacity: 1; }
.trust-badge img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 600px) { .trust-badges-strip { gap: 24px; } .trust-badge img { height: 32px; } }

.partner-card h3 { margin-bottom: 12px; }
.partner-card p { font-size: 0.92rem; margin-bottom: 24px; }

/* ---------- Subtle fade-in on scroll ---------- */
.fade-in-section { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-section.fade-in-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in-section { opacity: 1; transform: none; transition: none; }
  .services-slider-track { transition: none; }
}

/* ---------- Insurance badges component ---------- */
.insurance-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.insurance-badges-label { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal-deep); font-size: 0.9rem; margin-right: 4px; }

/* ---------- Breadcrumbs ---------- */
.afc-breadcrumbs { font-size: 0.82rem; color: var(--ink-soft); padding: 14px 0 0; }
.afc-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.afc-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border); }
.afc-breadcrumbs a { color: var(--teal-deep); font-weight: 600; }
.afc-breadcrumbs span[aria-current] { color: var(--ink-soft); }

/* ---------- Skip link (accessibility) ----------
   Standard visually-hidden-until-focused pattern. Was previously missing
   entirely — the skip-link markup in header.php rendered as permanently
   visible, unstyled text at the top of every page. Found in the v2.8
   production audit. */
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 10px; left: 10px;
	width: auto; height: auto;
	clip: auto;
	z-index: 999999;
	background: var(--teal-darker);
	color: var(--white);
	padding: 12px 20px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Print styles ---------- */
@media print {
	.site-header, .topbar, .site-footer, .nav-toggle, .skip-link,
	.services-slider .slider-arrow, .faq-icon,
	form, .form-success, .afc-hp-website, .btn {
		display: none !important;
	}
	.section-deep, .section-teal, .doctor-spotlight, .hero {
		background: none !important;
		color: #000 !important;
	}
	.section-deep h2, .section-deep h3, .section-deep p,
	.doctor-spotlight h2, .doctor-spotlight h3, .doctor-spotlight p,
	.why-trust-card h3, .why-trust-card p, .stat-value, .stat-label {
		color: #000 !important;
	}
	.why-trust-card, .partner-card, .service-card-lg, .review-card, .location-card {
		border: 1px solid #ccc !important;
		box-shadow: none !important;
		break-inside: avoid;
	}
	.map-embed { display: none !important; }
	a { color: #000 !important; text-decoration: underline; }
	body { background: #fff !important; }
}

/* =========================================================
   DESIGN REFRESH v5.13 — "Warm Clinical Editorial"
   Source of truth: /DESIGN.md (theme root). Everything below is additive
   and lives in this one block so it can be reviewed — or reverted — as
   a unit. Brand tokens (teal / gold / cream, Fraunces / Public Sans /
   IBM Plex Mono) are unchanged; this layer adds depth, rhythm, and fixes
   measured contrast failures.
   ========================================================= */

:root {
  --gold-hover: #D69A35;               /* lifted gold for hover: 5.62:1 with --teal-darker */
  --ink-on-gold: var(--teal-darker);   /* label colour ON gold: 4.72:1 — white on gold is only 2.94:1 (fails WCAG AA) */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 26px 50px -26px rgba(3, 50, 56, 0.42), 0 10px 18px -10px rgba(3, 50, 56, 0.14);
}

::selection { background: var(--gold-light); color: var(--teal-darker); }

/* Balanced line breaks on page/section headings: stops single-word orphans
   (e.g. "…family's / health.") — ignored harmlessly where unsupported.
   Deliberately NOT applied to h3 card titles: balancing shifted their break
   points onto hyphens ("Evidence- / Based, Delivered…"), which reads worse. */
h1, h2, .hero-lede { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Buttons: gold means "book" ---------- */
.btn-gold {
  color: var(--ink-on-gold);
  box-shadow: 0 12px 26px -12px rgba(169, 111, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-gold:hover { background: var(--gold-hover); color: var(--ink-on-gold); }

/* ---------- Eyebrows: symmetric rule on centred headers ---------- */
.section-head.center .eyebrow::after,
.page-header .eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}
.section-deep .section-head.center .eyebrow::after { background: var(--gold); }

/* ---------- Section atmosphere ---------- */
.section-teal {
  background:
    radial-gradient(900px 340px at 50% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    var(--teal-tint);
}
.section-deep {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(232, 189, 112, 0.15), transparent 62%),
    radial-gradient(820px 500px at 108% 118%, rgba(5, 119, 133, 0.55), transparent 60%),
    var(--teal-deep);
}

/* ---------- Hero: warm light + a gold "passe-partout" around the photo ---------- */
.hero {
  background:
    radial-gradient(720px 520px at 90% 35%, rgba(5, 119, 133, 0.11), transparent 65%),
    radial-gradient(520px 380px at 0% 105%, rgba(232, 189, 112, 0.2), transparent 70%);
}
.hero-media .photo-frame {
  box-shadow: var(--shadow-lift);
  outline: 2px solid var(--gold-light);
  outline-offset: 14px;
}

/* ---------- Help-link cards: quiet accent on hover ---------- */
.help-link-card { position: relative; overflow: hidden; }
.help-link-card::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.help-link-card:hover::after, .help-link-card:focus-visible::after { transform: scaleX(1); }

/* ---------- Location cards: rows line up across the three cards ---------- */
.location-card { display: flex; flex-direction: column; }
.location-card-body { display: flex; flex-direction: column; flex: 1; }
.location-card .hours-chip { align-self: flex-start; }
.location-card .card-links { margin-top: auto; padding-top: 4px; }
@media (min-width: 901px) { .grid-3 > .location-card h3 { min-height: 2.3em; } } /* 3-up grids only — the Contact page's single-column list doesn't need the reserved line */

/* ---------- Service cards: gold stays for booking, cards link quietly ---------- */
.service-card-lg .card-body { position: relative; z-index: 1; background: var(--white); }
.service-card-lg .card-icon-badge { z-index: 2; }
.service-card-lg .card-img img { transition: transform 0.6s var(--ease); }
.service-card-lg:hover .card-img img { transform: scale(1.05); }
.service-card-lg .card-body > .btn-gold {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 3px;
  color: var(--teal-deep);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--gold-light);
  transition: box-shadow 0.2s ease, color 0.2s ease;
}
.service-card-lg .card-body > .btn-gold:hover {
  background: transparent;
  color: var(--teal);
  transform: none;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.service-card-lg .card-body > .btn-gold svg { transition: transform 0.2s var(--ease); }
.service-card-lg .card-body > .btn-gold:hover svg { transform: translateX(4px); }

/* ---------- Stats strip ---------- */
.stats-strip { border-top: 3px solid var(--gold-light); }
.stat-item strong { font-size: 1.45rem; }

/* ---------- Why-trust cards ---------- */
.why-trust-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
}
.why-trust-card .icon-wrap { box-shadow: 0 0 0 7px rgba(232, 189, 112, 0.1); }

/* ---------- Partner cards: equal height, CTA anchored, gold top edge ---------- */
.partner-card { position: relative; overflow: hidden; padding-top: 40px; }
.partner-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.partner-card p { flex-grow: 1; }
.partner-card .btn { margin-top: auto; }

/* ---------- Physician spotlight ---------- */
.doctor-card-full div:has(> .badge-pill) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.doctor-card-full .badge-pill { margin: 0; }
.doctor-spotlight .doctor-photo-frame { outline: 2px solid rgba(232, 189, 112, 0.55); outline-offset: 12px; }
.doctor-spotlight .quote-block { position: relative; }
.doctor-spotlight .quote-block::before {
  content: "\201C";
  position: absolute;
  top: -44px; right: 6px;
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(232, 189, 112, 0.32);
  pointer-events: none;
}

/* ---------- Testimonials ---------- */
.review-card {
  position: relative;
  padding: 32px 28px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 8px; right: 22px;
  font-family: 'Fraunces', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--gold-light);
  opacity: 0.6;
  pointer-events: none;
}
.review-stars { color: var(--gold-deep); }
.review-card p {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--teal-darker);
}

/* ---------- Blog cards ---------- */
.insight-card-img { overflow: hidden; }
.insight-card-img img { transition: transform 0.6s var(--ease); }
.insight-card:hover .insight-card-img img { transform: scale(1.05); }
.insight-card h3 { transition: color 0.2s ease; }
.insight-card:hover h3 { color: var(--teal); }

/* ---------- FAQ: each question is its own card ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: var(--teal); box-shadow: var(--shadow-rest); }
.faq-question { padding: 20px 24px; border-radius: var(--radius-md); }
.faq-answer { margin-top: 0; padding: 0 24px 22px; }
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { background: var(--gold-light); }

/* ---------- CTA band: deep teal + gold glow (white-on-gold failed AA at 2.94:1) ---------- */
.callout-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 100%);
  box-shadow: var(--shadow);
}
.callout-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: 22%; top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 189, 112, 0.30), transparent 65%);
  pointer-events: none;
}
.callout-band[style*="background:var(--white)"]::before { display: none; }
.callout-band > * { position: relative; }
/* Overrides the per-instance inline button colours (white button / gold-deep
   text = 4.22:1) so every CTA band button is gold with a passing label. */
.callout-band .btn { background: var(--gold) !important; color: var(--ink-on-gold) !important; }
.callout-band .btn:hover { background: var(--gold-hover) !important; }

/* ---------- Form wrapper (Forminator / third-party shortcode forms) ---------- */
.afc-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}
.afc-form-wrap > h2 { font-size: 1.6rem; }
@media (max-width: 600px) { .afc-form-wrap { padding: 26px 20px; } }

/* ---------- Footer: the h3 headings were unstyled (only h4 was) → dark teal on
   teal, 2.63:1. Same treatment the h4 rule always intended, plus contrast fixes. ---------- */
.site-footer { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%); color: rgba(255, 255, 255, 0.92); }
.site-footer h3 {
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer h3::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--gold-light);
}
.site-footer a { color: rgba(255, 255, 255, 0.92); }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--ink-on-gold); } /* icon on the gold hover fill: white would be 2.94:1 */
.footer-bottom { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 900px) {
  .hero-media .photo-frame { outline-offset: 10px; }
  .doctor-spotlight .doctor-photo-frame { outline-offset: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card-lg .card-img img, .insight-card-img img, .review-card, .help-link-card::after, .faq-icon { transition: none; }
  .service-card-lg:hover .card-img img, .insight-card:hover .insight-card-img img { transform: none; }
  .review-card:hover { transform: none; }
}
@media print {
  .callout-band { background: none !important; box-shadow: none !important; }
  .callout-band::before { display: none; }
  .callout-band h3, .callout-band p { color: #000 !important; }
  .site-footer { background: none !important; }
}
