/* ============================================================
   VelvetClean — Luxury Premium Home Cleaning
   WoBooks Growth Theme | local-service
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:       #312e81;
  --primary-dark:  #1e1b4b;
  --primary-light: #4338ca;
  --secondary:     #1e1b4b;
  --accent:        #fbbf24;
  --accent-dark:   #d97706;
  --accent-light:  #fde68a;
  --background:    #fffbeb;
  --surface:       #ffffff;
  --text:          #1c1917;
  --muted:         #78716c;
  --border:        #e9d5a8;
  --font-sans:     'Source Sans 3', system-ui, sans-serif;
  --font-display:  'Playfair Display', Georgia, serif;
  --radius:        16px;
  --radius-sm:     8px;
  --radius-xs:     4px;
  --transition:    0.3s ease;
  --theme-dark-band: #1e1b4b;
  --theme-gold:      #fbbf24;
  --theme-gold-light: #fde68a;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(49,46,129,.12);
  --shadow-lg:     0 12px 40px rgba(49,46,129,.18);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
img[src=""], img:not([src]) { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); }

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

/* ── Accessibility ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  border-radius: var(--radius-xs);
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section base ───────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-cream   { background: var(--background); }
.section-white   { background: var(--surface); }
.section-dark    { background: var(--theme-dark-band); color: #fff; }

.section-header  { text-align: center; margin-bottom: 3.5rem; }
.section-header--light .section-title { color: #fff; }
.section-header--light .section-subtitle { color: rgba(255,255,255,.75); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-top: 0.5rem;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Eyebrow ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.35rem;
}
.eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--accent);
  margin-top: 0.35rem;
}
.eyebrow--gold { color: var(--accent); }

/* ── Gold rule ──────────────────────────────────────────────── */
.gold-rule {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Body text ──────────────────────────────────────────────── */
.body-text {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
}
.body-text p + p { margin-top: 1em; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.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: var(--shadow-md);
}
.btn--gold {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.btn--gold:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,.4);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.btn--block { width: 100%; }

/* Magnetic effect */
.btn--magnetic { transition: transform 0.2s cubic-bezier(.25,.46,.45,.94); }

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--primary-dark);
  color: var(--accent);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(from var(--primary-dark) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ── Sticky mobile CTA ──────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 700;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  display: none;
  transition: transform 0.3s;
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.sticky-cta.visible { display: block; }
.sticky-cta:hover { background: var(--accent-dark); }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════════ */
[data-section="header"],
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--background, rgba(255,251,235,.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
[data-section="header"].scrolled,
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(49,46,129,.1);
  border-bottom-color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Desktop nav list */
[data-section="header"] nav:not(.nav__mobile) .nav__list,
.site-nav .nav__list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.nav__item { position: relative; }
.nav__item-link {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color var(--transition);
  position: relative;
}
.nav__item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__item-link:hover,
.nav__item-link--active { color: var(--primary); }
.nav__item-link:hover::after,
.nav__item-link--active::after { width: calc(100% - 1.75rem); }
.nav__item-link--cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
}
.nav__item-link--cta::after { display: none; }
.nav__item-link--cta:hover { background: var(--primary-dark) !important; }

.header__phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.header__phone:hover { color: var(--accent-dark); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
  line-height: 1;
}

/* Mobile nav panel */
[data-section="header"] .nav__mobile { display: none; }
[data-section="header"] .nav__mobile.open {
  display: block;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.nav__mobile-list { display: flex; flex-direction: column; gap: 0.25rem; }
.nav__mobile-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO BAND (inner pages)
═══════════════════════════════════════════════════════════════ */
.page-hero-band {
  background: var(--theme-dark-band);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(251,191,36,.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-band .eyebrow { color: var(--accent); }
.page-hero-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-top: 0.75rem;
  font-weight: 700;
}
.page-hero-band__subtitle {
  color: rgba(255,255,255,.7);
  font-size: 1.0625rem;
  margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--theme-dark-band);
  position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break any view() timeline nested inside it */
  overflow: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 40% at 20% 50%, rgba(251,191,36,.06) 0%, transparent 60%),
              radial-gradient(circle 1px at 50% 50%, rgba(251,191,36,.15) 0%, transparent 100%);
  background-size: 100% 100%, 24px 24px;
  pointer-events: none;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

.hero__content-panel {
  display: flex;
  align-items: center;
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: 620px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero__prefix {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 0.25rem;
  font-style: italic;
  font-family: var(--font-display);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__title em { color: var(--accent); font-style: italic; }
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-style: italic;
}
.hero__body {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero__trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
}
.hero__trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Hero image panel */
.hero__image-panel {
  position: relative;
  overflow: hidden;
}
.hero__image-frame {
  position: absolute;
  inset: 2rem;
  border: 2px solid rgba(251,191,36,.3);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49,46,129,.4) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAND
═══════════════════════════════════════════════════════════════ */
.stats-band {
  background: var(--theme-dark-band);
  padding: 3.5rem 0;
  border-top: 1px solid rgba(251,191,36,.2);
}
.stats-band__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stats-band__item {
  flex: 1 1 200px;
  text-align: center;
  padding: 1.5rem 1rem;
}
.stats-band__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-band__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stats-band__divider {
  width: 1px;
  height: 60px;
  background: rgba(251,191,36,.2);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about__image-col { position: relative; }
.about__image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.about__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about__badge-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.about__badge-text {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.about__content-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:nth-child(3n+2) {
  background: var(--primary);
  color: #fff;
}
.service-card:nth-child(3n+2) .service-card__eyebrow { color: var(--accent-light); }
.service-card:nth-child(3n+2) .service-card__title { color: #fff; }
.service-card:nth-child(3n+2) .service-card__text { color: rgba(255,255,255,.75); }
.service-card:nth-child(3n+2) .service-card__price { color: var(--accent-light); }
.service-card:nth-child(3n+2) .service-card__link { color: var(--accent); }

.service-card__image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__img { transform: scale(1.05); }
.service-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.service-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
}
.service-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.75rem;
  transition: gap var(--transition), color var(--transition);
}
.service-card__link:hover { gap: 0.5rem; color: var(--accent-dark); }

/* ═══════════════════════════════════════════════════════════════
   SERVICE AREAS
═══════════════════════════════════════════════════════════════ */
.areas__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.area-chip:hover {
  border-color: var(--accent);
  background: var(--background);
  transform: translateY(-2px);
}
.area-chip__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}
.area-chip__note {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════════════════════════ */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.cert-card {
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.cert-card__logo-wrap {
  height: 56px;
  display: flex;
  align-items: center;
}
.cert-card__logo {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
}
.cert-card__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}
.cert-card__issuer {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}
.cert-card__note {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════
   BEFORE / AFTER GALLERY
═══════════════════════════════════════════════════════════════ */
.before-after {
  background: var(--theme-dark-band);
}
.ba__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.ba-pair {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
.ba-pair__image-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ba-pair__figure {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ba-pair__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ba-pair:hover .ba-pair__img { transform: scale(1.04); }
.ba-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ba-badge--before {
  background: rgba(239,68,68,.9);
  color: #fff;
}
.ba-badge--after {
  background: rgba(34,197,94,.9);
  color: #fff;
}
.ba-pair__caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  font-style: italic;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   QUOTE REQUEST
═══════════════════════════════════════════════════════════════ */
.quote-section {
  background: var(--primary);
  position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break the .quote__form-panel view() timeline reveal below */
  overflow: clip;
}
.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 0% 50%, rgba(251,191,36,.08) 0%, transparent 60%);
  pointer-events: none;
}
.quote__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.quote__info-panel {
  padding: 3rem 0;
  color: #fff;
}
.quote__info-panel .section-title,
.quote__title {
  color: #fff !important;
  font-family: var(--font-display);
}
.quote__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}
.quote__feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote__feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.85);
}
.quote__icon {
  color: var(--accent);
  flex-shrink: 0;
}

.quote__form-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS (shared)
═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-label span { color: var(--accent-dark); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49,46,129,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.testimonial-card__quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.5;
  user-select: none;
}
.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  padding-top: 1.5rem;
  flex: 1;
  font-style: italic;
}
.testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.25rem;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.testimonial-card__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}
.testimonial-card__role {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   OPENING HOURS
═══════════════════════════════════════════════════════════════ */
.hours__card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
}
.hours__table {
  width: 100%;
  border-collapse: collapse;
}
.hours__row {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.hours__row:last-child { border-bottom: none; }
.hours__row:hover { background: rgba(251,191,36,.06); }
.hours__row.today {
  background: rgba(251,191,36,.12);
  border-left: 4px solid var(--accent);
}
.hours__day {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--primary);
  width: 40%;
}
.hours__time {
  padding: 1rem 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.hours__sep {
  padding: 1rem 0.25rem;
  color: var(--muted);
}
.hours__status {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hours__note {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  background: var(--background);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.contact__list-item a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}
.contact__list-item a:hover { color: var(--accent-dark); }
.contact__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--accent-dark);
}
.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   FAQS
═══════════════════════════════════════════════════════════════ */
.faqs__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-item__trigger:hover { background: var(--background); }
.faq-item__trigger[aria-expanded="true"] .faq-item__chevron {
  transform: rotate(180deg);
}
.faq-item__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent-dark);
}
.faq-item__body {
  transition: max-height 0.35s ease;
}
.faq-item__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--theme-dark-band);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.footer__logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,.5);
  max-width: 280px;
}
.footer__social-row {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(251,191,36,.08);
}
.footer__col-heading {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__nav-link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
  cursor: pointer;
}
.footer__nav-link:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════════════════════════
   DATA-LIST grid fix
   NEVER apply display:contents to [data-list] — destroys grid
