/* ══════════════════════════════════════════════════════════
   Lumina Dental — Soft-Depth aesthetic
   Palette: periwinkle-navy + magenta-pink + cool porcelain
   Fonts:   Poppins (display) + Inter (sans)
   ══════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand palette */
  --primary:    #2b3a78;
  --secondary:  #2b3a78;
  --accent:     #e84d8a;
  --background: #f5f6fc;
  --surface:    #ffffff;
  --text:       #1c2138;
  --muted:      #6b7088;
  --border:     #e3e5f0;
  --dark:       #161e44;

  /* Fonts */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Shape */
  --radius:    16px;
  --radius-sm:  8px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Layered shadow scale — Soft-Depth signature */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .04), 0 1px 1px rgb(0 0 0 / .03);
  --shadow-md: 0 4px 16px rgb(43 58 120 / .10), 0 2px 6px rgb(43 58 120 / .06);
  --shadow-lg: 0 18px 48px rgb(43 58 120 / .14), 0 6px 16px rgb(43 58 120 / .08);
  --shadow-hero: 0 32px 80px rgb(43 58 120 / .22), 0 8px 24px rgb(43 58 120 / .12);

  /* Motion tokens — Soft-Depth personality (gentle overshoot) */
  --dur-micro:  140ms;
  --dur-ui:     240ms;
  --dur-reveal: 640ms;
  --dur-slow:  1100ms;
  --ease-standard: cubic-bezier(.34, 1.3, .5, 1);
  --ease-out:      cubic-bezier(.22, 1, .36, 1);
  --ease-spring:   cubic-bezier(.34, 1.56, .64, 1);

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem,   0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw,  1.5rem);
  --step-2:  clamp(1.44rem,1.28rem + 0.8vw, 2rem);
  --step-3:  clamp(1.73rem,1.5rem + 1.2vw,  2.66rem);
  --step-4:  clamp(2.07rem,1.7rem + 1.9vw,  3.55rem);
  --step-5:  clamp(2.49rem,1.95rem + 2.7vw, 4.74rem);

  /* Immutable dark band — not overridden by presets */
  --theme-dark-band: #161e44;
  --theme-dark-band-text: rgba(255,255,255,0.85);
  --theme-dark-eyebrow: rgba(232,77,138,0.8);
  --theme-dark-link: rgba(255,255,255,0.6);
  --theme-dark-link-hover: #f9a8cc;
}

/* ── Livewire loading (REQUIRED) ────────────────────────── */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* ── Empty image fallback (REQUIRED) ───────────────────── */
img[src=""],
img:not([src]) { display: none !important; }
img[src$="placeholder.jpg"] { display: none !important; }

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, li { text-wrap: pretty; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 88px 0; }
.section-alt  { background: color-mix(in oklab, var(--primary) 4%, var(--background)); }
.section-dark { background: var(--theme-dark-band); color: var(--theme-dark-band-text); }

/* ── Section header ──────────────────────────────────────── */
.section-header { margin-bottom: 52px; }
.section-header--center { text-align: center; }
.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-eyebrow--light { color: var(--theme-dark-eyebrow); }
.section-subtitle { color: var(--muted); margin-top: 12px; font-size: var(--step-0); }

