/* ========================================================
   Forge — Commercial Roofing Growth Theme | WoBooks Local-Service
   Bold Industrial | Graphite-Slate + Blueprint Blue
   ======================================================== */

/* ─── 1. CSS Variables ─────────────────────────────────── */
:root {
  /* Canonical token names — overridden by per-team style presets */
  --primary:    #111827;
  --secondary:  #1f2937;
  --accent:     #3b82f6;
  --background: #f8fafc;
  --surface:    #f1f5f9;
  --text:       #111827;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --font-sans:  'Roboto', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --radius:     0px;

  /* Immutable design constants — never overridden by style presets */
  --theme-dark-band:      #0f172a;
  --theme-emergency-bg:   #111827;
  --theme-hours-open:     #16a34a;

  /* Blueprint grid accent colors */
  --bp-line: rgba(59,130,246,.08);
  --bp-line-bold: rgba(59,130,246,.15);
}

/* ─── 2. 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.6;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

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

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99999;
  padding: .5rem 1.25rem; background: var(--accent); color: #fff; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ─── 3. Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display); line-height: 1.05;
  font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p  { line-height: 1.7; }

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p  { color: var(--muted); max-width: 560px; text-transform: none; font-family: var(--font-sans); font-size: .97rem; }

/* ─── 5. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .09em;
  font-weight: 700; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
}
.btn--accent:hover {
  background: var(--accent-dark, #2563eb);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,130,246,.5);
}
.btn--ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline-dark {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--outline-dark:hover { background: var(--primary); color: #fff; }

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

/* ─── 7. Back to Top ───────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); }

/* ─── 8. Header / Nav ──────────────────────────────────── */
[data-section="header"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--background, rgba(248,250,252,.97));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
[data-section="header"].scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.12);
  background: rgba(248,250,252,.99);
}
[data-section="header"] nav:not(.nav__mobile) {
  display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0;
}
.logo { flex-shrink: 0; display: flex; align-items: center; gap: .75rem; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.logo-wordmark {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--primary); letter-spacing: .06em; text-transform: uppercase;
}
.nav__links {
  display: flex; align-items: center; gap: 2rem; margin-left: auto;
}
.nav__links a {
  font-family: var(--font-sans); font-size: .88rem; font-weight: 500;
  color: var(--text); letter-spacing: .05em; text-transform: uppercase;
  position: relative; padding: .25rem 0; transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width .25s;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }
.nav__phone-cta {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: var(--accent); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em;
  padding: .5rem 1.25rem; border: 2px solid rgba(59,130,246,.3); border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}
.nav__phone-cta:hover { background: rgba(59,130,246,.08); border-color: var(--accent); }
.nav__phone-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav__toggle {
  display: none; font-size: 1.5rem; color: var(--text);
  padding: .5rem; margin-left: auto;
}
.nav__cart { display: none; }

/* Mobile nav panel */
[data-section="header"] .nav__mobile {
  display: none; flex-direction: column;
  position: fixed; inset: 0; z-index: 2000;
  background: var(--primary, rgba(17,24,39,.99));
  padding: 5rem 2rem 2rem; gap: 0; overflow-y: auto;
}
[data-section="header"] .nav__mobile.open { display: flex; }
.nav__mobile-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-size: 2rem; color: #fff; line-height: 1;
}
.nav__mobile-link {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800;
  color: #fff; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  text-transform: uppercase; letter-spacing: .06em; transition: color .2s;
}
.nav__mobile-link:hover { color: var(--accent); }
.nav__mobile-phone {
  margin-top: 2rem; display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
}

/* ─── 9. Blueprint Grid Mixin ──────────────────────────── */
/* Shared blueprint grid overlay used on hero & page-hero */
.hero__blueprint-grid,
.page-hero__blueprint-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, var(--bp-line) 0px, var(--bp-line) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, var(--bp-line) 0px, var(--bp-line) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, var(--bp-line-bold) 0px, var(--bp-line-bold) 1px, transparent 1px, transparent 300px),
    repeating-linear-gradient(90deg, var(--bp-line-bold) 0px, var(--bp-line-bold) 1px, transparent 1px, transparent 300px);
  pointer-events: none;
}

