/* =============================================================
   INTEGRITY ROOFING — PROPOSAL 3 "BUILT IN BRAND"
   Brand-forward, posterized, interactive landing page.
   ============================================================= */

/* ---- 0. TOKENS ------------------------------------------------ */
:root {
  --brand-blue: #1B75BB;
  --brand-blue-dark: #155C92;
  --brand-green: #8DC73F;
  --brand-green-dark: #6FA228;
  --ink: #0A0A0A;
  --ink-soft: #3D434B;
  --gray: #BCBEC0;
  --gray-soft: #E5E7EB;
  --surface: #FFFFFF;
  --surface-soft: #F5F7F9;
  --error: #dc2626;

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-card: 0 6px 24px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);
  --shadow-lift: 0 18px 40px rgba(10, 10, 10, 0.18);

  --container: 1240px;

  --rail-w: 4px;
}

/* ---- 1. RESET / BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, .display, .eyebrow, .badge {
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow, .badge {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 12px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Global focus-visible — accessibility */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible,
.storm__submit:focus-visible,
.nav__cta:focus-visible,
.modal__submit:focus-visible {
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Skip-to-content link — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -200px;
  left: 8px;
  z-index: 1000;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 6px;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- 2. STICKY HEADER NAV ------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-soft);
  z-index: 100;
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .nav__inner { padding: 0 40px; } }

.nav__logo img {
  height: 48px;
  width: auto;
}

.nav__menu {
  display: none;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out-quart);
}
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__phone {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}
.nav__phone:hover { color: var(--brand-blue-dark); }

/* "Now Open / Closed" status widget */
.nav__status {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--gray-soft);
  color: var(--ink-soft);
  white-space: nowrap;
  line-height: 1;
}
.nav__status.is-open { color: var(--brand-green-dark); }
.nav__status.is-closed { color: var(--ink-soft); }
.nav__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray);
  flex-shrink: 0;
  position: relative;
}
.nav__status.is-open .nav__status-dot { background: var(--brand-green); }
.nav__status.is-closed .nav__status-dot { background: var(--gray); }
.nav__status.is-open .nav__status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--brand-green);
  opacity: 0.5;
  animation: nav-status-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes nav-status-pulse {
  0%   { transform: scale(0.7); opacity: 0.55; }
  100% { transform: scale(2.0); opacity: 0; }
}
@media (min-width: 1100px) {
  .nav__status { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__status.is-open .nav__status-dot::after { animation: none !important; opacity: 0; }
}

.nav__cta {
  background: var(--brand-green);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  transition: background .2s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--brand-green-dark); transform: translateY(-1px); }

.nav__hamburger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__phone { display: inline-block; margin-right: 12px; }
  .nav__hamburger { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(85vw, 360px);
  height: 100vh;
  background: var(--brand-blue);
  color: #fff;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out-quart);
  z-index: 110;
  padding: 80px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer.is-open { transform: translateX(0); }
.drawer__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  color: #fff;
  display: grid; place-items: center;
}
.drawer a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.drawer .drawer__cta {
  margin-top: 18px;
  background: var(--brand-green);
  color: var(--ink);
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  border-bottom: 0;
}
.backdrop {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 105;
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---- 3. HERO — DIAGONAL SPLIT (ELEVATED) --------------------- */
.hero {
  position: relative;
  margin-top: 70px;
  /* Living gradient instead of dead-flat fill */
  background:
    radial-gradient(120% 90% at 12% 8%, rgba(255,255,255,0.10), rgba(255,255,255,0) 46%),
    linear-gradient(150deg, var(--brand-blue) 0%, var(--brand-blue-dark) 78%);
  color: #fff;
  overflow: hidden;
  min-height: 80vh;
}
@media (min-width: 768px) { .hero { min-height: 100vh; } }

/* Blueprint grid texture layered over the whole panel (faint, behind content) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 22%, #000 82%, transparent);
  z-index: 0;
  pointer-events: none;
}

/* Ghosted rooftop motif — echoes the gray rooftops in the brand logo */
.hero__motif {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__rooftops {
  position: absolute;
  left: -4%;
  bottom: -2%;
  width: 78%;
  height: auto;
}
.hero__rooftops path {
  fill: none;
  stroke: rgba(255,255,255,0.09);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
@media (min-width: 900px) {
  .hero__motif { width: 55%; right: auto; }
  .hero__rooftops { width: 60%; }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: inherit;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 55% 45%; }
}

.hero__left {
  position: relative;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
@media (min-width: 768px) {
  .hero__left { padding: 72px 56px; }
}
@media (min-width: 900px) {
  .hero__left { padding: 96px 64px 96px 56px; }
}

.hero__right {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.hero__right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Brand-blue duotone tint near the seam, fading into full-color photo */
.hero__photo-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg,
    rgba(21,92,146,0.55) 0%,
    rgba(27,117,187,0.22) 18%,
    rgba(27,117,187,0) 42%);
  mix-blend-mode: multiply;
}
@media (min-width: 900px) {
  .hero__right { min-height: auto; }
  /* The confident diagonal blue wedge that joins the two halves.
     A green stripe rides the hypotenuse via a second clipped layer (::after). */
  .hero__right::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 -1px;
    width: 16%;
    background: linear-gradient(150deg, var(--brand-blue), var(--brand-blue-dark));
    clip-path: polygon(0 0, 100% 0, 0 100%, 0 100%);
    z-index: 3;
  }
  /* Brand-green accent stripe: same wedge, scaled slightly larger so only a
     few px of green shows along the diagonal edge. */
  .hero__right::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 -1px;
    width: 16%;
    /* translate the identical wedge straight right so its hypotenuse sits a
       uniform offset right of the blue wedge edge -> even-width green stripe */
    transform: translateX(9px);
    background: var(--brand-green);
    clip-path: polygon(0 0, 100% 0, 0 100%, 0 100%);
    z-index: 2;
    filter: drop-shadow(0 0 9px rgba(141,199,63,0.6));
    /* draw-in: reveal the stripe from top to bottom on load (solid mask grows height) */
    -webkit-mask-image: linear-gradient(#000, #000);
            mask-image: linear-gradient(#000, #000);
    -webkit-mask-size: 100% 0%;
            mask-size: 100% 0%;
    -webkit-mask-position: top left;
            mask-position: top left;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
  }
  body.is-loaded .hero__right::after {
    animation: hero-seam-draw 0.95s var(--ease-out-quart) 0.5s forwards;
  }
}
@keyframes hero-seam-draw {
  to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}
.hero__seam { display: none; } /* SVG fallback element unused; CSS wedge stripe used instead */

/* ---- Floating trust chip straddling the seam ----------------- */
.hero__chip {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(10,10,10,0.04);
  /* mobile: centered over the seam where panel meets photo */
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
}
.hero__chip-badge {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--brand-green), var(--brand-green-dark));
  color: var(--ink);
}
.hero__chip-body { display: flex; flex-direction: column; line-height: 1.15; }
.hero__chip-stars { color: var(--brand-green-dark); font-size: 12px; letter-spacing: 0.12em; }
.hero__chip-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
}
.hero__chip-meta { font-size: 12px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .hero__chip {
    /* float over the diagonal seam, lower-left of the photo column */
    left: 50%;
    top: auto;
    bottom: 16%;
    transform: translateX(-46%);
    padding: 14px 20px;
    border-radius: 16px;
  }
  body.is-loaded .hero__chip {
    animation: hero-chip-rise 0.7s var(--ease-out-quart) 0.85s both;
  }
}
@keyframes hero-chip-rise {
  from { opacity: 0; transform: translate(-46%, 24px); }
  to   { opacity: 1; transform: translate(-46%, 0); }
}

