/* =========================================================
   Bradley Roofing - Bay of Plenty
   Single stylesheet, mobile-first.
   Slate / copper / off-white trade palette.
   ========================================================= */

:root {
  /* Brand, charcoal-gradient dominant, logo green as accent */
  --ink: #1a1a1a;
  --ink-deep: #0d0d0d;
  --ink-soft: #2a2a2a;
  --ink-line: #3a3a3a;
  --ink-grad: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 45%, #2a2a2a 100%);
  --ink-grad-v: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);

  --steel: #4a4a4a;
  --steel-soft: #6e6e6e;

  --cream: #f5f2eb;
  --cream-deep: #ece8dd;
  --white: #ffffff;
  --ink-text: #1a1a1a;
  --muted: #6b6b6b;
  --muted-light: #989898;
  --border: #e4e2dc;
  --border-strong: #c9c5b9;

  --accent: #5ec145;          /* Bradley logo green */
  --accent-bright: #72d058;
  --accent-press: #4ba834;
  --accent-soft: rgba(94, 193, 69, 0.12);
  --accent-line: rgba(94, 193, 69, 0.36);

  --safety: #ffc107;          /* high-vis utility for "active jobs" badges */
  --good: #2e7d3a;
  --warn: #d68910;
  --danger: #c0392b;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);

  --font-display: 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-narrow: 880px;

  --header-h: 84px;
  --header-h-mobile: 68px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100vw; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-synthesis: none;
  color: var(--ink-text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.75rem, 6vw + 1rem, 5.5rem); }
h2 { font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem); }
h3 { font-size: clamp(1.375rem, 1.2vw + 1rem, 1.875rem); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; text-transform: none; letter-spacing: -0.005em; line-height: 1.3; }

p { max-width: 68ch; }
.lead { font-size: 1.125rem; color: var(--muted); }
strong { font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

.skip-link {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1rem;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container, .container-narrow { padding-inline: 2rem; }
}

section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section-cream { background: var(--cream); }
.section-ink {
  background: var(--ink-grad);
  color: var(--cream-deep);
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--white); }
.section-steel { background: var(--steel); color: var(--white); }
.section-steel h1, .section-steel h2, .section-steel h3 { color: var(--white); }

.divider-stripe {
  height: 3px;
  width: clamp(40px, 5vw, 64px);
  background: var(--accent);
  margin: 1rem 0 1.5rem;
  border-radius: 2px;
}

.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .divider-stripe { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
              border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--ink-deep);
  box-shadow: 0 4px 14px rgba(94, 193, 69, 0.28);
}
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 6px 22px rgba(94, 193, 69, 0.42); }
.btn-primary:active { background: var(--accent-press); }

.btn-ink {
  background: var(--ink);
  color: var(--white);
}
.btn-ink:hover { background: var(--ink-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.section-ink .btn-ghost,
.section-steel .btn-ghost,
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.section-ink .btn-ghost:hover,
.section-steel .btn-ghost:hover,
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); }

.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.75rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 0.9375rem; }
.btn-block { display: flex; width: 100%; }

.btn-icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h-mobile);
}
@media (min-width: 1024px) {
  .header-inner { height: var(--header-h); }
}

.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 56px; } }

