/* ========================================================
   Apex — Luxury Craftsman Roofing | WoBooks Local-Service
   Growth Tier | Cormorant Garamond + Inter
   ======================================================== */

/* ─── 1. CSS Variables ─────────────────────────────────── */
:root {
  /* Canonical token names — overridden by per-team style presets */
  --primary:      #1c1c1c;
  --secondary:    #2d2d2d;
  --accent:       #c48b3f;
  --background:   #faf8f3;
  --surface:      #f2ede4;
  --text:         #1c1c1c;
  --muted:        #7a6e60;
  --border:       #e2d8cb;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --radius:       2px;

  /* Immutable design constants — unique names, never overridden by presets */
  --theme-dark-band:    #111111;
  --theme-emergency-bg: #111111;
  --theme-hours-open:   #1a4a2e;
}

/* ─── 2. Anti-FOUC Reveal System ───────────────────────── */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal {
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ─── 3. Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--background); line-height: 1.7; }
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: 600;
}
.skip-link:focus { left: 0; }

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

/* ─── 4. Typography ────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { line-height: 1.75; }

/* ─── 5. 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: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p  { color: var(--muted); max-width: 560px; font-size: .975rem; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* Decorative rule */
.deco-rule {
  display: block; width: 48px; height: 1px; background: var(--accent); margin: 1rem 0 1.5rem;
}
.deco-rule.center { margin: 1rem auto 1.5rem; }

/* ─── 6. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .875rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(196,139,63,.3);
}
.btn--primary:hover {
  background: var(--accent-dark, #a8722e);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,139,63,.4);
}
.btn--outline {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark {
  background: var(--primary); color: #fff;
}
.btn--dark:hover { background: var(--secondary); transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }

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

/* ─── 8. 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(--primary); color: var(--accent); 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;
  border: 1px solid var(--accent);
  color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); color: #fff; }

/* ─── 9. Sticky Mobile CTA ─────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--accent); color: #fff;
  padding: 1rem; text-align: center;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .3s;
}
.sticky-cta.visible { transform: translateY(0); }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
}

/* ─── 10. Header / Nav ─────────────────────────────────── */
[data-section="header"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--background, rgba(250,248,243,.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,.08);
}
[data-section="header"] nav:not(.nav__mobile) {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem 0;
}
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.logo-wordmark {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--primary); letter-spacing: .02em;
}
.nav__links {
  display: flex; align-items: center; gap: 2rem; margin-left: auto;
}
.nav__links a {
  font-size: .83rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  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: 1px;
  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-sans); font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  color: var(--accent); white-space: nowrap;
  padding: .55rem 1.25rem; border: 1px solid var(--accent); border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav__phone-cta:hover { background: var(--accent); color: #fff; }
.nav__phone-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav__toggle {
  display: none; background: none; font-size: 1.4rem; color: var(--text);
  padding: .5rem; margin-left: auto;
}
.nav__cart { display: none; } /* local-service — no cart */

/* Mobile nav panel */
[data-section="header"] .nav__mobile {
  display: none; flex-direction: column;
  position: fixed; inset: 0; z-index: 2000;
  background: var(--background, rgba(250,248,243,.99));
  padding: 5rem 2rem 2rem; overflow-y: auto;
}
[data-section="header"] .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: 2.5rem; font-weight: 700;
  color: var(--text); padding: .9rem 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: .6rem;
  font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; color: var(--accent);
  letter-spacing: .04em;
}

/* ─── 11. Hero ─────────────────────────────────────────── */
[data-section="hero"] {
  /* `clip`, not `hidden`: `overflow: hidden` makes this section a SCROLL
     CONTAINER, and a scroll container between the viewport and a
     `view()`-timeline element silently kills the timeline — the parallax
     below would simply never run. `clip` clips identically without
     creating one. */
  position: relative; overflow: clip;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding-top: 72px; background: var(--theme-dark-band);
}
/* Dark overlay */
[data-section="hero"]::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(17,17,17,.78) 0%, rgba(17,17,17,.62) 60%, rgba(17,17,17,.85) 100%);
}
.hero__img-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; will-change: translate;
}