/* ---- Rotated photo-corner stamp ------------------------------ */
.hero__stamp {
  position: absolute;
  z-index: 4;
  top: 18px; right: 18px;
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
  transform: rotate(-12deg);
}
.hero__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__stamp-text {
  fill: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-anchor: middle;
}
.hero__stamp::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
}
.hero__stamp-core {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--brand-green);
  text-shadow: 0 1px 6px rgba(10,10,10,0.5);
}
body.is-loaded .hero__stamp {
  animation: hero-stamp-pop 0.6s var(--ease-out-quart) 1.05s both;
}
@keyframes hero-stamp-pop {
  from { opacity: 0; transform: rotate(-12deg) scale(0.6); }
  to   { opacity: 1; transform: rotate(-12deg) scale(1); }
}
@media (max-width: 560px) {
  .hero__stamp { width: 74px; height: 74px; top: 12px; right: 12px; }
  .hero__stamp-core { font-size: 18px; }
}

/* ---- Scroll cue ---------------------------------------------- */
.hero__scroll {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
@media (min-width: 900px) {
  .hero__scroll { display: inline-flex; left: 27.5%; }
}
.hero__scroll-label {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.hero__scroll-track {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-dot {
  position: absolute;
  left: 50%; top: 6px;
  width: 4px; height: 7px;
  border-radius: 3px;
  background: var(--brand-green);
  transform: translateX(-50%);
  animation: hero-scroll-bob 1.6s ease-in-out infinite;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll:hover .hero__scroll-track { border-color: #fff; }
.hero__scroll:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 4px;
  border-radius: 6px;
}
@keyframes hero-scroll-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  50%      { transform: translate(-50%, 10px); opacity: 0.4; }
}

.hero__logo {
  align-self: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px -12px rgba(10,10,10,0.45);
}
.hero__logo img { height: 42px; width: auto; display: block; }
@media (max-width: 767px) { .hero__logo img { height: 36px; } }

.hero__eyebrow {
  color: #fff;
  font-weight: 600;
  margin-bottom: 22px;
  opacity: 0.85;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--brand-green);
  vertical-align: middle;
  margin-right: 10px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9.5vw, 88px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 28px;
}
.hero__title .green { color: var(--brand-green); }
.hero__title .block { display: block; }

/* INTEGRITY — the hero word: oversized, with a green highlight-swipe drawn behind it */
.hero__title-feature {
  position: relative;
  display: inline-block;
  margin: 2px 0 4px;
}
.hero__title .hero__word {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: clamp(60px, 13vw, 112px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  color: var(--brand-green);
}
/* The swipe: a slanted green band that draws across behind INTEGRITY on load */
.hero__swipe {
  position: absolute;
  z-index: 0;
  left: -8px; right: -8px;
  top: 16%; bottom: 16%;
  background: linear-gradient(90deg, rgba(141,199,63,0.22), rgba(141,199,63,0.10));
  transform: skewX(-9deg) scaleX(0);
  transform-origin: left center;
  border-left: 4px solid var(--brand-green);
}
body.is-loaded .hero__swipe {
  animation: hero-swipe-draw 0.7s var(--ease-out-quart) 0.55s forwards;
}
@keyframes hero-swipe-draw {
  to { transform: skewX(-9deg) scaleX(1); }
}

/* Green ambient glow behind the primary CTA (separate from JS box-shadow pulse) */
.hero__cta-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 6px;
}
.hero__cta-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(141,199,63,0.45), rgba(141,199,63,0) 72%);
  opacity: 0.75;
  filter: blur(6px);
  pointer-events: none;
}
.hero__cta-wrap:hover::before { opacity: 1; }
.hero__cta-wrap .btn--green { position: relative; z-index: 1; }