.nav-primary { display: none; }
@media (min-width: 1024px) {
  .nav-primary { display: block; flex: 1; margin-inline: 2rem; }
  .nav-primary > ul {
    display: flex; align-items: center; justify-content: center;
    gap: 1.75rem;
    font-size: 0.875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .nav-primary a, .nav-primary button[aria-haspopup] {
    color: var(--ink); padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
    display: inline-flex; align-items: center; gap: 0.25rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    font: inherit;
  }
  .nav-primary a:hover, .nav-primary button[aria-haspopup]:hover { color: var(--accent); }
  .nav-primary a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

  .has-dropdown { position: relative; }
  .dropdown-menu {
    position: absolute; top: 100%; left: -1rem;
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
  }
  .has-dropdown[aria-expanded="true"] .dropdown-menu,
  .has-dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .dropdown-menu li { display: block; }
  .dropdown-menu a {
    display: block; padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    text-transform: none; letter-spacing: 0; font-size: 0.9375rem;
    border-bottom: 0;
  }
  .dropdown-menu a:hover { background: var(--cream); color: var(--accent); }
  .chev { transition: transform 0.15s var(--ease); }
  .has-dropdown[aria-expanded="true"] .chev { transform: rotate(180deg); }
}

.header-right { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: none;
  align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 700;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s var(--ease);
}
.header-phone:hover { background: var(--cream); color: var(--accent); }
@media (min-width: 1024px) { .header-phone { display: inline-flex; } }
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--ink);
  border-radius: var(--radius);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle:hover { background: var(--cream); }

/* Mobile call CTA visible on small screens */
.mobile-call-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--ink-deep); background: var(--accent);
  border-radius: var(--radius);
}
@media (min-width: 1024px) { .mobile-call-cta { display: none; } }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
}
.mobile-drawer[data-open="true"] { pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(7, 16, 28, 0.5);
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.mobile-drawer[data-open="true"] .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 86vw);
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.mobile-drawer[data-open="true"] .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.drawer-head img { height: 38px; width: auto; }
.drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.drawer-nav { flex: 1; overflow-y: auto; padding: 1rem 0; }
.drawer-nav ul > li > a,
.drawer-group-label {
  display: block;
  padding: 0.95rem 1.5rem;
  font-size: 1.0625rem; font-weight: 600;
  color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.drawer-nav a:hover { color: var(--accent); background: var(--cream); }
.drawer-group-label { color: var(--muted); font-size: 0.75rem; padding-bottom: 0.25rem; }
.drawer-sub a {
  display: block;
  padding: 0.625rem 1.5rem 0.625rem 2.5rem;
  font-size: 0.9375rem; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: var(--ink-text);
}

.drawer-foot {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
/* The hero image is a proper 16:10 landscape shot with Mt Maunganui
   already in the centre of the composition. Default center-center crop
   works at every viewport: visible band drops the very top and very
   bottom of the image but keeps Jared, Mt Maunganui, the sea and the
   metal roof all in frame. */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.30) 0%, rgba(13, 13, 13, 0.45) 60%, rgba(13, 13, 13, 0.70) 100%),
    linear-gradient(90deg, rgba(13, 13, 13, 0.78) 0%, rgba(13, 13, 13, 0.18) 55%, rgba(13, 13, 13, 0) 100%);
}
.hero-inner { max-width: 760px; padding-block: 4rem; }
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-subline {
  font-size: clamp(1.0625rem, 1vw + 0.875rem, 1.25rem);
  color: var(--cream-deep);
  margin-bottom: 1.75rem;
  max-width: 580px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--cream);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-cta-microcopy {
  font-size: 0.8125rem;
  color: var(--cream-deep);
  opacity: 0.85;
}

/* Capacity strip (Jared can flip status via CMS). */
.capacity-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.875rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cream-deep);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.capacity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 193, 69, 0.25);
  flex-shrink: 0;
  animation: capacityPulse 2.2s ease-out infinite;
}
.capacity-strip[data-state="limited"] .capacity-dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(214, 137, 16, 0.25);
}
.capacity-strip[data-state="full"] .capacity-dot {
  background: var(--muted-light);
  box-shadow: 0 0 0 3px rgba(152, 152, 152, 0.25);
  animation: none;
}
@keyframes capacityPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94, 193, 69, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(94, 193, 69, 0.10); }
}
@media (prefers-reduced-motion: reduce) { .capacity-dot { animation: none; } }

