/* ============================================================
   TrustZone Growth — Bento Modular, Pest Control
   Direction: Bento Modular (sans display + mono meta, neutral surface + dual accent)
   Palette: #1c2c3f primary · #00b4cc accent · #f0f8fb bg · #0c1822 dark
   Fonts: DM Sans display + Inter body + JetBrains Mono meta
   ============================================================ */

/* ------- View Transitions ------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in  .35s ease both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(8px); } }

/* ------- Canonical Tokens ------- */
:root {
  --primary:    #1c2c3f;
  --secondary:  #25404f;
  --accent:     #00b4cc;
  --background: #f0f8fb;
  --surface:    #ffffff;
  --text:       #0f1e2b;
  --muted:      #6b8597;
  --border:     #d4e4ed;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;
  --radius:     6px;

  /* Immutable dark band constant - won't be overridden by theme presets */
  --theme-dark-band: #0c1822;
  --theme-accent-band: #00b4cc;

  /* Shadow scale */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .04), 0 1px 1px rgb(0 0 0 / .03);
  --shadow-md: 0 4px 12px rgb(0 0 0 / .06), 0 2px 4px rgb(0 0 0 / .04);
  --shadow-lg: 0 18px 40px rgb(0 0 0 / .10), 0 6px 12px rgb(0 0 0 / .06);

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem,   0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw,  1.5rem);
  --step-2:  clamp(1.44rem,1.28rem + 0.8vw, 2rem);
  --step-3:  clamp(1.73rem,1.5rem + 1.2vw,  2.66rem);
  --step-4:  clamp(2.07rem,1.7rem + 1.9vw,  3.55rem);
  --step-5:  clamp(2.49rem,1.95rem + 2.7vw, 4.74rem);
}

/* ------- Reset & Base ------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.2;
}
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-4); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 600; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ------- Empty image rules ------- */
img[src=""], img:not([src]) { display: none !important; }
img[src$="placeholder.jpg"] { display: none !important; }

/* ------- data-list display:contents ------- */
[data-list] { display: contents; }

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

/* ------- Skip link ------- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius);
  z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
[data-section="header"] {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
/* The blur lives on a pseudo-element: on the header itself it would make the header the
   containing block of the fixed phone menu, confining the open menu to the header strip. */
[data-section="header"]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
[data-section="header"].scrolled { box-shadow: var(--shadow-md); }

[data-section="header"] .container {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .875rem;
}

.logo img { height: 40px; width: auto; object-fit: contain; }

.nav__links {
  display: flex; align-items: center; gap: 2rem;
  margin-inline-start: auto;
}

.site-nav-link {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .02em;
  color: var(--text); transition: color .2s; position: relative;
}
.site-nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s;
}
.site-nav-link:hover { color: var(--accent); }
.site-nav-link:hover::after { width: 100%; }

.nav__cta {
  background: var(--accent); color: #fff;
  padding: .5rem 1.25rem; border-radius: var(--radius);
  font-size: var(--step--1); font-weight: 700;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.nav__cta:hover { background: var(--primary); transform: translateY(-1px); }

.nav__phone {
  display: flex; align-items: center; gap: .375rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 500; color: var(--primary);
}

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--text); padding: .25rem;
  margin-inline-start: auto; line-height: 1;
}
.nav__cart { display: none; }

@media (max-width: 768px) {
  .nav__toggle { display: block; position: relative; z-index: 1000; }
  .nav__toggle[aria-expanded="true"] { color: #fff; }
  .nav__links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; background: var(--primary); z-index: 999;
  }
  .nav__links.open { display: flex; }
  .site-nav-link { color: #fff; font-size: var(--step-1); }
  .nav__cta { font-size: var(--step-1); }
  .nav__phone { color: #fff; font-size: var(--step-1); }
}

/* ============================================================
   CSS REVEAL - Baseline scroll-driven, zero JS
   ============================================================ */
/* `to` intentionally omits `transform` — the underlying (rule-level) value
   resolves it to `none` once the animation is filling forward, so a card's
   :hover transform (.service-card lifts on hover) is never permanently
   overridden. Never write `to { transform: none; }` here. */
@keyframes wb-reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; } }
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: wb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    /* Below-the-fold cards previously entrance-animated by JS. No rule-level
       hide existed, but nothing replaces the entrance now — reuse the
       wb-reveal lane, staggered via animation-range (never
       animation-delay on a view() timeline). */
    .service-card,
    .cert-card,
    .testimonial-card,
    .footer__col,
    .footer__brand {
      animation: wb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .service-card:nth-child(2), .cert-card:nth-child(2), .testimonial-card:nth-child(2), .footer__col:nth-child(2) { animation-range: entry 7% entry 67%; }
    .service-card:nth-child(3), .cert-card:nth-child(3), .testimonial-card:nth-child(3), .footer__col:nth-child(3) { animation-range: entry 14% entry 74%; }
    .service-card:nth-child(n+4), .cert-card:nth-child(n+4), .testimonial-card:nth-child(n+4), .footer__col:nth-child(n+4) { animation-range: entry 21% entry 81%; }
  }
}