.hero__sub {
  font-size: 18px;
  max-width: 540px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  padding: 16px 28px;
  border-radius: 4px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 0;
}
.btn--green {
  background: var(--brand-green);
  color: var(--ink);
}
.btn--green:hover { background: var(--brand-green-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(141,199,63,0.4); }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 14px 26px;
}
.btn--outline-white:hover { background: #fff; color: var(--brand-blue); }
.btn--blue {
  background: var(--brand-blue);
  color: #fff;
}
.btn--blue:hover { background: var(--brand-blue-dark); transform: translateY(-2px); }
.btn--white {
  background: #fff;
  color: var(--brand-blue);
}
.btn--white:hover { background: var(--surface-soft); transform: translateY(-2px); }
.btn--outline-ink {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 26px;
}
.btn--outline-ink:hover { background: var(--ink); color: #fff; }

.hero__trust {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__trust .stars {
  color: var(--brand-green);
  letter-spacing: 0.08em;
}
.hero__trust .sep {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}
/* Drop a signal on the smallest screens to keep trust row to 1 line */
@media (max-width: 419px) {
  .hero__trust .sep:nth-of-type(2),
  .hero__trust > span:nth-of-type(5) { display: none; }
}

/* Rooftop divider — repeated motif */
.rooftop-divider {
  position: relative;
  width: 100%;
  height: 36px;
  overflow: hidden;
  background: transparent;
}
.rooftop-divider svg { width: 100%; height: 100%; display: block; }
.rooftop-divider--top { transform: scaleY(-1); }

/* ---- 4. STAT COUNTERS ---------------------------------------- */
.stats {
  background: #fff;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat {
  text-align: center;
  padding: 24px 14px;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--gray-soft);
}
@media (max-width: 899px) {
  .stat:nth-child(odd) + .stat::before { display: block; }
  .stat:nth-child(3)::before, .stat:nth-child(4)::before {
    content: '';
    position: absolute;
    left: 12%; right: 12%; top: 0;
    height: 1px;
    background: var(--gray-soft);
  }
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 88px);
  color: var(--brand-blue);
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
}
.stat__suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--brand-green);
  margin-left: 4px;
  margin-top: 8px;
}
.stat__label {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--ink);
}

/* ---- 5. SERVICES MOSAIC -------------------------------------- */
.services {
  padding: 80px 0 0;
}
.services__head {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 24px;
}
.services__eyebrow {
  color: var(--brand-blue);
  font-weight: 700;
}
.services__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}
.services__title .green { color: var(--brand-green); }

