/* ============================================
   dental-static template
   Warm clinical-trust LIGHT theme: warm off-white base + real brand green
   + a darkened brand-strong for AA. Re-hued per prospect via deriveLightPalette.
   Type is HARD-LOCKED to Plus Jakarta Sans (display) + Inter (body).
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand (real, verbatim) + derived AA-safe strong + decorative accent */
  --color-brand:        #187038;        /* primary green: eyebrows, icons, large headings, accents */
  --color-brand-strong: #106830;  /* darkened green (AA on light): button fills, links, small green text */
  --color-accent:       #38B850;       /* fresh green, DECORATIVE only: stars, featured tint, hover sheens */
  --color-brand-fg:     #FFFFFF;       /* text on brand/brand-strong fills (white) */
  --color-accent-soft:  rgba(24, 112, 56, 0.08);    /* featured-service tint */

  /* Warm neutral surfaces (a whisper of brand hue, never blue-cold) */
  --color-bg:        #FBFBFB;        /* page base, warm off-white */
  --color-surface:   #F7F8F8;   /* alt bands, cards */
  --color-surface-2: #F2F4F2;  /* monogram bg, nested cards */
  --color-muted:     #EBEEEC;     /* subtle fills */
  --color-border:    #E4E7E5;    /* hairline borders */

  /* Text */
  --color-ink:     #121C16;     /* near-black ink with a faint green-warm cast */
  --color-ink-dim: #4C765F;  /* secondary / captions (AA on the light base) */

  --color-hero-overlay: rgba(24, 112, 56, 0.62); /* brand tint over the hero photo */
  --color-hero-scrim:   rgba(9, 21, 14, 0.55);   /* bottom-up dark gradient for headline legibility */
  --color-footer:       #0C311A;      /* deep brand-ink footer */

  /* Shadows: soft, sparing (light theme) */
  --shadow-sm: 0 1px 2px rgba(15,26,20,0.05);
  --shadow-md: 0 12px 32px -18px rgba(15,26,20,0.22);
  --shadow-lg: 0 28px 64px -28px rgba(15,26,20,0.28);

  /* Typography: Plus Jakarta Sans display, Inter body. No Fraunces/Lora, ever.
     Playfair Display is an ACCENT ONLY: elegant italic serif for the emphasis
     word in headings (never the workhorse display; that stays Plus Jakarta). */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Layout */
  --max-width: 1200px;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand-strong); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-brand); }
button { cursor: pointer; font-family: var(--font-body); }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--color-ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; line-height: 1.1; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.25; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-strong);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}
/* Emphasis word inside a section heading: italic serif in the brand-strong hue,
   the same sophistication cue as the hero accent (used by Meet-the-Provider). */
.section-title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--color-brand-strong);
  letter-spacing: 0;
}

.section-desc {
  color: var(--color-ink-dim);
  font-size: 1.05rem;
  max-width: 620px;
  line-height: 1.7;
}

.section-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}
.section-head-center .section-desc { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand-strong);
  color: var(--color-brand-fg);
}
.btn-primary:hover {
  filter: brightness(1.12);
  color: var(--color-brand-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand-strong);
  border-color: var(--color-brand);
}
.btn-outline:hover {
  background: var(--color-accent-soft);
  color: var(--color-brand-strong);
  transform: translateY(-2px);
}

/* Hero-only outline: white on the photo overlay */
.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  padding: 0.6rem 0;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Real logo lockup. On the transparent-over-hero bar it sits in a light chip so
   a green mark never vanishes against the photo; the chip fades once scrolled. */
