/* ═══════════════════════════════════════════════════════════════
   Aurelia Dental — Dark-Luxe / Editorial
   Espresso near-black + champagne gold + warm ivory
   Cormorant Garamond display · Inter body
   ═══════════════════════════════════════════════════════════════ */

/* ── 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; }

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Canonical palette — overridden by runtime presets */
  --primary:     #15120f;
  --secondary:   #15120f;
  --accent:      #c9a45c;
  --background:  #f7f3ec;
  --surface:     #ffffff;
  --text:        #211d18;
  --muted:       #7a7165;
  --border:      #e6ded0;

  /* Immutable design constants — NOT overridden by runtime */
  --theme-dark-band:   #0b0907;
  --theme-gold-trim:   #c9a45c;
  --theme-gold-pale:   #e8d5a3;
  --theme-ivory-mid:   #f0e9de;
  --theme-espresso:    #15120f;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  /* Shape */
  --radius:    4px;
  --radius-sm: 2px;
  --radius-lg: 8px;

  /* Fluid type scale */
  --step--1: clamp(0.8rem,  0.77rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem,    0.95rem + 0.25vw, 1.1rem);
  --step-1:  clamp(1.15rem, 1.05rem + 0.5vw,  1.4rem);
  --step-2:  clamp(1.4rem,  1.2rem  + 0.9vw,  2rem);
  --step-3:  clamp(1.8rem,  1.45rem + 1.6vw,  2.8rem);
  --step-4:  clamp(2.2rem,  1.7rem  + 2.5vw,  3.8rem);
  --step-5:  clamp(2.8rem,  2rem    + 3.8vw,  5.5rem);

  /* Shadow scale — Deep, multi-stop */
  --shadow-sm: 0 1px 3px rgb(0 0 0 / .10), 0 1px 2px rgb(0 0 0 / .06);
  --shadow-md: 0 4px 16px rgb(0 0 0 / .12), 0 2px 6px rgb(0 0 0 / .08);
  --shadow-lg: 0 16px 48px rgb(0 0 0 / .18), 0 6px 16px rgb(0 0 0 / .10);

  /* Motion tokens — Dark-Luxe: slow, cinematic */
  --dur-micro:  150ms;
  --dur-ui:     260ms;
  --dur-reveal: 820ms;
  --dur-slow:  1300ms;
  --ease-standard: cubic-bezier(.16, 1, .3, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
}

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

/* ── Hero Ken-Burns / scale drift (signature moment) ───────── */
@keyframes ken-burns {
  from { transform: scale(1)    translateX(0)      translateY(0); }
  to { transform: scale(1.07) translateX(-1.5%)  translateY(-1%); }
}
@keyframes hero-img-entrance {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Scroll-driven reveals (CSS-first, zero JS) ────────────── */
@keyframes wb-reveal {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; }
}
@keyframes wb-reveal-left {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; }
}
@keyframes kinetic-rise {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to { clip-path: inset(0 0 0% 0);   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%;
    }
    .reveal-left {
      animation: wb-reveal-left linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
    .reveal-stagger > * {
      animation: wb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
      animation-delay: calc(var(--i, 0) * 80ms);
    }
    .kinetic-rise {
      animation: kinetic-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }
}

/* ── 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; }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section-pad { padding: 96px 0; }

/* Section background rhythm */
.section-alt  { background: var(--theme-ivory-mid); }
.section-dark { background: var(--theme-dark-band); color: rgba(255,255,255,.88); }

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

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-gold-trim);
  margin-bottom: 14px;
}
.section-eyebrow--light { color: var(--theme-gold-pale); }

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-subtitle { color: var(--muted); margin-top: 14px; font-size: var(--step-0); }

/* Thin gold rule divider */
.gold-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--theme-gold-trim);
  margin-bottom: 16px;
}

/* ── Focus & Accessibility ─────────────────────────────────── */
:focus-visible { outline: 1px solid var(--theme-gold-trim); outline-offset: 3px; }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -44px; left: 0;
  background: var(--theme-gold-trim); color: var(--theme-espresso);
  padding: 10px 18px; z-index: 1100;
  transition: top var(--dur-ui) var(--ease-standard);
  font-size: var(--step--1); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Scroll progress ───────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--theme-gold-trim);
  z-index: 10000; width: 0;
  transition: width .1s linear;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--background, rgba(247,243,236,.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-ui) var(--ease-standard);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgb(0 0 0 / .08); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--text); flex-shrink: 0; letter-spacing: .01em;
}
.logo img { width: 34px; height: 34px; object-fit: contain; }
.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;
  font-size: 0.83rem; font-weight: 500; letter-spacing: .03em;
  color: var(--muted);
  transition: color var(--dur-micro) var(--ease-standard);
  position: relative;
}
.site-nav-item::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 1px;
  background: var(--theme-gold-trim); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.site-nav-item:hover { color: var(--text); }