/* Hero parallax — the CSS scroll-driven replacement for this theme’s only
   GSAP tween (a ScrollTrigger scrub over the hero’s exit). `exit` is the
   named range that means exactly what the tween meant: from the moment the
   hero’s top edge reaches the viewport top, to the moment its bottom edge
   does. The element is never hidden at any point, at rule level or in the
   keyframes, so a browser without scroll timelines simply shows a still
   hero — there is nothing here that can strand content.

   `translate` rather than `transform` so it composes with, instead of
   clobbering, any transform a preset or hover state sets. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__img-bg {
      animation: wb-apex-hero-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}
@keyframes wb-apex-hero-parallax {
  from { translate: 0 0; }
  to   { translate: 0 -70px; }
}

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 860px; margin: 0 auto;
  text-align: center; padding: 5rem 1.5rem 4rem;
}
.hero__badge-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(196,139,63,.18); border: 1px solid rgba(196,139,63,.45);
  color: var(--accent);
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero__badge-chip span:first-child { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero__eyebrow {
  display: block;
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(196,139,63,.8); margin-bottom: .75rem;
}
.hero__title {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700; color: #fff; line-height: 1.05; margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic; color: var(--accent);
}
.hero__subtitle {
  font-family: var(--font-sans); font-size: 1rem; color: rgba(255,255,255,.65);
  letter-spacing: .06em; margin-bottom: 1.25rem;
}
.hero__desc {
  font-family: var(--font-sans); font-size: 1.05rem; color: rgba(255,255,255,.8);
  max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.hero__actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero__tel-link {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.8); border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.hero__tel-link:hover { color: var(--accent); border-color: var(--accent); }

/* Stats row */
.hero__stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 2.5rem;
}
.hero__stat {
  flex: 1; text-align: center; padding: 0 1.5rem;
}
.hero__stat + .hero__stat {
  border-left: 1px solid rgba(255,255,255,.12);
}
.hero__stat-num {
  display: block;
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--accent); line-height: 1;
}
.hero__stat-label {
  display: block;
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-top: .4rem;
}

/* ─── 12. About ────────────────────────────────────────── */
[data-section="about"] { padding: 6rem 0; background: var(--background); }
.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: var(--radius);
}
.about__img-accent {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 60%; height: 60%; border: 2px solid var(--accent);
  border-radius: var(--radius); z-index: -1;
}
.about__text .section-eyebrow { display: block; }
.about__text h2 { margin-bottom: .75rem; }
.about__desc { color: var(--muted); margin-bottom: 2.5rem; }
.about__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.about__stat { padding: 1.25rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.about__stat-num {
  display: block;
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--accent); line-height: 1;
}
.about__stat-label {
  display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-top: .3rem;
}