/* ─── 10. Hero ──────────────────────────────────────────── */
[data-section="hero"] {
  background: var(--theme-dark-band);
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 72px; position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break the .hero__img-bg view() timeline below */
  overflow: clip;
}
.hero__img-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* ─── Hero parallax (CSS scroll-driven, replaces GSAP ScrollTrigger) ── */
@keyframes hero-img-parallax {
  from { transform: translateY(0); }
  to   { transform: translateY(-70px); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__img-bg {
      animation: hero-img-parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(15,23,42,.96) 0%, rgba(15,23,42,.8) 60%, rgba(15,23,42,.5) 100%);
}
.hero__container {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 7rem 1.5rem 5rem;
}
.hero__content { color: #fff; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35);
  color: var(--accent); font-family: var(--font-sans);
  font-size: .72rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  padding: .35rem 1rem; margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}
.hero__eyebrow {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: .5rem;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem); color: #fff;
  line-height: .95; text-transform: uppercase;
  letter-spacing: .01em; margin-bottom: .75rem;
}
/* The title's glyph boxes take the font's full ascent, which at this size and a .95 line height reach up over the
   eyebrow (with a fallback font, past its centre), so a click or the editor's double-click on the eyebrow landed on
   the title. The eyebrow sits above that overflow. */
.hero__eyebrow { position: relative; z-index: 1; }
.hero__accent-line {
  width: 80px; height: 4px; background: var(--accent); margin-bottom: 2rem;
}
.hero__desc {
  font-family: var(--font-sans); font-size: 1.05rem;
  color: rgba(255,255,255,.72); line-height: 1.75;
  max-width: 540px; margin-bottom: 2.5rem; font-weight: 400;
}
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero__stat { flex: 1; padding: 0 2rem 0 0; }
.hero__stat:first-child { padding-left: 0; }
.hero__stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); line-height: 1;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.hero__stat-label {
  font-family: var(--font-sans); font-size: .65rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-top: .4rem; display: block;
}
.hero__stat-divider {
  width: 1px; height: 50px; background: rgba(255,255,255,.15); flex-shrink: 0; margin-right: 2rem;
}

/* ─── 11. Page Hero Banner (inner pages) ───────────────── */
.page-hero {
  background: var(--theme-dark-band); padding-top: 72px;
  min-height: 300px; display: flex; align-items: flex-end;
  position: relative; overflow: clip;
}
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(15,23,42,.92);
}
.page-hero .container {
  position: relative; z-index: 3; padding-bottom: 3rem; padding-top: 3rem;
}
.breadcrumb {
  font-family: var(--font-sans); font-size: .78rem; color: rgba(255,255,255,.4);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); transition: opacity .2s; }
.breadcrumb a:hover { opacity: .8; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff;
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: .5rem;
}
.page-hero__sub {
  font-family: var(--font-sans); font-size: 1rem;
  color: rgba(255,255,255,.55); font-weight: 400; text-transform: none;
}

/* ─── 12. About ─────────────────────────────────────────── */
[data-section="about"] { background: var(--background); padding: 7rem 0; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about__img-wrap { position: relative; }
.about__img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.about__img-label {
  position: absolute; top: 1.5rem; left: -1rem; z-index: 2;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1rem;
}
.about__text h2 { margin-bottom: 1rem; }
.about__text p  { color: var(--muted); font-size: 1rem; font-family: var(--font-sans); }
.about__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem;
}
.about__stat {
  background: var(--surface); padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
}
.about__stat-num {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 800; color: var(--accent); line-height: 1;
}
.about__stat-label {
  font-family: var(--font-sans); font-size: .75rem; color: var(--muted);
  margin-top: .25rem; display: block; letter-spacing: .04em;
}

/* ─── 13. Services — 2-col numbered blueprint cards ─────── */
[data-section="services"] { background: var(--surface); padding: 7rem 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px;
  background: var(--border);
}
/* Grid fix for data-list (converter strips attr but keeps element) */
[data-list], div[data-list] {
  /* do not use display: contents — see guidelines */
}
.service-card {
  position: relative; overflow: hidden;
  padding: 3rem 2.5rem;
  background: var(--background);
  transition: background .3s;
  display: flex; gap: 2rem; align-items: flex-start;
}
/* Even cards get dark background */
.service-card:nth-child(even) {
  background: var(--secondary);
}
.service-card:nth-child(even) h3,
.service-card:nth-child(even) .service-card__body p { color: rgba(255,255,255,.85); }
.service-card:nth-child(even) .svc-subtitle { color: var(--accent); }
.service-card:nth-child(even) .svc-price { color: rgba(255,255,255,.55); }
.service-card:nth-child(even) .svc-link { color: var(--accent); }