/* ============================================================
   HERO BENTO TILES — time-based entrance (above the fold: never
   view(), the visitor is already looking at it on load).
   ============================================================ */
.bento { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes bento-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; } }
  .bento {
    animation: bento-in 0.7s cubic-bezier(.16,1,.3,1) both;
    animation-delay: 0.1s;
  }
  .bento:nth-child(2) { animation-delay: 0.2s; }
  .bento:nth-child(3) { animation-delay: 0.3s; }
  .bento:nth-child(4) { animation-delay: 0.4s; }
  .bento:nth-child(n+5) { animation-delay: 0.5s; }
}

.reveal-stagger > * { --i: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-stagger > * {
      animation: wb-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
      animation-delay: calc(var(--i, 0) * 60ms);
    }
    .reveal-stagger > *:nth-child(1) { --i: 0; }
    .reveal-stagger > *:nth-child(2) { --i: 1; }
    .reveal-stagger > *:nth-child(3) { --i: 2; }
    .reveal-stagger > *:nth-child(4) { --i: 3; }
    .reveal-stagger > *:nth-child(5) { --i: 4; }
    .reveal-stagger > *:nth-child(6) { --i: 5; }
  }
}

/* ============================================================
   @property AURORA (Growth signature moment)
   ============================================================ */
@property --hue { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.bento__aurora {
  background: conic-gradient(from var(--hue), var(--primary), var(--accent), color-mix(in oklab, var(--primary) 60%, var(--accent)));
  animation: spin-hue 10s linear infinite;
}
@keyframes spin-hue { to { --hue: 360deg; } }
@media (prefers-reduced-motion: reduce) { .bento__aurora { animation: none; } }

/* ============================================================
   HERO - Bento Grid (6-col)
   ============================================================ */
[data-section="hero"] {
  min-height: 100svh; padding-top: 90px; padding-bottom: 3rem;
  display: flex; align-items: center; background: var(--background);
}

.hero__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto; gap: 1rem; width: 100%;
}

.bento {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  overflow: hidden; position: relative;
}

.bento--headline {
  grid-column: span 4; grid-row: span 2;
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  background: color-mix(in oklab, var(--primary) 4%, var(--background));
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: color-mix(in oklab, var(--accent) 14%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 2rem; padding: .3rem .9rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 500; letter-spacing: .05em; width: fit-content;
}

.bento--headline h1 { color: var(--primary); line-height: 1.1; }
.bento--headline h1 em { font-style: normal; color: var(--accent); }

.hero__sub { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }

.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.bento--image { grid-column: span 2; grid-row: span 2; padding: 0; min-height: 320px; }
.bento--image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.bento--aurora {
  grid-column: span 2; min-height: 160px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; gap: .5rem; border: none;
}

.bento__counter {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800; color: #fff; line-height: 1;
}
.bento__counter-label {
  font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
}

.bento--trust {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: center; gap: .75rem;
  background: var(--primary); border-color: var(--primary);
}

.trust__badge { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.9); font-size: var(--step--1); font-weight: 500; }
.trust__badge svg { flex-shrink: 0; color: var(--accent); width: 20px; height: 20px; }

.bento--phone {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
}