/* Storm banner (toggleable) */
.storm-banner {
  background: var(--ink-deep);
  color: var(--cream);
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 0.875rem; font-weight: 600;
}
.storm-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.storm-banner[hidden] { display: none; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.section-cream .card { background: var(--white); }

.value-card .value-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.value-card h3 { margin-bottom: 0.625rem; text-transform: none; font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.value-card p { color: var(--muted); font-size: 0.9375rem; }

/* Services grid card with photo */
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  isolation: isolate;
  cursor: pointer;
}
.service-card-photo {
  position: absolute; inset: 0; z-index: -2;
}
.service-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .service-card-photo img { transform: scale(1.04); }
.service-card-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.20) 0%, rgba(13, 13, 13, 0.65) 55%, rgba(13, 13, 13, 0.92) 100%);
}
.service-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--cream-deep);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
.service-card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8125rem; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Quote estimator (instant) ---------- */
.estimator {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .estimator { padding: 2.25rem; } }
.estimator h3 {
  font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.25rem;
}
.estimator-sub { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.5rem; }

.field {
  display: flex; flex-direction: column;
  margin-bottom: 1.25rem;
}
.field[hidden] { display: none !important; }
.field-label {
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.5rem;
}
.field-hint { font-size: 0.8125rem; color: var(--muted); margin-top: 0.25rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink-text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 120px; resize: vertical; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.875rem; font-weight: 600;
  color: var(--ink-text);
  transition: all 0.15s var(--ease);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.slider-row { display: flex; align-items: center; gap: 1rem; }
.slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  background: var(--cream-deep);
  border-radius: 3px;
  outline: 0;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(94, 193, 69, 0.45);
  cursor: pointer;
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--accent);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
}
.slider-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  min-width: 72px; text-align: right;
}

.estimate-readout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--ink-grad);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.estimate-readout-label {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-deep); opacity: 0.85;
  margin-bottom: 0.25rem;
}
.estimate-readout-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.estimate-disclaimer { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }

/* ---------- Gallery ---------- */
.gallery-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 16, 28, 0.85) 100%);
  display: flex; align-items: flex-end;
  padding: 1rem;
  opacity: 0; transition: opacity 0.2s var(--ease);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  color: var(--white); font-size: 0.8125rem; font-weight: 600;
}
.gallery-item-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(194, 86, 42, 0.92);
  color: var(--white);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}

/* Before / after slider */
.before-after {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--ink-soft);
}
.before-after img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.before-after .ba-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0s;
}
.before-after .ba-handle {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  transform: translateX(-2px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(7, 16, 28, 0.2);
}
.before-after .ba-knob {
  position: absolute; top: 50%;
  left: 50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(7, 16, 28, 0.32);
  pointer-events: none;
  color: var(--ink);
}
.before-after .ba-knob svg { width: 22px; height: 22px; }
.before-after-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(7, 16, 28, 0.78);
  color: var(--white);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.before-after-label.label-before { left: 1rem; }
.before-after-label.label-after { right: 1rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.5rem 2rem;
  padding-block: 1.25rem;
}
.trust-strip img {
  height: 72px; width: auto;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.trust-strip img:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); }
.trust-strip-label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  width: 100%; text-align: center;
  margin-bottom: 0.75rem;
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--ink-grad);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-line);
}

/* ---------- Testimonial carousel ---------- */
.testimonial-carousel {
  position: relative;
  margin: 0 calc(-1 * 1.25rem); /* extend to viewport edges on mobile for swipe */
}
@media (min-width: 768px) {
  .testimonial-carousel { margin: 0; }
}
.testimonial-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.25rem 1.5rem;
  /* hide scrollbar but keep functionality */
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .testimonial-track { padding: 0.5rem 0 1.5rem; gap: 1.25rem; }
}
.testimonial-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
@media (min-width: 1024px) {
  .testimonial-slide { flex: 0 0 100%; }
}
.testimonial-slide .testimonial {
  margin: 0;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease);
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: var(--accent);
  color: var(--ink-deep);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.section-cream .carousel-btn { background: var(--white); }
.carousel-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.carousel-btn[disabled]:hover { background: var(--white); color: var(--ink); border-color: var(--border-strong); transform: none; }