.site-nav-item:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--border);
  transition: color var(--dur-micro) var(--ease-standard), border-color var(--dur-micro) var(--ease-standard);
  white-space: nowrap;
}
.header__phone:hover { color: var(--text); border-color: var(--theme-gold-trim); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav__toggle span {
  display: block; width: 20px; height: 1px;
  background: var(--text);
  transition: all var(--dur-ui) var(--ease-standard);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile { display: none; }
.nav__mobile.open {
  display: flex;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px; flex-direction: column; gap: 4px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .08);
  z-index: 800;
}
.nav__mobile a {
  padding: 12px 0; font-size: 0.9rem; font-weight: 500;
  color: var(--muted); border-bottom: 1px solid var(--border);
  transition: color var(--dur-micro) var(--ease-standard);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--text); }
.nav__mobile .btn { margin-top: 12px; justify-content: center; border-bottom: none; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase;
  transition: all var(--dur-ui) var(--ease-out);
  cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--theme-espresso); color: rgba(255,255,255,.9);
  border-color: var(--theme-espresso);
}
.btn--primary:hover {
  background: var(--theme-dark-band);
  border-color: var(--theme-gold-trim);
  color: var(--theme-gold-pale);
}
.btn--gold {
  background: var(--theme-gold-trim); color: var(--theme-espresso);
  border-color: var(--theme-gold-trim);
}
.btn--gold:hover {
  background: transparent; color: var(--theme-gold-trim);
}
.btn--outline {
  border-color: currentColor; color: var(--text); background: transparent;
}
.btn--outline:hover { border-color: var(--theme-gold-trim); color: var(--theme-gold-trim); }
.btn--outline-light {
  border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.85); background: transparent;
}
.btn--outline-light:hover { border-color: var(--theme-gold-pale); color: var(--theme-gold-pale); }
.btn--lg { padding: 16px 40px; font-size: 0.82rem; }
.btn--sm { padding: 9px 20px; font-size: 0.75rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--magnetic { transition: all var(--dur-ui) var(--ease-out); }

/* ══════════════════════════════════════════════════════════════
   HERO — Editorial Dark-Luxe Signature Moment
   Large serif headline + thin vertical gold accent line
   Gold-thin-framed image card + CSS Ken-Burns drift
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--theme-dark-band);
  color: rgba(255,255,255,.9);
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  position: relative;
}
/* Subtle grain on dark hero */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__split {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; width: 100%;
  position: relative; z-index: 1;
}
.hero__content {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
/* Thin vertical gold accent line — signature editorial move */
.hero__content::before {
  content: '';
  position: absolute; left: -32px; top: 8px;
  width: 2px; height: 80px;
  background: linear-gradient(to bottom, var(--theme-gold-trim), transparent);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--theme-gold-trim);
  font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__badge::before {
  content: '';
  display: inline-block; width: 24px; height: 1px;
  background: var(--theme-gold-trim);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: rgba(255,255,255,.96);
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero__title .title-prefix {
  display: block;
  font-style: italic;
  color: var(--theme-gold-trim);
  font-size: 0.72em;
  font-weight: 400;
  margin-bottom: 4px;
}

.hero__subtitle {
  font-size: var(--step-1);
  color: rgba(255,255,255,.55);
  font-family: var(--font-display);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.4;
}
.hero__body {
  font-size: var(--step--1);
  color: rgba(255,255,255,.4);
  line-height: 1.8;
  margin-bottom: 32px;
  letter-spacing: .01em;
}

.hero__stats {
  display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--theme-gold-trim);
  line-height: 1;
}
.stat__label {
  font-size: 0.68rem; color: rgba(255,255,255,.35);
  letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--font-sans); font-weight: 500;
}

.hero__cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero image — gold-thin-framed card + Ken-Burns */
.hero__media {
  position: relative;
}
.hero__media-frame {
  position: relative;
  border: 1px solid var(--theme-gold-trim);
  padding: 12px;
  overflow: hidden;
}
.hero__media-frame::before {
  /* thin gold corner accent lines */
  content: '';
  position: absolute; inset: 6px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(201,164,92,.2);
}
.hero__media-frame img {
  width: 100%; height: 560px; object-fit: cover; display: block;
  transform-origin: center center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media-frame img {
    animation:
      hero-img-entrance var(--dur-slow) var(--ease-out) both,
      ken-burns 18s ease-in-out infinite alternate;
    animation-delay: 0ms, 800ms;
  }
}

.hero__trust-chip {
  position: absolute; bottom: -20px; left: 20px;
  display: flex; align-items: center; gap: 10px;
  background: var(--theme-dark-band);
  border: 1px solid var(--theme-gold-trim);
  color: rgba(255,255,255,.8);
  padding: 12px 20px;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  z-index: 2;
}
.hero__trust-chip svg { color: var(--theme-gold-trim); }

/* ── About ─────────────────────────────────────────────────── */
.about { background: var(--background); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%; height: 500px; object-fit: cover;
}
/* Gold rule on left of image */
.about__media::before {
  content: '';
  position: absolute; left: -16px; top: 10%; bottom: 10%;
  width: 2px; background: var(--theme-gold-trim); opacity: .6;
}
.about__media-badge {
  position: absolute; bottom: 0; right: -8px;
  background: var(--theme-espresso); color: rgba(255,255,255,.9);
  padding: 20px 24px; text-align: center;
  border-left: 2px solid var(--theme-gold-trim);
}
.about__media-badge strong {
  display: block; font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 600; color: var(--theme-gold-trim);
  line-height: 1;
}
.about__media-badge span { font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; }
.about__content { display: flex; flex-direction: column; gap: 20px; }
.about__body { color: var(--muted); line-height: 1.8; font-size: var(--step-0); }
.about__checklist { display: flex; flex-direction: column; gap: 10px; }
.about__checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--step--1); color: var(--muted); padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.about__checklist li::before {
  content: '';
  width: 18px; height: 1px; background: var(--theme-gold-trim);
  flex-shrink: 0; margin-top: .7em;
}

