/* ============================================================
   FreshLeaf Growth — Eco-Friendly Cleaning Service Theme
   WoBooks Template | local-service | growth tier
   ============================================================ */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
  --primary: #15803d;
  --secondary: #052e16;
  --accent: #84cc16;
  --background: #f0fdf4;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #bbf7d0;
  --font-sans: 'Lato', system-ui, sans-serif;
  --font-display: 'Nunito', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(21,128,61,0.08);
  --shadow-md: 0 8px 30px rgba(21,128,61,0.12);
  --shadow-lg: 0 20px 60px rgba(21,128,61,0.18);
}

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

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

/* ── 4. 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;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* ── 5. Container & Section Rhythm ───────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5rem 0; }
.section-alt { background: #f7fef9; }
.section-dark { background: var(--secondary); color: #fff; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }

/* ── 6. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: 1rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(21,128,61,0.1);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.section-dark .eyebrow { color: var(--accent); background: rgba(132,204,22,0.15); }
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.8; }
.section-dark .lead { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }

/* ── 7. Skip Link ─────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 9999;
  padding: 0.6rem 1.2rem; background: var(--primary); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { left: 1.5rem; top: 0; }

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

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

/* ── 10. Sticky Header ────────────────────────────────────── */
[data-section="header"] {
  position: sticky; top: 0; z-index: 200;
  background: var(--background, rgba(240,253,244,0.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
[data-section="header"].scrolled { box-shadow: 0 4px 20px rgba(21,128,61,0.12); }
[data-section="header"] nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1.5rem;
}

/* ── 11. Logo ─────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.logo img { height: 42px; width: auto; border-radius: 8px; }
.logo__text {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--primary);
}

/* ── 12. Nav Links (desktop) ──────────────────────────────── */
[data-section="header"] nav:not(.nav__mobile) { display: flex; }
.nav__links {
  display: flex; align-items: center; gap: 0.15rem;
  margin: 0 auto 0 2rem;
}
.nav__links a {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--text); padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}
.nav__links a:hover { background: rgba(21,128,61,0.1); color: var(--primary); }
.nav__cta {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  background: var(--primary); color: #fff !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--radius-pill) !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta:hover { background: var(--secondary) !important; transform: translateY(-1px); }
.nav__phone-link {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 800;
  color: var(--primary) !important; display: flex; align-items: center; gap: 0.3rem;
}

/* ── 13. Mobile Nav Toggle ────────────────────────────────── */
.nav__toggle {
  display: none; background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.45rem 0.65rem;
  font-size: 1.3rem; color: var(--text);
  transition: background var(--transition);
  align-items: center; justify-content: center;
}
.nav__toggle:hover { background: rgba(21,128,61,0.08); }

/* ── 14. Mobile Nav Panel ─────────────────────────────────── */
[data-section="header"] .nav__mobile { display: none; }
[data-section="header"] .nav__mobile.open {
  display: flex; flex-direction: column; gap: 0.25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--background, rgba(240,253,244,0.98));
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  padding: 1.2rem 1.5rem 1.5rem;
  box-shadow: 0 12px 30px rgba(21,128,61,0.1);
  z-index: 199;
}
.nav__mobile a {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--text); padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav__mobile a:hover { background: rgba(21,128,61,0.08); color: var(--primary); }
.nav__mobile .nav__cta {
  margin-top: 0.5rem; text-align: center;
  background: var(--primary) !important; color: #fff !important;
}

/* ── 15. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.8rem 2rem; border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
}
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover {
  background: var(--secondary); border-color: var(--secondary);
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(21,128,61,0.35);
}
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(21,128,61,0.25);
}
.btn--accent { background: var(--accent); color: var(--secondary); border-color: var(--accent); color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.btn--accent:hover {
  background: #65a30d; border-color: #65a30d; color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(132,204,22,0.35);
}
.btn--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn--sm { padding: 0.55rem 1.4rem; font-size: 0.9rem; }
.btn--magnetic { will-change: transform; }
.btn--white { background: #fff; color: var(--primary); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; }

/* ── 16. Hero Section ─────────────────────────────────────── */
[data-section="hero"] {
  min-height: 88vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  position: relative;
  /* clip, not hidden — hidden would turn this into a scroll container
     and break any view() timeline nested inside it */
  overflow: clip;
  padding: 5rem 0;
}
[data-section="hero"]::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(132,204,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative; z-index: 1;
}
.hero__content { max-width: 580px; }
.hero__title { margin-bottom: 1.25rem; color: var(--secondary); }
.hero__title span { color: var(--primary); }
.hero__text { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.8; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700;
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.trust-chip::before { content: '✓'; font-size: 0.7rem; color: var(--accent); font-weight: 900; }
.hero__image-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21,128,61,0.08) 0%, transparent 60%);
  pointer-events: none;
}
/* The views render no data-field markers (the converter strips them): content is styled by class. */
[data-section="hero"] .hero__image {
  width: 100%; height: 520px; object-fit: cover; display: block;
}
.hero__phone-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: #fff; border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800;
  color: var(--secondary); font-size: 0.95rem; z-index: 2;
}