.carousel-dots {
  display: flex; gap: 0.4rem;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.carousel-dot[aria-current="true"] {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.carousel-count {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.testimonial-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.125rem, 1.4vw + 1rem, 1.5rem);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.testimonial-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.32;
  position: absolute;
  top: 0.25rem; left: 1.25rem;
  pointer-events: none;
}
.testimonial-attr {
  font-weight: 700; font-size: 0.9375rem;
  color: var(--accent-bright);
}
.testimonial-attr-meta {
  font-size: 0.8125rem; color: var(--cream-deep); opacity: 0.85;
  margin-top: 0.125rem;
}

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--safety); margin-bottom: 0.75rem; }
.stars svg { width: 18px; height: 18px; }

/* ---------- Service area / map ---------- */
.area-map-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
}
.area-map-svg { width: 100%; height: 100%; }
.area-pin {
  cursor: pointer;
  transition: transform 0.2s var(--ease);
  transform-origin: center;
}
.area-pin:hover { transform: scale(1.15); }
.area-pin-pulse {
  fill: var(--accent);
  opacity: 0.4;
  animation: pin-pulse 2s ease-out infinite;
  transform-origin: center;
}
@keyframes pin-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.area-list {
  columns: 2;
  column-gap: 1.5rem;
}
@media (min-width: 720px) { .area-list { columns: 3; } }
.area-list li {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  break-inside: avoid;
  display: flex; align-items: center; gap: 0.45rem;
}
.area-list li::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Roof-type guide ---------- */
.roof-types {
  display: grid; gap: 1rem;
}
@media (min-width: 720px) { .roof-types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roof-types { grid-template-columns: repeat(3, 1fr); } }
.roof-type {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.roof-type-photo { aspect-ratio: 16 / 9; background: var(--cream-deep); overflow: hidden; }
.roof-type-photo img { width: 100%; height: 100%; object-fit: cover; }
.roof-type-body { padding: 1.25rem 1.5rem 1.5rem; }
.roof-type h4 { margin-bottom: 0.25rem; }
.roof-type-life {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-summary {
  list-style: none;
  padding: 1.25rem 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; cursor: pointer;
  font-weight: 700; font-size: 1.0625rem;
  color: var(--ink);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
details[open] .faq-summary::after { content: "−"; }
.faq-body {
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Forms ---------- */
.form-2col {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-2col { grid-template-columns: 1fr 1fr; } }
.form-full { grid-column: 1 / -1; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--muted);
}
.checkbox-row input { margin-top: 0.2rem; }

.file-drop {
  display: block;
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  background: var(--cream);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  cursor: pointer;
  width: 100%;
}
.file-drop:hover, .file-drop[data-hover="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.file-drop-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.file-drop-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--cream-deep);
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer-col h2 {
  font-family: var(--font-display);
  font-size: 1.125rem; letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand img { height: 72px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.5rem; letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.footer-desc { font-size: 0.9375rem; max-width: 360px; opacity: 0.85; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background 0.15s var(--ease);
}
.footer-social a:hover { background: var(--accent); }

.footer-contact ul li { padding: 0.35rem 0; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--cream-deep); font-size: 0.9375rem;
  transition: color 0.15s var(--ease);
}
.footer-contact a:hover { color: var(--accent-bright); }
.footer-contact .icon { color: var(--accent); flex-shrink: 0; }

/* ---------- Reveal-phone (footer tap-to-show) ---------- */
.reveal-phone {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.reveal-phone .reveal-phone-label {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: opacity 0.2s var(--ease);
}
.reveal-phone[data-revealed="true"] {
  color: var(--accent-bright);
}
.reveal-phone[data-revealed="true"] .icon {
  color: var(--accent-bright);
}
/* The brief glow pulse when revealed */
.reveal-phone[data-pulsing="true"]::after {
  content: "";
  position: absolute;
  inset: -4px -8px;
  border-radius: var(--radius);
  pointer-events: none;
  animation: reveal-phone-pulse 0.65s ease-out;
}
@keyframes reveal-phone-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 193, 69, 0.55); }
  60%  { box-shadow: 0 0 0 10px rgba(94, 193, 69, 0.18); }
  100% { box-shadow: 0 0 0 16px rgba(94, 193, 69, 0); }
}
/* The scramble cursor underscore that follows the digit being locked */
.reveal-phone[data-scrambling="true"] .reveal-phone-label::after {
  content: "_";
  display: inline-block;
  margin-left: 1px;
  color: var(--accent);
  animation: reveal-phone-caret 0.4s steps(2) infinite;
}
@keyframes reveal-phone-caret {
  to { opacity: 0; }
}

.footer-badges {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
}
.footer-badges img {
  height: 48px; width: auto;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  transition: transform 0.15s var(--ease);
}
.footer-badges img:hover { transform: translateY(-1px); }
.footer-pb {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease);
}
.footer-pb:hover { transform: scale(1.06); }
.footer-pb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.footer-pb-icon {
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  -webkit-mask: url('/assets/badges/plainblack-icon.webp') center/contain no-repeat;
          mask: url('/assets/badges/plainblack-icon.webp') center/contain no-repeat;
  -webkit-mask-size: 78%;
          mask-size: 78%;
}
.footer-pb-pulse {
  opacity: 0.7;
  animation: pbPulse 2.6s ease-out infinite;
  will-change: transform, opacity;
  transform-origin: center;
}
@keyframes pbPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-pb-pulse { animation: none; }
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: center; align-items: center;
  text-align: center;
  font-size: 0.8125rem; color: var(--cream-deep); opacity: 0.7;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--accent-bright); opacity: 1; }