.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 700px) and (max-width: 1099px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  /* 9 tiles = odd count; let the last tile span both columns for a clean finish */
  .t9 { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .mosaic {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 260px;
  }
}

.tile {
  position: relative;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 240px;
  overflow: hidden;
  transition: transform .25s var(--ease-out-quart), box-shadow .25s ease, z-index 0s linear .25s;
}
.tile:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lift);
  z-index: 5;
  transition-delay: 0s;
}
.tile__icon {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 14px;
  color: currentColor;       /* inherits each tile's text color */
  flex: none;
}
.tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  text-transform: uppercase;
  line-height: 1;
}
.tile__desc {
  font-size: 15px;
  margin: 14px 0 22px;
  max-width: 340px;
}
.tile__link {
  margin-top: auto;          /* pin link to the bottom of the tile */
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tile__link svg { transition: transform .2s ease; }
.tile__link:hover svg { transform: translateX(4px); }

.tile__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.tile--blue   { background: var(--brand-blue); color: #fff; }
.tile--green  { background: var(--brand-green); color: var(--ink); }
.tile--black  { background: var(--ink); color: #fff; }
.tile--white  { background: #fff; color: var(--ink); border: 1px solid var(--gray-soft); }
.tile--gray   { background: var(--gray); color: var(--ink); }

.tile--white .tile__name { color: var(--brand-blue); }
.tile--white .tile__name::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--brand-green);
  margin-top: 10px;
}

/* Tile sizing — desktop mosaic positions (12-col, 9 tiles, 3 rows)
   Explicit placement guarantees no two adjacent tiles share a color.
   Storm (t3) spans rows 1-2 as the tall emphasis tile.
   Row 1: blue | white | black | green(tall)
   Row 2: gray | blue  | white | green(tall continues)
   Row 3: green | black                                                */
@media (min-width: 1100px) {
  .tile { min-height: 0; }
  .t1 { grid-column: 1 / 5;   grid-row: 1; }      /* Residential  — blue  */
  .t2 { grid-column: 5 / 8;   grid-row: 1; }      /* Commercial   — white */
  .t4 { grid-column: 8 / 10;  grid-row: 1; }      /* Insurance    — black */
  .t3 { grid-column: 10 / 13; grid-row: 1 / 3; }  /* Storm — tall — green */
  .t5 { grid-column: 1 / 5;   grid-row: 2; }      /* Inspections  — gray  */
  .t6 { grid-column: 5 / 8;   grid-row: 2; }      /* Gutters      — blue  */
  .t7 { grid-column: 8 / 10;  grid-row: 2; }      /* Repairs      — white */
  .t8 { grid-column: 1 / 6;   grid-row: 3; }      /* Siding       — green */
  .t9 { grid-column: 6 / 13;  grid-row: 3; }      /* Power Washing— black */
}

/* ---- 6. STORM TRACKER ---------------------------------------- */
.storm {
  background: var(--brand-blue);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.storm::before {
  content: '';
  position: absolute;
  inset: -80px -80px auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(141,199,63,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.storm__head { text-align: center; margin-bottom: 36px; }
.storm__eyebrow { color: var(--brand-green); font-weight: 700; margin-bottom: 14px; }
.storm__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}
.storm__sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.9);
  font-size: 17px;
}
.storm__form {
  margin: 32px auto 0;
  max-width: 600px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding: 0 16px;
}
@media (min-width: 600px) { .storm__form { flex-direction: row; padding: 0 24px; } }
.storm__input {
  flex: 1;
  height: 64px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0 26px;
  font-size: 18px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.storm__input::placeholder { color: var(--ink-soft); opacity: 0.6; }
.storm__input:focus { border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(141,199,63,0.3); }
.storm__submit {
  height: 64px;
  padding: 0 30px;
  background: var(--brand-green);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  transition: background .2s ease, transform .2s ease;
}
.storm__submit:hover { background: var(--brand-green-dark); transform: translateY(-2px); }

.storm__result {
  margin: 24px auto 0;
  max-width: 720px;
  padding: 22px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.storm__result.is-shown { display: flex; }
.storm__result-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--brand-green);
  color: var(--ink);
}
.storm__result--miss .storm__result-icon { background: #fff; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.storm__result--error .storm__result-icon { background: var(--error); color: #fff; }
.storm__result-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  flex: 1;
  min-width: 200px;
}
.storm__result .btn { margin-left: auto; flex-shrink: 0; }
@media (max-width: 599px) {
  .storm__result .btn { margin-left: 0; width: 100%; justify-content: center; }
}

.storm__note {
  text-align: center;
  margin: 24px auto 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  padding: 0 24px;
}

/* ---- 7. BEFORE / AFTER --------------------------------------- */
.beforeafter {
  background: var(--surface-soft);
  padding: 96px 0;
}
.beforeafter__head { text-align: center; margin-bottom: 48px; padding: 0 24px;}
.beforeafter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
  color: var(--ink);
}
.beforeafter__sub { color: var(--ink-soft); margin-top: 12px; font-size: 17px; }

.ba {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: var(--shadow-card);
  background: #000;
}
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}
.ba__before {
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
  transition: clip-path .15s ease-out, -webkit-clip-path .15s ease-out;
  will-change: clip-path;
}
.ba__handle { transition: left .15s ease-out; will-change: left; }
.ba__pill {
  position: absolute;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  z-index: 4;
}
.ba__pill--before { left: 18px; background: var(--brand-blue); }
.ba__pill--after { right: 18px; background: var(--brand-green); color: var(--ink); }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 0 30px rgba(0,0,0,.5);
  transform: translateX(-50%);
  z-index: 5;
  cursor: ew-resize;
}
.ba__grab {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue);
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
}
.ba__grab svg { width: 22px; height: 22px; display: block; }

/* ---- 8. PROCESS — VERTICAL SPINE ----------------------------- */
.process {
  background: #fff;
  padding: 96px 0;
}
.process__head { text-align: center; margin-bottom: 64px; padding: 0 24px; }
.process__eyebrow { color: var(--brand-blue); font-weight: 700; }
.process__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
  margin-top: 12px;
}

.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 24px;
  width: 3px;
  background: var(--brand-blue);
}
.tstep {
  position: relative;
  padding-left: 80px;
  margin-bottom: 56px;
  min-height: 60px;
}
.tstep:last-child { margin-bottom: 0; }
.tstep__node {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px; height: 60px;
  background: var(--brand-green);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 26px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--brand-blue);
  z-index: 2;
}
.tstep__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--brand-blue);
  margin-bottom: 6px;
  display: block;
}
.tstep__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.tstep__desc { color: var(--ink-soft); font-size: 16px; max-width: 540px; }

@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .tstep {
    width: 50%;
    padding-left: 0;
    padding-right: 60px;
    margin-bottom: 64px;
    min-height: 100px;
  }
  .tstep__node {
    left: auto;
    right: -30px;
    top: 0;
  }
  .tstep--right {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 60px;
    text-align: left;
  }
  .tstep--right .tstep__node { right: auto; left: -30px; }
  .tstep:not(.tstep--right) {
    text-align: right;
  }
  .tstep:not(.tstep--right) .tstep__desc { margin-left: auto; }
}