.nav-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s, box-shadow 0.25s, padding 0.25s;
}
.nav.scrolled .nav-logo { background: transparent; box-shadow: none; padding: 0; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav.scrolled .nav-logo img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0;
}
/* Over the photo hero (nav not scrolled), links read white for legibility. */
.nav:not(.scrolled) .nav-links a { color: #fff; text-shadow: 0 1px 6px rgba(15,26,20,0.35); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav:not(.scrolled) .nav-phone { color: #fff; text-shadow: 0 1px 6px rgba(15,26,20,0.35); }
.nav-phone:hover { color: var(--color-brand); }
.nav:not(.scrolled) .nav-phone:hover { color: #fff; }

.nav-cta {
  padding: 0.65rem 1.4rem;
  background: var(--color-brand-strong);
  color: var(--color-brand-fg) !important;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.2s;
}
.nav-cta:hover { filter: brightness(1.12); transform: translateY(-1px); color: var(--color-brand-fg) !important; }
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  border-radius: 1px;
  background: var(--color-ink);
  transition: all 0.3s;
}
.nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.open span { background: var(--color-ink); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Brand-gradient fallback when no hero photo is staged */
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, var(--color-hero-scrim) 0%, transparent 55%),
    var(--color-hero-overlay);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 680px; padding: 7rem 0 3rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-md);
}
.hero-badge::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--color-accent);
}

.hero h1 { color: #fff; margin-bottom: var(--space-sm); }
/* Accent word: elegant italic serif (sophistication), kept on one line with a
   soft brand-accent underline so the eye lands on the phrase that matters. */
.hero h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: #fff;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.1em;
  background: var(--color-accent);
  opacity: 0.6;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-lg);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
}
.hero-rating strong { font-family: var(--font-display); font-size: 1.15rem; }
.hero-stars { color: #FFD466; letter-spacing: 0.06em; }
.hero-award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-award svg { width: 18px; height: 18px; color: #FFD466; flex-shrink: 0; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-chip svg { width: 18px; height: 18px; color: #FFD466; flex-shrink: 0; }

/* --- Hero archetypes: split + bandoverlay (fullbleed = the base above) --- */
/* Split: full-bleed two-column — brand-panel content beside a real photo (or a
   bold brand->accent gradient panel when no photo is staged). */
.hero-split { min-height: auto; }
.hero-split .hero-inner {
  max-width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 88vh;
}
.hero-split .hero-content {
  max-width: none;
  padding: clamp(6.5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(155deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-figure {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--color-brand) 0%, var(--color-accent) 100%);
}
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bandoverlay: full-bleed photo + a solid brand CTA band low on the hero. */
.hero-bandoverlay .hero-inner {
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  padding: 7rem 0 clamp(2rem, 5vw, 3.5rem);
}
.hero-bandoverlay .hero-overlay { background: linear-gradient(0deg, var(--color-hero-scrim) 0%, transparent 66%); }
.hero-bandoverlay .hero-content {
  max-width: 900px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Trust / Award strip --- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  padding: 1.15rem clamp(1.25rem, 4vw, 2.5rem);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg { width: 20px; height: 20px; color: var(--color-brand); flex-shrink: 0; }

/* --- Sections --- */
section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  scroll-margin-top: 72px;
}
.about-section { background: var(--color-bg); }
.services-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.provider-section { background: var(--color-bg); }
.credentials-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.firstvisit-section { background: var(--color-bg); }
.team-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.insurance-section { background: var(--color-bg); }
.reviews-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.gallery-section { background: var(--color-bg); }
.visit-section { background: var(--color-bg); }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
.about-text p { color: var(--color-ink-dim); margin-bottom: var(--space-sm); line-height: 1.75; }

.proof-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: var(--space-md);
}
.proof-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.proof-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proof-icon svg { width: 20px; height: 20px; color: var(--color-brand); }
.proof-point strong { display: block; color: var(--color-ink); font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 0.1rem; }
.proof-point span { color: var(--color-ink-dim); font-size: 0.84rem; line-height: 1.5; }

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.service-card {
  position: relative;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-body { display: block; }
.services-section .service-card { background: var(--color-bg); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--color-brand) 35%, var(--color-border)); }
.service-card-featured { border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border)); background: var(--color-accent-soft); }
/* Photo tile: real procedure/service image on top, copy beneath (mirrors the
   winners' procedure tiles). Only when a real image is supplied; text-only cards
   are untouched. */