/* ── Focus & Accessibility ───────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Skip link ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary); color: #fff;
  padding: 8px 16px; z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--dur-ui) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ── Scroll progress ─────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--accent);
  z-index: 10000; width: 0;
  transition: width 0.1s linear;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--background, rgba(245,246,252,.96));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgb(43 58 120 / .10);
}
.header__inner {
  display: flex; align-items: center; gap: 20px; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--primary); flex-shrink: 0;
}
.logo img {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: var(--radius-sm);
}
.logo__name { white-space: nowrap; }

/* Desktop nav — scoped to NOT mobile */
.site-nav:not(.nav__mobile) {
  display: flex; gap: 2px; margin-left: auto;
}
.site-nav-item {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem;
  transition: background var(--dur-micro) var(--ease-standard), color var(--dur-micro) var(--ease-standard);
  color: var(--text);
}
.site-nav-item:hover {
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  color: var(--primary);
}
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: background var(--dur-micro) var(--ease-standard);
  white-space: nowrap;
}
.header__phone:hover {
  background: color-mix(in oklab, var(--primary) 6%, transparent);
}
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); transition: all 0.3s; border-radius: 2px;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px 24px; flex-direction: column; gap: 4px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .08);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text);
  transition: background var(--dur-micro) var(--ease-standard);
}
.nav__mobile a:hover {
  background: color-mix(in oklab, var(--primary) 6%, transparent);
  color: var(--primary);
}
.nav__mobile .btn { margin-top: 8px; justify-content: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  transition: background var(--dur-ui) var(--ease-standard),
              transform var(--dur-ui) var(--ease-spring),
              box-shadow var(--dur-ui) var(--ease-out);
  cursor: pointer; white-space: nowrap; border: 2px solid transparent;
}
.btn--primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(43 58 120 / .30);
}
.btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-2px);
}
.btn--outline {
  border-color: var(--primary); color: var(--primary); background: transparent;
}
.btn--outline:hover {
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  transform: translateY(-1px);
}
.btn--outline-light {
  border-color: rgba(255,255,255,0.4); color: #fff; background: transparent;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
}
.btn--lg { padding: 16px 40px; font-size: 1rem; }
.btn--sm { padding: 8px 20px; font-size: 0.83rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--magnetic { transition: all var(--dur-ui) var(--ease-spring); }

/* ── Hero entrance keyframes ─────────────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; }
}
@keyframes hero-scale-in {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; }
}
@keyframes hero-chip-in {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; }
}
@keyframes appt-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--theme-dark-band);
  color: #fff;
  min-height: 92svh;
  display: flex; align-items: center;
  overflow: hidden;
  position: relative;
}
/* Subtle radial glow behind content */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 50%,
    color-mix(in oklab, var(--primary) 28%, transparent),
    transparent 70%);
  pointer-events: none;
}
.hero__split {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; width: 100%;
  position: relative; z-index: 1;
}
.hero__content {
  display: flex; flex-direction: column; gap: 22px;
}

/* Staggered entrance — only when motion is OK */
@media (prefers-reduced-motion: no-preference) {
  .hero__badge    { animation: hero-fade-up var(--dur-reveal) var(--ease-out) both; }
  .hero__title    { animation: hero-fade-up var(--dur-reveal) var(--ease-out) 80ms both; }
  .hero__subtitle { animation: hero-fade-up var(--dur-reveal) var(--ease-out) 160ms both; }
  .hero__body     { animation: hero-fade-up var(--dur-reveal) var(--ease-out) 220ms both; }
  .hero__stats    { animation: hero-fade-up var(--dur-reveal) var(--ease-out) 300ms both; }
  .hero__cta-group { animation: hero-fade-up var(--dur-reveal) var(--ease-out) 380ms both; }
  .hero__media    { animation: hero-scale-in var(--dur-slow) var(--ease-out) 120ms both; }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  color: #f9a8cc;
  padding: 6px 18px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  width: fit-content;
}
.hero__title {
  font-size: var(--step-5); color: #fff; line-height: 1.1;
  font-weight: 800;
}
.hero__title .title-prefix {
  color: color-mix(in oklab, var(--accent) 70%, #fff);
  display: block;
}
.hero__subtitle { font-size: var(--step-1); color: rgba(255,255,255,0.72); line-height: 1.5; }
.hero__body { color: rgba(255,255,255,0.55); line-height: 1.75; font-size: var(--step-0); }
.hero__stats {
  display: flex; gap: 36px; margin: 4px 0; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 800;
  color: #f9a8cc; line-height: 1;
}
.stat__label { font-size: 0.73rem; color: rgba(255,255,255,0.48); margin-top: 4px; }
.hero__cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero media — the Soft-Depth signature moment */
.hero__media {
  position: relative;
}
.hero__media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  /* Offset drop-shadow for layered depth */
  filter: drop-shadow(0 24px 56px rgb(43 58 120 / .35));
}
.hero__media-card img {
  width: 100%; height: 540px; object-fit: cover; display: block;
}

/* Floating appointment pill — Soft-Depth signature */
.hero__trust-chip {
  position: absolute; bottom: -20px; left: -20px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 2;
}
.hero__trust-chip svg { color: var(--accent); flex-shrink: 0; }

/* Second floating card — availability */
.hero__appt-chip {
  position: absolute; top: 24px; right: -20px;
  display: flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.hero__appt-chip-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__trust-chip { animation: hero-chip-in var(--dur-reveal) var(--ease-spring) 600ms both; }
  .hero__appt-chip  {
    animation: hero-chip-in var(--dur-reveal) var(--ease-spring) 700ms both,
               appt-float 4s var(--ease-out) 1400ms infinite;
  }
}
/* Empty hero media state */
.hero__media.img-empty .hero__media-card {
  min-height: 400px;
  background: color-mix(in oklab, var(--primary) 20%, var(--theme-dark-band));
  border: 2px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}