/* ── 17. Stats Band ───────────────────────────────────────── */
.stats-band {
  background: #fff;
  border-top: 2px solid var(--border); border-bottom: 2px solid var(--border);
  padding: 2.5rem 0;
}
.stats-band__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.stat-item {
  flex: 1 1 200px; text-align: center;
  padding: 1.5rem 2rem; border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800;
  color: var(--accent); line-height: 1; margin-bottom: 0.25rem;
}
.stat-suffix {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.875rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── 18. Wave / Leaf Divider ──────────────────────────────── */
.wave-divider { display: block; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ── 19. About Section ────────────────────────────────────── */
[data-section="about"] { padding: 6rem 0; background: var(--background); }
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about__image-wrap { position: relative; }
.about__image-wrap::before {
  content: '';
  position: absolute; inset: -12px; top: 12px; left: 12px;
  border: 3px solid var(--border); border-radius: var(--radius); z-index: 0;
}
.about__image-wrap img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.about__checklist { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.about__check-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.about__check-icon {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem; font-weight: 900; margin-top: 0.15rem;
}
.about__check-text { font-size: 0.95rem; color: var(--text); font-weight: 600; }

/* ── 20. Services Section ─────────────────────────────────── */
[data-section="services"] { padding: 6rem 0; background: #f7fef9; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
[data-section="services"] [data-list="items"] { display: contents; }
.service-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary);
}
.service-card__leaf {
  position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; opacity: 0.07; pointer-events: none;
}
.service-card__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem; color: #fff;
}
.service-card__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 0.5rem;
}
.service-card__content { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.service-card__price {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  color: var(--primary); background: rgba(21,128,61,0.08);
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
}
.service-card .service-card__image[src=""] { display: none; }
.service-card .service-card__link[href="#"] { display: none; }

/* ── 21. Service Areas ────────────────────────────────────── */
[data-section="service_areas"] { padding: 5rem 0; background: var(--secondary); }
.areas__header { text-align: center; margin-bottom: 2.5rem; }
.areas__chips { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
[data-section="service_areas"] [data-list="items"] { display: contents; }
.area-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.2rem; border-radius: var(--radius-pill);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.area-chip::before { content: '📍'; font-size: 0.75rem; }
.area-chip:hover { background: rgba(132,204,22,0.2); border-color: var(--accent); color: var(--accent); }
.area-chip__note { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 0.25rem; }

/* ── 22. Certifications ───────────────────────────────────── */
[data-section="certifications"] { padding: 5rem 0; background: var(--secondary); }
.certs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-top: 2.5rem;
}
[data-section="certifications"] [data-list="items"] { display: contents; }
.cert-card {
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.cert-card:hover { background: rgba(132,204,22,0.12); transform: translateY(-4px); }
.cert-card img {
  width: 60px; height: 60px; object-fit: contain;
  margin: 0 auto 1rem; filter: brightness(0) invert(1);
}
.cert-card__name {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 800;
  color: #fff; margin-bottom: 0.25rem; display: block;
}
.cert-card__issuer { font-size: 0.78rem; color: rgba(255,255,255,0.55); display: block; margin-bottom: 0.25rem; }
.cert-card__note { font-size: 0.75rem; color: var(--accent); font-weight: 600; display: block; }

/* ── 23. Before/After Gallery ─────────────────────────────── */
[data-section="before_after_gallery"] { padding: 6rem 0; background: var(--background); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-top: 2.5rem;
}
[data-section="before_after_gallery"] [data-list="items"] { display: contents; }
.ba-pair {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border);
}
.ba-images {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
}
.ba-images img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ba-leaf-divider {
  display: flex; align-items: center; justify-content: center;
  width: 44px; background: var(--background);
}
.ba-leaf-divider svg { width: 28px; height: 28px; }
.ba-caption {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--muted); text-align: center;
  padding: 0.75rem 1rem; border-top: 1px solid var(--border);
  background: #f7fef9;
}
.ba-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; padding: 0.3rem 0.6rem; display: block; text-align: center;
}
.ba-label--before { color: var(--muted); background: rgba(107,114,128,0.1); }
.ba-label--after { color: var(--primary); background: rgba(21,128,61,0.1); }

