/* ========================================================
   Ridge — Roofing Growth Theme | WoBooks Local-Service
   ======================================================== */

/* ─── 1. CSS Variables ─────────────────────────────────── */
:root {
  /* Canonical token names — overridden by per-team style presets */
  --primary:    #1c2b3a;
  --secondary:  #2a5298;
  --accent:     #e8581a;
  --background: #f7f5f2;
  --surface:    #ffffff;
  --text:       #1c2b3a;
  --muted:      #6b7a8d;
  --border:     #e4dfd8;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-display: 'Oswald', sans-serif;
  --radius:     6px;

  /* Immutable design constants — unique names, never overridden by presets */
  --theme-dark-band:      #0f1a24;
  --theme-emergency-bg:   #bf4200;
  --theme-hours-open:     #166534;
}

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

/* 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.1; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { line-height: 1.7; }

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

.section-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; 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; }

/* ─── 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: .07em;
  font-weight: 500; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(232, 88, 26, .35);
}
.btn--primary:hover {
  background: var(--accent-dark, #bf4200);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,88,26,.45);
}
.btn--outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55);
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ─── 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: 50%;
  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,.25);
  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(247,245,242,.97));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
[data-section="header"].scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.1);
}
[data-section="header"] nav:not(.nav__mobile) {
  display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0;
}
.logo { flex-shrink: 0; }
.logo img { height: 42px; width: auto; object-fit: contain; }
.logo-wordmark {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--primary); letter-spacing: .04em;
}
.nav__links {
  display: flex; align-items: center; gap: 1.75rem; margin-left: auto;
}
.nav__links a {
  font-size: .9rem; font-weight: 500; color: var(--text);
  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: 600;
  color: var(--accent); white-space: nowrap;
  padding: .5rem 1.25rem; border: 1.5px solid rgba(232,88,26,.35); border-radius: 100px;
  transition: background .2s, border-color .2s;
}
.nav__phone-cta:hover { background: rgba(232,88,26,.08); border-color: var(--accent); }
.nav__phone-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav__toggle {
  display: none; background: none; font-size: 1.5rem; color: var(--text);
  padding: .5rem; margin-left: auto;
}
.nav__cart { display: none; } /* local-service — no cart */

/* Mobile nav panel */
.nav__mobile {
  display: none; flex-direction: column;
  position: fixed; inset: 0; z-index: 2000;
  background: var(--surface, rgba(255,255,255,.99));
  padding: 5rem 2rem 2rem; gap: 0; overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; font-size: 2rem; color: var(--text); line-height: 1;
}
.nav__mobile-link {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--text); padding: 1rem 0; border-bottom: 1px solid var(--border);
  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);
}

/* ─── 9. 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`: `overflow: hidden` makes this a SCROLL CONTAINER,
     which silently kills the `.hero__img-bg` parallax's `view()` timeline
     below — `clip` clips identically without creating one. */
  overflow: clip;
}
[data-section="hero"]::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(15,26,36,.94) 0%, rgba(15,26,36,.7) 60%, rgba(15,26,36,.4) 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: center / cover no-repeat;
  will-change: transform;
}
.hero__img-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  will-change: translate;
}
/* ─── Hero Parallax (CSS scroll-driven — replaces GSAP ScrollTrigger) ────
   The old tween scrubbed `.hero__img-bg` from y:0 to y:-70 while the hero
   scrolled from `top top` to `bottom top` — that maps to the `exit` view
   range, and the amplitude is carried over exactly (0 -> -70px). Uses
   `translate` rather than `transform` so it composes with, instead of
   clobbering, any transform this element or a preset ever adds. Both the
   `both` fill-mode and the plain, un-timelined rule above give this image
   a fully visible resting position with zero translation — a browser
   without view() support, or with it but never activating this
   animation, shows a static hero image, not a shifted or clipped one. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__img-bg {
      animation: wb-ridge-hero-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}
@keyframes wb-ridge-hero-parallax {
  from { translate: 0 0; }
  to   { translate: 0 -70px; }
}
.hero__container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 42%;
  gap: 4rem; align-items: center;
  padding: 6rem 1.5rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero__content { color: #fff; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(232,88,26,.15); border: 1px solid rgba(232,88,26,.4);
  color: var(--accent); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero__eyebrow {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: .35rem;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  color: #fff; line-height: 1.0; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .9rem;
}
.hero__title .accent { color: var(--accent); }
.hero__subtitle {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: 1.05rem; color: rgba(255,255,255,.78); line-height: 1.75;
  max-width: 480px; margin-bottom: 2.5rem;
}
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__tel-link {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: rgba(255,255,255,.85); letter-spacing: .04em; transition: color .2s;
}
.hero__tel-link:hover { color: var(--accent); }
.hero__tel-icon { font-size: 1rem; }
.hero__trust {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
}
.hero__trust-stat {}
.hero__stat-num {
  display: block; font-family: var(--font-display); font-size: 2rem;
  color: var(--accent); line-height: 1;
}
.hero__stat-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.45); margin-top: .2rem; display: block;
}

/* Hero visual card */
.hero__visual { position: relative; }
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; overflow: hidden; backdrop-filter: blur(8px);
}
.hero__card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__card-badge {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--accent); color: #fff;
  padding: 1rem 1.5rem; border-radius: 8px;
  box-shadow: 0 8px 32px rgba(232,88,26,.4);
  font-family: var(--font-display);
}
.hero__card-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.hero__card-badge small { font-size: .68rem; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }

/* ─── 10. About ─────────────────────────────────────────── */
[data-section="about"] { background: var(--surface); 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;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.14);
}
.about__img-accent {
  position: absolute; bottom: -1rem; right: -1rem; z-index: -1;
  width: 55%; aspect-ratio: 1; background: var(--accent);
  border-radius: 8px; opacity: .12;
}
.about__text h2 { margin-bottom: 1rem; }
.about__text p  { color: var(--muted); font-size: 1.05rem; }
.about__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem;
}
.about__stat {
  background: var(--background); padding: 1.25rem 1.5rem;
  border-radius: var(--radius); border-left: 3px solid var(--accent);
}
.about__stat-num {
  display: block; font-family: var(--font-display); font-size: 1.9rem;
  color: var(--accent); line-height: 1;
}
.about__stat-label { font-size: .78rem; color: var(--muted); margin-top: .25rem; display: block; }

/* ─── 11. Services ──────────────────────────────────────── */
[data-section="services"] { background: var(--background); padding: 7rem 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
/* Bento sizing via nth-child (single data-item template) */
.services__grid .service-card:nth-child(1) { grid-column: span 2; }
.services__grid .service-card:nth-child(5) { grid-column: span 2; }

.service-card {
  background: var(--surface); border-radius: 10px; padding: 2rem;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.1); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(232,88,26,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: .4rem; }
.service-card .svc-subtitle {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.service-card p { font-size: .92rem; color: var(--muted); line-height: 1.65; }
.service-card .svc-price {
  margin-top: 1rem; font-family: var(--font-display);
  font-size: .88rem; color: var(--text); letter-spacing: .05em;
}
.service-card .svc-link {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--accent);
  transition: gap .2s;
}
.service-card:hover .svc-link { gap: .6rem; }

/* ─── 12. 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,.55); }
.areas__grid {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem;
}
/* data-list="items" is the flex container above */
.area-chip {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.82); padding: .55rem 1.2rem; border-radius: 100px;
  font-size: .88rem; transition: background .2s, border-color .2s, color .2s;
}
.area-chip:hover { background: rgba(232,88,26,.2); border-color: rgba(232,88,26,.5); color: #fff; }
.area-note { font-size: .75rem; opacity: .55; margin-left: .3rem; }

/* ─── 13. Emergency Contact ─────────────────────────────── */
[data-section="emergency_contact"] {
  background: var(--theme-emergency-bg); padding: 2.75rem 0;
}
.emergency__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.emergency__text {}
.emergency__text h3 {
  font-family: var(--font-display); font-size: 1.7rem; color: #fff;
  margin-bottom: .2rem; letter-spacing: .03em;
}
.emergency__text p { color: rgba(255,255,255,.78); font-size: .92rem; }
.emergency__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.emergency__phone {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: #fff; letter-spacing: .05em;
}
.emergency__phone-icon { font-size: 1.2rem; }
.emergency__cta {
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.6);
  color: #fff; padding: .7rem 1.6rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .07em;
  font-size: .95rem; transition: background .2s, border-color .2s;
}
.emergency__cta:hover { background: rgba(255,255,255,.25); border-color: #fff; }

/* ─── 14. Before / After Gallery ───────────────────────── */
[data-section="before_after_gallery"] { background: var(--surface); padding: 7rem 0; }
.ba__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.ba__grid .ba-card:nth-child(1) { grid-column: span 2; }

.ba-card {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.ba-card:nth-child(1) { aspect-ratio: 16/9; }

.ba-card__before,
.ba-card__after {
  position: absolute; inset: 0;
}
.ba-card__before img,
.ba-card__after img {
  width: 100%; height: 100%; object-fit: cover;
}
.ba-card__after {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s cubic-bezier(.65,0,.35,1);
}
.ba-card:hover .ba-card__after { clip-path: inset(0 0% 0 0); }

.ba-card__labels {
  position: absolute; top: .75rem; left: .75rem; z-index: 3;
  display: flex; gap: .4rem;
}
.ba-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 3px; color: #fff;
}
.ba-label--before { background: rgba(0,0,0,.5); }
.ba-label--after  { background: rgba(232,88,26,.85); }

.ba-card__caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  padding: 2.5rem 1rem .9rem; color: rgba(255,255,255,.9); font-size: .85rem;
  transform: translateY(100%); transition: transform .4s ease;
}
.ba-card:hover .ba-card__caption { transform: translateY(0); }
.ba-hover-hint {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.ba-hint-text {
  background: rgba(0,0,0,.45); color: rgba(255,255,255,.8);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 100px;
  opacity: 1; transition: opacity .3s;
}
.ba-card:hover .ba-hint-text { opacity: 0; }

/* ─── 15. Certifications ────────────────────────────────── */
[data-section="certifications"] { background: var(--background); padding: 5rem 0; }
.cert__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.cert-card {
  background: var(--surface); border-radius: 10px; padding: 1.75rem 1.25rem;
  text-align: center; border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.08); }