/* ── CSS scroll-driven reveal ────────────────────────────── */
@keyframes wb-reveal {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; }
}
.reveal { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: wb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
}

/* ── About ───────────────────────────────────────────────── */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: var(--radius-xl); width: 100%; height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about__media-badge {
  position: absolute; bottom: 28px; right: -28px;
  background: var(--accent); color: #fff;
  padding: 18px 22px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-md);
}
.about__media-badge strong {
  display: block; font-size: 1.6rem;
  font-family: var(--font-display);
}
.about__media-badge span { font-size: 0.78rem; opacity: 0.85; }
.about__content { display: flex; flex-direction: column; gap: 18px; }
.about__body { color: var(--muted); line-height: 1.8; }
.about__checklist { display: flex; flex-direction: column; gap: 10px; }
.about__checklist li {
  display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; line-height: 1.5;
}
.about__checklist li::before {
  content: '\2713';
  background: color-mix(in oklab, var(--accent) 15%, var(--background));
  color: var(--accent);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}
.about__media.img-empty {
  min-height: 300px;
  background: color-mix(in oklab, var(--primary) 5%, var(--background));
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border);
}

/* ── Services ─────────────────────────────────────────────── */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
  transform-style: preserve-3d;
  transition: transform var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
  will-change: transform;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
/* Visual variety via nth-child — CSS only, one template row */
.service-card:nth-child(2) {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.service-card:nth-child(3) {
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 20%, var(--border));
}
.service-card__icon {
  width: 54px; height: 54px;
  background: color-mix(in oklab, var(--primary) 10%, var(--background));
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card:nth-child(2) .service-card__icon {
  background: rgba(255,255,255,0.15); color: #fff;
}
.service-card:nth-child(3) .service-card__icon {
  background: color-mix(in oklab, var(--accent) 12%, var(--background));
  color: var(--accent);
}
.service-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
}
.service-card__subtitle {
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.09em;
}
.service-card:nth-child(2) .service-card__subtitle { color: rgba(255,255,255,0.65); }
.service-card__body { color: var(--muted); font-size: 0.9rem; flex: 1; line-height: 1.65; }
.service-card:nth-child(2) .service-card__body { color: rgba(255,255,255,0.75); }
.service-card:nth-child(3) .service-card__body { color: var(--muted); }
.service-card__footer {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto;
}
.service-card__price {
  font-weight: 700; color: var(--primary); font-family: var(--font-display); font-size: var(--step-1);
}
.service-card:nth-child(2) .service-card__price { color: #f9a8cc; }
.service-card:nth-child(3) .service-card__price { color: var(--accent); }
.service-card__cta {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  border-bottom: 1.5px solid var(--primary); padding-bottom: 2px;
  transition: opacity var(--dur-micro) var(--ease-standard);
}
.service-card__cta:hover { opacity: 0.7; }
.service-card:nth-child(2) .service-card__cta { color: #fff; border-color: rgba(255,255,255,0.45); }
.service-card:nth-child(3) .service-card__cta { color: var(--accent); border-color: var(--accent); }

/* ── Service Areas ────────────────────────────────────────── */
.areas__grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.area-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--border);
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: all var(--dur-ui) var(--ease-out);
  cursor: default;
}
.area-chip:hover {
  border-color: var(--primary); color: var(--primary);
  background: color-mix(in oklab, var(--primary) 5%, var(--surface));
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.area-chip svg { color: var(--accent); flex-shrink: 0; }
.area-note { font-size: 0.73rem; color: var(--muted); margin-left: 2px; }

/* ── Certifications ───────────────────────────────────────── */
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 16px;
  transition: background var(--dur-ui) var(--ease-out);
}
.cert-card:hover { background: rgba(255,255,255,0.11); }
.cert-card img {
  width: 48px; height: 48px; object-fit: contain; flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.cert-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cert-card__info strong {
  font-size: 0.9rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cert-card__issuer { font-size: 0.75rem; color: rgba(255,255,255,0.58); }
.cert-card small   { font-size: 0.7rem;  color: rgba(255,255,255,0.4); }

/* ── Before / After Gallery ──────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ba-card {
  background: var(--surface); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out);
}
.ba-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ba-card__images {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
}
.ba-card__side { position: relative; overflow: hidden; }
.ba-card__side img { width: 100%; height: 240px; object-fit: cover; display: block; }
.ba-card__label {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.ba-card__label--before {
  background: color-mix(in oklab, var(--muted) 15%, var(--surface));
  color: var(--muted);
}
.ba-card__label--after {
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  color: var(--accent);
}
.ba-card__divider {
  width: 40px; background: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0; z-index: 1;
}
.ba-card__caption {
  padding: 16px 20px; font-size: 0.875rem; color: var(--muted); text-align: center;
}
.ba-card__side.img-empty { min-height: 140px; background: var(--border); }

/* ── Quote / Appointment ─────────────────────────────────── */
.quote__wrap {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 72px; align-items: start;
}
.quote__info { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.quote__info h2 { color: var(--primary); }
.quote__info p  { color: var(--muted); }
.quote__promises { display: flex; flex-direction: column; gap: 10px; }
.quote__promises li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--muted);
}
.quote__promises li::before { content: '\2713'; color: var(--accent); font-weight: 700; }
.quote__form {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--border);
}