/* ---------- AI launcher ---------- */
.ai-launcher {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-deep);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(94, 193, 69, 0.42);
  transition: transform 0.2s var(--ease);
}
.ai-launcher:hover { transform: scale(1.06) translateY(-2px); }
.pulse-dot {
  position: absolute; top: 6px; right: 6px;
  width: 12px; height: 12px;
  background: var(--safety);
  border: 2px solid var(--white);
  border-radius: 50%;
}
.ai-tooltip {
  position: absolute; right: calc(100% + 0.75rem); top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s var(--ease);
}
.ai-launcher:hover .ai-tooltip { opacity: 1; }

/* ---------- Ask Bradley chat panel ---------- */
.ai-panel {
  position: fixed;
  z-index: 70;
  right: 1.25rem; bottom: 1.25rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(620px, calc(100vh - 6rem));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32), 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
.ai-panel[data-open="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (max-width: 480px) {
  .ai-panel {
    right: 0.5rem; bottom: 0.5rem;
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
  }
}

.ai-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--ink-grad);
  color: var(--white);
  border-bottom: 1px solid var(--ink-line);
}
.ai-panel-title {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.9375rem;
  min-width: 0;
}
.ai-panel-title strong { display: block; font-weight: 700; line-height: 1.2; }
.ai-panel-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--cream-deep); opacity: 0.78;
  margin-top: 0.125rem;
  line-height: 1.3;
}
.ai-panel-sub a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.ai-avatar {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-avatar svg { width: 16px; height: 16px; }
.ai-panel-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--cream-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.ai-panel-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.ai-panel-thread {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--cream);
  display: flex; flex-direction: column; gap: 0.625rem;
  scroll-behavior: smooth;
}

.ai-msg { display: flex; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-bot { justify-content: flex-start; }
.ai-msg-welcome .ai-bubble { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink-text); }

