/* ==========================================================================
   Theme variables (light is the default; night and high contrast override)
   ========================================================================== */
:root {
  --cream: #fdf8f1;
  --sand: #f7ede0;
  --peach: #f4dcc6;
  --warm-white: #fffdf9;
  --warm-end: #f9e8d6;
  --navy: #1b3a7d;
  --brand: #1b3a7d;
  --navy-deep: #12285a;
  --terracotta: #b5541f;
  --terracotta-dark: #983f12;
  --accent-text: #983f12;
  --text: #3a322d;
  --muted: #6b5f57;
  --line: #ecdfd0;
  --faq-bg: #fbf2e6;
  --input-bg: #fff;
  --input-border: #dccbb8;
  --dot: #d8b89c;
  --chip-bg: rgba(255, 253, 249, .9);
  --btn2-bg: rgba(255, 255, 255, .85);
  --on-brand-link: #ffd9bd;
  --error: #b3261e;
  --veil: 253, 248, 241;
  --h1: .96; --h2: .86; --h3: .15;
  --m1: .96; --m2: .88; --m3: .6;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(120, 80, 40, .10);
  --shadow-lg: 0 14px 38px rgba(120, 80, 40, .16);
  --heading-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body-font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  color-scheme: light;
}

/* Night mode: warm, low-glare */
html[data-theme="dark"] {
  --cream: #1d1815;
  --sand: #241d19;
  --peach: #3b2d23;
  --warm-white: #2a221d;
  --warm-end: #2d231c;
  --navy: #b7cbff;
  --brand: #24448f;
  --navy-deep: #0f0c0a;
  --accent-text: #f2a877;
  --text: #efe4d8;
  --muted: #c4b5a6;
  --line: #43372e;
  --faq-bg: #312821;
  --input-bg: #1a1512;
  --input-border: #6b5a4c;
  --dot: #6b5a4c;
  --chip-bg: rgba(42, 34, 29, .9);
  --btn2-bg: rgba(255, 255, 255, .05);
  --error: #ff9c94;
  --veil: 29, 24, 21;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 14px 38px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html[data-theme="dark"] main img { filter: brightness(.9); }

/* High contrast */
html[data-contrast="high"] {
  --cream: #fff;
  --sand: #f1f1f1;
  --peach: #ffe8d4;
  --warm-white: #fff;
  --warm-end: #ffe8d4;
  --navy: #0a1f5c;
  --brand: #0a1f5c;
  --navy-deep: #000;
  --terracotta: #8a3a0e;
  --terracotta-dark: #5e2405;
  --accent-text: #5e2405;
  --text: #000;
  --muted: #1a1a1a;
  --line: #000;
  --faq-bg: #f1f1f1;
  --input-border: #000;
  --dot: #555;
  --chip-bg: #fff;
  --btn2-bg: #fff;
  --error: #8c0000;
  --veil: 255, 255, 255;
  --h1: 1; --h2: .97; --h3: .8;
  --m1: 1; --m2: 1; --m3: .9;
}
html[data-theme="dark"][data-contrast="high"] {
  --cream: #000;
  --sand: #0d0d0d;
  --peach: #2a1a0e;
  --warm-white: #000;
  --warm-end: #1b1009;
  --navy: #b3ccff;
  --brand: #1b3f99;
  --accent-text: #ffc499;
  --terracotta: #a8470f;
  --text: #fff;
  --muted: #f0f0f0;
  --line: #fff;
  --faq-bg: #111;
  --input-bg: #000;
  --input-border: #fff;
  --dot: #bbb;
  --chip-bg: #000;
  --btn2-bg: #000;
  --error: #ffb3ad;
  --veil: 0, 0, 0;
}
html[data-contrast="high"] .card,
html[data-contrast="high"] .service,
html[data-contrast="high"] .faq details,
html[data-contrast="high"] .contact-card,
html[data-contrast="high"] .testimonial,
html[data-contrast="high"] .trust,
html[data-contrast="high"] .chips li,
html[data-contrast="high"] .emergency,
html[data-contrast="high"] .comfort-panel { border: 2px solid var(--line); }
html[data-contrast="high"] a:not(.btn):not(.brand):not(.contact-card) { text-decoration: underline; }
html[data-contrast="high"] :focus-visible { outline: 4px solid var(--accent-text); outline-offset: 3px; }

/* Text size (everything is rem-based, so this scales the whole page) */
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }

/* Calm mode: no moving content at all */
html[data-motion="calm"] *,
html[data-motion="calm"] *::before,
html[data-motion="calm"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="calm"].js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 1.1875rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--accent-text); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--heading-font); color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
.bio-body p, .testimonial p, .faq p, .form-intro { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
html[data-theme="dark"] :focus-visible { outline-color: var(--accent-text); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; left: 12px; top: -80px; background: var(--warm-white); color: var(--navy);
  padding: 12px 18px; border-radius: 8px; z-index: 300; font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Buttons: generous, easy-to-hit targets */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px;
  padding: .7em 1.5em; border-radius: 999px; font: 600 1.0625rem/1.2 var(--body-font);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-lg { min-height: 60px; padding: .9em 1.9em; font-size: 1.15rem; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 4px 14px rgba(181, 84, 31, .3); }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--btn2-bg); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }

/* ==========================================================================
   Header and comfort menu
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(var(--veil), .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { background: rgba(var(--veil), .98); box-shadow: 0 2px 16px rgba(0, 0, 0, .12); }
.header-inner { width: min(1240px, 100% - 32px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-family: var(--heading-font); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand img { border-radius: 10px; }
.site-header a, .site-header button { white-space: nowrap; overflow-wrap: normal; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; align-items: center; }
.nav-list a:not(.btn) {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 8px 14px; text-decoration: none; color: var(--text);
  font-weight: 500; font-size: 1rem; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-list a:not(.btn):hover { background: var(--sand); color: var(--navy); }
.nav-list a[aria-current="true"] { color: var(--navy); background: var(--peach); }
.nav-call-item { display: none; }
.nav-toggle { display: none; }

.comfort-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; cursor: pointer;
  background: var(--warm-white); color: var(--navy); border: 2px solid var(--line); border-radius: 999px; font: 600 1rem var(--body-font);
  transition: border-color .2s, background .2s;
}
.comfort-toggle:hover, .comfort-toggle[aria-expanded="true"] { border-color: var(--navy); }
.comfort-aa { font-family: var(--heading-font); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.comfort-panel {
  position: absolute; top: calc(var(--header-h) + 8px); right: 16px; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  background: var(--warm-white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; z-index: 110;
}
.comfort-panel[hidden] { display: none; }
.comfort-title { font: 600 1.35rem var(--heading-font); color: var(--navy); margin: 0 0 .2em; }
.comfort-sub { font-size: .95rem; color: var(--muted); margin: 0 0 1.2em; line-height: 1.5; }
.fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fieldset legend { padding: 0; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.seg-opt { position: relative; display: block; cursor: pointer; }
.seg-opt > span { height: 100%; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px 6px;
  border: 2px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 1rem; line-height: 1.25; background: var(--input-bg); color: var(--text);
  transition: background .2s, border-color .2s, color .2s;
}
.seg-opt > span small { font-size: .78rem; font-weight: 500; opacity: .85; }
.seg-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.size-a { font-family: var(--heading-font); line-height: 1.1; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; font-weight: 600; color: var(--navy); }
.switch small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.switch input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 56px; height: 32px; margin: 0; border-radius: 999px;
  background: var(--dot); cursor: pointer; transition: background .2s;
}
.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(24px); }
.comfort-reset { width: 100%; margin-top: 12px; min-height: 48px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    linear-gradient(90deg, rgba(var(--veil), var(--h1)) 0%, rgba(var(--veil), var(--h2)) 42%, rgba(var(--veil), var(--h3)) 78%),
    url("images/hero-bg.jpg") center right / cover no-repeat;
}
.hero-inner { width: min(1160px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-text { max-width: 620px; }
.hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
.hero-text > :nth-child(6) { animation-delay: .3s; }
.hero-text > :nth-child(7) { animation-delay: .36s; }
.hero-text > :nth-child(8) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-card {
  margin: 0; position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden;
  background: var(--warm-white); border: 6px solid var(--warm-white); box-shadow: var(--shadow-lg);
  animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.hero-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; color: #fff; text-align: center;
  background: linear-gradient(0deg, rgba(18, 40, 90, .94), rgba(18, 40, 90, 0));
  display: flex; flex-direction: column; line-height: 1.35;
}
.hero-card figcaption strong { font-family: var(--heading-font); font-size: 1.2rem; }
.hero-card figcaption span { font-size: .95rem; opacity: .95; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700; color: var(--accent-text); margin-bottom: 1em; }
.hero h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.2rem); margin-bottom: .45em; }
.lead { font-size: 1.3rem; line-height: 1.65; color: var(--text); }
.reassure { font-family: var(--heading-font); font-size: 1.3rem; color: var(--navy); font-weight: 600; margin-top: 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0 1.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--chip-bg); border: 1px solid var(--line); color: var(--navy);
  padding: .35em 1em; border-radius: 999px; font-size: .95rem; font-weight: 500;
}

/* Emergency notice: calm but unmistakable */
.emergency {
  display: flex; gap: 12px; align-items: flex-start; background: var(--warm-white); border: 1px solid var(--line); border-left: 6px solid var(--terracotta);
  border-radius: 12px; padding: 12px 16px; margin-top: 22px; font-size: 1rem; line-height: 1.5; max-width: 560px; color: var(--text);
}
.emergency .icon { width: 24px; height: 24px; color: var(--accent-text); margin-top: 1px; }
.emergency p { margin: 0; }
.form-emergency { max-width: none; margin: 24px 0 0; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: 24px 0; }
.section-tint { background: var(--sand); }
.section-warm { background: linear-gradient(180deg, var(--peach), var(--warm-end)); }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: .25em; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--terracotta); margin: .5em auto 0; }
.section-sub { color: var(--muted); font-size: 1.15rem; margin: .6em auto 0; max-width: 60ch; }