.service-card__num {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 800;
  color: var(--accent); line-height: 1; flex-shrink: 0;
  letter-spacing: .02em; border-bottom: 3px solid var(--accent);
  padding-bottom: .1rem;
}
.service-card:nth-child(even) .service-card__num { color: var(--accent); }
.service-card__body { flex: 1; border-left: 3px solid var(--accent); padding-left: 1.5rem; }
.service-card__body h3 { margin-bottom: .35rem; font-size: 1.3rem; }
.service-card .svc-subtitle {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem; display: block;
}
.service-card .svc-price {
  display: block; margin-top: 1rem;
  font-family: var(--font-sans); font-size: .85rem; color: var(--muted);
  letter-spacing: .04em;
}
.service-card .svc-link {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .75rem; font-family: var(--font-sans);
  font-size: .8rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); transition: gap .2s;
}
.service-card:hover .svc-link { gap: .6rem; }
.service-card p {
  font-family: var(--font-sans); font-size: .93rem; color: var(--muted); line-height: 1.65;
}

/* ─── 14. Service Areas ─────────────────────────────────── */
[data-section="service_areas"] { background: var(--primary); padding: 5rem 0; }
.service-areas__header h2 { color: #fff; }
.service-areas__header p  { color: rgba(255,255,255,.5); }
.areas__grid {
  display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2.5rem;
}
.area-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(59,130,246,.2);
  color: rgba(255,255,255,.8); padding: .5rem 1.2rem;
  font-family: var(--font-sans); font-size: .85rem; letter-spacing: .04em;
  transition: background .2s, border-color .2s, color .2s;
}
.area-chip:hover { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.5); color: #fff; }
.area-chip__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

/* ─── 15. Emergency Contact — Dark centered band ────────── */
[data-section="emergency_contact"] {
  background: var(--theme-emergency-bg); padding: 5rem 0;
  position: relative; overflow: hidden;
}
[data-section="emergency_contact"]::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(59,130,246,.05) 0, rgba(59,130,246,.05) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(59,130,246,.05) 0, rgba(59,130,246,.05) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.emergency__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.5rem;
}
.emergency__label {
  font-family: var(--font-sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; color: var(--accent); text-transform: uppercase;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3);
  padding: .3rem .9rem;
}
.emergency__headline {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800; color: #fff; text-transform: uppercase;
  letter-spacing: .03em; line-height: 1.0; max-width: 800px;
}
.emergency__sub {
  font-family: var(--font-sans); font-size: 1rem;
  color: rgba(255,255,255,.6); max-width: 560px; font-weight: 400;
}
.emergency__phone {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; color: var(--accent); text-transform: uppercase;
  letter-spacing: .05em; transition: color .2s;
}
.emergency__phone:hover { color: #fff; }
.emergency__cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2.5rem; transition: background .2s, transform .2s;
}
.emergency__cta:hover { background: var(--accent-dark, #2563eb); transform: translateY(-2px); }

/* ─── 16. Before / After Gallery — Side-by-side ─────────── */
[data-section="before_after_gallery"] { background: var(--background); padding: 7rem 0; }
.ba__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 0;
}
.ba-card {
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.ba-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.14); }
.ba-card__split {
  display: flex; height: 260px; position: relative;
}
.ba-card__panel {
  flex: 1; position: relative; overflow: hidden;
}
.ba-card__panel img {
  width: 100%; height: 100%; object-fit: cover;
}
.ba-card__divider {
  width: 2px; background: #fff; flex-shrink: 0; z-index: 2; position: relative;
}
.ba-card__divider::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px; background: #fff;
  border: 2px solid var(--accent);
}
.ba-panel-label {
  position: absolute; top: .75rem; left: .75rem; z-index: 3;
  font-family: var(--font-sans); font-size: .62rem; font-weight: 500;
  letter-spacing: .15em; color: #fff; background: rgba(0,0,0,.6);
  padding: .2rem .55rem; text-transform: uppercase;
}
.ba-card__panel--after .ba-panel-label {
  left: auto; right: .75rem;
  background: rgba(59,130,246,.8);
}
.ba-card__caption {
  padding: .85rem 1.25rem;
  font-family: var(--font-sans); font-size: .85rem;
  color: var(--muted); border-top: 2px solid var(--accent);
}