.ai-bubble {
  max-width: 86%;
  padding: 0.625rem 0.875rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.ai-msg-user .ai-bubble {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  border-bottom-right-radius: 4px;
}
.ai-msg-bot .ai-bubble {
  border-bottom-left-radius: 4px;
}
.ai-bubble p { margin: 0; max-width: none; }
.ai-bubble p + p { margin-top: 0.5rem; }
.ai-bubble strong { font-weight: 700; }
.ai-bubble em { font-style: italic; }
.ai-bubble a { color: var(--accent-press); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.ai-msg-user .ai-bubble a { color: var(--accent-bright); }

.ai-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.75rem 0.875rem;
}
.ai-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
  animation: aiTypingDot 1.2s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.ai-panel-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  padding: 0.5rem 1rem 0.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.ai-panel-suggestions[hidden] { display: none; }
.ai-suggestion {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--ink-text);
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.ai-suggestion:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-press); }

.ai-panel-form {
  display: flex; align-items: flex-end; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.ai-panel-input {
  flex: 1;
  min-height: 38px;
  max-height: 140px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--ink-text);
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  resize: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.ai-panel-input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ai-panel-input:disabled { opacity: 0.55; cursor: not-allowed; }
.ai-panel-send {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--ink-deep);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.ai-panel-send:hover:not(:disabled) { background: var(--accent-bright); transform: scale(1.04); }
.ai-panel-send:disabled { opacity: 0.45; cursor: not-allowed; }

.ai-panel-foot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
  text-align: center;
}
.ai-panel-reset {
  font-size: 0.75rem;
  color: var(--accent-press);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-panel-disclaimer { text-align: center; }

/* Hide the launcher tooltip when panel is open */
.ai-panel[data-open="true"] ~ .ai-launcher .ai-tooltip { opacity: 0 !important; }

/* ---------- Roof Trace (Google Maps) ---------- */
.rt-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent-press);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.rt-toggle:hover {
  background: rgba(94, 193, 69, 0.18);
  border-color: var(--accent-bright);
}
.rt-toggle svg { color: var(--accent); flex-shrink: 0; }

.rt-panel {
  margin-top: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rt-slide 0.25s var(--ease);
}
@keyframes rt-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.rt-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.rt-head strong { font-size: 0.95rem; color: var(--ink); }
.rt-hint {
  font-size: 0.8125rem; color: var(--muted);
  margin-top: 0.25rem; max-width: 56ch;
  line-height: 1.45;
}
.rt-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  flex-shrink: 0;
}
.rt-close:hover { background: var(--border); }

.rt-body { padding: 1rem 1.25rem 1.25rem; }
.rt-address-row {
  display: flex; flex-direction: column;
  margin-bottom: 0.75rem;
}
.rt-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.375rem;
}
#rtAddress {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
#rtAddress:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.rt-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.375rem;
  margin: 0.5rem 0;
}
.rt-tool {
  padding: 0.4rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.rt-tool:hover { background: var(--white); border-color: var(--border-strong); }
.rt-tool[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-deep);
}

.rt-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rt-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rt-area-label {
  display: block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.rt-area-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1.1;
  color: var(--accent-press);
  letter-spacing: 0.02em;
}
.rt-summary .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.rt-footnote {
  font-size: 0.75rem; color: var(--muted);
  margin-top: 0.625rem;
  line-height: 1.45;
}

.rt-fallback {
  padding: 1.5rem 0.5rem;
  text-align: center;
}
.rt-fallback strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.375rem; }
.rt-fallback p { color: var(--muted); font-size: 0.875rem; max-width: 48ch; margin: 0 auto 1rem; }