/* ---- 9. TESTIMONIALS — SCROLL-SNAP CAROUSEL ------------------ */
.testimonials {
  background: var(--ink);
  color: #fff;
  padding: 96px 0 84px;
  overflow: hidden;
}
.testimonials__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  padding: 0 24px;
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.testimonials__title-wrap { max-width: 700px; }
.testimonials__eyebrow { color: var(--brand-green); font-weight: 700; }
.testimonials__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 56px);
  text-transform: uppercase;
  color: #fff;
  margin-top: 10px;
}
.testimonials__sub {
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  font-size: 17px;
}
.testimonials__arrows { display: flex; gap: 10px; }
.tarrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.tarrow:hover { background: var(--brand-blue-dark); transform: translateY(-2px); }

.tcarousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scroll-behavior: smooth;
  padding: 0 24px 24px;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.tcarousel::-webkit-scrollbar { display: none; }
.tcarousel.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.tcard {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  border-top: 4px solid var(--brand-blue);
  padding: 36px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .tcard { flex: 0 0 400px; } }

.tcard__quote {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--brand-blue);
  opacity: 0.18;
}
.tcard__body {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  margin: 18px 0 22px;
}
.tcard__stars {
  color: var(--brand-green);
  font-size: 18px;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.tcard__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  flex-wrap: wrap;
}
.tcard__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tcard__pill {
  background: var(--surface-soft);
  color: var(--brand-blue-dark);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
}

.tdots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.tdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(141,199,63,0.35);
  transition: transform .2s ease, background .2s ease;
  cursor: pointer;
  padding: 0;
  border: 0;
}
.tdot:hover { background: rgba(141,199,63,0.7); }
.tdot.is-active {
  background: var(--brand-green);
  transform: scale(1.4);
}

/* ---- 10. PARTNERS -------------------------------------------- */
.partners {
  background: #fff;
  padding: 64px 0;
  border-top: 1px solid var(--gray-soft);
  border-bottom: 1px solid var(--gray-soft);
}
.partners__head { text-align: center; margin-bottom: 28px; padding: 0 24px; }
.partners__eyebrow { color: var(--brand-blue); font-weight: 700; }
.partners__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 0 24px;
}
.partner {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.partner:hover { color: var(--brand-blue); }
.partner .star { color: inherit; }
/* Real review badges recovered from the client's live site */
.partner-badge-img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.partner-badge-img:hover { transform: translateY(-2px); }

/* ---- 11. SERVICE AREA ---------------------------------------- */
.area {
  background: var(--surface-soft);
  padding: 96px 0;
}
.area__head { text-align: center; margin-bottom: 56px; padding: 0 24px; }
.area__eyebrow { color: var(--brand-blue); font-weight: 700; }
.area__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}
.area__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 900px) { .area__grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.area__map {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
/* Interactive Leaflet service-area map */
.area-map {
  position: relative;
  z-index: 0;                 /* keep below nav (100) + modal (200) */
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
  isolation: isolate;          /* contain Leaflet panes' stacking context */
}
.area-map .leaflet-pane,
.area-map .leaflet-top,
.area-map .leaflet-bottom { z-index: 1; }
.area-map .leaflet-control-zoom a {
  color: var(--brand-blue);
  font-weight: 700;
}
.area-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink);
}
.area-map__key { display: inline-flex; align-items: center; gap: 8px; }
.area-map__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.area-map__dot--hq { background: var(--brand-blue); width: 16px; height: 16px; }
.area-map__dot--served { background: var(--brand-green); }
.leaflet-popup-content { font-family: var(--font-body, "Open Sans", sans-serif); font-size: 13px; }
.leaflet-popup-content strong { font-family: var(--font-display, "Oswald", sans-serif); color: var(--brand-blue); }
@media (max-width: 899px) {
  .area-map { height: 300px; }
}
.area__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-soft);
}
.area__list h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  margin-bottom: 10px;
}
.area__list ul { margin: 0; padding: 0; list-style: none; }
.area__list li {
  font-size: 14px;
  color: var(--ink);
  padding: 3px 0;
}

.area__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  border-radius: 16px;
  display: block;
}

/* ---- 12. FINAL CTA ------------------------------------------- */
.finalcta {
  background: var(--brand-green);
  color: var(--ink);
  padding: 96px 24px;
  text-align: center;
}
.finalcta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  text-transform: uppercase;
  line-height: 0.95;
  max-width: 900px;
  margin: 0 auto;
}
.finalcta__sub {
  font-size: 18px;
  max-width: 660px;
  margin: 24px auto 32px;
  color: var(--ink);
}
.finalcta__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- 13. FOOTER ---------------------------------------------- */
.footer {
  background: #fff;
  border-top: 3px solid var(--brand-blue);
  padding: 72px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  margin-bottom: 16px;
}
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.footer li a { color: var(--ink-soft); transition: color .15s ease; }
.footer li a:hover { color: var(--brand-blue); }

.footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer__tag {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 320px;
}
.footer__socials { display: flex; gap: 10px; }
.fsoc {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  display: grid; place-items: center;
  transition: background .2s ease, color .2s ease;
}
.fsoc:hover { background: var(--brand-green); color: var(--ink); border-color: var(--brand-green); }