/* ─── 17. Certifications ────────────────────────────────── */
[data-section="certifications"] { background: var(--surface); padding: 5rem 0; }
.cert__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.5px; background: var(--border); margin-top: 2.5rem;
}
.cert-card {
  background: var(--background); padding: 2rem 1.5rem;
  text-align: center; transition: background .2s;
}
.cert-card:hover { background: var(--surface); }
.cert-logo { width: 60px; height: 60px; object-fit: contain; margin: 0 auto .9rem; }
.cert-card h4  { font-size: .95rem; margin-bottom: .2rem; }
.cert-issuer   { font-family: var(--font-sans); font-size: .75rem; color: var(--accent); letter-spacing: .06em; }
.cert-note     { font-family: var(--font-sans); font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ─── 18. Quote Request — Dark blueprint form ───────────── */
[data-section="quote_request"] {
  background: var(--primary); padding: 7rem 0;
  position: relative; overflow: hidden;
}
[data-section="quote_request"]::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--bp-line) 0, var(--bp-line) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, var(--bp-line) 0, var(--bp-line) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.quote__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.quote__content { color: #fff; }
.quote__content h2 {
  color: #fff; margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.quote__content > p  {
  font-family: var(--font-sans); color: rgba(255,255,255,.55);
  line-height: 1.75; margin-bottom: 2.5rem; font-size: .97rem;
}
.quote__trust { display: flex; flex-direction: column; gap: 1rem; }
.quote__trust-item {
  display: flex; align-items: flex-start; gap: .75rem;
  font-family: var(--font-sans); font-size: .92rem;
  color: rgba(255,255,255,.6);
}
.quote__trust-check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--accent);
}