.card { background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Quick facts strip, overlapping the hero */
.trust {
  position: relative; z-index: 2; margin-top: -44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 16px;
}
.trust li { display: flex; align-items: center; gap: 14px; padding: 4px 14px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--peach); color: var(--accent-text); }
.trust strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.trust span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.35; }

/* Team */
.team { display: grid; gap: 32px; max-width: 1040px; margin-inline: auto; }
.bio-body { padding: clamp(22px, 3vw, 36px); }
.bio-body h3 { margin-bottom: .7em; }
.bio-label { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent-text); margin-bottom: .6em; }

/* Dr. Shah: the featured profile */
.bio-primary { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; box-shadow: var(--shadow-lg); border-color: var(--peach); }
.bio-primary .bio-photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 20%; }
.bio-primary .bio-body { padding: clamp(28px, 4vw, 52px); }
.bio-primary h3 { font-size: clamp(1.7rem, 2vw + 1rem, 2.2rem); }

/* Dolores: a smaller, supporting profile */
.bio-secondary { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; width: min(100%, 760px); margin-inline: auto; padding: 24px 28px; background: var(--sand); box-shadow: none; }
.bio-secondary .bio-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid var(--warm-white); box-shadow: var(--shadow); }
.bio-secondary .bio-body { padding: 0; }
.bio-secondary h3 { font-size: 1.25rem; margin-bottom: .5em; }
.bio-secondary p:not(.bio-label) { font-size: 1rem; line-height: 1.65; }
.bio-secondary p:last-child { margin-bottom: 0; }
.edu li { position: relative; padding-left: 1.6em; margin-bottom: .7em; }
.edu li::before { content: ""; position: absolute; left: .15em; top: .7em; width: .6em; height: .6em; border-radius: 50%; background: var(--terracotta); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service {
  background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service h3 { font-size: 1.25rem; padding: 18px 20px 22px; margin: 0; }

/* Insurance */
.insurance {
  display: flex; align-items: center; gap: 24px; background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px) clamp(24px, 5vw, 56px); box-shadow: var(--shadow-lg); margin-block: 24px;
}
.insurance h2 { color: #fff; font-size: 1.6rem; margin-bottom: .2em; }
.insurance p { margin: 0; font-size: 1.3rem; }
.insurance .insurance-note { font-size: 1rem; margin-top: .6em; opacity: .95; }
.insurance a { color: var(--on-brand-link); }
.insurance a:hover { color: #fff; }
.insurance-icon { width: 64px; height: 64px; flex: none; color: #ffcba4; }

/* Carousels */
.round-btn {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--navy); cursor: pointer;
  background: var(--warm-white); color: var(--navy); display: grid; place-items: center; padding: 0;
  transition: background .2s, color .2s;
}
.round-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.round-btn .icon { width: 26px; height: 26px; }

.carousel { display: flex; align-items: center; gap: 16px; }
.carousel:focus-visible { outline-offset: 8px; }
.carousel-viewport { flex: 1; display: grid; touch-action: pan-y; }
.testimonial {
  grid-area: 1 / 1; margin: 0; position: relative; background: var(--warm-white); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .5s, transform .5s, visibility .5s;
}
.testimonial.active { opacity: 1; visibility: visible; transform: none; }
.quote-mark { width: 44px; height: 44px; color: var(--dot); margin-bottom: 8px; }
.testimonial p { font-size: 1.15rem; font-family: var(--heading-font); line-height: 1.8; }
.testimonial cite { display: flex; align-items: center; gap: 12px; font: 700 1.05rem var(--body-font); color: var(--accent-text); margin-top: 1.4em; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1.1rem var(--heading-font); flex: none; }

.dots { display: flex; justify-content: center; gap: 2px; margin-top: 20px; }
.dots button { width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); transition: transform .2s, background .2s; }
.dots button.active::before { background: var(--navy); transform: scale(1.35); }

.slideshow { position: relative; border-radius: var(--radius); overflow: hidden; background: #2a2420; box-shadow: var(--shadow-lg); aspect-ratio: 2 / 1; max-height: 600px; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 253, 249, .92); color: #1b3a7d; border-color: #1b3a7d; }
.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }
.slide-pause {
  position: absolute; left: 16px; bottom: 16px; min-width: 56px; height: 48px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(30, 20, 15, .72); color: #fff; display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--body-font);
}
.slide-pause:hover { background: rgba(30, 20, 15, .92); }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; pointer-events: none; }
.slide-dots button { pointer-events: auto; }
.slide-dots button::before { background: rgba(255, 255, 255, .65); }
.slide-dots button.active::before { background: #fff; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq details { background: var(--warm-white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  padding: 16px 22px; font-weight: 600; color: var(--navy); font-size: 1.125rem; transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { background: var(--faq-bg); }
.faq summary .icon { width: 26px; height: 26px; color: var(--accent-text); transition: transform .3s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 4px 22px 22px; background: var(--faq-bg); max-width: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-card {
  height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .3s, box-shadow .3s;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.contact-card .icon { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--peach); color: var(--accent-text); margin-bottom: 10px; }
.contact-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.contact-value { font-weight: 600; font-size: 1.1rem; color: var(--navy); overflow-wrap: break-word; }
.contact-actions { display: flex; justify-content: center; margin-top: 28px; }

.contact-form { max-width: 680px; margin: 40px auto 0; padding: clamp(24px, 4vw, 40px); }
.contact-form h3 { margin-bottom: .3em; }
.form-intro { color: var(--muted); margin-bottom: 1.4em; }
.field { margin-bottom: 20px; }
.field label, .contact-form .fieldset legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.req { color: var(--accent-text); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--input-bg); border: 2px solid var(--input-border); border-radius: 12px;
  min-height: 56px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 58, 125, .2); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field textarea:focus, html[data-theme="dark"] .field select:focus { box-shadow: 0 0 0 4px rgba(183, 203, 255, .25); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 1rem; font-weight: 600; margin: 6px 0 0; }
.field-error:empty { display: none; }
.form-note { font-size: .95rem; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #e9e2d8; padding: 48px 20px 24px; font-size: 1rem; }
.site-footer a { color: var(--on-brand-link); text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { width: min(1160px, 100%); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { border-radius: 12px; flex: none; }
.footer-brand strong { font-family: var(--heading-font); font-size: 1.25rem; color: #fff; }
.footer-brand p { margin: .3em 0 0; opacity: .9; line-height: 1.5; }
.site-footer ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.site-footer address { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.site-footer address a { overflow-wrap: anywhere; }
.footer-inner > * { min-width: 0; }
.footer-emergency { width: min(1160px, 100%); margin: 28px auto 0; font-weight: 600; text-align: center; color: #fff; }
.footer-copy { width: min(1160px, 100%); margin: 20px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); text-align: center; font-size: .9rem; opacity: .85; }

/* Floating helpers */
.mobile-call { display: none; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; display: grid; place-items: center; padding: 0; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--terracotta); }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--terracotta), #e08a52); transform: scaleX(0); transform-origin: left; }

/* Scroll reveal (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tight header (set by JS when the full nav does not quite fit) */
.tight-nav .nav-list a:not(.btn) { padding: 8px 9px; font-size: .95rem; }
.tight-nav .brand span { font-size: 1.05rem; }
.tight-nav .header-call span, .tight-nav .comfort-label { display: none; }
.tight-nav .header-call { padding: .7em .9em; }

/* Compact header (set by JS on small screens or whenever the nav would not fit, e.g. with large text) */
.compact-nav { --header-h: 64px; }
.compact-nav .header-call { display: none; }
.compact-nav .nav { margin-left: 0; }
.compact-nav .comfort { margin-left: auto; }
.compact-nav .comfort-label { display: none; }
.compact-nav .comfort-toggle { width: 52px; height: 52px; padding: 0; justify-content: center; }
.compact-nav .brand span { white-space: normal; line-height: 1.15; }
.compact-nav .nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; flex: none;
  width: 52px; height: 52px; padding: 14px 12px; background: var(--warm-white); border: 2px solid var(--line); border-radius: 14px; cursor: pointer;
}
.compact-nav .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.compact-nav .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.compact-nav .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.compact-nav .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.compact-nav .nav-list {
  position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--cream); padding: 12px 16px 20px; box-shadow: 0 14px 24px rgba(0, 0, 0, .18); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
}
.compact-nav .nav-list.open { visibility: visible; opacity: 1; transform: none; }
.compact-nav .nav-list a:not(.btn) { padding: 14px 16px; min-height: 52px; font-size: 1.1rem; }
.compact-nav .nav-call-item { display: block; margin-top: 8px; }
.compact-nav .nav-call-item .btn { width: 100%; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero {
    background:
      linear-gradient(180deg, rgba(var(--veil), var(--m1)) 0%, rgba(var(--veil), var(--m2)) 60%, rgba(var(--veil), var(--m3)) 100%),
      url("images/hero-bg.jpg") 70% center / cover no-repeat;
    padding-bottom: 64px;
  }
  .bio-primary { grid-template-columns: 1fr; }
  .bio-primary .bio-photo { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .bio-secondary { grid-template-columns: 96px 1fr; gap: 18px; padding: 20px; }
  .bio-secondary .bio-photo { width: 96px; height: 96px; }
  .trust { grid-template-columns: 1fr 1fr; margin-top: -32px; row-gap: 16px; }
  .trust li:nth-child(3) { border-left: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; padding-bottom: 76px; }
  .brand span { font-size: 1.05rem; }
  .lead, .reassure { font-size: 1.15rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: 1fr; padding: 12px 8px; }
  .trust li { padding: 8px 12px; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--line); }
  .insurance { flex-direction: column; text-align: center; }
  .faq summary { font-size: 1.05rem; padding: 14px 16px; }
  .faq details p { padding: 4px 16px 18px; }
  .carousel { position: relative; gap: 8px; margin-bottom: 72px; }
  .carousel .round-btn { position: absolute; z-index: 2; width: 52px; height: 52px; bottom: -68px; }
  .carousel .prev { left: calc(50% - 64px); }
  .carousel .next { right: calc(50% - 64px); }
  .dots#testimonialDots { display: none; }
  .slideshow { aspect-ratio: 4 / 3; }
  .slide-btn { width: 48px; height: 48px; }
  .seg { grid-template-columns: 1fr 1fr 1fr; }
  .mobile-call {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 64px; padding: 16px; background: var(--terracotta); color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
  }
  .mobile-call:hover { background: var(--terracotta-dark); color: #fff; }
  .to-top { bottom: 84px; right: 14px; }
}

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

@media print {
  .site-header, .mobile-call, .to-top, .slide-btn, .slide-pause, .dots, .progress, .contact-form { display: none !important; }
  .hero { min-height: 0; background: none; padding-top: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
