/* Fonts are loaded via <link> in each page head (faster than @import). */

/* ============================================================
   Blue Petal Dental — design system
   Palette from the logo: deep navy + gold on warm white.
   Display serif (Cormorant Garamond) + Inter body. One system,
   generous whitespace, hairline borders, restrained accents.
   ============================================================ */

:root {
  --ink: #1c2a39;          /* primary text */
  --muted: #5d6b79;        /* secondary text */
  --navy: #173a64;         /* brand primary */
  --navy-deep: #102b4c;    /* darkest navy */
  --gold: #b08a3e;         /* refined accent */
  --gold-soft: #d7bd86;
  --paper: #fcfbf8;        /* page background (barely warm white) */
  --cream: #f4f0e8;        /* soft panel */
  --mist: #eef3f7;         /* cool soft panel */
  --line: #e8e4da;         /* warm hairline */
  --line-cool: #e2e8ee;
  --white: #ffffff;
  --teal: #5e93a6;         /* from the logo petals — soft glows only */
  --shadow-sm: 0 2px 10px rgba(23, 42, 57, 0.05);
  --shadow: 0 18px 50px rgba(16, 36, 60, 0.10);
  --shadow-lift: 0 14px 34px rgba(16, 36, 60, 0.14), 0 3px 10px rgba(16, 36, 60, 0.07);
  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

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

/* Visible keyboard focus (accessibility) — navy ring, matches the palette */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* Soft brand glows behind the top of every page (teal top-right, gold left) */
  background-image:
    radial-gradient(1000px 520px at 88% -160px, rgba(94, 147, 166, 0.13), transparent 70%),
    radial-gradient(760px 460px at -120px 480px, rgba(176, 138, 62, 0.07), transparent 70%);
  background-repeat: no-repeat;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-soft); color: var(--navy-deep); }

img, iframe { max-width: 100%; }
a { color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin-top: 0;
}

p { margin-top: 0; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--gold); margin: 0 0.6rem 0 0; vertical-align: middle;
}

.text-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}
.text-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  padding: 0.75rem 1rem; background: var(--navy); color: var(--white);
  border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 251, 248, 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 250ms ease;
}
/* Gains a soft shadow once the page scrolls (class set by site.js) */
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(16, 36, 60, 0.08); }

.topbar {
  display: flex; justify-content: center; align-items: center; gap: 2rem;
  padding: 0.5rem 1rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

.nav-shell {
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0.85rem 1.5rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-width: max-content; text-decoration: none;
}
.brand img { height: 90px; width: auto; object-fit: contain; }
/* The logo already contains the wordmark, so hide the duplicate text. */
.brand span { display: none; }

.site-menu { display: flex; justify-content: center; gap: 0.2rem; flex: 1; }
.site-menu a {
  padding: 0.5rem 0.6rem; color: var(--ink); font-size: 0.92rem; white-space: nowrap;
  font-weight: 500; text-decoration: none; border-radius: 999px;
  transition: color 150ms ease, background 150ms ease;
}
.site-menu a:hover { color: var(--gold); background: rgba(176, 138, 62, 0.08); }
.site-menu a.is-active { color: var(--navy); font-weight: 600; }

/* ---------- Buttons ---------- */
.nav-call, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.85rem; padding: 0.78rem 1.6rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
              transform 150ms ease, box-shadow 180ms ease;
}
.nav-call, .button.primary {
  background: linear-gradient(160deg, var(--navy) 10%, var(--navy-deep) 90%);
  color: var(--white); border-color: var(--navy);
}
.nav-call:hover, .button.primary:hover {
  background: var(--navy-deep); border-color: var(--navy-deep);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 43, 76, 0.24);
}
.nav-call:active, .button:active { transform: translateY(0); box-shadow: none; }

.button.secondary {
  background: transparent; color: var(--navy); border-color: var(--gold);
}
.button.secondary:hover {
  background: var(--gold); color: var(--white); border-color: var(--gold);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(176, 138, 62, 0.28);
}

.button.full { width: 100%; margin-top: 0.85rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.6rem; }