.footer__nap address { font-style: normal; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.footer__nap a { color: var(--brand-blue); }
.footer__nap a:hover { color: var(--brand-blue-dark); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer__bottom a { color: var(--ink-soft); margin-right: 14px; }
.footer__bottom a:hover { color: var(--brand-blue); }

/* ---- 14. MODAL ----------------------------------------------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal.is-open { display: flex; opacity: 1; }
.modal__dialog {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  border-top: 4px solid var(--brand-blue);
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform .25s var(--ease-out-quart);
}
.modal.is-open .modal__dialog { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background .15s ease;
}
.modal__close:hover { background: var(--surface-soft); }
.modal__close > * { pointer-events: none; }
.modal__eyebrow {
  color: var(--brand-blue);
  font-weight: 700;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-transform: none;
  color: var(--ink);
  margin: 8px 0 22px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-soft);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(27,117,187,0.18);
}
.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: var(--brand-green);
}
.field__error {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
}
.field.is-error .field__error { display: block; }

.modal__submit {
  width: 100%;
  background: var(--brand-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  padding: 16px;
  border-radius: 10px;
  transition: background .2s ease, opacity .2s ease;
}
.modal__submit:hover { background: var(--brand-green-dark); }
.modal__submit:disabled { background: var(--gray); cursor: not-allowed; }

.modal__trust {
  margin-top: 14px;
  font-size: 12px;
  color: var(--brand-blue);
  text-align: center;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 22px 8px 6px;
}
.modal__success.is-shown { display: block; }
.modal__check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.modal__success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 10px;
}
.modal__success p { color: var(--ink-soft); font-size: 15px; }

/* ---- 15. MOBILE STICKY BAR ----------------------------------- */
.mobar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobar a {
  flex: 1;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
}
.mobar__call { background: var(--brand-blue); color: #fff; }
.mobar__quote { background: var(--brand-green); color: var(--ink); }
@media (min-width: 768px) { .mobar { display: none; } }

/* Add bottom padding so content not hidden behind sticky bar */
@media (max-width: 767px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---- 16. STICKY PROGRESS RAIL -------------------------------- */
.rail {
  position: fixed;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: var(--rail-w);
  height: 70vh;
  background: var(--gray-soft);
  border-radius: var(--rail-w);
  z-index: 80;
  display: none;
  overflow: hidden;
}
.rail__fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-blue) 100%);
  border-radius: var(--rail-w);
  transition: height .08s linear;
}
@media (min-width: 1024px) { .rail { display: block; } }

/* ---- REVEAL animations --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out-quart), transform .7s var(--ease-out-quart);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   SIGNATURE CREATIVE ADDITIONS — Proposal 3
============================================================ */

/* ---- 17. HERO PARALLAX (GPU compositing) --------------------- */
.hero__left,
.hero__right {
  will-change: transform;
}

/* ---- 18. HERO ENTRANCE CHOREOGRAPHY -------------------------- */
.hero-stagger {
  opacity: 0;
  transform: translateY(18px);
}
body.is-loaded .hero-stagger {
  animation: hero-rise 0.7s var(--ease-out-quart) forwards;
  animation-delay: calc(100ms + var(--stagger, 0) * 130ms);
}
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* ---- 19. ROOFTOP DIVIDER DRAW-ON-SCROLL ---------------------- */
.rooftop-divider.is-animated svg path {
  fill: transparent;
  stroke: #1B75BB;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  transition: stroke-dashoffset 1200ms var(--ease-out-quart), fill 600ms ease 800ms;
}
.rooftop-divider.is-animated.is-drawn svg path {
  stroke-dashoffset: 0;
}
/* Once drawn, restore the original filled silhouette so the rhythm stays */
.rooftop-divider.is-animated.is-drawn svg path {
  fill: #BCBEC0;
  fill-opacity: 0.35;
}
.rooftop-divider.rooftop-divider--top.is-animated.is-drawn svg path {
  fill: #1B75BB;
  fill-opacity: 0.7;
  stroke: #1B75BB;
}

/* ---- 20. SHINGLE COLOR PICKER -------------------------------- */
.shingle {
  background: #fff;
  padding: 96px 0 88px;
  border-top: 1px solid var(--gray-soft);
  margin-top: 64px;
}
.shingle__head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.shingle__eyebrow { color: var(--brand-blue); font-weight: 700; }
.shingle__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 56px);
  text-transform: uppercase;
  margin-top: 12px;
  line-height: 1.02;
}
.shingle__title .green { color: var(--brand-green); }
.shingle__sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 16px;
}

.shingle__stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (min-width: 980px) {
  .shingle__stage { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; }
}

.shingle__photo-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/10;
  isolation: isolate;
}
.shingle__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 480ms var(--ease-out-quart);
  will-change: filter;
}
.shingle__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(10,10,10,0.78);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  border-left: 3px solid var(--brand-green);
}