/* Tighten the Google Places autocomplete dropdown so it matches the form */
.pac-container {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-family: var(--font-body);
  margin-top: 4px;
}
.pac-item { padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.pac-item:hover, .pac-item-selected { background: var(--accent-soft); }
.pac-icon { display: none; }
.pac-matched { color: var(--accent-press); }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* CTA band, charcoal gradient with green CTAs */
.cta-band {
  background: var(--ink-grad);
  color: var(--cream-deep);
  text-align: center;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  position: relative;
  isolation: isolate;
}
.cta-band::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(94,193,69,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--cream-deep); opacity: 0.85; max-width: 600px; margin: 0.5rem auto 1.5rem; }
.cta-band .btn-ink { background: var(--accent); color: var(--ink-deep); }
.cta-band .btn-ink:hover { background: var(--accent-bright); color: var(--ink-deep); }
.cta-band .btn-ghost { color: var(--white); border-color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Section photo background (hero-style parallax billboard) ----------
   Usage:
     <section class="section-photo" style="--photo-url: url('/.../photo.jpg')"> … </section>
   Combine with .cta-band, .section-ink, etc — .section-photo wins via cascade order.
*/
.section-photo {
  position: relative;
  isolation: isolate;
  color: var(--cream-deep);
  background-color: var(--ink);
  background-image: var(--photo-url, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
}
.section-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,13,13,0.62) 0%, rgba(13,13,13,0.76) 55%, rgba(13,13,13,0.92) 100%),
    radial-gradient(60% 80% at 50% 0%, rgba(94,193,69,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.section-photo h1,
.section-photo h2,
.section-photo h3 { color: var(--white); }
.section-photo .eyebrow { color: var(--accent-bright); }
.section-photo p { color: var(--cream-deep); }
.section-photo .lead { color: var(--white); }
.section-photo .divider-stripe { background: var(--accent); }
.section-photo .btn-ghost { color: var(--white); border-color: var(--white); }
.section-photo .btn-ghost:hover { background: var(--white); color: var(--ink); }
/* When combined with .cta-band, suppress its own gradient so the photo shows */
.cta-band.section-photo { background-image: var(--photo-url, none); }
.cta-band.section-photo::before {
  background:
    linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.72) 55%, rgba(13,13,13,0.88) 100%),
    radial-gradient(60% 80% at 50% 0%, rgba(94,193,69,0.12) 0%, transparent 70%);
}
/* Desktop-only true parallax. Mobile + reduced-motion stays static. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .section-photo { background-attachment: fixed; }
}

/* ---------- Blog post page ---------- */
.blog-post-hero {
  background: var(--ink-grad);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  isolation: isolate;
}
.blog-post-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 0% 0%, rgba(94,193,69,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.blog-post-hero .crumbs { color: var(--cream-deep); opacity: 0.75; margin-bottom: 1rem; }
.blog-post-hero .crumbs a { color: var(--cream-deep); }
.blog-post-hero .crumbs a:hover { color: var(--accent-bright); }
.blog-post-hero .eyebrow { color: var(--accent-bright); }
.blog-post-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  letter-spacing: 0.01em;
  margin: 0.5rem 0 1.25rem;
  max-width: 22ch;
}
.blog-post-hero .lead {
  color: var(--cream-deep);
  font-size: clamp(1.0625rem, 0.8vw + 0.9rem, 1.25rem);
  max-width: 60ch;
  line-height: 1.5;
}
.blog-post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 0.875rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--cream-deep);
}
.blog-post-meta strong { color: var(--white); font-weight: 700; }
.blog-post-meta .dot { opacity: 0.4; }

.blog-post-feature {
  max-width: 980px;
  margin: -3rem auto 2.5rem;
  padding-inline: 1.25rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .blog-post-feature { padding-inline: 2rem; margin-top: -3.5rem; } }
.blog-post-feature-inner {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.32), 0 6px 18px rgba(0,0,0,0.18);
}
.blog-post-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-post-body {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-bottom: 3rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-text);
}
@media (min-width: 768px) { .blog-post-body { padding-inline: 2rem; padding-bottom: 4rem; } }
.blog-post-body p {
  margin: 1rem 0;
  max-width: none;
}
.blog-post-body p:first-of-type {
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.blog-post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.125rem);
  margin: 2.5rem 0 0.875rem;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.blog-post-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
  line-height: 1.3;
}
.blog-post-body ul, .blog-post-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.blog-post-body li {
  margin: 0.5rem 0;
  list-style: disc;
}
.blog-post-body ol li { list-style: decimal; }
.blog-post-body li::marker { color: var(--accent-press); }
.blog-post-body a:not(.btn) {
  color: var(--accent-press);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.blog-post-body a:not(.btn):hover { color: var(--accent); }
.blog-post-body strong { font-weight: 700; color: var(--ink); }
.blog-post-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-soft);
}
.blog-post-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.75rem 0;
}