/* ─── 13. Services ─────────────────────────────────────── */
[data-section="services"] { padding: 6rem 0; background: var(--surface); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--background); border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 2rem 1.75rem; border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.svc-num {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.svc-subtitle { font-size: .82rem; color: var(--accent); font-style: italic; margin-bottom: .75rem; }
.svc-desc { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.svc-link {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid rgba(196,139,63,.35); padding-bottom: 2px;
  transition: border-color .2s;
}
.svc-link:hover { border-color: var(--accent); }

/* ─── 14. Service Areas ────────────────────────────────── */
[data-section="service_areas"] { padding: 5rem 0; background: var(--background); }
.areas__grid {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem;
}
.area-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: .6rem 1.25rem; border-radius: 100px;
  font-size: .85rem; font-weight: 500; color: var(--text);
  transition: background .2s, border-color .2s, color .2s;
}
.area-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.area-chip::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.area-chip:hover::before { background: #fff; }
.area-note { font-size: .75rem; color: var(--muted); }

/* ─── 15. Emergency Contact ────────────────────────────── */
[data-section="emergency_contact"] {
  background: var(--theme-emergency-bg); color: #fff;
  padding: 5rem 0; text-align: center;
}
.emergency__inner { max-width: 700px; margin: 0 auto; }
.emergency__rule {
  display: block; width: 60px; height: 1px; background: rgba(196,139,63,.6);
  margin: 0 auto 2rem;
}
.emergency__headline {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: .75rem;
}
.emergency__headline em { font-style: italic; color: var(--accent); }
.emergency__sub {
  font-size: 1rem; color: rgba(255,255,255,.65); margin-bottom: 2.5rem;
}
.emergency__actions {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.emergency__phone {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--accent);
  transition: color .2s;
}
.emergency__phone:hover { color: #fff; }
.emergency__phone-icon { font-size: 1.4rem; }
.emergency__rule-bottom {
  display: block; width: 60px; height: 1px; background: rgba(196,139,63,.3);
  margin: 0 auto;
}

/* ─── 16. Before / After Gallery ──────────────────────── */
[data-section="before_after_gallery"] { padding: 6rem 0; background: var(--surface); }
.ba__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.ba-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--border); cursor: pointer;
}
.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; display: block;
}
.ba-card__before { z-index: 1; transition: opacity .5s ease; }
.ba-card__after  { z-index: 2; opacity: 0; transition: opacity .5s ease; }
.ba-card:hover .ba-card__before { opacity: 0; }
.ba-card:hover .ba-card__after  { opacity: 1; }
.ba-card__labels {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.ba-label {
  position: absolute; bottom: 1rem;
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; padding: .3rem .75rem;
  background: rgba(17,17,17,.55); border-radius: 100px;
}
.ba-label--before { left: 1rem; }
.ba-label--after  { right: 1rem; opacity: 0; transition: opacity .5s ease; }
.ba-card:hover .ba-label--before { opacity: 0; }
.ba-card:hover .ba-label--after  { opacity: 1; }
.ba-hint {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .08em;
  color: rgba(255,255,255,.7); background: rgba(17,17,17,.4); border-radius: 100px;
  padding: .25rem .75rem; z-index: 3; pointer-events: none;
  transition: opacity .3s;
}
.ba-card:hover .ba-hint { opacity: 0; }
.ba-card__caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 2rem 1.25rem .9rem;
  background: linear-gradient(to top, rgba(17,17,17,.8) 0%, transparent 100%);
  font-family: var(--font-sans); font-size: .85rem; color: rgba(255,255,255,.9);
  pointer-events: none;
}

/* ─── 17. Certifications ───────────────────────────────── */
[data-section="certifications"] { padding: 5.5rem 0; background: var(--background); }
.cert__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 1rem;
}
.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.75rem 1.25rem; border-radius: var(--radius); text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.cert-logo {
  height: 52px; width: auto; object-fit: contain;
  margin: 0 auto 1rem; display: block;
}
.cert-card h4 { font-size: 1rem; margin-bottom: .25rem; }
.cert-issuer { font-size: .78rem; color: var(--accent); font-style: italic; margin-bottom: .4rem; }
.cert-note { font-size: .78rem; color: var(--muted); }

/* ─── 18. Quote Request ────────────────────────────────── */
[data-section="quote_request"] { padding: 6rem 0; background: var(--surface); }
.quote__grid {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 4rem; align-items: start;
}
.quote__content .section-eyebrow { display: block; }
.quote__content h2 { margin-bottom: .75rem; }
.quote__content > p { color: var(--muted); margin-bottom: 2rem; }
.quote__trust { display: flex; flex-direction: column; gap: .65rem; }
.quote__trust-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; color: var(--muted);
}
.quote__trust-icon {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: .65rem; flex-shrink: 0;
}

/* Form card */
.quote__form-card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label {
  display: block; margin-bottom: .4rem;
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.form-control {
  width: 100%; padding: .75rem 0; border: none;
  border-bottom: 1px solid var(--border); border-radius: 0;
  background: transparent; font-family: var(--font-sans); font-size: .925rem; color: var(--text);
  transition: border-color .2s; outline: none;
}
.form-control:focus { border-bottom-color: var(--accent); }
.form-control::placeholder { color: var(--border); }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; margin-top: .5rem;
  background: var(--primary); color: #fff;
  padding: 1rem; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--accent); transform: translateY(-1px); }
.form-note { margin-top: .75rem; font-size: .75rem; color: var(--muted); text-align: center; }