.bento__phone-label { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.bento__phone-num { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; color: var(--primary); }
.bento__phone-sub { font-size: var(--step--1); color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: repeat(2, 1fr); }
  .bento--headline { grid-column: span 2; }
  .bento--image { grid-column: span 2; min-height: 240px; }
  .bento--aurora { grid-column: span 1; }
  .bento--trust { grid-column: span 1; }
  .bento--phone { grid-column: span 2; }
}
@media (max-width: 600px) {
  .hero__grid { grid-template-columns: 1fr; }
  .bento--headline, .bento--image, .bento--aurora, .bento--trust, .bento--phone { grid-column: span 1; }
  .bento--image { min-height: 200px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: .5rem 1.25rem; font-size: var(--step--1); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
section { padding-block: clamp(3rem, 6vw, 5rem); }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__header .eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: var(--step--1);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section__header h2 { color: var(--primary); margin-bottom: .75rem; }
.section__header p { color: var(--muted); max-width: 56ch; margin-inline: auto; }

/* ============================================================
   ABOUT
   ============================================================ */
[data-section="about"] { background: var(--surface); }

.about__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.about__img-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid var(--border);
}
.about__img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.about__accent {
  position: absolute; bottom: 1rem; right: 1rem;
  background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: .75rem 1rem; font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}

.about__content { display: flex; flex-direction: column; gap: 1.25rem; }
.about__content .eyebrow { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.about__content h2 { color: var(--primary); }
.about__content p { color: var(--muted); }

.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .5rem; }
.about__stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.about__stat strong { display: block; font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; color: var(--accent); }
.about__stat span { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

@media (max-width: 768px) { .about__layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   SERVICES - Mixed Bento with :nth-child() dark cards
   ============================================================ */
[data-section="services"] { background: var(--background); }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.services__grid > [data-list] { display: contents; }

.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .2s, box-shadow .2s;
  container-type: inline-size;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.service-card:first-child { grid-column: span 2; }

.service-card:nth-child(3),
.service-card:nth-child(6) { background: var(--primary); border-color: var(--primary); color: #fff; }
.service-card:nth-child(3) .service-card__title,
.service-card:nth-child(6) .service-card__title { color: #fff; }
.service-card:nth-child(3) .service-card__text,
.service-card:nth-child(6) .service-card__text { color: rgba(255,255,255,.75); }
.service-card:nth-child(3) .service-card__price,
.service-card:nth-child(6) .service-card__price { color: var(--accent); }
.service-card:nth-child(3) .service-card__icon,
.service-card:nth-child(6) .service-card__icon { background: rgba(255,255,255,.1); }

.service-card__icon {
  width: 48px; height: 48px;
  background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card__icon svg { width: 24px; height: 24px; color: var(--accent); }

.service-card__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; color: var(--primary); }
.service-card__text { font-size: var(--step--1); color: var(--muted); flex: 1; }
.service-card__price { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.service-card__link { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--step--1); font-weight: 600; color: var(--accent); margin-top: auto; }
.service-card img { width: 100%; height: 160px; object-fit: cover; border-radius: calc(var(--radius) - 2px); }

@container (min-width: 280px) {
  .service-card { grid-template-columns: 60px 1fr; }
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:first-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card:first-child { grid-column: span 1; }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { background: var(--primary); padding-block: 3rem; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stats-band__item { text-align: center; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.stats-band__num { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1; }
.stats-band__label { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); }

@media (max-width: 640px) { .stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* ============================================================
   SERVICE AREAS
   ============================================================ */
[data-section="service_areas"] { background: var(--surface); }

.service-areas__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.service-areas__grid > [data-list] { display: contents; }

.area-chip {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  background: color-mix(in oklab, var(--primary) 4%, var(--background));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.area-chip:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, var(--surface)); }
.area-chip__icon { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.area-chip__name { font-weight: 600; font-size: var(--step--1); color: var(--primary); }
.area-chip__note { font-size: var(--step--1); color: var(--muted); margin-top: .125rem; display: block; }

/* ============================================================
   EMERGENCY CONTACT BAND
   ============================================================ */
[data-section="emergency_contact"] { background: var(--theme-accent-band); padding-block: 3rem; text-align: center; }

.emergency__inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.emergency__eyebrow { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.8); }
[data-section="emergency_contact"] h3 { font-family: var(--font-display); font-size: var(--step-4); font-weight: 800; color: #fff; }
[data-section="emergency_contact"] p { color: rgba(255,255,255,.85); max-width: 48ch; }

.emergency__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.emergency__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.4); color: #fff;
  padding: .875rem 2rem; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: var(--step-2); font-weight: 700;
  transition: background .2s;
}
.emergency__phone:hover { background: rgba(255,255,255,.25); }

.emergency__wa { display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #fff; padding: .875rem 1.75rem; border-radius: var(--radius); font-weight: 700; transition: opacity .2s; }
.emergency__wa:hover { opacity: .9; }

.emergency__cta { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--primary); padding: .875rem 1.75rem; border-radius: var(--radius); font-weight: 700; transition: opacity .2s; }
.emergency__cta:hover { opacity: .85; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
[data-section="certifications"] { background: var(--background); }

.certs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.certs__grid > [data-list] { display: contents; }

.cert-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .875rem; align-items: flex-start;
  transition: border-color .2s;
}
.cert-card:hover { border-color: var(--accent); }
.cert-card img { height: 48px; width: auto; object-fit: contain; max-width: 120px; }
.cert-card__name { font-family: var(--font-display); font-size: var(--step-0); font-weight: 700; color: var(--primary); }
.cert-card__issuer { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.cert-card__note { font-size: var(--step--1); color: var(--muted); }

/* ============================================================
   QUOTE REQUEST - Dual pane
   ============================================================ */
[data-section="quote_request"] { background: var(--theme-dark-band); padding-block: clamp(3rem, 6vw, 5rem); }

.quote__layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }

.quote__info { display: flex; flex-direction: column; gap: 1.5rem; color: #fff; }
.quote__info .eyebrow { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.quote__info h2 { color: #fff; }
.quote__info p { color: rgba(255,255,255,.75); }

.quote__features { display: flex; flex-direction: column; gap: .875rem; list-style: none; }
.quote__features li { display: flex; align-items: flex-start; gap: .75rem; font-size: var(--step--1); color: rgba(255,255,255,.8); }
.quote__features li::before {
  content: ''; width: 20px; height: 20px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: .1em;
  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='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.quote__form-card { background: var(--surface); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.quote__form-card h3 { margin-bottom: 1.5rem; color: var(--primary); }

.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1rem; }
.form-group label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: var(--step-0);
  color: var(--text); background: var(--background); transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.quote__submit {
  width: 100%; padding: 1rem;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); font-family: var(--font-display);
  font-weight: 700; font-size: var(--step-0); cursor: pointer;
  transition: background .2s; margin-top: .5rem;
}
.quote__submit:hover { background: var(--primary); }
.quote__submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 768px) { .quote__layout { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS - 3-col card grid, dark navy
   ============================================================ */
[data-section="testimonials"] { background: var(--theme-dark-band); padding-block: clamp(3rem, 6vw, 5rem); }
[data-section="testimonials"] .section__header h2 { color: #fff; }
[data-section="testimonials"] .section__header p { color: rgba(255,255,255,.7); }

.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonials__grid > [data-list] { display: contents; }

.testimonial-card {
  background: color-mix(in oklab, var(--primary) 80%, var(--theme-dark-band));
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .2s;
}
.testimonial-card:hover { border-color: var(--accent); }

.testimonial-card__stars { display: flex; gap: .25rem; color: var(--accent); font-size: 1rem; }
.testimonial-card__text { font-size: var(--step-0); color: rgba(255,255,255,.85); font-style: italic; flex: 1; line-height: 1.7; }

.testimonial-card__footer { display: flex; align-items: center; gap: .875rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }

.testimonial-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 20%, var(--primary));
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff;
  font-size: var(--step-0); flex-shrink: 0; overflow: hidden;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-card__name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: var(--step-0); }
.testimonial-card__role { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); }

@media (min-width: 481px) and (max-width: 768px) { .testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .testimonials__grid { grid-template-columns: 1fr; } }

/* ============================================================
   OPENING HOURS
   ============================================================ */
[data-section="opening_hours"] { background: var(--surface); }

.hours__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

.hours__list { display: flex; flex-direction: column; }
.hours__list > [data-list] { display: contents; }

.hours__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .875rem 1rem; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.hours__row:last-child { border-bottom: none; }
.hours__row.today { background: color-mix(in oklab, var(--accent) 8%, var(--surface)); border-left: 3px solid var(--accent); padding-left: calc(1rem - 3px); }

.hours__day { font-weight: 600; color: var(--text); font-size: var(--step--1); }
.hours__time { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.hours__row.today .hours__day { color: var(--primary); }
.hours__row.today .hours__time { color: var(--accent); font-weight: 600; }

.hours__extra { display: flex; flex-direction: column; gap: 1.5rem; }
.hours__card { background: color-mix(in oklab, var(--primary) 5%, var(--background)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.hours__card h3 { color: var(--primary); margin-bottom: .5rem; font-size: var(--step-1); }
.hours__card p { color: var(--muted); font-size: var(--step--1); }

@media (max-width: 768px) { .hours__layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   CONTACT
   ============================================================ */
[data-section="contact"] { background: var(--background); }

.contact__layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__info h2 { color: var(--primary); }
.contact__info p { color: var(--muted); }

.contact__details { display: flex; flex-direction: column; gap: .875rem; list-style: none; }
.contact__details a,
.contact__details span { display: flex; align-items: center; gap: .75rem; font-size: var(--step--1); color: var(--text); font-weight: 500; }
.contact__details a { transition: color .2s; }
.contact__details a:hover { color: var(--accent); }
.contact__details a svg,
.contact__details span svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.contact__map-link { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); padding: .5rem 1rem; transition: background .2s, color .2s; }
.contact__map-link:hover { background: var(--accent); color: #fff; }

.contact__form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact__form-card h3 { color: var(--primary); margin-bottom: 1.5rem; }

.contact__submit {
  width: 100%; padding: 1rem; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); font-family: var(--font-display);
  font-weight: 700; font-size: var(--step-0); cursor: pointer; transition: background .2s; margin-top: .5rem;
}
.contact__submit:hover { background: var(--accent); }
.contact__submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 768px) { .contact__layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   FAQS - Accordion with inner-border
   ============================================================ */
[data-section="faqs"] { background: var(--surface); }

.faqs__list { display: flex; flex-direction: column; gap: .5rem; max-width: 760px; margin-inline: auto; }
.faqs__list > [data-list] { display: contents; }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--accent); }

.faq-item__trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; cursor: pointer; background: none; border: none;
  width: 100%; text-align: left; font-family: var(--font-display);
  font-size: var(--step-0); font-weight: 600; color: var(--primary); transition: background .15s;
}
.faq-item__trigger:hover { background: color-mix(in oklab, var(--accent) 4%, var(--surface)); }
.faq-item__trigger:focus-visible { outline: 2px solid var(--accent); }

.faq-item__icon {
  width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s, background .2s; color: var(--primary);
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }

.faq-item__body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-item__answer { padding: 0 1.5rem 1.25rem; color: var(--muted); font-size: var(--step--1); line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
[data-section="footer"] { background: var(--theme-dark-band); padding-block: 3rem 1.5rem; }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 1.5rem; }

.footer__brand img { height: 36px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer__tagline { color: rgba(255,255,255,.6); font-size: var(--step--1); line-height: 1.7; max-width: 30ch; }

.footer__col h3 { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); margin-bottom: 1rem; font-weight: 500; }

.footer__links { display: flex; flex-direction: column; gap: .625rem; }
.footer__links a { color: rgba(255,255,255,.75); font-size: var(--step--1); transition: color .2s; }
.footer__links a:hover { color: var(--accent); }

.footer__contact-list { display: flex; flex-direction: column; gap: .625rem; list-style: none; }
.footer__contact-list a,
.footer__contact-list span { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.75); font-size: var(--step--1); }
.footer__contact-list a:hover { color: var(--accent); }
.footer__contact-list a svg,
.footer__contact-list span svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__copy { color: rgba(255,255,255,.4); font-size: var(--step--1); }

.footer__social-icons { display: flex; gap: .75rem; }
.footer__social-icons a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: border-color .2s, color .2s; }
.footer__social-icons a:hover { border-color: var(--accent); color: var(--accent); }
.footer__social-icons a svg { width: 16px; height: 16px; }

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer__brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: span 1; } }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  width: 44px; height: 44px; background: var(--primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, background .2s, transform .15s;
  z-index: 900; box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid var(--accent); }

/* ============================================================
   MOBILE CTA STRIP
   ============================================================ */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary); padding: .875rem 1.25rem; z-index: 800; gap: .75rem;
}
.mobile-cta a { flex: 1; text-align: center; padding: .75rem; border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); color: #fff; }
.mobile-cta a:first-child { background: var(--accent); }
.mobile-cta a:last-child { border: 1px solid rgba(255,255,255,.3); }

@media (max-width: 768px) { .mobile-cta { display: flex; } body { padding-bottom: 70px; } }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--primary); padding: 8rem 0 4rem; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: .75rem; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


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

/* Palette roles (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
:where([data-section="quote_request"]) .quote__info .eyebrow { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.service-card:nth-child(3), .service-card:nth-child(6)) .service-card__link { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* 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(.bento--trust) .trust__badge { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where(.service-card:nth-child(3), .service-card:nth-child(6)) .service-card__text { color: oklch(from var(--primary) 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. */
:root {
  --muted: #4f6879; /* was #6b8597 */
  --accent: #00677e; /* was #00b4cc */
  --theme-accent-band: #00677e; /* was #00b4cc */
}
.footer__copy { color: oklch(from rgba(255, 255, 255, 0.4) 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. */
.emergency__wa { background-color: oklch(from rgb(37, 211, 102) min(l, 0.511) c h / alpha); }