.blog-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}
.blog-callout > *:first-child { margin-top: 0; }
.blog-callout > *:last-child { margin-bottom: 0; }
.blog-callout strong { color: var(--accent-press); }
.blog-callout.warn { background: rgba(214, 137, 16, 0.10); border-left-color: var(--warn); }
.blog-callout.warn strong { color: #8a5a09; }
.blog-callout.danger { background: rgba(192, 57, 43, 0.08); border-left-color: var(--danger); }
.blog-callout.danger strong { color: var(--danger); }

.blog-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.8vw + 1rem, 2.25rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent-press);
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  text-align: center;
}

.blog-post-cta {
  margin: 3rem 0 1.5rem;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--ink-grad);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line);
  color: var(--white);
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Thin green stripe at the top, the only ornament */
.blog-post-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-bright) 50%, var(--accent) 70%, transparent);
  z-index: 1;
}
/* Soft green radial wash behind the content */
.blog-post-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 90% at 50% -10%, rgba(94,193,69,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.blog-post-cta h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin: 0 0 0.5rem;
  line-height: 1.12;
}
.blog-post-body .blog-post-cta p,
.blog-post-cta p {
  color: var(--cream);
  margin: 0 auto 1.25rem;
  max-width: 44ch;
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* Inside the CTA card, the .hero-ctas pattern becomes:
   single primary button + quiet text link for the secondary action.
   This dials down the visual weight in mid-article context. */
.blog-post-cta .hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .blog-post-cta .hero-ctas {
    flex-direction: row;
    gap: 0.5rem 1.5rem;
  }
}
.blog-post-cta .btn-primary {
  padding: 0.8rem 1.5rem;
  font-size: 0.8125rem;
}
.blog-post-cta .btn-ghost {
  border: 0;
  background: transparent;
  color: var(--cream-deep);
  padding: 0.5rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(245, 242, 235, 0.28);
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
.blog-post-cta .btn-ghost:hover {
  background: transparent;
  color: var(--accent-bright);
  text-decoration-color: var(--accent);
  transform: none;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.blog-author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: 1.375rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.blog-author-name { font-weight: 700; color: var(--ink); }
.blog-author-role { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }

.blog-post-foot {
  padding: 3rem 0 4rem;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.blog-post-foot .section-head { text-align: center; margin-bottom: 2rem; }

/* ---------- Blog card grid ---------- */
.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card-photo {
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;       /* don't grow, don't shrink, stay at aspect-ratio height */
  overflow: hidden;
  background: var(--cream-deep);
}
.blog-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.blog-card-title {
  font-size: 1.1875rem;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  /* Clamp titles to 2 lines so cards stay uniform */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0.75rem 0 1rem;
  /* Clamp descriptions to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: auto;     /* pin meta to bottom regardless of body length */
}

/* Page hero (subpages) */
.page-hero {
  background: var(--ink-grad);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  isolation: isolate;
}
.page-hero::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background: radial-gradient(50% 70% at 0% 0%, rgba(94,193,69,0.08) 0%, transparent 70%);
  pointer-events:none;
}
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero .lead { color: var(--cream-deep); max-width: 680px; }
.page-hero .eyebrow { color: var(--accent-bright); }
.crumbs { font-size: 0.8125rem; color: var(--cream-deep); margin-bottom: 1rem; opacity: 0.8; }
.crumbs a:hover { color: var(--accent-bright); }
.crumbs .sep { margin-inline: 0.5rem; opacity: 0.5; }

/* Notice / banners */
.notice {
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--ink-text);
}
.notice strong { color: var(--accent-press); }

/* Two-up split */
.split {
  display: grid; gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .split.reverse > :first-child { order: 2; }
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Photo upload thumb preview */
.thumb-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(7, 16, 28, 0.78);
  color: var(--white);
  font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