.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-size: .73rem; color: var(--muted); }
.cert-note     { font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ─── 16. Quote Request ─────────────────────────────────── */
[data-section="quote_request"] { background: var(--theme-dark-band); padding: 7rem 0; }
.quote__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.quote__content { color: #fff; }
.quote__content h2 { color: #fff; margin-bottom: 1rem; }
.quote__content p  { color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 2rem; }
.quote__trust { display: flex; flex-direction: column; gap: .9rem; }
.quote__trust-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .92rem; color: rgba(255,255,255,.65);
}
.quote__trust-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(232,88,26,.18); border: 1px solid rgba(232,88,26,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--accent);
}

/* Quote form card */
.quote__form-card {
  background: var(--surface); border-radius: 12px; padding: 2.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.form-control {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--background);
  font-family: var(--font-sans); font-size: .95rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.form-control:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,88,26,.15);
}
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='%236b7a8d' 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;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; padding: 1rem; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: .09em; font-weight: 500;
  transition: background .2s, transform .2s; cursor: pointer; border: none;
}
.form-submit:hover { background: var(--accent-dark, #bf4200); transform: translateY(-2px); }
.form-note { font-size: .72rem; color: var(--muted); margin-top: .65rem; text-align: center; }

/* ─── 17. Testimonials ──────────────────────────────────── */
[data-section="testimonials"] { background: var(--primary); padding: 7rem 0; }
.testimonials__header h2 { color: #fff; }
.testimonials__header p  { color: rgba(255,255,255,.55); }
.testi__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.testi-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 2rem; transition: background .3s;
}
.testi-card:hover { background: rgba(255,255,255,.1); }
.testi-stars { color: #f59e0b; font-size: 1rem; letter-spacing: .08em; margin-bottom: .75rem; }
.testi-content { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(232,88,26,.5); }
.testi-name { font-family: var(--font-display); color: #fff; font-size: 1rem; }
.testi-role { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: .1rem; }

/* ─── 18. Opening Hours ─────────────────────────────────── */
[data-section="opening_hours"] { background: var(--surface); 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; gap: 0; }
/* data-list="items" is .hours__list */
.hours__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.hours__row:last-child { border-bottom: none; }
.hours__day  { font-weight: 500; font-size: .95rem; }
.hours__time { color: var(--muted); font-size: .9rem; }

.hours__status {
  background: var(--background); border-radius: 12px; padding: 2rem;
  border: 1px solid var(--border); text-align: center;
}
.open-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(22,101,52,.1); color: var(--theme-hours-open);
  padding: .5rem 1.25rem; border-radius: 100px; font-weight: 700; font-size: .88rem;
  margin-bottom: 1rem;
}
.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__status-headline {
  font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .5rem;
}
.hours__status-sub { font-size: .88rem; color: var(--muted); }

/* ─── 19. Contact ───────────────────────────────────────── */
[data-section="contact"] { background: var(--background); 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; border-radius: 8px; flex-shrink: 0;
  background: rgba(232,88,26,.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--accent);
}
.contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 500; margin-top: .2rem; font-size: .97rem; }
.contact__form-card {
  background: var(--surface); border-radius: 12px; padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
}
.contact-form .form-group  { margin-bottom: 1.2rem; }
.contact-form .form-control { /* inherits .form-control above */ }

/* ─── 20. FAQs ──────────────────────────────────────────── */
[data-section="faqs"] { background: var(--background); padding: 6rem 0; }
.faq__list { max-width: 760px; margin: 2rem 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: 600; color: var(--text);
  transition: color .2s; cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-toggle { font-size: 1.35rem; color: var(--accent); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 0 1.25rem; color: var(--muted); font-size: .95rem; line-height: 1.75; }

/* ─── 21. Pricing (optional) ────────────────────────────── */
[data-section="pricing"] { background: var(--surface); padding: 6rem 0; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-card {
  background: var(--background); border-radius: 10px; padding: 2rem;
  border: 2px solid var(--border); transition: border-color .3s, transform .3s;
}
.pricing-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.pricing-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .5rem;
}
.pricing-card h3   { margin-bottom: .25rem; }
.pricing-subtitle  { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; }
.pricing-price     { font-family: var(--font-display); font-size: 2.4rem; margin: .75rem 0; }
.pricing-content   { font-size: .9rem; color: var(--muted); margin-top: .75rem; }

/* ─── 22. Footer ────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--theme-dark-band); padding: 5rem 0 2rem; color: rgba(255,255,255,.6);
}
.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-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 250px; margin-bottom: 1.25rem; }
.footer__social { display: flex; gap: .75rem; }
.footer__social-item-link {
  width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  transition: background .2s, color .2s, border-color .2s;
}
.footer__social-item-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer__col h4 {
  font-family: var(--font-display); color: #fff; font-size: .95rem;
  letter-spacing: .07em; margin-bottom: 1.25rem;
}
.footer__col-link {
  display: block; font-size: .88rem; color: rgba(255,255,255,.5);
  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,.08);
  font-size: .78rem; color: rgba(255,255,255,.32);
}

/* ─── 23. Hero Entrance (CSS @keyframes — above fold) ──── */
@keyframes hero-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero__content {
  animation: hero-up .9s cubic-bezier(.22, 1, .36, 1) .15s both;
}
.hero__visual {
  animation: hero-up .9s cubic-bezier(.22, 1, .36, 1) .4s both;
}
/* When JS-anim class is active, defer to the reveal system instead */
html.js-anim .hero__content,
html.js-anim .hero__visual { animation: none; }

/* ─── 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: .07em;
  font-weight: 600; box-shadow: 0 -4px 20px rgba(232,88,26,.35);
  transition: transform .3s;
}
.sticky-cta:hover { background: var(--accent-dark, #bf4200); }
.sticky-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Only show on mobile after hero is scrolled past */
@media (max-width: 768px) {
  .sticky-cta { display: flex; transform: translateY(100%); }
  .sticky-cta.visible { transform: translateY(0); }
  /* Add bottom padding so footer doesn't hide behind CTA */
  [data-section="footer"] { padding-bottom: 5rem; }
}

/* ─── 24. Reveal Animation System (Growth tier) ─────────── */
/* Anti-FOUC: only hides elements when JS confirms it loaded */
html.js-anim .reveal {
  opacity: 0; transform: translateY(28px);
}
html.js-anim .reveal.in-view {
  opacity: 1; transform: translateY(0);
  transition: opacity .65s ease, transform .65s ease;
}
html.js-anim .reveal.in-view.delay-1 { transition-delay: .08s; }
html.js-anim .reveal.in-view.delay-2 { transition-delay: .16s; }
html.js-anim .reveal.in-view.delay-3 { transition-delay: .24s; }
html.js-anim .reveal.in-view.delay-4 { transition-delay: .32s; }
html.js-anim .reveal.in-view.delay-5 { transition-delay: .40s; }

/* ─── 24. Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { display: none; }
  [data-section="hero"] { min-height: 85vh; }
  .hero__trust { gap: 1.75rem; flex-wrap: wrap; }
  .about__grid  { grid-template-columns: 1fr; gap: 3rem; }
  .about__img-wrap { order: -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:nth-child(1),
  .services__grid .service-card:nth-child(5) { grid-column: span 1; }
  .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 1fr; }
  .ba__grid .ba-card:nth-child(1) { grid-column: span 1; aspect-ratio: 4/3; }
}

@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; }
  .services__grid { grid-template-columns: 1fr; }
  .testi__grid    { grid-template-columns: 1fr; }
  .ba__grid       { grid-template-columns: 1fr; }
  .pricing__grid  { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .hero__actions  { flex-direction: column; align-items: flex-start; }
  .about__stats   { grid-template-columns: 1fr 1fr; }
  .cert__grid     { grid-template-columns: repeat(2, 1fr); }
  .emergency__inner { flex-direction: column; text-align: center; justify-content: center; }
  .emergency__actions { justify-content: center; }
}

@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
  .areas__grid  { justify-content: center; }
  .cert__grid   { grid-template-columns: 1fr 1fr; }
  .hero__trust  { gap: 1rem; }
}

/* ─── 25. 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;
  }
  html.js-anim .reveal { opacity: 1 !important; transform: none !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-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. */
@media (max-width: 768px) {
  [data-section="header"] .logo { flex-shrink: 1; min-width: 0; }
  [data-section="header"] .logo-wordmark { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  [data-section="header"] .nav__toggle { flex-shrink: 0; }
}
/* /phone-header-fit */
/* phone-menu-fit: a backdrop-filter makes the header the containing block of its position:fixed menu,
   so the opened menu resolved inset: 0 against the header and showed no link.
   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 */