═══════════════════════════════════════════════════════════════ */
.services__grid,
.testimonials__grid,
.certs__grid,
.ba__grid,
.areas__chips,
.faqs__list,
.hours__table tbody { /* grids are on the element, not data-list */ }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__image-panel { display: none; }
  .hero__content-panel { padding: 4rem 0; }
  .hero__inner { max-width: 100%; }
  .hero { min-height: auto; }

  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__badge-float { bottom: 1rem; right: 1rem; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .ba__grid { grid-template-columns: 1fr; }

  .quote__layout { grid-template-columns: 1fr; gap: 2rem; }
  .quote__form-panel { position: static; }

  .contact__layout { grid-template-columns: 1fr; gap: 2rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  /* Nav */
  /* Matches the desktop selector's specificity: `.site-nav .nav__list` alone lost to it, so the
     full desktop list stayed on a phone and widened the layout viewport. */
  [data-section="header"] nav:not(.nav__mobile) .nav__list,
  .site-nav .nav__list { display: none; }
  .header__phone { display: none; }
  .nav__toggle { display: flex; flex-shrink: 0; }
  /* A long brand name gives way instead of widening the phone's layout viewport. */
  .site-logo { flex-shrink: 1; min-width: 0; }
  .site-logo img { flex-shrink: 0; }
  .site-logo__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .stats-band__divider { display: none; }
  .stats-band__grid { flex-direction: row; flex-wrap: wrap; }
  .stats-band__item { flex: 1 1 50%; }

  .services__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .ba-pair__image-wrap { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1; }

  .back-to-top { bottom: 5rem; right: 1rem; }
  .sticky-cta { display: block; }
}

@media (max-width: 480px) {
  .certs__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .quote__form-panel { padding: 1.5rem; }
}

/* ── Image placeholder fallback (preview) ────────────────── */
img[src$="placeholder.jpg"] { display: none !important; }

.hero__media.img-empty,
.hero__image.img-empty,
.hero__img.img-empty {
  min-height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 2px dashed rgba(251,191,36,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__media.img-empty,
.about__image.img-empty {
  min-height: 300px;
  background: rgba(49,46,129,0.04);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}
.ba-card__side.img-empty,
[class*="before"].img-empty,
[class*="after"].img-empty {
  min-height: 160px;
  background: #f5f0e8;
  border-radius: var(--radius-sm);
}
.cert-card.img-empty { opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATION SYSTEM (CSS scroll-driven, replaces GSAP)
   Resting state is visible at rule level — the hidden from-state
   lives ONLY inside @keyframes reveal-in, and the whole lane is
   gated behind @supports + no-preference so a non-supporting /
   reduced-motion visitor just sees the content, never a blank
   section.
═══════════════════════════════════════════════════════════════ */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; }
}
@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  /* .hero__inner children are already in view on load — use a normal
     time-based animation, never a view() timeline. */
  .hero__inner > * {
    animation: hero-entrance .85s cubic-bezier(.19,1,.22,1) .15s both;
  }
  .hero__inner > *:nth-child(2) { animation-delay: .27s; }
  .hero__inner > *:nth-child(3) { animation-delay: .39s; }
  .hero__inner > *:nth-child(4) { animation-delay: .51s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service-card,
    .testimonial-card,
    .cert-card,
    .ba-pair,
    .area-chip,
    .about__image-col,
    .about__content-col,
    .quote__form-panel {
      animation: reveal-in .65s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    /* Stagger by shifting animation-range, never animation-delay —
       a delay is a clock that may already have run before the
       element enters the viewport. */
    .service-card:nth-child(2), .testimonial-card:nth-child(2),
    .cert-card:nth-child(2), .ba-pair:nth-child(2),
    .area-chip:nth-child(2), .about__content-col { animation-range: entry 8% entry 46%; }

    .service-card:nth-child(3), .testimonial-card:nth-child(3),
    .cert-card:nth-child(3), .ba-pair:nth-child(3),
    .area-chip:nth-child(3) { animation-range: entry 16% entry 54%; }

    .service-card:nth-child(4), .testimonial-card:nth-child(4),
    .cert-card:nth-child(4), .ba-pair:nth-child(4),
    .area-chip:nth-child(4) { animation-range: entry 24% entry 62%; }

    .service-card:nth-child(5), .testimonial-card:nth-child(5),
    .cert-card:nth-child(5), .ba-pair:nth-child(5),
    .area-chip:nth-child(5) { animation-range: entry 32% entry 70%; }
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: 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; }

/* phone-header-fit: at phone width a real business name fills the logo, so the brand truncates
   before it can push the menu toggle off-screen, and the toggle stays pinned right.
   The desktop list is hidden with the selector that shows it: '.site-nav .nav__list' loses on specificity.
   Gate: tests/Feature/Themes/MobileHeaderFitTest.php (it strips this block and expects the overhang back). */
@media (max-width: 768px) {
  [data-section="header"] nav:not(.nav__mobile) .nav__list { display: none; }
  [data-section="header"] .site-logo { flex-shrink: 1; min-width: 0; }
  [data-section="header"] .site-logo__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [data-section="header"] .nav__toggle { flex-shrink: 0; margin-left: auto; }
}
/* /phone-header-fit */

/* 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(3n+2)) .service-card__eyebrow { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(3n+2)) .service-card__price { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.before-after) .eyebrow--gold { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.site-footer) .footer__col-heading { color: oklch(from var(--accent) max(l, 0.75) c h); }

/* 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. */
:where(.service-card:nth-child(3n+2)) .service-card__link { color: oklch(from var(--primary) max(l, 0.75) c h); }
:where(.service-card:nth-child(3n+2)) .service-card__text { 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 {
  --accent-dark: #b75800; /* was #d97706 */
}
.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. */
.ba-badge--before { background-color: oklch(from rgba(239, 68, 68, 0.9) min(l, 0.581) c h / alpha); }
.ba-badge--after { background-color: oklch(from rgba(34, 197, 94, 0.9) min(l, 0.54) c h / alpha); }