/* ── 24. Quote Request ────────────────────────────────────── */
[data-section="quote_request"] { padding: 6rem 0; background: #f7fef9; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.quote__benefits { padding-top: 0.5rem; }
.quote__benefit-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1rem; }
.quote__benefit { display: flex; align-items: flex-start; gap: 1rem; }
.quote__benefit-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(21,128,61,0.1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.quote__benefit-text strong {
  display: block; font-family: var(--font-display); font-weight: 800;
  color: var(--secondary); font-size: 0.95rem; margin-bottom: 0.2rem;
}
.quote__benefit-text span { font-size: 0.85rem; color: var(--muted); }
.quote__form-card {
  background: var(--surface); border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow-md); border: 1.5px solid var(--border);
}
.quote__form-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; font-family: var(--font-sans); font-size: 0.95rem;
  color: var(--text); background: var(--background);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,128,61,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── 25. Testimonials ─────────────────────────────────────── */
[data-section="testimonials"] { padding: 6rem 0; background: var(--secondary); }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.testi-card {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}
.testi-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.testi-card::before {
  content: '\201C'; position: absolute; top: 1rem; right: 1.5rem;
  font-family: Georgia, serif; font-size: 5rem; line-height: 1;
  color: rgba(132,204,22,0.2);
}
.testi-stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.75rem; }
.testi-content {
  font-size: 0.95rem; color: rgba(255,255,255,0.8);
  line-height: 1.8; margin-bottom: 1.5rem; font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(132,204,22,0.4);
}
.testi-name { display: block; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 0.9rem; }
.testi-role { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── 26. Opening Hours ────────────────────────────────────── */
[data-section="opening_hours"] { padding: 5rem 0; background: var(--background); }
.hours__grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.hours-table tr:hover { background: rgba(21,128,61,0.04); }
.hours-table tr.today { background: rgba(132,204,22,0.12); }
.hours-table tr.today td { color: var(--primary); font-weight: 700; }
.hours-table td { padding: 0.9rem 1rem; font-size: 0.95rem; color: var(--text); }
.hours-table td:first-child { font-family: var(--font-display); font-weight: 700; width: 40%; }
.hours-table td:last-child { text-align: right; font-size: 0.78rem; color: var(--muted); }
[data-section="opening_hours"] [data-list="items"] { display: contents; }

/* ── 27. Contact Section ──────────────────────────────────── */
[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-items { margin: 2rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact__info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact__info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(21,128,61,0.1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact__info-label {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  display: block; margin-bottom: 0.2rem;
}
.contact__info-value { font-size: 0.95rem; color: var(--text); font-weight: 600; }
.contact__info-value a { color: var(--primary); }
.contact__form-card {
  background: var(--surface); border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border);
}
.contact__form-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 1.5rem;
}

/* ── 28. FAQs Section ─────────────────────────────────────── */
[data-section="faqs"] { padding: 5rem 0; background: #f7fef9; }
.faqs__list { margin-top: 2rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.75rem; overflow: hidden; background: var(--surface);
}
.faq-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; background: none; border: none;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--secondary); cursor: pointer; text-align: left; gap: 1rem;
  transition: background var(--transition);
}
.faq-item__trigger:hover { background: rgba(21,128,61,0.04); }
.faq-item__trigger[aria-expanded="true"] { color: var(--primary); }
.faq-item__icon {
  width: 24px; height: 24px; min-width: 24px; border-radius: 50%;
  background: rgba(21,128,61,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--primary);
  transition: transform var(--transition), background var(--transition);
}
.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg); background: var(--primary); color: #fff;
}
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item__answer-inner { padding: 0 1.5rem 1.2rem; font-size: 0.95rem; color: var(--muted); line-height: 1.8; }