/* ── Form elements ────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 0.9rem;
  background: var(--background); color: var(--text);
  transition: border-color var(--dur-micro) var(--ease-standard),
              box-shadow var(--dur-micro) var(--ease-standard);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 15%, transparent);
}
.form-group textarea { resize: vertical; min-height: 92px; }
.form-group select { cursor: pointer; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  transform-style: preserve-3d;
  transition: transform var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgb(0 0 0 / .22);
  transform: translateY(-3px);
}
.testimonial-card__stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; }
.testimonial-card__quote {
  color: rgba(255,255,255,0.82); font-style: italic; flex: 1; line-height: 1.7;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__author img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid color-mix(in oklab, var(--accent) 40%, transparent);
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.9rem; color: #fff; }
.testimonial-card__author span  { font-size: 0.78rem; color: rgba(255,255,255,0.48); }

/* ── Opening Hours ────────────────────────────────────────── */
.hours__wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; }
.hours__content { display: flex; flex-direction: column; gap: 18px; }
.hours__content p { color: var(--muted); }
.hours__table-wrap {
  background: var(--surface); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table tr[data-item] {
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1.2fr 1.4fr 0.6fr;
  padding: 14px 22px;
  transition: background var(--dur-micro) var(--ease-standard);
}
.hours__table tr[data-item]:last-child { border-bottom: none; }
.hours__table tr[data-item].today-row {
  background: color-mix(in oklab, var(--primary) 6%, var(--background));
}
.hours__table tr[data-item].today-row td:first-child { color: var(--primary); font-weight: 700; }
.hours__table td { font-size: 0.9rem; align-self: center; }
.hours__table td:first-child { font-weight: 600; }
.hours__note { font-size: 0.73rem; color: var(--accent); font-weight: 600; text-align: right; }

/* ── FAQs ────────────────────────────────────────────────── */
.faqs { background: var(--background); }
.faqs .section-header { margin-bottom: 44px; }
.faqs__list {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
  max-width: 800px; margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 26px; text-align: left;
  background: var(--surface); cursor: pointer;
  transition: background var(--dur-micro) var(--ease-standard);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.faq-item__trigger:hover {
  background: color-mix(in oklab, var(--primary) 4%, var(--surface));
}
.faq-item__trigger[aria-expanded="true"] { color: var(--primary); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg); color: var(--primary);
}
.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--dur-ui) var(--ease-spring), color var(--dur-ui) var(--ease-out);
  color: var(--muted);
}
.faq-item__answer {
  padding: 0 26px 20px; color: var(--muted); font-size: 0.9rem;
  line-height: 1.75; background: var(--surface);
}
.faq-item__answer[hidden] { display: none; }