/* Quote form card — dark themed */
.quote__form-card {
  background: var(--secondary); border: 1px solid rgba(59,130,246,.15);
  padding: 2.5rem; position: relative;
}
.quote__form-header {
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.quote__form-label {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .15em; color: var(--accent); text-transform: uppercase;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-family: var(--font-sans);
  font-size: .68rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .45rem;
}
/* Quote form: dark-themed inputs */
[data-section="quote_request"] .form-control {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid rgba(59,130,246,.2);
  background: rgba(255,255,255,.05);
  font-family: var(--font-sans); font-size: .95rem; color: rgba(255,255,255,.85);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
[data-section="quote_request"] .form-control::placeholder { color: rgba(255,255,255,.25); }
[data-section="quote_request"] .form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
[data-section="quote_request"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 12px;
  padding-right: 2.2rem;
}
[data-section="quote_request"] select.form-control option { background: var(--secondary); color: #fff; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
[data-section="quote_request"] textarea.form-control { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%; padding: 1rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: .1em; font-weight: 700; text-transform: uppercase;
  transition: background .2s, transform .2s; cursor: pointer; border: none;
}
.form-submit:hover { background: var(--accent-dark, #2563eb); transform: translateY(-2px); }
.form-note {
  font-family: var(--font-sans); font-size: .72rem;
  color: rgba(255,255,255,.3); margin-top: .65rem; text-align: center;
}

/* ─── 19. Testimonials ──────────────────────────────────── */
[data-section="testimonials"] { background: var(--secondary); padding: 7rem 0; }
.testimonials__header h2,
.testimonials__header p { color: #fff; }
.testimonials__header p { color: rgba(255,255,255,.5); }
.testi__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px;
  background: rgba(255,255,255,.05); margin-top: 3rem;
}
.testi-card {
  background: rgba(255,255,255,.04); padding: 2rem;
  transition: background .3s;
}
.testi-card:hover { background: rgba(59,130,246,.08); }
.testi-stars { color: #f59e0b; font-size: 1rem; letter-spacing: .08em; margin-bottom: .75rem; }
.testi-content {
  font-family: var(--font-sans); color: rgba(255,255,255,.75);
  font-size: .93rem; line-height: 1.75; margin-bottom: 1.5rem;
}
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-avatar {
  width: 48px; height: 48px; object-fit: cover;
  border: 2px solid rgba(59,130,246,.5);
}
.testi-name {
  font-family: var(--font-display); color: #fff;
  font-size: 1rem; font-weight: 700;
}
.testi-role {
  font-family: var(--font-sans); font-size: .75rem;
  color: rgba(255,255,255,.4); margin-top: .1rem; letter-spacing: .04em;
}

/* ─── 20. Opening Hours ─────────────────────────────────── */
[data-section="opening_hours"] { background: var(--background); padding: 5rem 0; }
.hours__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 2.5rem;
}
.hours__list { display: flex; flex-direction: column; }
.hours__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.hours__row:last-child { border-bottom: none; }
.hours__day {
  font-family: var(--font-sans); font-weight: 500; font-size: .93rem; flex: 1;
}
.hours__time { font-family: var(--font-sans); color: var(--muted); font-size: .88rem; }
.hours__status-chip {
  font-family: var(--font-sans); font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .15rem .5rem;
}
.hours__status-chip--open {
  background: rgba(22,163,74,.1); color: var(--theme-hours-open);
  border: 1px solid rgba(22,163,74,.25);
}

.hours__panel {
  background: var(--primary); padding: 2.5rem;
  border-left: 4px solid var(--accent); text-align: left;
}
.open-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(22,163,74,.1); color: var(--theme-hours-open);
  padding: .4rem 1rem; font-family: var(--font-sans);
  font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.open-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hours__panel-headline {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 800; color: #fff; margin-bottom: .5rem;
}
.hours__panel-sub {
  font-family: var(--font-sans); font-size: .88rem;
  color: rgba(255,255,255,.5); margin-bottom: 1.5rem; line-height: 1.6;
}
.hours__panel-btn { display: inline-flex; }

/* ─── 21. Contact ───────────────────────────────────────── */
[data-section="contact"] { background: var(--surface); padding: 7rem 0; }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start;
}
.contact__info h2 { margin-bottom: 1.75rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem;
}
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(59,130,246,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--accent);
}
.contact-label {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.contact-value {
  font-family: var(--font-sans); font-weight: 500; margin-top: .2rem; font-size: .95rem;
  color: var(--text);
}

.contact__form-card {
  background: var(--background); padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact__form-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  letter-spacing: .08em; margin-bottom: 1.75rem;
  border-bottom: 3px solid var(--accent); padding-bottom: .75rem;
}

/* Contact form: light-themed inputs */
[data-section="contact"] .form-label { color: var(--muted); }
[data-section="contact"] .form-control {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--border); background: var(--surface);
  font-family: var(--font-sans); font-size: .95rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
[data-section="contact"] .form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
[data-section="contact"] textarea.form-control { resize: vertical; min-height: 120px; }
[data-section="contact"] .form-submit {
  background: var(--primary); color: #fff;
}
[data-section="contact"] .form-submit:hover { background: var(--accent); }

/* ─── 22. FAQs ──────────────────────────────────────────── */
[data-section="faqs"] { background: var(--background); padding: 6rem 0; }
.faq__list { max-width: 800px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.25rem 0; text-align: left; background: none;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--text);
  transition: color .2s; cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  font-size: 1.5rem; color: var(--accent); flex-shrink: 0;
  transition: transform .3s; line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner {
  font-family: var(--font-sans); padding: 0 0 1.25rem;
  color: var(--muted); font-size: .95rem; line-height: 1.75;
}

/* ─── 23. Footer ────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--theme-dark-band); padding: 5rem 0 2rem; color: rgba(255,255,255,.55);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem;
}
.footer__brand-logo { height: 38px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer__tagline {
  font-family: var(--font-sans); font-size: .88rem;
  color: rgba(255,255,255,.4); line-height: 1.65; max-width: 240px; margin-bottom: 1.25rem;
}
.footer__social { display: flex; gap: .65rem; }
.footer__social-link {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45); font-family: var(--font-sans);
  font-size: .7rem; font-weight: 500; letter-spacing: .04em;
  transition: background .2s, color .2s, border-color .2s;
}
.footer__social-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer__col h4 {
  font-family: var(--font-display); color: #fff; font-size: .9rem; font-weight: 700;
  letter-spacing: .1em; margin-bottom: 1.25rem;
}
.footer__col-link {
  display: block; font-family: var(--font-sans); font-size: .88rem;
  color: rgba(255,255,255,.45); margin-bottom: .7rem; transition: color .2s;
}
.footer__col-link:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-sans); font-size: .75rem; color: rgba(255,255,255,.28);
}

/* ─── 24. Hero Entrance (CSS @keyframes — above fold) ──── */
@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: hero-entrance .9s cubic-bezier(.22,1,.36,1) .15s both;
  }
}

/* ─── 25. Sticky Mobile CTA ─────────────────────────────── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--accent); color: #fff;
  padding: .9rem 1.5rem;
  align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1rem;
  letter-spacing: .08em; font-weight: 700; text-transform: uppercase;
  box-shadow: 0 -4px 20px rgba(59,130,246,.35); transition: transform .3s;
}
.sticky-cta:hover { background: var(--accent-dark, #2563eb); }
.sticky-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 768px) {
  .sticky-cta { display: flex; transform: translateY(100%); }
  .sticky-cta.visible { transform: translateY(0); }
  [data-section="footer"] { padding-bottom: 5rem; }
}

/* ─── 26. Reveal Animation System (Growth tier) ───────────
   Resting state is visible at rule level — the hidden
   from-state lives ONLY inside @reveal-in's keyframes, 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; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* .hero__content keeps its own above-the-fold entrance (24. above)
       rather than a scroll-triggered one — it's already in view on load. */
    .reveal:not(.hero__content) {
      animation: reveal-in .65s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .reveal.delay-1 { animation-range: entry 8% entry 46%; }
    .reveal.delay-2 { animation-range: entry 16% entry 54%; }
    .reveal.delay-3 { animation-range: entry 24% entry 62%; }
    .reveal.delay-4 { animation-range: entry 32% entry 70%; }
    .reveal.delay-5 { animation-range: entry 40% entry 78%; }

    /* Repeating grid cards (service/cert/testimonial/before-after) had
       their stagger assigned dynamically by IntersectionObserver order;
       approximate the same cadence with nth-child now that reveal is
       purely CSS-driven. */
    .service-card:nth-child(2), .cert-card:nth-child(2),
    .testi-card:nth-child(2), .ba-card:nth-child(2) { animation-range: entry 8% entry 46%; }
    .service-card:nth-child(3), .cert-card:nth-child(3),
    .testi-card:nth-child(3), .ba-card:nth-child(3) { animation-range: entry 16% entry 54%; }
    .service-card:nth-child(4), .cert-card:nth-child(4),
    .testi-card:nth-child(4), .ba-card:nth-child(4) { animation-range: entry 24% entry 62%; }
    .service-card:nth-child(5), .cert-card:nth-child(5),
    .testi-card:nth-child(5), .ba-card:nth-child(5) { animation-range: entry 32% entry 70%; }
  }
}

/* ─── 27. Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__stats { gap: 0; flex-wrap: wrap; }
  .hero__stat  { flex: 0 0 auto; padding: .75rem 1.5rem .75rem 0; }
  .hero__stat-divider { display: none; }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .services__grid { grid-template-columns: 1fr; gap: 1.5px; }
  .quote__grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hours__grid   { grid-template-columns: 1fr; }
  .testi__grid   { grid-template-columns: repeat(2, 1fr); }
  .ba__grid      { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  [data-section="header"] nav:not(.nav__mobile) { flex-wrap: nowrap; }
  .nav__links { display: none; }
  .nav__phone-cta { display: none; }
  .nav__toggle { display: block; }
  .testi__grid  { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .cert__grid   { grid-template-columns: repeat(2, 1fr); }
  .emergency__headline { font-size: 2rem; }
  .ba-card__split { height: 200px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
  .areas__grid  { justify-content: flex-start; }
  .cert__grid   { grid-template-columns: 1fr 1fr; }
  .hero__stat-num { font-size: 1.7rem; }
}

/* ─── 28. Accessibility ─────────────────────────────────── */
@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;
  }
}


/* __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-menu-fit: a backdrop-filter makes the header the containing block of its position:fixed menu,
   so the opened menu resolved inset/top/bottom against the ~70px header and opened squashed.
   The header background is near-opaque, so the phone loses nothing by dropping the blur. */
@media (max-width: 768px) {
  [data-section="header"] { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* /phone-menu-fit */
/* 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.
   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__toggle { flex-shrink: 0; }
}
/* /phone-header-fit */