/* ── 29. Pricing (optional, inherited) ───────────────────── */
[data-section="pricing"] { padding: 5rem 0; background: var(--background); }
[data-section="pricing"] [data-list="items"] { display: contents; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.pricing-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── 30. Portfolio, Social, Policies (minimal/hidden) ────── */
[data-section="portfolio"] { padding: 5rem 0; }
[data-section="portfolio"] [data-list="items"] { display: contents; }
[data-section="social"] { display: none; }
[data-section="policies"] { padding: 4rem 0; }
[data-section="policies"] [data-list="items"] { display: contents; }

/* ── 31. Footer ───────────────────────────────────────────── */
[data-section="footer"] { background: var(--secondary); color: #fff; padding: 4rem 0 2rem; color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand img { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer__col h4 {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer__col a {
  display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem;
  margin-bottom: 0.5rem; transition: color var(--transition);
}
.footer__col a:hover { color: var(--accent); }
.footer__social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer__social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.footer__social-link:hover { background: var(--accent); color: var(--secondary); border-color: var(--accent); color: oklch(from var(--accent) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}

/* ── 32. Sticky Mobile CTA Bar ────────────────────────────── */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--secondary, rgba(5,46,22,0.96)); backdrop-filter: blur(10px);
  padding: 0.75rem 1rem; z-index: 150;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25); gap: 0.75rem;
}
.sticky-cta.visible { display: flex; }
.sticky-cta .btn { flex: 1; justify-content: center; padding: 0.75rem 1rem; }

/* ── 33. Back to Top ──────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 1.2rem;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 140; box-shadow: var(--shadow-sm);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── 35. Tilt Card ────────────────────────────────────────── */
.tilt-card { transform-style: preserve-3d; }

/* ── 36. Responsive 1024px ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__image-wrap { max-width: 540px; margin: 0 auto; }
  [data-section="hero"] .hero__image { height: 400px; }
  .hero__actions { justify-content: center; }
  .hero__trust-chips { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; }
  .about__image-wrap { max-width: 480px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quote__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr; }
}

/* ── 37. Responsive 768px ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__phone-link { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__toggle { display: flex; flex-shrink: 0; }
  /* A long brand name gives way instead of widening the phone's layout viewport. */
  [data-section="header"] nav:not(.nav__mobile) { gap: 0.75rem; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo img { flex-shrink: 0; }
  .logo__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .services__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band__grid { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .back-to-top { bottom: 6rem; }
  .sticky-cta { display: flex; }
}

/* ── 38. Responsive 480px ─────────────────────────────────── */
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; text-align: center; }
}

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

