/* ============================================================
   BrightShift Growth — WoBooks Local-Service Theme
   Palette: Fuchsia primary + Lime accent + Charcoal dark bands
   ============================================================ */

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

/* ── Broken image suppression ─────────────────────────────── */
img[src=""], img:not([src]) { display: none !important; }

/* ── CSS variables ────────────────────────────────────────── */
:root {
  --primary:          #c026d3;
  --primary-dark:     #86198f;
  --primary-light:    #e879f9;
  --secondary:        #86198f;
  --accent:           #a3e635;
  --accent-dark:      #65a30d;
  --background:       #f9fafb;
  --surface:          #ffffff;
  --text:             #111827;
  --muted:            #6b7280;
  --border:           #f3e8ff;
  --font-sans:        'Inter', system-ui, sans-serif;
  --font-display:     'Space Grotesk', system-ui, sans-serif;
  --radius:           12px;
  --radius-sm:        8px;
  --radius-full:      9999px;
  --transition:       0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-charcoal:   #111827;
  --theme-hard-shadow: 4px 4px 0 var(--primary);
  --section-pad:      80px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::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.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

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

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px; top: auto;
  z-index: 10000;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

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

/* ── Section helpers ──────────────────────────────────────── */
.section-pad { padding: var(--section-pad) 0; }

.section-alt { background: #fdf4ff; }

.section-dark {
  background: var(--theme-charcoal);
  color: #fff;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(192, 38, 211, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
}

.section-dark .section-sub { color: rgba(255,255,255,0.65); }

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Diagonal clip dividers ───────────────────────────────── */
.clip-top {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
  margin-top: -3vw;
  padding-top: calc(var(--section-pad) + 3vw);
}
.clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  padding-bottom: calc(var(--section-pad) + 3vw);
}
.clip-both {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin-top: -3vw;
  padding-top: calc(var(--section-pad) + 3vw);
  padding-bottom: calc(var(--section-pad) + 3vw);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--theme-hard-shadow);
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 6px 6px 0 var(--primary-dark);
  transform: translate(-2px, -2px);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--theme-hard-shadow);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary-dark);
}
.btn--accent {
  background: var(--accent);
  color: var(--theme-charcoal);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent-dark);
  font-weight: 700;
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
.btn--accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent-dark);
}
.btn--white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 4px 4px 0 rgba(255,255,255,0.3);
}
.btn--white:hover {
  background: var(--primary);
  color: #fff;
  transform: translate(-2px, -2px);
}
.btn--sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn--lg { padding: 0.9rem 2rem; font-size: 1.0625rem; }
.btn--magnetic { user-select: none; }

/* ── Header / Navigation ──────────────────────────────────── */
[data-section="header"] {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--surface, rgba(255,255,255,0.97));
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
[data-section="header"].scrolled {
  border-bottom-color: var(--primary);
  box-shadow: 0 4px 24px rgba(192,38,211,0.08);
}
[data-section="header"] nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1.5rem;
}
[data-section="header"] .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
[data-section="header"] .logo img {
  height: 38px;
  width: auto;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

/* Desktop nav */
[data-section="header"] nav:not(.nav__mobile) .nav__items {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--background);
  padding: 0.375rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
}
.site-nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.site-nav-link:hover,
.site-nav-link.active {
  background: var(--primary);
  color: #fff;
}
.nav__cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav__phone-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav__phone-link:hover { color: var(--primary-dark); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.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);
}

/* Mobile menu panel */
[data-section="header"] .nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 1.25rem 1.5rem 1.5rem;
  gap: 0.25rem;
}
[data-section="header"] .nav__mobile.open {
  display: flex;
}
.nav__mobile .site-nav-link {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  width: 100%;
}
.nav__mobile-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Emergency band ───────────────────────────────────────── */
[data-section="emergency_contact"] {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 0;
}
[data-section="emergency_contact"] .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}
[data-section="emergency_contact"] .emerg-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
[data-section="emergency_contact"] .emerg-phone:hover {
  background: rgba(255,255,255,0.35);
}