/* ── Services ──────────────────────────────────────────────── */
.services { background: var(--theme-ivory-mid); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
[data-list] { display: contents; }

.service-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: box-shadow var(--dur-ui) var(--ease-out);
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--theme-gold-trim);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }

/* nth-child visual variety — second card gets dark treatment */
.service-card:nth-child(2) {
  background: var(--theme-espresso); color: rgba(255,255,255,.88);
  border-color: var(--theme-espresso);
}
.service-card:nth-child(2) .service-card__body { color: rgba(255,255,255,.55); }
.service-card:nth-child(2) .service-card__subtitle { color: var(--theme-gold-trim); }
.service-card:nth-child(2) .service-card__price { color: var(--theme-gold-pale); }
.service-card:nth-child(2) .service-card__cta { color: var(--theme-gold-trim); }
.service-card:nth-child(2) .service-card__icon { color: var(--theme-gold-trim); border-color: rgba(201,164,92,.25); }

.service-card__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--theme-gold-trim); flex-shrink: 0;
}
.service-card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-2); line-height: 1.1;
}
.service-card__subtitle {
  font-size: 0.68rem; font-weight: 500;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
}
.service-card__body { color: var(--muted); font-size: var(--step--1); flex: 1; line-height: 1.75; }
.service-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
}
.service-card:nth-child(2) .service-card__footer { border-top-color: rgba(255,255,255,.1); }
.service-card__price { font-weight: 600; color: var(--text); font-family: var(--font-display); font-size: 1.1rem; }
.service-card__cta {
  font-size: 0.72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--theme-gold-trim);
  transition: opacity var(--dur-micro) var(--ease-standard);
}
.service-card__cta:hover { opacity: .7; }

/* ── Service Areas ─────────────────────────────────────────── */
.service-areas { background: var(--background); }
.areas__grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.area-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 18px;
  font-size: var(--step--1); font-weight: 500; color: var(--muted);
  transition: all var(--dur-micro) var(--ease-standard);
  cursor: default;
}
.area-chip:hover { border-color: var(--theme-gold-trim); color: var(--text); }
.area-chip svg { color: var(--theme-gold-trim); flex-shrink: 0; }
.area-note { font-size: 0.68rem; color: var(--muted); margin-left: 2px; }