.hero__media.img-empty,
.hero__image-wrap.img-empty,
.hero__img-wrap.img-empty {
  min-height: 360px;
  background: rgba(21,128,61,0.06);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__media.img-empty,
.about__image.img-empty,
.about__img-wrap.img-empty {
  min-height: 280px;
  background: rgba(21,128,61,0.05);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}
.ba-card__side.img-empty,
.ba-before.img-empty,
.ba-after.img-empty,
[class*="before"].img-empty,
[class*="after"].img-empty {
  min-height: 160px;
  background: var(--border);
  border-radius: var(--radius-sm);
}

/* ── Reveal Animation System (CSS scroll-driven, replaces GSAP) ──
   Resting state is visible at rule level — the hidden from-state
   lives ONLY inside @keyframes reveal-in, and the whole lane is
   gated behind @supports + no-preference so a non-supporting /
   reduced-motion visitor just sees the content, never a blank
   section. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; }
}
@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; }
}
@keyframes hero-entrance-x {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Above-the-fold hero content/image/trust-chips are already in view
     on load — use normal time-based animations, never a view() timeline. */
  .hero__content { animation: hero-entrance .9s cubic-bezier(.19,1,.22,1) both; }
  .hero__image-wrap { animation: hero-entrance-x .9s cubic-bezier(.19,1,.22,1) .2s both; }
  .trust-chip { animation: reveal-in .5s cubic-bezier(.19,1,.22,1) .55s both; }
  .trust-chip:nth-child(2) { animation-delay: .65s; }
  .trust-chip:nth-child(3) { animation-delay: .75s; }
  .trust-chip:nth-child(4) { animation-delay: .85s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stat-item,
    .about__grid > *,
    .service-card,
    .cert-card,
    .ba-pair,
    .quote__grid > *,
    .testi-card,
    .area-chip {
      animation: reveal-in .65s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    /* Stagger by shifting animation-range, never animation-delay —
       a delay is a clock that may already have run before the
       element enters the viewport. */
    .stat-item:nth-child(2), .about__grid > *:nth-child(2),
    .service-card:nth-child(2), .cert-card:nth-child(2),
    .ba-pair:nth-child(2), .quote__grid > *:nth-child(2),
    .testi-card:nth-child(2), .area-chip:nth-child(2) { animation-range: entry 8% entry 46%; }

    .stat-item:nth-child(3), .about__grid > *:nth-child(3),
    .service-card:nth-child(3), .cert-card:nth-child(3),
    .ba-pair:nth-child(3), .quote__grid > *:nth-child(3),
    .testi-card:nth-child(3), .area-chip:nth-child(3) { animation-range: entry 16% entry 54%; }

    .stat-item:nth-child(4), .about__grid > *:nth-child(4),
    .service-card:nth-child(4), .cert-card:nth-child(4),
    .ba-pair:nth-child(4), .quote__grid > *:nth-child(4),
    .testi-card:nth-child(4), .area-chip:nth-child(4) { animation-range: entry 24% entry 62%; }

    .stat-item:nth-child(5), .about__grid > *:nth-child(5),
    .service-card:nth-child(5), .cert-card:nth-child(5),
    .ba-pair:nth-child(5), .quote__grid > *:nth-child(5),
    .testi-card:nth-child(5), .area-chip:nth-child(5) { animation-range: entry 32% entry 70%; }
  }
}

/* ── 39. Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* Palette roles, item 53 (BrandColourRoles, 2026-10-06): text on a band filled with a palette brand colour follows the fill; brand-coloured text on a band this theme draws dark keeps a lightness floor. */
:where([data-section="footer"]) .footer__brand p { color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where([data-section="footer"]) .footer__col a { color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where([data-section="footer"]) .footer__col h4 { color: oklch(from var(--secondary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.footer__bottom { color: oklch(from rgba(255, 255, 255, 0.45) calc(l + 0.02) c h / calc(min(1, alpha + 0.06))); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --primary: #077a37; /* was #15803d */
}