/* ── HERO ─────────────────────────────────────────────────── */
[data-section="hero"] {
  background: var(--theme-charcoal);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break any view() timeline nested inside it */
  overflow: clip;
}
[data-section="hero"]::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(192,38,211,0.35) 0%, rgba(134,25,143,0.12) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 1.25rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(163, 230, 53, 0.15);
  color: var(--accent);
  border: 1.5px solid rgba(163,230,53,0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.875rem;
  width: fit-content;
}
.hero__tag {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__title mark {
  color: var(--primary-light);
  background: transparent;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 460px;
}
.hero__content-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.hero__rating-stars { color: #fbbf24; letter-spacing: -0.05em; }

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius);
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 var(--primary-dark);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,38,211,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Stats band ───────────────────────────────────────────── */
.stats-band {
  background: var(--theme-charcoal);
  padding: 60px 0;
  position: relative;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(192,38,211,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── About ────────────────────────────────────────────────── */
[data-section="about"] { padding: var(--section-pad) 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__content { display: flex; flex-direction: column; gap: 1.25rem; }
.about__body { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.about__checks { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 0.5rem; }
.about__check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.about__check::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(192,38,211,0.12);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.about__image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 3px solid var(--border);
  box-shadow: var(--theme-hard-shadow);
}
.about__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  bottom: 1.25rem; left: -1rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--theme-hard-shadow);
}

/* ── Services ─────────────────────────────────────────────── */
[data-section="services"] { padding: var(--section-pad) 0; }
[data-section="services"] .section-header {
  margin-bottom: 3rem;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
[data-section="services"] [data-list] {
  display: contents;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--primary);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(192,38,211,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.service-card:hover {
  box-shadow: var(--theme-hard-shadow);
  transform: translate(-2px, -2px);
  border-color: var(--primary);
}
.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(192,38,211,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.service-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(192,38,211,0.1);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  width: fit-content;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}
.service-card__body {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.25rem;
}
.service-card__link:hover { color: var(--primary-dark); }
.service-card__img {
  width: 100%; border-radius: var(--radius-sm);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 0.25rem;
}

/* ── Service areas ────────────────────────────────────────── */
[data-section="service_areas"] { padding: var(--section-pad) 0; }
[data-section="service_areas"] .section-header { margin-bottom: 2.5rem; }
.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
[data-section="service_areas"] [data-list] {
  display: contents;
}
.area-chip {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: default;
}
.area-chip:hover {
  border-color: var(--primary);
  box-shadow: var(--theme-hard-shadow);
  transform: translate(-2px, -2px);
}
.area-chip__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.area-chip__name::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.area-chip__note {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Certifications ───────────────────────────────────────── */
[data-section="certifications"] {
  background: var(--theme-charcoal);
  color: #fff;
  padding: var(--section-pad) 0;
  position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break the .cert-card view() timeline reveals below */
  overflow: clip;
}
[data-section="certifications"]::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,38,211,0.2) 0%, transparent 65%);
  pointer-events: none;
}
[data-section="certifications"] .section-title { color: #fff; }
[data-section="certifications"] .section-header { margin-bottom: 2.5rem; }
.certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
[data-section="certifications"] [data-list] {
  display: contents;
}
.cert-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: var(--transition);
}
.cert-card:hover {
  background: rgba(192,38,211,0.12);
  border-color: rgba(192,38,211,0.5);
  transform: translateY(-3px);
}
.cert-card__logo {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.cert-card__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}
.cert-card__issuer {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}
.cert-card__note {
  font-size: 0.8rem;
  color: rgba(163,230,53,0.8);
  font-weight: 500;
}

/* ── Before / After gallery ───────────────────────────────── */
[data-section="before_after_gallery"] { padding: var(--section-pad) 0; }
[data-section="before_after_gallery"] .section-header { margin-bottom: 2.5rem; }
.ba__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
[data-section="before_after_gallery"] [data-list] {
  display: contents;
}
.ba-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.ba-card:hover {
  box-shadow: var(--theme-hard-shadow);
  transform: translate(-2px, -2px);
}
.ba-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ba-card__half { position: relative; overflow: hidden; }
.ba-card__half img {
  width: 100%; height: 180px;
  object-fit: cover;
  display: block;
}
.ba-card__label {
  position: absolute;
  top: 0.625rem; left: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.ba-card__label--before {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}
.ba-card__label--after {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}
.ba-card__divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  pointer-events: none;
  z-index: 1;
}
.ba-card__caption {
  padding: 0.875rem 1.125rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1.5px solid var(--border);
  text-align: center;
}

/* ── Quote request ────────────────────────────────────────── */
[data-section="quote_request"] {
  background: var(--theme-charcoal);
  padding: var(--section-pad) 0;
}
.quote__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.quote__info { color: #fff; display: flex; flex-direction: column; gap: 1.5rem; }
.quote__info .section-title { color: #fff; }
.quote__info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.quote__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.quote__info-icon {
  width: 40px; height: 40px;
  background: rgba(192,38,211,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.quote__info-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}
.quote__info-text span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}

.quote__card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 8px 8px 0 rgba(192,38,211,0.25);
}
.quote__card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Form elements */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.form-control {
  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(--background);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,38,211,0.15);
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }
.form-submit {
  margin-top: 0.75rem;
  width: 100%;
}

/* Contact form styling (reuse .form-control above) */
.contact-form .form-group { margin-bottom: 1rem; }

/* ── Testimonials ─────────────────────────────────────────── */
[data-section="testimonials"] {
  background: var(--theme-charcoal);
  color: #fff;
  padding: var(--section-pad) 0;
  position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break the .testimonial-card view() timeline reveals below */
  overflow: clip;
}
[data-section="testimonials"]::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192,38,211,0.15) 0%, transparent 65%);
  pointer-events: none;
}
[data-section="testimonials"] .section-title { color: #fff; }
[data-section="testimonials"] .section-header { margin-bottom: 2.5rem; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
[data-section="testimonials"] [data-list] {
  display: contents;
}
.testimonial-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(192,38,211,0.1);
  border-color: rgba(192,38,211,0.4);
  transform: translateY(-3px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem; left: 1.25rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.5;
  pointer-events: none;
}
.testimonial-card__text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-top: 1.75rem;
  margin-bottom: 1.25rem;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.testimonial-card__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}
.testimonial-card__role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ── Opening hours ────────────────────────────────────────── */
[data-section="opening_hours"] { padding: var(--section-pad) 0; }
[data-section="opening_hours"] .section-header { margin-bottom: 2.5rem; }
.hours__wrap {
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.hours__table {
  width: 100%;
  border-collapse: collapse;
}
.hours__table td {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.hours__table tr:last-child td { border-bottom: none; }
[data-section="opening_hours"] [data-list] {
  display: contents;
}
.hours__table [data-item]:hover td {
  background: rgba(192,38,211,0.04);
}
.hours__table [data-item].today-row td {
  border-left: 3px solid var(--primary);
  font-weight: 600;
  color: var(--primary);
}
.hours__table td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  width: 35%;
}
.hours__table td:nth-child(2) { color: var(--muted); }
.hours__table td:last-child {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
  color: var(--muted);
}
.hours__note {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1.5px solid var(--border);
  background: rgba(192,38,211,0.04);
  font-style: italic;
}
.hours__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hours__status--open {
  background: rgba(34,197,94,0.12);
  color: #15803d;
}
.hours__status--closed {
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
}
.hours__status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Contact ──────────────────────────────────────────────── */
[data-section="contact"] { padding: var(--section-pad) 0; }
[data-section="contact"] .section-header { margin-bottom: 2.5rem; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__info-icon {
  width: 44px; height: 44px;
  background: rgba(192,38,211,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.contact__info-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact__info-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.contact__info-value a {
  color: var(--primary);
}
.contact__info-value a:hover { color: var(--primary-dark); }
.contact__form-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 2rem;
  box-shadow: var(--theme-hard-shadow);
}
.contact__form-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ── FAQs ─────────────────────────────────────────────────── */
[data-section="faqs"] { padding: var(--section-pad) 0; }
[data-section="faqs"] .section-header { margin-bottom: 2.5rem; }
.faqs__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
[data-section="faqs"] [data-list] {
  display: contents;
}
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.faq-item__q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item__q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item__a-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--theme-charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
}
.footer__tagline { font-size: 0.9375rem; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__link {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  padding: 0.25rem 0;
  transition: var(--transition);
}
.footer__link:hover { color: var(--primary-light); }
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__social-link:hover { color: var(--primary-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

/* ── Pricing section ──────────────────────────────────────── */
[data-section="pricing"] { padding: var(--section-pad) 0; background: #fdf4ff; }
[data-section="pricing"] .section-header { margin-bottom: 2.5rem; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
[data-section="pricing"] [data-list] {
  display: contents;
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}
.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--theme-hard-shadow);
  transform: translate(-2px, -2px);
}
.pricing-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  width: fit-content;
}
.pricing-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.pricing-card__body {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

/* ── Back to top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 6rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--theme-hard-shadow);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 400;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Sticky mobile CTA ────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 0.875rem 1.25rem;
  gap: 0.75rem;
}
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}
.sticky-cta__call {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--theme-hard-shadow);
}
.sticky-cta__quote {
  background: var(--accent);
  color: var(--theme-charcoal);
  box-shadow: 4px 4px 0 var(--accent-dark);
  color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}

/* ── data-list grid container fix ─────────────────────────── */
/* NOTE: Do NOT apply display:contents to data-list.
   Grid classes sit on parent wrappers. data-list uses display:contents
   only on non-grid parent scenarios. */

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__image-wrap { max-width: 480px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item:nth-child(odd) { border-left: none; }
  .about__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .ba__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .quote__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pricing__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  [data-section="header"] nav:not(.nav__mobile) .nav__items { display: none; }
  [data-section="header"] .nav__cta .btn { display: none; }
  [data-section="header"] .nav__cta .nav__phone-link { display: flex; }
  .nav__toggle { display: flex; flex-shrink: 0; }
  /* A long brand name gives way instead of widening the phone's layout viewport. */
  [data-section="header"] nav:not(.nav__mobile) { gap: 0.75rem; }
  [data-section="header"] .logo { flex-shrink: 1; min-width: 0; }
  [data-section="header"] .logo img { flex-shrink: 0; }
  .logo-wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-cta { display: flex; }
  .back-to-top { bottom: 5.25rem; }
  .hero__actions .btn--outline { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .ba__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  [data-section="emergency_contact"] .container { flex-direction: column; text-align: center; }
}

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

.hero__media.img-empty,
.hero__image-wrap.img-empty,
.hero__img-col.img-empty {
  min-height: 400px;
  background: rgba(192,38,211,0.06);
  border-radius: var(--radius);
  border: 2px dashed rgba(192,38,211,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__media.img-empty,
.about__image.img-empty,
.about__img.img-empty {
  min-height: 280px;
  background: rgba(192,38,211,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: #f3f4f6;
  border-radius: var(--radius-sm);
}
.cert-card.img-empty { opacity: 0.7; }

/* ── 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(28px); }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Above-the-fold hero content is already in view on load — use a
     normal time-based animation, never a view() timeline. */
  .hero__content,
  .hero__image-wrap {
    animation: hero-entrance .8s cubic-bezier(.19,1,.22,1) both;
  }
  .hero__image-wrap { animation-delay: .12s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service-card,
    .area-chip,
    .cert-card,
    .ba-card,
    .testimonial-card,
    .stat-item,
    .about__check,
    .faq-item,
    .pricing-card {
      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), .area-chip:nth-child(2),
    .cert-card:nth-child(2), .ba-card:nth-child(2),
    .testimonial-card:nth-child(2), .stat-item:nth-child(2),
    .about__check:nth-child(2), .faq-item:nth-child(2),
    .pricing-card:nth-child(2) { animation-range: entry 8% entry 46%; }

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

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

    .service-card:nth-child(5), .area-chip:nth-child(5),
    .cert-card:nth-child(5), .ba-card:nth-child(5),
    .testimonial-card:nth-child(5), .stat-item:nth-child(5),
    .about__check:nth-child(5), .faq-item:nth-child(5),
    .pricing-card: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 header CTA is hidden: the sticky bar and the menu footer both carry Call Now + Free Quote.
   Gate: tests/Feature/Themes/MobileHeaderFitTest.php (it strips this block and expects the overhang back). */
@media (max-width: 768px) {
  [data-section="header"] .logo { flex-shrink: 1; min-width: 0; }
  [data-section="header"] .logo-wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [data-section="header"] .nav__cta { display: none; }
  [data-section="header"] .nav__toggle { flex-shrink: 0; margin-left: auto; }
}
/* /phone-header-fit */

/* 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([data-section="quote_request"]) .section-tag { color: oklch(from var(--primary) 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. */
.section-tag { color: oklch(from var(--primary) min(l, 0.551) c h / alpha); }

/* 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. */
:where([data-section="quote_request"]) .section-sub { color: oklch(from var(--muted) max(l, 0.621) c h / alpha); }