/* ─── 19. Testimonials ─────────────────────────────────── */
[data-section="testimonials"] { padding: 6rem 0; background: var(--background); }
.testi__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2rem 1.75rem; border-radius: var(--radius);
  position: relative;
}
.testi-card::before {
  content: '\201C';
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: var(--font-display); font-size: 4rem; font-weight: 700;
  color: rgba(196,139,63,.15); line-height: 1;
}
.testi-stars { color: var(--accent); font-size: .9rem; margin-bottom: 1rem; letter-spacing: .05em; }
.testi-content {
  font-size: .925rem; color: var(--text); line-height: 1.75; margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: .875rem; }
.testi-role { font-size: .78rem; color: var(--muted); }

/* ─── 20. Opening Hours ────────────────────────────────── */
[data-section="opening_hours"] { padding: 5.5rem 0; background: var(--surface); }
.hours__grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: start; margin-top: 1rem;
}
.hours__list {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.hours__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.hours__row:last-child { border-bottom: none; }
.hours__row:nth-child(even) { background: var(--background); }
.hours__day { font-weight: 500; }
.hours__time { color: var(--muted); }
.hours__status { text-align: center; }
.open-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(26,74,46,.12); color: var(--theme-hours-open);
  border: 1px solid rgba(26,74,46,.25);
  padding: .4rem 1rem; border-radius: 100px;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.open-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--theme-hours-open);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hours__status h3 { font-family: var(--font-display); margin-bottom: .5rem; }
.hours__status p { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ─── 21. Contact ──────────────────────────────────────── */
[data-section="contact"] { padding: 6rem 0; background: var(--background); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start;
}
.contact__info .section-eyebrow { display: block; }
.contact__info h2 { margin-bottom: 2rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem;
}
.contact-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-value { font-size: .95rem; font-weight: 500; transition: color .2s; }
.contact-value:hover { color: var(--accent); }
.contact__form-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2.5rem; border-radius: var(--radius);
}
.contact__form-card h3 {
  font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1.75rem;
}

/* ─── 22. Footer ───────────────────────────────────────── */
[data-section="footer"] {
  background: var(--theme-dark-band); color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand-logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer__tagline { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 1.5rem; }
.footer__social { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer__social-item-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.65);
  transition: border-color .2s, color .2s, background .2s;
}
.footer__social-item-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(196,139,63,.08); }
.footer__col h4 {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 1rem;
}
.footer__col-link {
  display: block; font-size: .875rem; color: rgba(255,255,255,.6);
  margin-bottom: .5rem; transition: color .2s;
}
.footer__col-link:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ─── 23. Page Hero Banner (inner pages) ───────────────── */
.page-hero {
  background: var(--theme-dark-band); color: #fff;
  padding: 9rem 0 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,.7), rgba(17,17,17,.9));
  z-index: 1;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); color: #fff; margin-bottom: .75rem; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.65); margin-bottom: 1.25rem; }
.breadcrumb {
  font-family: var(--font-sans); font-size: .78rem; letter-spacing: .06em;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── 24. FAQs ─────────────────────────────────────────── */
[data-section="faqs"] { padding: 6rem 0; background: var(--background); }
.faqs__list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-trigger {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--text); background: none; border: none; cursor: pointer;
  transition: color .2s;
}
.faq-trigger:hover { color: var(--accent); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; transition: transform .3s, background .2s;
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-body {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
}
.faq-body-inner {
  padding: 0 0 1.25rem;
  font-size: .925rem; color: var(--muted); line-height: 1.75;
}

/* ─── 25. data-list grid fix ───────────────────────────── */
/* Prevent display:contents from collapsing grid containers */
[data-list] { /* inherits display from parent class */ }

/* ─── 26. Reduced Motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  html.js-anim .reveal { opacity: 1; transform: none; }
}

/* ─── 27. Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__img-wrap { max-width: 560px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .cert__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  [data-section="hero"] { padding-top: 80px; }
  .hero__stats { flex-direction: column; gap: 1.5rem; }
  .hero__stat + .hero__stat { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; }
  .nav__links { display: none; }
  .nav__phone-cta { display: none; }
  .nav__toggle { display: block; }
  .services__grid { grid-template-columns: 1fr; }
  .ba__grid { grid-template-columns: 1fr; }
  .cert__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .testi__grid { grid-template-columns: 1fr; }
  .hours__grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .emergency__phone { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .cert__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .about__stats { grid-template-columns: 1fr; }
}


/* __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 { 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 ~70px 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 */