.shingle__controls {
  background: var(--surface-soft);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--gray-soft);
}
.shingle__swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 520px) {
  .shingle__swatches { gap: 10px; }
}
.swatch {
  background: transparent;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 12px;
  transition: transform .2s var(--ease-out-quart);
}
.swatch:hover { transform: translateY(-2px); }
.swatch__chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 14px rgba(10,10,10,0.22);
  position: relative;
  border: 3px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (max-width: 520px) {
  .swatch__chip { width: 48px; height: 48px; }
}
.swatch.is-active .swatch__chip {
  border-color: var(--brand-blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 3px #fff, 0 0 0 6px var(--brand-blue), 0 8px 18px rgba(27,117,187,0.35);
  transform: scale(1.04);
}
.swatch__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--ink);
  line-height: 1.2;
  max-width: 84px;
}
.swatch.is-active .swatch__name { color: var(--brand-blue); }

.shingle__readout {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--gray-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.shingle__readout strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shingle__more {
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.shingle__more:hover { color: var(--brand-blue-dark); }
.shingle__more svg { transition: transform .2s ease; }
.shingle__more:hover svg { transform: translateX(3px); }

/* The preview now uses the REAL CertainTeed swatch image per color —
   no per-color CSS filter (those double-darkened the real photos, esp. Moire Black). */
.shingle__photo { filter: none !important; }

/* ---- 21. SHINGLE PICKER DISCLAIMER --------------------------- */
.shingle__disclaimer {
  font-family: var(--font-body, 'Open Sans', sans-serif);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 8px 0 0;
  width: 100%;
}

/* ---- 22. STAT 0% PULSE --------------------------------------- */
@keyframes stat-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.stat__suffix--pulse {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: stat-pulse 2.4s ease-in-out infinite;
}

/* ---- 23. RAIL SECTION LABEL ---------------------------------- */
.rail__label {
  position: absolute;
  left: calc(var(--rail-w) + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s ease, transform .3s var(--ease-out-quart);
  pointer-events: none;
  background: rgba(255,255,255,0.92);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-soft);
  backdrop-filter: blur(4px);
}
.rail__label.is-shown {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---- 24. BEFORE/AFTER DRAG STATE ----------------------------- */
.ba.is-dragging { cursor: grabbing; }
.ba.is-dragging .ba__grab {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), inset 0 0 0 3px rgba(27,117,187,0.55);
  color: var(--brand-blue-dark);
  transition: transform .15s var(--ease-out-quart), box-shadow .15s ease;
}

/* ---- 25. SERVICE MOSAIC STAGGERED TILE REVEAL ---------------- */
.tile {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity .55s var(--ease-out-quart), transform .55s var(--ease-out-quart), box-shadow .25s ease;
}
.mosaic.is-in .tile {
  opacity: 1;
  transform: none;
}
.mosaic.is-in .t1 { transition-delay: 0ms; }
.mosaic.is-in .t2 { transition-delay: 80ms; }
.mosaic.is-in .t3 { transition-delay: 160ms; }
.mosaic.is-in .t4 { transition-delay: 240ms; }
.mosaic.is-in .t5 { transition-delay: 320ms; }
.mosaic.is-in .t6 { transition-delay: 400ms; }
.mosaic.is-in .t7 { transition-delay: 480ms; }
.mosaic.is-in .t8 { transition-delay: 560ms; }
.mosaic.is-in .t9 { transition-delay: 640ms; }

/* ---- REDUCED MOTION (applies to all additions) --------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-stagger { opacity: 1; transform: none; animation: none !important; }
  .rooftop-divider.is-animated svg path {
    stroke-dashoffset: 0;
    fill: #BCBEC0;
    fill-opacity: 0.35;
    stroke: transparent;
  }
  .rooftop-divider.rooftop-divider--top.is-animated svg path {
    fill: #1B75BB;
    fill-opacity: 0.7;
  }
  .tile { opacity: 1; transform: none; }
  .stat__suffix--pulse { animation: none !important; }
  .shingle__photo { transition: none; }
  .hero__left, .hero__right { transform: none !important; }
  .btn.is-brand-pulse { animation: none !important; }

  /* Hero elevation additions: show final states, no motion */
  .hero__right::after { -webkit-mask-size: 100% 100% !important; mask-size: 100% 100% !important; animation: none !important; }
  .hero__swipe { transform: skewX(-9deg) scaleX(1) !important; animation: none !important; }
  .hero__chip { opacity: 1 !important; transform: translateX(-50%) !important; animation: none !important; }
  .hero__stamp { opacity: 1 !important; animation: none !important; }
  .hero__scroll-dot { animation: none !important; top: 50%; transform: translate(-50%, -50%); }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero__chip { transform: translateX(-46%) !important; }
}

/* ---- 26. HERO CTA "BRAND PULSE" (after idle, once per session) ---- */
@keyframes brand-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(141,199,63,0.5); }
  100% { box-shadow: 0 0 0 14px rgba(141,199,63,0); }
}
.btn.is-brand-pulse {
  animation: brand-pulse 1.5s ease-out 3;
}