/* ── Certifications ────────────────────────────────────────── */
.certifications { background: var(--theme-dark-band); }
.certifications .section-eyebrow { color: var(--theme-gold-trim); }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.06); }
.cert-card {
  background: rgba(255,255,255,.03);
  border: none;
  padding: 28px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: background var(--dur-ui) var(--ease-standard);
}
.cert-card:hover { background: rgba(201,164,92,.06); }
.cert-card img {
  width: 44px; height: 44px; object-fit: contain; flex-shrink: 0;
  border: 1px solid rgba(201,164,92,.2);
}
.cert-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cert-card__info strong { font-size: 0.85rem; color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-card__issuer { font-size: 0.72rem; color: rgba(255,255,255,.4); }
.cert-card small { font-size: 0.68rem; color: rgba(201,164,92,.5); }

/* ── Before / After ────────────────────────────────────────── */
.before-after { background: var(--background); }
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.ba-card { overflow: hidden; border: 1px solid var(--border); }
.ba-card__images {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.ba-card__side { position: relative; overflow: hidden; }
.ba-card__side img { width: 100%; height: 260px; object-fit: cover; display: block; }
.ba-card__label {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.ba-card__label--before { background: rgba(0,0,0,.7); color: rgba(255,255,255,.7); }
.ba-card__label--after  { background: var(--theme-gold-trim); color: var(--theme-espresso); }
.ba-card__divider {
  width: 32px; height: 32px;
  background: var(--background); border: 1px solid var(--theme-gold-trim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--theme-gold-trim); flex-shrink: 0; z-index: 1;
}
.ba-card__caption {
  padding: 16px 20px;
  font-size: var(--step--1); color: var(--muted);
  text-align: center; line-height: 1.55;
  border-top: 1px solid var(--border);
}

/* ── Quote / Consultation ──────────────────────────────────── */
.quote-section { background: var(--theme-ivory-mid); }
.quote__wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.quote__info { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.quote__info h2 { color: var(--text); }
.quote__info p { color: var(--muted); font-size: var(--step-0); }
.quote__promises { display: flex; flex-direction: column; gap: 10px; }
.quote__promises li {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--step--1); color: var(--muted); letter-spacing: .01em;
}
.quote__promises li::before {
  content: '';
  width: 20px; height: 1px; background: var(--theme-gold-trim); flex-shrink: 0;
}
.quote__form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ── Form elements ─────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font: inherit; font-size: 0.9rem;
  background: var(--background); color: var(--text);
  transition: border-color 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(--theme-gold-trim);
  box-shadow: 0 0 0 3px rgba(201,164,92,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials { background: var(--theme-dark-band); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,164,92,.15);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transform-style: preserve-3d;
  transition: transform var(--dur-micro) ease, box-shadow var(--dur-ui) var(--ease-out);
}
.testimonial-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.3); }
.testimonial-card__stars { color: var(--theme-gold-trim); font-size: 0.9rem; letter-spacing: 3px; }
.testimonial-card__quote {
  color: rgba(255,255,255,.7); font-style: italic;
  font-family: var(--font-display); font-size: var(--step-1);
  line-height: 1.55; flex: 1;
}
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.testimonial-card__author img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(201,164,92,.3); flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.85rem; color: rgba(255,255,255,.88); }
.testimonial-card__author span { font-size: 0.72rem; color: rgba(255,255,255,.35); letter-spacing: .05em; }

/* ── Opening Hours ─────────────────────────────────────────── */
.opening-hours { background: var(--background); }
.hours__wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.hours__content { display: flex; flex-direction: column; gap: 18px; }
.hours__content p { color: var(--muted); line-height: 1.75; }
.hours__table-wrap {
  border: 1px solid var(--border);
  overflow: hidden;
}
.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.2fr 0.5fr;
  padding: 14px 20px;
  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: rgba(201,164,92,.06); }
.hours__table tr[data-item].today-row td:first-child { color: var(--theme-gold-trim); font-weight: 600; }
.hours__table td { font-size: var(--step--1); align-self: center; }
.hours__table td:first-child { font-weight: 600; color: var(--text); }
.hours__note { font-size: 0.68rem; color: var(--theme-gold-trim); text-align: right; letter-spacing: .06em; text-transform: uppercase; }

/* ── FAQs ──────────────────────────────────────────────────── */
.faqs { background: var(--theme-ivory-mid); }
.faqs .section-header { margin-bottom: 40px; }
.faqs__list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.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 28px; text-align: left;
  background: var(--surface); cursor: pointer;
  transition: background var(--dur-micro) var(--ease-standard);
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-1);
  color: var(--text);
}
.faq-item__trigger:hover { background: rgba(201,164,92,.04); }
.faq-item__trigger[aria-expanded="true"] { color: var(--theme-espresso); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon { transform: rotate(180deg); color: var(--theme-gold-trim); }
.faq-item__icon { flex-shrink: 0; transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-standard); color: var(--muted); }
.faq-item__answer {
  padding: 0 28px 20px; color: var(--muted); font-size: var(--step--1); line-height: 1.8;
  background: var(--surface);
}
.faq-item__answer[hidden] { display: none; }