/* ── Contact ─────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.contact__info h2 { color: var(--primary); }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.92rem;
}
.contact__item svg { color: var(--primary); flex-shrink: 0; }
.contact__item a:hover { color: var(--primary); }
.contact__form-wrap {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact__form { display: flex; flex-direction: column; gap: 16px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--theme-dark-band);
  color: var(--theme-dark-band-text);
  padding: 72px 0 28px;
}
/* Closing statement payoff */
.footer__closing {
  text-align: center; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 60px;
}
.footer__closing-heading {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-4); color: #fff;
  text-wrap: balance; margin-bottom: 20px;
}
.footer__closing-heading span { color: #f9a8cc; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--radius-sm); }
.footer__brand p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.65; }
.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.footer__social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.footer__social a:hover { background: var(--accent); color: #fff; }
.footer__links,
.footer__services,
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__links h4,
.footer__services h4,
.footer__contact h4 {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.footer__links a,
.footer__services a {
  font-size: 0.875rem; color: var(--theme-dark-link);
  transition: color var(--dur-micro) var(--ease-standard);
  display: inline-block;
}
.footer__links a:hover,
.footer__services a:hover { color: var(--theme-dark-link-hover); }
.footer__contact p { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer__cta { font-weight: 700; color: #f9a8cc; font-size: 1.1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px; font-size: 0.78rem;
  color: rgba(255,255,255,0.35); text-align: center;
}

/* ── Sticky Mobile CTA ────────────────────────────────────── */
.sticky-mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 800; background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 20px; gap: 10px;
  box-shadow: 0 -4px 24px rgb(0 0 0 / .10);
}
.sticky-mobile-cta__call {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; padding: 13px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
}
.sticky-mobile-cta__quote {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; padding: 13px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
}

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: all var(--dur-ui) var(--ease-spring);
  z-index: 700;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

/* ── data-list reset ─────────────────────────────────────── */
[data-list] { display: contents; }

/* ── CSS Grid + data-list containers ─────────────────────── */
.services__grid > [data-list],
.testimonials__grid > [data-list],
.ba-grid > [data-list],
.certs__grid > [data-list],
.areas__grid > [data-list] { display: contents; }

/* ── GSAP anti-FOUC ──────────────────────────────────────── */
.js-anim { opacity: 0; }

/* ── View transitions ─────────────────────────────────────── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in  .32s ease both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(8px); } }

/* ── Image placeholder empty state helpers ────────────────── */
.testimonial-card__author .img-empty,
.cert-card.img-empty { opacity: 0.5; }

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

/* ── Responsive — 1024px ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__media { display: none; }
  .hero { min-height: 80svh; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__wrap { grid-template-columns: 1fr; gap: 44px; }
  .hours__wrap { grid-template-columns: 1fr; gap: 44px; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ── Responsive — 768px ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav:not(.nav__mobile) { display: none; }
  .header__phone { display: none; }
  .nav__toggle { display: flex; }
  /* One header row on phones: the CTA hands off to the hero, the sticky bar and the menu,
     the toggle pins right, and a long brand name truncates instead of pushing it off-screen. */
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .section-pad { padding: 60px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .sticky-mobile-cta { display: flex; }
  .back-to-top { bottom: 80px; }
  .hero__split { padding: 60px 24px; }
  .quote__form { padding: 28px; }
  .contact__form-wrap { padding: 28px; }
  .footer__closing-heading { font-size: var(--step-3); }
}

/* ── Responsive — 480px ──────────────────────────────────── */
@media (max-width: 480px) {
  /* The sticky bottom bar carries the same Book Appointment link at this width. */
  .header__actions .btn { display: none; }
  .hero__cta-group { flex-direction: column; }
  .hero__cta-group .btn { width: 100%; justify-content: center; }
  .section-pad { padding: 48px 0; }
  .hero { min-height: 72svh; }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* Grid-collapse fix: [data-list] is the WoBooks repeater wrapper. When the
   grid/flex layout lives on the PARENT, the wrapper would otherwise become
   a single grid/flex item and collapse every [data-item] row into one cell.
   display:contents makes the wrapper layout-transparent so each row
   participates in the parent track. Mirrors TemplateSkeletonGenerator so
   converted themes match skeleton/AI-generated themes. (Convention: never
   put the grid/flex container ON the [data-list] element itself.) */
[data-list] { display: contents; }

/* Palette roles, item 53 (BrandColourRoles, 2026-10-06): text on a band filled with a palette brand colour follows the fill; brand-coloured text on a band this theme draws dark keeps a lightness floor. */
.service-card:nth-child(2) .service-card__subtitle { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.service-card:nth-child(2) .service-card__body { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.service-card:nth-child(2) .service-card__price { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --muted: #656a82; /* was #6b7088 */
}
.cert-card small { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
.footer__links h4, .footer__services h4, .footer__contact h4 { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
.footer__bottom { color: oklch(from rgba(255, 255, 255, 0.35) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --accent: #c4286d; /* was #e84d8a */
}

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.section-eyebrow--light { color: oklch(from var(--theme-dark-eyebrow) max(l, 0.821) c h / alpha); }