.service-card-photo { padding: 0; overflow: hidden; }
.service-card-photo .service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-muted); }
.service-card-photo .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card-photo:hover .service-media img { transform: scale(1.04); }
.service-card-photo .service-body { padding: 1.5rem 1.6rem 1.7rem; }
.service-flag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-strong);
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-brand) 30%, var(--color-border));
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
/* Optional brand icon chip (the Peak Function service-grid cue), shown on
   text cards when a real icon is supplied; suppressed on photo cards. */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-brand);
  margin-bottom: 1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card-photo .service-icon { display: none; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-ink-dim); font-size: 0.95rem; line-height: 1.6; }
.service-price {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-brand-strong);
}
.services-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* --- First visit (steps) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.step-card {
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-brand-fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--color-ink-dim); font-size: 0.95rem; line-height: 1.6; }

/* --- Team --- */
.team-award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-brand) 26%, var(--color-border));
  border-radius: 999px;
  color: var(--color-brand-strong);
  font-size: 0.9rem;
  font-weight: 600;
}
.team-award svg { width: 18px; height: 18px; color: var(--color-brand); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.team-photo { flex-shrink: 0; }
.team-photo img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}
.team-monogram {
  flex-shrink: 0;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.02em;
}
.team-body h3 { margin-bottom: 0.15rem; }
.team-role {
  color: var(--color-brand-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.team-body p { color: var(--color-ink-dim); font-size: 0.9rem; line-height: 1.6; }

/* --- Meet the provider (single portrait trust anchor) ---
   A rich brand BAND (the way Wayne Dental Arts / Shafer stage "Meet the Doctor")
   so the practice's face is the dramatic centrepiece: deep brand gradient, a
   framed real portrait with an offset accent frame, white copy + credentials. */
.provider-section {
  background:
    radial-gradient(120% 140% at 12% 0%, color-mix(in srgb, var(--color-brand) 78%, #000 22%) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
  color: #fff;
}
.provider-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.provider-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: color-mix(in srgb, #000 14%, var(--color-brand-strong));
  aspect-ratio: 4 / 4.6;
  z-index: 1;
}
/* Offset accent frame behind the portrait: the framed-portrait cue. */
.provider-media::before {
  content: '';
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  opacity: 0.55;
  z-index: -1;
}
.provider-media img { width: 100%; height: 100%; object-fit: cover; }
.provider-badge {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.provider-badge svg { width: 18px; height: 18px; color: #FFD466; flex-shrink: 0; }
.provider-text .section-label { color: rgba(255,255,255,0.85); }
.provider-text .section-title { color: #fff; margin-bottom: var(--space-sm); }
.provider-text .section-title em { color: #fff; }
.provider-text p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-sm); line-height: 1.75; }
.provider-creds {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.25rem;
  margin: var(--space-md) 0;
}
.provider-creds li { display: flex; align-items: flex-start; gap: 0.55rem; color: #fff; font-size: 0.92rem; line-height: 1.45; }
.provider-creds svg { width: 18px; height: 18px; color: #FFD466; flex-shrink: 0; margin-top: 0.15rem; }
.provider-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-sm); }
.provider-actions .btn-primary { background: #fff; color: var(--color-brand-strong); }
.provider-actions .btn-primary:hover { background: #fff; filter: brightness(0.96); color: var(--color-brand-strong); }
.provider-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.7); }
.provider-actions .btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; }

/* --- Credential / association trust strip --- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1040px;
  margin: 0 auto;
}
.credential-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.credential-card > svg { width: 30px; height: 30px; color: var(--color-brand); flex-shrink: 0; }
.credential-card strong { display: block; color: var(--color-ink); font-family: var(--font-display); font-size: 0.98rem; line-height: 1.25; margin-bottom: 0.1rem; }
.credential-card span { color: var(--color-ink-dim); font-size: 0.82rem; line-height: 1.4; }
/* Real association/board LOGO variant: centered, greyed until hover (like the
   winners badge rows), only when a real logo image is supplied. */
.credential-card-logo { justify-content: center; padding: 1.4rem; }
.credential-card-logo img { max-height: 52px; width: auto; filter: grayscale(1); opacity: 0.72; transition: filter 0.25s, opacity 0.25s; }
.credential-card-logo:hover img { filter: none; opacity: 1; }
.credentials-note { text-align: center; color: var(--color-ink-dim); font-size: 0.88rem; margin-top: var(--space-md); }

/* --- Before / after gallery (aesthetic results) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 980px;
  margin: 0 auto;
}
.gallery-item { margin: 0; }
.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.gallery-ba { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-muted); }
.gallery-ba img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tag {
  position: absolute;
  left: 0.6rem; top: 0.6rem;
  padding: 0.28rem 0.7rem;
  background: color-mix(in srgb, var(--color-footer) 82%, transparent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.gallery-tag-after { background: var(--color-brand-strong); }
.gallery-item figcaption { margin-top: 0.85rem; text-align: center; color: var(--color-ink-dim); font-size: 0.9rem; }
.gallery-note { text-align: center; color: var(--color-ink-dim); font-size: 0.85rem; margin-top: var(--space-md); }

/* --- Insurance / Payment --- */
.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}
.insurance-panel {
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.insurance-panel h3 { margin-bottom: 1rem; }
.insurance-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.insurance-list li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--color-ink-dim); font-size: 0.95rem; }
.insurance-list svg { width: 18px; height: 18px; color: var(--color-brand); flex-shrink: 0; margin-top: 0.2rem; }
.method-marks { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.method-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 68px;
  padding: 0 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.method-mark img { height: 26px; width: auto; }
.method-text { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--color-ink); }
.insurance-note { color: var(--color-ink-dim); font-size: 0.9rem; line-height: 1.6; }

/* --- Reviews --- */
.reviews-section .section-head-center { margin-bottom: var(--space-md); }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.5rem 1.1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-ink-dim);
}
.rating-platform { display: inline-flex; }
.rating-platform svg { width: 20px; height: 20px; display: block; }
.rating-score { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); font-size: 1.15rem; }
.rating-stars { color: #E8A33D; letter-spacing: 0.05em; }

.review-lead {
  max-width: 820px;
  margin: 0 auto var(--space-lg);
  padding: 2rem 2.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.review-lead p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0.5rem 0 0.85rem;
}
.review-lead footer { font-size: 0.9rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.review-card {
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.review-stars { color: #E8A33D; font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.review-card blockquote { color: var(--color-ink); font-size: 0.95rem; line-height: 1.7; margin-bottom: var(--space-sm); }
.review-meta { display: flex; align-items: center; gap: 0.65rem; }
.review-platform { display: inline-flex; flex-shrink: 0; }
.review-platform svg { width: 22px; height: 22px; display: block; }
.review-author { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: 0.9rem; }
.review-source { color: var(--color-ink-dim); font-size: 0.8rem; }

/* --- Book / CTA --- */
.book-section {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
  color: #fff;
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.book-intro .section-label { color: rgba(255,255,255,0.85); }
.book-intro .section-title { color: #fff; }
.book-intro .section-desc { color: rgba(255,255,255,0.9); }
.book-call {
  margin-top: var(--space-md);
  padding: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
}
.book-call p { color: rgba(255,255,255,0.92); margin-bottom: 1rem; font-size: 0.95rem; }
.book-call .btn-primary { background: #fff; color: var(--color-brand-strong); }
.book-call .btn-primary:hover { background: #fff; filter: brightness(0.96); color: var(--color-brand-strong); }

.book-form {
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-dim);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { cursor: pointer; }
.book-submit { width: 100%; margin-top: 0.25rem; }

/* --- Visit / Map --- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}
.visit-details { display: flex; flex-direction: column; gap: 0.75rem; }
.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.visit-detail svg { width: 22px; height: 22px; color: var(--color-brand); flex-shrink: 0; margin-top: 0.1rem; }
.visit-detail strong { display: block; color: var(--color-ink); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.15rem; }
.visit-detail span { color: var(--color-ink-dim); font-size: 0.9rem; line-height: 1.55; }
.visit-detail a { color: var(--color-brand-strong); font-weight: 600; }
.visit-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-md); }
.visit-note { color: var(--color-ink-dim); font-size: 0.88rem; margin-top: var(--space-sm); }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 380px;
}
.map-container iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* --- Page hero (services.html) --- */
.page-hero {
  padding: calc(4.5rem + var(--space-md)) 0 var(--space-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-strong) 100%);
}
.page-hero .section-label { color: rgba(255,255,255,0.85); }
.page-hero .section-title,
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); }
.page-hero .section-desc { color: rgba(255,255,255,0.9); margin: 0 auto; max-width: 620px; }

/* --- Full services page --- */
.full-services-section { padding: var(--space-xl) 0; }
.full-services-category { margin-bottom: var(--space-xl); }
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.category-header h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); white-space: nowrap; }
.category-header .line { flex: 1; height: 1px; background: var(--color-border); }
.full-services-section .services-cta { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.full-services-section .services-cta .section-desc { margin: 0 auto; }
.services-cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: var(--space-sm); }

/* --- Footer --- */
.footer {
  background: var(--color-footer);
  padding: var(--space-xl) 0 var(--space-md);
  color: rgba(255,255,255,0.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-logo {
  height: 52px; width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: var(--space-sm);
}
.footer-brand p { color: rgba(255,255,255,0.72); font-size: 0.88rem; max-width: 300px; line-height: 1.65; }
.footer-tag { margin-top: 0.75rem; color: #fff !important; font-weight: 600; font-size: 0.85rem !important; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact li svg { width: 15px; height: 15px; flex: none; margin-top: 0.2rem; color: rgba(255,255,255,0.85); }
.footer-hours { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-hours-row { display: flex; justify-content: space-between; gap: var(--space-sm); font-size: 0.85rem; color: rgba(255,255,255,0.72); }
.footer-hours-row span:first-child { color: #fff; font-weight: 600; }
.footer-hours-row span:last-child { text-align: right; white-space: nowrap; }
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,26,20,0.5);
  z-index: 250;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  padding: var(--space-md);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
}
.modal-icon svg { width: 28px; height: 28px; color: var(--color-brand); }
.modal h3 { margin-bottom: var(--space-xs); }
.modal p { color: var(--color-ink-dim); margin-bottom: var(--space-md); font-size: 0.92rem; line-height: 1.6; }

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-brand-strong);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.12); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* --- Animations --- */
html.js-anim .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js-anim .fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn:hover, .back-to-top:hover, .service-card:hover, .team-card:hover { transform: none; }
}

/* --- Preview disclosure badge (required on every preview) --- */
.preview-badge {
  position: fixed;
  left: 12px; bottom: 12px;
  z-index: 2000;
  display: inline-flex;
  align-items: stretch;
  background: rgba(15, 26, 20, 0.85);
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.92;
}
.preview-badge:hover, .preview-badge:focus-within { opacity: 1; }
.preview-badge a { display: inline-flex; align-items: center; padding: 7px 10px; text-decoration: none; white-space: nowrap; }
.preview-badge a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.preview-badge-info, .preview-badge-info:hover { color: #fff; }
.preview-badge-cta { background: var(--color-brand); color: #fff; font-weight: 600; }
.preview-badge-cta:hover { background: var(--color-brand-strong); color: #fff; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { right: 0; }
  .nav:not(.scrolled) .nav-links a { color: var(--color-ink); text-shadow: none; }
  .nav-phone { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid,
  .reviews-grid,
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .book-grid,
  .visit-grid,
  .insurance-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .provider-media { max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 3.4; }
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

@media (max-width: 900px) {
  /* Split + bandoverlay collapse to a single column on smaller screens. */
  .hero-split .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-split .hero-content { padding: 7rem clamp(1.5rem, 6vw, 2.5rem) 3rem; }
  .hero-split .hero-figure { order: 2; min-height: 46vh; }
  .hero-bandoverlay .hero-content { max-width: none; }
}

@media (max-width: 620px) {
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 6rem; }
  .hero-split .hero-content { padding-top: 6.5rem; }
  .hero-bandoverlay .hero-inner { min-height: 100svh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .services-grid,
  .reviews-grid,
  .steps-grid,
  .proof-points,
  .provider-creds { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .credential-card { flex-direction: column; text-align: center; gap: 0.5rem; padding: 1.1rem 0.9rem; }
  .form-row { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .visit-detail span br { display: none; }
}