/* ---- 27. MODAL SUCCESS EMAIL FALLBACK ---- */
.modal__success-fallback {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
.modal__success-fallback a {
  color: var(--brand-blue);
  font-weight: 700;
}
.modal__success-fallback a:hover { color: var(--brand-blue-dark); }

/* ---- 28. PRINT-ONLY BLOCK (screen-hidden by default) ---- */
.print-only { display: none; }

/* ============================================================
   29. PRINT STYLESHEET
============================================================ */
@media print {
  /* Reset surfaces — everything white, dark ink */
  html, body {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body { font-size: 11pt !important; line-height: 1.4 !important; }

  /* Hide interactive / decorative chrome */
  .nav,
  .mobar,
  .drawer,
  .backdrop,
  .modal,
  .rail,
  .rooftop-divider,
  .area__iframe-wrap,
  .area-map,
  .area-map__legend,
  .testimonials__arrows,
  .tdots,
  .nav__hamburger,
  .nav__status,
  .hero__ctas,
  .finalcta__ctas,
  .footer__socials {
    display: none !important;
  }

  /* Storm tracker — keep heading + body, hide form */
  .storm__form,
  .storm__result,
  #stormForm,
  #stormInput,
  #stormResult { display: none !important; }

  /* Shingle picker — keep title + photo, hide swatches/readout */
  .shingle__controls,
  .shingle__swatches,
  .shingle__readout,
  .shingle__disclaimer,
  .shingle__tag,
  .shingle__more { display: none !important; }
  .shingle__stage { display: block !important; }
  .shingle__photo-wrap {
    box-shadow: none !important;
    background: transparent !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
  }

  /* Kill scroll reveals + animations */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
  .reveal,
  .hero-stagger,
  .mosaic .tile {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Strip dark / brand color blocks — render as bordered white */
  .hero,
  .storm,
  .testimonials,
  .finalcta,
  .tile,
  .tile--blue,
  .tile--green,
  .tile--black,
  .tile--gray,
  .tile--white {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #999 !important;
    padding: 14pt !important;
    min-height: 0 !important;
  }
  .hero__title,
  .hero__title .green,
  .hero__sub,
  .hero__trust,
  .hero__eyebrow,
  .storm__title,
  .storm__sub,
  .storm__note,
  .storm__eyebrow,
  .testimonials__title,
  .testimonials__sub,
  .testimonials__eyebrow,
  .finalcta__title,
  .finalcta__sub,
  .tile__name,
  .tile__desc,
  .tcard__name,
  .tcard__pill,
  .tcard__body {
    color: #000 !important;
  }
  .tile__badge {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #666 !important;
  }
  .tile--white .tile__name::after { background: #000 !important; height: 2px !important; }

  /* Hero — flatten the diagonal split into stacked block */
  .hero { margin-top: 0 !important; min-height: 0 !important; }
  .hero__grid {
    display: block !important;
    grid-template-columns: none !important;
  }
  .hero__left,
  .hero__right {
    padding: 0 !important;
    margin: 0 0 12pt !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  .hero__right { display: none !important; }
  .hero__right::before { display: none !important; }

  /* Layout: page is sectioned */
  section, footer { page-break-inside: auto; }
  .tcard,
  .tile,
  .tstep,
  .area__map,
  .footer__grid > * {
    page-break-inside: avoid;
  }

  /* Stats — keep but flatten */
  .stats { padding: 12pt 0 !important; border-bottom: 1px solid #999 !important; }
  .stat__num, .stat__suffix { color: #000 !important; }

  /* Process timeline — render as simple stacked list */
  .timeline::before { display: none !important; }
  .tstep,
  .tstep--right {
    width: 100% !important;
    margin: 0 0 10pt !important;
    padding: 8pt 0 8pt 50pt !important;
    text-align: left !important;
    min-height: 0 !important;
  }
  .tstep__node {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 8pt !important;
    width: 36pt !important; height: 36pt !important;
    font-size: 16pt !important;
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
  .tstep__desc { color: #000 !important; max-width: none !important; margin-left: 0 !important; }

  /* Testimonials — stack cards */
  .tcarousel {
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .tcard {
    flex: none !important;
    width: 100% !important;
    margin: 0 0 8pt !important;
    border-radius: 0 !important;
    border: 1px solid #999 !important;
    border-top: 2px solid #000 !important;
    padding: 10pt !important;
  }
  .tcard__quote { display: none !important; }
  .tcard__stars { color: #000 !important; }

  /* Mosaic — stack tiles */
  .mosaic {
    display: block !important;
    grid-template-columns: none !important;
  }
  .tile {
    margin: 0 0 8pt !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  /* Area — keep map SVG + lists, kill iframe */
  .area { background: #fff !important; padding: 12pt 0 !important; }
  .area__grid { display: block !important; }

  /* Partners — render compact */
  .partners { padding: 10pt 0 !important; }
  .partner { color: #000 !important; }

  /* Footer */
  .footer {
    background: #fff !important;
    border-top: 1px solid #000 !important;
    padding: 12pt 0 0 !important;
  }
  .footer h4,
  .footer__nap a,
  .footer li,
  .footer li a { color: #000 !important; }

  /* Links — show URL after anchors with hrefs (optional, keep subtle) */
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
  a[href^="tel:"]::after { content: ""; } /* Phone shown inline already */

  /* Printable contact block visibility */
  .print-only {
    display: block !important;
    padding: 12pt 0 !important;
    border-top: 1px solid #000 !important;
    margin-top: 12pt !important;
    page-break-inside: avoid;
  }
  .print-only h2 {
    font-family: var(--font-display);
    font-size: 18pt;
    margin: 0 0 4pt;
  }
  .print-only h3 {
    font-family: var(--font-display);
    font-size: 12pt;
    margin: 10pt 0 4pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .print-only p { margin: 0 0 6pt; }

  /* Avoid widow page breaks at the top */
  @page { margin: 14mm; }
}