/* ── Contact ───────────────────────────────────────────────── */
.contact { background: var(--background); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.contact__info h2 { color: var(--text); }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__item { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: var(--step--1); }
.contact__item svg { color: var(--theme-gold-trim); flex-shrink: 0; }
.contact__item a:hover { color: var(--text); }
.contact__form-wrap {
  background: var(--surface); border: 1px solid var(--border); padding: 40px;
}
.contact__form { display: flex; flex-direction: column; gap: 16px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--theme-dark-band);
  color: rgba(255,255,255,.55);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(201,164,92,.2);
}
/* Footer closing statement */
.footer__statement {
  text-align: center;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__statement h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  font-style: italic;
  margin-bottom: 6px;
}
.footer__statement span {
  display: block;
  font-size: 0.68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--theme-gold-trim); font-family: var(--font-sans);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { width: 36px; height: 36px; object-fit: contain; }
.footer__brand p { font-size: 0.82rem; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer__social { display: flex; gap: 8px; margin-top: 4px; }
.footer__social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: all var(--dur-micro) var(--ease-standard);
}
.footer__social a:hover { border-color: var(--theme-gold-trim); color: var(--theme-gold-trim); }

.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-sans); font-size: 0.65rem; font-weight: 600;
  color: rgba(255,255,255,.88); text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 6px;
}
.footer__links a,
.footer__services a {
  font-size: 0.82rem; color: rgba(255,255,255,.4);
  transition: color var(--dur-micro) var(--ease-standard);
}
.footer__links a:hover,
.footer__services a:hover { color: var(--theme-gold-trim); }
.footer__contact p { font-size: 0.82rem; color: rgba(255,255,255,.4); }
.footer__cta { font-weight: 600; color: var(--theme-gold-trim); font-size: 1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px; font-size: 0.72rem; color: rgba(255,255,255,.25);
  text-align: center; letter-spacing: .04em;
}

/* ── Sticky Mobile CTA ─────────────────────────────────────── */
.sticky-mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--surface, rgba(247,243,236,.98));
  border-top: 1px solid var(--border);
  padding: 12px 20px; gap: 10px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
}
.sticky-mobile-cta__call {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--theme-espresso); color: rgba(255,255,255,.9);
  padding: 13px; font-weight: 500; font-size: 0.8rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.sticky-mobile-cta__quote {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: var(--theme-gold-trim); color: var(--theme-espresso);
  padding: 13px; font-weight: 500; font-size: 0.8rem;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ── Back to top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--theme-espresso); color: rgba(255,255,255,.8);
  border: 1px solid var(--theme-gold-trim);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-standard), transform var(--dur-ui) var(--ease-out);
  z-index: 700;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

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

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

/* ── Placeholder / img-empty states ───────────────────────── */
.hero__media-frame.img-empty {
  min-height: 420px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(201,164,92,.2);
  display: flex; align-items: center; justify-content: center;
}
.about__media.img-empty {
  min-height: 300px; background: rgba(201,164,92,.04);
  border: 1px solid var(--border);
}
.ba-card__side.img-empty { min-height: 140px; background: var(--border); }
.testimonial-card__author .img-empty,
.cert-card.img-empty { opacity: .5; }

/* ── Reduced motion (REQUIRED) ─────────────────────────────── */
@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 ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero__split { grid-template-columns: 1fr; gap: 56px; }
  .hero__media { display: none; }
  .hero__content::before { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__wrap { grid-template-columns: 1fr; gap: 48px; }
  .hours__wrap { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@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: 64px 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: 72px 28px; }
  .quote__form { padding: 28px; }
  .contact__form-wrap { padding: 28px; }
  .footer__statement { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  /* The sticky bottom bar carries the same Book Consultation 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: auto; }
}


/* __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 (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
:where(.service-card:nth-child(2)) .service-card__subtitle { color: oklch(from var(--muted) max(l, 0.75) c h); }
:where(.site-footer) .footer__statement span { color: oklch(from var(--theme-gold-trim) max(l, 0.75) c h); }

/* 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: #6e665a; /* was #7a7165 */
}
.footer__links a, .footer__services a { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }
.footer__bottom { color: oklch(from rgba(255, 255, 255, 0.25) calc(l + 0.07) c h / calc(min(1, alpha + 0.21))); }
.footer__brand p { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }
.footer__contact p { color: oklch(from rgba(255, 255, 255, 0.4) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }

/* 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 { color: oklch(from var(--theme-gold-trim) min(l, 0.487) c h / alpha); }