.nav-toggle {
  display: none; border: 1px solid var(--line); border-radius: 4px;
  background: var(--white); min-height: 2.6rem; padding: 0 0.9rem;
  font-family: var(--sans); font-weight: 600; cursor: pointer; color: var(--ink);
}
.nav-toggle-label { display: inline-flex; align-items: center; gap: 0.55rem; }
.nav-toggle-label::before {
  content: ""; width: 18px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
}
.nav-toggle[aria-expanded="true"] { color: var(--navy); border-color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
  gap: 4rem; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 4rem;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero h1, .page-hero h1 {
  max-width: 15ch; margin: 0 0 1.2rem;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
  line-height: 1.04; font-weight: 600; color: var(--navy);
}
.hero p, .page-hero p { max-width: 54ch; color: var(--muted); font-size: 1.12rem; }

.hero-media {
  position: relative; align-self: stretch; min-height: 540px;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--mist);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  display: block;
}
.hero-badge {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  background: rgba(255, 255, 255, 0.72); color: var(--navy);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  padding: 0.7rem 1rem; border-radius: 12px;
  font-size: 0.82rem; font-weight: 600; line-height: 1.3;
  box-shadow: var(--shadow-sm);
}

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 1 / -1; gap: 1rem; margin: 0;
}
.hero-facts div {
  padding: 1.1rem 1.25rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hero-facts dt {
  color: var(--gold); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-facts dd { margin: 0.35rem 0 0; color: var(--ink); font-weight: 600; }

/* ---------- Trust strip (pill chips) ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
  max-width: var(--maxw); margin: 0 auto; padding: 0.5rem 1.5rem 0.75rem;
}
.trust-strip span {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.62rem 1.15rem; color: var(--ink); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.trust-strip span::before { content: "\2713"; color: var(--gold); font-weight: 700; }

/* ---------- Section primitives ---------- */
.split-section, .section-block, .location-band, .cta-band,
.content-grid, .contact-grid, .map-section, .all-services {
  max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem;
}

.split-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.split-section h2, .section-heading h2, .cta-band h2,
.rich-content h2, .contact-grid h2 {
  max-width: 22ch; color: var(--navy); margin-bottom: 1rem;
}
.split-section p, .section-heading p, .rich-content p,
.service-card p, .contact-panel p, .side-panel p { color: var(--muted); }

.framed-image {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.framed-image.treatment { aspect-ratio: 1 / 1; height: auto; object-position: center; }
.framed-image.wide { aspect-ratio: 3 / 2; height: auto; }
.rich-content > .framed-image.wide { margin-bottom: 0.5rem; }
.portrait { object-position: center top; }

.section-heading { max-width: 760px; margin: 0 auto 2.8rem; text-align: center; }
.section-heading .eyebrow { display: block; }
.section-heading h2 { margin-left: auto; margin-right: auto; }

.center, .center-row { display: flex; justify-content: center; }
.center-row { margin-top: 2.5rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.insurance-logos { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 3.6rem; text-align: center; }
.insurance-logos-label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin: 0 0 1.5rem; }
.logo-wall { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.logo-chip { flex: 0 0 auto; width: 190px; margin-right: clamp(1.25rem, 3.5vw, 2.75rem); display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 0 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.logo-chip span { font-weight: 600; font-size: 0.98rem; color: var(--navy); letter-spacing: 0.01em; }
.logo-chip img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }
.insurance-logos-note { font-size: 0.92rem; color: var(--muted); margin: 0; }
/* Insurance logo ribbon (auto-scrolling, pauses on hover) */
.logo-marquee { position: relative; overflow: hidden; margin: 0 0 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.logo-track { list-style: none; margin: 0; padding: 0.4rem 0; display: flex; width: max-content;
  animation: credential-run 34s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 1rem 1.5rem; }
  .logo-track .logo-chip { margin-right: 0; }
  .logo-track .logo-chip[aria-hidden="true"] { display: none; }
}
@media (max-width: 760px) { .logo-chip { width: 158px; min-height: 74px; padding: 0 1rem; } .logo-chip img { max-height: 34px; } }

/* Financing options cards */
.finance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.finance-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 2.25rem; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.finance-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); box-shadow: var(--shadow-lift); }
.finance-logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; align-self: flex-start; margin-bottom: 1.5rem; }
.finance-card h3 { margin: 0 0 0.6rem; font-size: 1.35rem; color: var(--navy); }
.finance-card > p { color: var(--muted); margin: 0 0 1.1rem; }
.finance-card ul { margin: 0 0 1.6rem; padding-left: 1.15rem; color: var(--muted); display: grid; gap: 0.4rem; }
.finance-card .button { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .finance-grid { grid-template-columns: 1fr; padding: 0 1.25rem; } .finance-card { padding: 1.75rem; } }

.service-card {
  display: flex; flex-direction: column; min-height: 230px;
  padding: 1.6rem; color: inherit; text-decoration: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover {
  transform: translateY(-5px); border-color: var(--gold-soft); box-shadow: var(--shadow-lift);
}
.service-card .card-more { transition: transform 200ms ease; }
.service-card:hover .card-more { transform: translateX(4px); }
.service-card span {
  color: var(--gold); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.service-card h3 { margin: 0.7rem 0 0.5rem; color: var(--navy); font-size: 1.5rem; }
.service-card .card-more { margin-top: auto; padding-top: 0.6rem; color: var(--gold); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em; text-transform: none; }
.service-card.static { cursor: default; }
.service-card.static:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* ---------- Locations ---------- */
.location-band {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center;
  background: var(--mist); max-width: none;
  padding-inline: max(1.5rem, calc((100vw - var(--maxw)) / 2));
}
.location-band iframe, .map-section iframe {
  width: 100%; min-height: 380px; border: 0; border-radius: var(--radius);
}

.location-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.location-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem; text-decoration: none; color: inherit;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.location-card:hover { transform: translateY(-5px); border-color: var(--gold-soft); box-shadow: var(--shadow-lift); }
.location-card h3 { margin: 0; color: var(--navy); font-size: 1.4rem; }
.location-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Hours ---------- */
.hours-list, .footer-hours { display: grid; gap: 0.4rem; margin: 0 0 1.2rem; }
.hours-list div, .footer-hours div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.hours-list dt { color: var(--navy); font-weight: 600; }
.hours-list dd { margin: 0; color: var(--muted); text-align: right; }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; justify-content: space-between; gap: 2.5rem; align-items: center;
  background:
    radial-gradient(560px 300px at 88% 0, rgba(94, 147, 166, 0.28), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 3.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.cta-band .button.secondary { border-color: var(--gold-soft); color: var(--white); }
.cta-band .button.secondary:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero, .service-hero, .aerial-hero {
  display: flex; align-items: end; min-height: 360px;
  padding: 5rem max(1.5rem, calc((100vw - var(--maxw)) / 2)) 4rem;
  background-color: var(--mist);
  background-image:
    radial-gradient(720px 340px at 85% -40px, rgba(94, 147, 166, 0.18), transparent 70%),
    radial-gradient(520px 300px at 4% 110%, rgba(176, 138, 62, 0.08), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero > div, .aerial-hero > div { position: relative; z-index: 1; max-width: var(--maxw); }
.page-hero.compact { min-height: 280px; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.image-credit { font-size: 0.8rem; color: var(--muted); }

/* ---------- Long-form content ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.rich-content { max-width: 760px; }
.rich-content.narrow { margin: 0 auto; }
.rich-content h2 { margin: 2.4rem 0 0.8rem; font-size: 1.9rem; color: var(--navy); }
.rich-content h3 { margin: 1.8rem 0 0.6rem; font-size: 1.4rem; color: var(--navy); }
.rich-content ul, .rich-content ol, .check-list { padding-left: 1.3rem; line-height: 1.75; }
.rich-content li, .check-list li { margin-bottom: 0.5rem; }

.side-panel, .form-panel, .contact-panel {
  padding: 1.75rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.side-panel.sticky, .side-panel { position: sticky; top: 6rem; }
.side-panel h2, .side-panel h3 { color: var(--navy); }

/* ---------- Principle / step cards ---------- */
.principle-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.principle-card h3 { color: var(--navy); font-size: 1.5rem; margin: 0 0 0.5rem; }

.step-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.step-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; }

/* ---------- Insurance ---------- */
.insurance-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem; max-width: 920px; margin: 0 auto;
}
.insurance-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.1rem 1rem; text-align: center; font-weight: 500;
  color: var(--ink); font-size: 0.95rem;
}

/* ---------- Reviews ---------- */
.review-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.review-card {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-lg);
  padding: 1.75rem; margin: 0; box-shadow: var(--shadow-sm);
}
.review-card p { margin: 0 0 0.9rem; color: var(--ink); font-style: italic; }
.review-card cite { font-style: normal; color: var(--muted); font-size: 0.88rem; font-weight: 600; }

/* ---------- Forms ---------- */
.booking-form { display: grid; gap: 1.1rem; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
label { display: grid; gap: 0.4rem; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line-cool); border-radius: 10px;
  padding: 0.85rem 0.95rem; color: var(--ink); background: var(--white); font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23, 58, 100, 0.12);
}
textarea { resize: vertical; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; }

/* ---------- FAQ ---------- */
.faq { padding-top: 2rem; }
.faq-list details, details {
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.faq-list summary, summary {
  cursor: pointer; color: var(--navy); font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 44px;
}
.faq-list summary::-webkit-details-marker, summary::-webkit-details-marker { display: none; }
.faq-list summary::after, summary::after {
  content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 300;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after, details[open] summary::after { content: "\2212"; }
.faq-list details p, details p { margin: 0.8rem 0 0; color: var(--muted); }

.divider { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.reviewed-by, .disclaimer { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0; }
.disclaimer { font-style: italic; }
.languages { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 1rem; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.footer {
  padding: 4.5rem max(1.5rem, calc((100vw - var(--maxw)) / 2)) 7rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-deep);
}
.footer-grid { display: grid; grid-template-columns: 1.15fr 1.2fr 1.25fr 0.8fr 0.85fr; gap: 2.5rem; }
.footer h2 { margin-bottom: 0.8rem; color: var(--white); font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.footer p, .footer a, .footer li { color: rgba(255, 255, 255, 0.7); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-logo { height: 92px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.78); transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social a:hover { color: var(--navy-deep); background: var(--gold-soft); border-color: var(--gold-soft); }
.footer-hours { font-size: 0.85rem; }
.footer-hours div { border-bottom-color: rgba(255, 255, 255, 0.14); flex-wrap: wrap; gap: 0.1rem 0.6rem; }
.footer-hours dt { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.footer-hours dd { color: rgba(255, 255, 255, 0.62); margin: 0 0 0 auto; white-space: nowrap; text-align: right; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); font-size: 0.9rem;
}
.footer-bottom a { margin-left: 1rem; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-shell { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-menu, .nav-call { display: none; }
  .site-menu.is-open {
    display: grid; flex-basis: 100%; gap: 0.15rem; padding: 0.75rem 0 0.25rem;
  }
  .hero, .split-section, .location-band, .content-grid, .contact-grid {
    grid-template-columns: 1fr; gap: 2.5rem;
  }
  .hero { padding-top: 3rem; }
  .hero-media { min-height: 320px; height: 48vh; max-height: 460px; order: -1; }
  /* Wide tablet crop sits higher on the portrait — nudge down so the smile shows */
  .hero-media img { object-position: center 32%; }
  .card-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .side-panel, .side-panel.sticky { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar { gap: 1rem; font-size: 0.76rem; }
  .topbar span { display: none; }
  .hero { gap: 2rem; padding: 2.4rem 1.25rem 1.5rem; }
  .hero h1, .page-hero h1 { font-size: clamp(2.5rem, 10vw, 3.2rem); }
  .hero-media { min-height: 0; height: 54vh; max-height: 440px; }
  .hero-facts, .card-grid, .field-pair, .footer-grid {
    grid-template-columns: 1fr;
  }
  .trust-strip { gap: 0.55rem; }
  .trust-strip span { font-size: 0.84rem; padding: 0.5rem 0.95rem; }
  .split-section, .section-block, .location-band, .cta-band,
  .content-grid, .contact-grid, .map-section, .all-services { padding: 3.5rem 1.25rem; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 2.5rem 1.5rem; }
  .footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin-left: 0; margin-right: 0.9rem; }
}

/* Mobile sticky call/book bar */
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 0.6rem;
    background: rgba(252, 251, 248, 0.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16, 36, 60, 0.08);
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(10px);
  }
  .mobile-cta-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; padding: 0.8rem; font-weight: 600; font-size: 0.95rem;
    border-radius: 6px; text-decoration: none;
    transition: transform 150ms ease;
  }
  .mobile-cta-btn:active { transform: scale(0.97); }
  .mobile-cta-btn.call { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
  .mobile-cta-btn.book { background: var(--navy); color: var(--white); }
  body { padding-bottom: 4.75rem; }
  .footer { padding-bottom: 6rem; }
}

a, button { -webkit-tap-highlight-color: rgba(23, 58, 100, 0.08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* ---------- Credentials & affiliations ribbon (About) ---------- */
.credentials {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4rem 3rem;
  overflow: hidden;
}
.credentials-logo {
  display: block; width: 150px; height: auto;
  margin: 0 auto 1.6rem;
}
.credentials .section-heading { margin-bottom: 2.6rem; }

/* Running ribbon (auto-scrolling marquee) */
.credential-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.credential-track {
  list-style: none; margin: 0; padding: 0.5rem 0;
  display: flex; width: max-content;
  animation: credential-run 42s linear infinite;
}
.credential-marquee:hover .credential-track,
.credential-marquee:focus-within .credential-track { animation-play-state: paused; }
@keyframes credential-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.credential {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 190px;
  margin-right: clamp(2.5rem, 6vw, 5rem);
}
.credential-seal {
  width: 172px; height: 96px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 0 18px;
  background: var(--white); border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 1.1rem;
}
.credential-seal img { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; }
.seal-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  color: var(--navy); letter-spacing: 0.02em;
}
.credential-name { font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.credential-org { color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin-top: 0.3rem; }

/* Honor reduced-motion: stop the scroll, lay out a tidy centered row */
@media (prefers-reduced-motion: reduce) {
  .credential-marquee { -webkit-mask-image: none; mask-image: none; }
  .credential-track {
    animation: none; width: auto;
    flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: 2.5rem clamp(2rem, 6vw, 5rem); max-width: 960px; margin: 0 auto;
  }
  .credential-track .credential { margin-right: 0; }
  .credential-track .credential[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) {
  .credentials { padding: 2.75rem 1.5rem; }
  .credentials-logo { width: 124px; }
  .credential { width: 170px; }
  .credential-seal { width: 156px; height: 86px; padding: 0 14px; }
  .credential-seal img { max-height: 50px; }
}

/* ============================================================
   Scroll-reveal (classes applied by site.js; removed on settle
   so hover transitions return to normal afterwards)
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.2, 0.65, 0.2, 1),
              transform 650ms cubic-bezier(0.2, 0.65, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- "A note from Dr. Brar" (About) ---------- */
.welcome-note-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem 5.5rem; }
.welcome-note {
  max-width: 720px; margin: 0 auto; padding: 2.4rem 2.6rem;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.welcome-note p:not(.eyebrow) {
  font-family: var(--serif); font-size: 1.32rem; line-height: 1.55;
  color: var(--ink); margin: 0 0 1.1rem;
}
.welcome-note footer { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 640px) { .welcome-note { padding: 1.8rem 1.6rem; } .welcome-note p:not(.eyebrow) { font-size: 1.18rem; } }

/* Short quote from Dr. Brar (home, About-the-practice section) */
.pull-quote {
  margin: 1.5rem 0 0.4rem; padding-left: 1.1rem; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--navy);
}
.pull-quote span {
  display: block; margin-top: 0.45rem;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--muted);
}

/* Form success banner (shown when the engine redirects back with ?sent=1) */
.form-sent {
  margin: 0 0 1.4rem; padding: 1rem 1.25rem;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.form-sent strong { color: var(--navy); }
.form-sent a { font-weight: 600; }
