:root {
  --ink: #f6f8fb;
  --ink2: #ffffff;
  --ter1: #2C4768;
  --ter2: #7BAE5A;
  --ter3: #1f3554;
  --amber1: #5e9442;
  --amber2: #7BAE5A;
  --navy-deep: #1a2536;
  --text-body: #475569;
  --text-muted: #6b7585;
  --border-soft: rgba(44,71,104,0.1);
  --border-med: rgba(44,71,104,0.18);
  --warn: #dc2626;
}
* { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; max-width: 100vw; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
h1, h2, h3, h4 { font-family: 'Outfit', system-ui, sans-serif; letter-spacing: -0.02em; color: var(--navy-deep); }

/* ── Tailwind class re-bindings for light theme. Hero & menu stay dark, scoped below. */
body .text-white { color: var(--navy-deep); }
body .text-slate-300 { color: var(--text-body); }
body .text-slate-400 { color: var(--text-muted); }
body .text-slate-500 { color: #94a3b8; }
.hero .text-white,
.menu-overlay .text-white,
.sticky-emergency .text-white { color: #fff; }
.hero .text-slate-300, .hero .text-slate-400 { color: rgba(241,245,249,0.85); }
.menu-overlay .text-slate-400 { color: rgba(241,245,249,0.7); }

/* ── Wordmark (replaces PNG logo) */
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}
.logo-wordmark {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0.015em;
  color: var(--ter1);
  line-height: 1;
  white-space: nowrap;
}
.logo-wordmark .logo-amp {
  color: var(--ter2);
  font-style: italic;
  font-weight: 500;
  padding: 0 0.05em;
}
.logo-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(123,174,90,0.85), rgba(44,71,104,0.4) 60%, transparent);
  margin: 0.45rem 0 0.4rem;
}
.logo-tagline {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #6b7585;
  white-space: nowrap;
}
.logo-lockup:hover .logo-wordmark { color: var(--ter3); }
.logo-lockup:hover .logo-tagline { color: var(--ter1); }
.logo-lockup, .logo-lockup * { transition: color 0.25s ease; }
@media (max-width: 480px) {
  .logo-wordmark { font-size: 1.5rem; }
  .logo-tagline { font-size: 0.52rem; letter-spacing: 0.3em; }
}

/* ── Subtle paper texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Atmospheric glows (sage + navy bloom) */
.atmos {
  position: absolute; pointer-events: none;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.35;
}

/* ── Glassy card — light theme */
.glass-card {
  background: linear-gradient(160deg, #ffffff 0%, #fafbfd 100%);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.4s, box-shadow 0.4s;
  box-shadow: 0 1px 2px rgba(26,37,54,0.04);
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123,174,90,0.55), transparent);
  opacity: 0.7;
}
.glass-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(123,174,90,0.14) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(44,71,104,0.28);
  box-shadow: 0 18px 50px -20px rgba(44,71,104,0.22), 0 4px 12px -4px rgba(44,71,104,0.08);
}
.glass-card:hover::after { transform: translateX(110%); }

/* Service cards — subtle blueprint grid */
.tile-card {
  background-image:
    linear-gradient(160deg, #ffffff 0%, #f4f7fb 100%),
    repeating-linear-gradient(0deg, rgba(44,71,104,0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(44,71,104,0.03) 0 1px, transparent 1px 72px);
}

/* ── Buttons */
.btn-primary {
  background: linear-gradient(180deg, var(--ter1), var(--ter3));
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.55rem;
  box-shadow: 0 12px 32px -10px rgba(44,71,104,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(44,71,104,0.6); }
.btn-ghost {
  background: #ffffff;
  color: var(--ter1);
  border: 1.5px solid var(--border-med);
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: all 0.25s;
}
.btn-ghost:hover { background: #f4f8f0; border-color: var(--ter2); color: var(--ter3); transform: translateY(-2px); }
.btn-emergency {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.55rem;
  box-shadow: 0 12px 32px -10px rgba(239,68,68,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: emergency-pulse 2.4s ease-in-out infinite;
}
@keyframes emergency-pulse {
  0%, 100% { box-shadow: 0 12px 32px -10px rgba(239,68,68,0.6), inset 0 1px 0 rgba(255,255,255,0.35); }
  50% { box-shadow: 0 12px 40px -6px rgba(239,68,68,0.9), inset 0 1px 0 rgba(255,255,255,0.4); }
}

/* ── Reveal pattern */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.53s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.61s; }

/* ── Section shine */
.section-shine { position: relative; }
.section-shine .shine {
  position: absolute;
  top: -10%; left: -25%;
  width: 100px; height: 130%;
  background: linear-gradient(110deg, transparent 30%, rgba(123,174,90,0.12) 48%, rgba(255,255,255,0.42) 52%, transparent 70%);
  transform: skewX(-18deg) translateX(-200px);
  pointer-events: none;
  opacity: 0; z-index: 2;
}
.section-shine.is-visible .shine { animation: shine-pass 1.6s cubic-bezier(.2,.6,.2,1) 0.25s 1 forwards; }
@keyframes shine-pass {
  0% { transform: skewX(-18deg) translateX(-200px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: skewX(-18deg) translateX(140vw); opacity: 0; }
}

/* ── Hero layout */
.hero-img {
  position: absolute; inset: 0;
  background-image: url('./Flatroof%20Hero.png');
  background-size: cover;
  background-position: center 45%;
  z-index: 1;
}
.hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,40,62,0.45) 0%, rgba(31,53,84,0.62) 55%, rgba(246,248,251,0.92) 100%);
  z-index: 2;
}

/* ── Rain particles */
.raindrop {
  position: absolute;
  width: 1.5px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(180,210,240,0.5));
  top: -30px;
  pointer-events: none;
  animation: rain-fall linear infinite;
  z-index: 3;
}
@keyframes rain-fall {
  0% { transform: translateY(0); opacity: 0; }
  5% { opacity: 0.7; }
  95% { opacity: 0.5; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ── Weather chip */
.weather-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f8fafc;
  backdrop-filter: blur(4px);
}
.weather-chip.alert {
  background: rgba(239,68,68,0.14);
  border-color: rgba(239,68,68,0.5);
  color: #fecaca;
  animation: alert-breathe 2.5s ease-in-out infinite;
}
@keyframes alert-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 22px 0 rgba(239,68,68,0.35); }
}
.weather-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.8);
  animation: weather-pulse 1.8s ease-in-out infinite;
}
.weather-chip.alert .dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,0.9);
}
@keyframes weather-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.weather-metric { font-family: 'Outfit', sans-serif; font-weight: 700; color: #f8fafc; }
.weather-chip .wx-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 0.3rem;
  opacity: 0.92;
}
.weather-chip.alert .wx-icon { color: #fecaca; }
.weather-chip .wx-label { color: #f8fafc; font-weight: 600; }
.weather-chip.alert .wx-label { color: #fecaca; }
.weather-chip #weatherText { white-space: nowrap; line-height: 1; }
@media (max-width: 380px) {
  .weather-chip { font-size: 0.75rem; padding: 0.45rem 0.75rem; }
  .weather-chip #weatherText { white-space: normal; }
}

/* ── Floating phone CTA */
.phone-fab {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ter2), var(--ter1));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -10px rgba(44,71,104,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.25s;
}
.phone-fab:hover { transform: scale(1.06); }
.phone-fab:active { transform: scale(0.94); }
.phone-fab::before, .phone-fab::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  border: 2px solid rgba(123,174,90,0.65);
  animation: tile-ripple 2.6s cubic-bezier(.2,.7,.2,1) infinite;
  pointer-events: none;
}
.phone-fab::after { animation-delay: 1.3s; border-color: rgba(44,71,104,0.45); }
@keyframes tile-ripple {
  0% { transform: scale(1); opacity: 0.7; }
  70% { opacity: 0.04; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Hamburger */
.hamburger {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-med);
  color: var(--ter1);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  position: relative;
  z-index: 110;
}
.hamburger:hover { background: #eef4ec; border-color: var(--ter2); color: var(--ter2); }
.hamburger .icon-stack {
  position: relative;
  width: 26px; height: 26px;
  display: block;
}
.hamburger .icon-stack svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: opacity 0.45s cubic-bezier(.4,.1,.3,1), transform 0.55s cubic-bezier(.4,.1,.3,1);
}
.hamburger .icon-x { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.menu-open .hamburger .icon-tiles { opacity: 0; transform: rotate(60deg) scale(0.4); }
.menu-open .hamburger .icon-x { opacity: 1; transform: rotate(0) scale(1); transition-delay: 0.18s; }

body.menu-open header, body.menu-closing header { z-index: 150; }
.top-banner { transition: opacity 0.35s ease; }
body.menu-open .top-banner,
body.menu-closing .top-banner { opacity: 0; transition: opacity 0.15s ease; }
body.menu-open { overflow: hidden; }

/* ── Menu overlay */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  perspective: 1400px;
  opacity: 0;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.menu-overlay.open, .menu-overlay.closing {
  visibility: visible;
  opacity: 1;
  transition: opacity 0s, visibility 0s;
}
.menu-overlay.open { pointer-events: auto; }

.menu-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(123,174,90,0.22), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(44,71,104,0.55), transparent 45%),
    linear-gradient(180deg, #1f3554 0%, #0f1d33 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.menu-overlay.open .menu-bg { opacity: 1; }
.menu-overlay.closing .menu-bg { opacity: 0; }

.menu-content { transform: translateY(8px); transition: transform 0.25s cubic-bezier(.19,1,.22,1); }
.menu-overlay.open .menu-content { transform: translateY(0); }

.menu-content {
  position: absolute; inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
}
.menu-top, .menu-nav, .menu-foot {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.menu-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
}
@media (min-width: 640px) { .menu-top { padding: 1.25rem 1.75rem; } }
.menu-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  min-height: 0;
}
.menu-foot {
  flex-shrink: 0;
  padding: 1rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
}
.menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.03em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s cubic-bezier(.2,.7,.2,1), transform 0.35s cubic-bezier(.2,.7,.2,1), color 0.3s;
}
.menu-link .menu-num {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(155,201,127,0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.18em;
}
.menu-link:hover { color: #9bc97f; }
.menu-overlay h1, .menu-overlay h2, .menu-overlay h3, .menu-overlay h4 { color: #f8fafc; }
.menu-overlay.open .menu-link { opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-link:nth-child(1) { transition-delay: 0.06s; }
.menu-overlay.open .menu-link:nth-child(2) { transition-delay: 0.1s; }
.menu-overlay.open .menu-link:nth-child(3) { transition-delay: 0.14s; }
.menu-overlay.open .menu-link:nth-child(4) { transition-delay: 0.18s; }
.menu-overlay.open .menu-link:nth-child(5) { transition-delay: 0.22s; }
.menu-overlay.open .menu-link:nth-child(6) { transition-delay: 0.26s; }
.menu-overlay.open .menu-link:nth-child(7) { transition-delay: 0.30s; }
.menu-overlay.open .menu-link:nth-child(8) { transition-delay: 0.34s; }

.menu-foot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s, transform 0.35s;
}
.menu-overlay.open .menu-foot { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.hamburger-close {
  background: rgba(123,174,90,0.28);
  border: 1.5px solid rgba(123,174,90,0.7);
  color: #fff;
  box-shadow: 0 6px 22px -6px rgba(123,174,90,0.6);
  z-index: 200;
}
.hamburger-close svg { transform: rotate(-90deg) scale(0.5); opacity: 0; transition: transform 0.5s cubic-bezier(.4,.1,.3,1), opacity 0.4s; }
.menu-overlay.open .hamburger-close svg { transform: rotate(0) scale(1); opacity: 1; transition-delay: 0.75s; }

/* ── Before/After roof slider */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-med);
  background: #000;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: 0 18px 50px -20px rgba(44,71,104,0.25);
}
.ba-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ba-after {
  background-image: url('./before.png');
}
.ba-before {
  background-image: url('./after.png');
  clip-path: inset(0 0 0 50%);
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--ter2), var(--ter1));
  box-shadow: 0 0 14px rgba(123,174,90,0.7);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}
.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ter2), var(--ter1));
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 0 22px rgba(44,71,104,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.ba-handle svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  color: #fff;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.ba-label {
  position: absolute;
  top: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: none;
  z-index: 2;
}
.ba-label.before { left: 0.9rem; background: rgba(220,38,38,0.92); color: white; }
.ba-label.after { right: 0.9rem; background: rgba(94,148,66,0.95); color: white; }

/* Marquee */
.marquee {
  display: flex;
  gap: 1.25rem;
  animation: marquee-slide 40s linear infinite;
  width: max-content;
  will-change: transform;
}
@keyframes marquee-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee:hover { animation-play-state: paused; }
@media (max-width: 640px) {
  .marquee { animation: none; }
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s;
}
.pill:hover {
  background: #eef4ec;
  border-color: rgba(123,174,90,0.5);
  color: var(--ter1);
}
.pill.accred {
  background: linear-gradient(160deg, rgba(123,174,90,0.16), rgba(44,71,104,0.06));
  border-color: rgba(123,174,90,0.45);
  color: var(--ter1);
  font-weight: 600;
}
.pill-hidden { display: none; }
#areaPills.expanded .pill-hidden { display: inline-flex; animation: pill-fade-in 0.35s ease forwards; }
@keyframes pill-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.pill-expand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid var(--border-med);
  border-radius: 999px;
  color: var(--ter1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.pill-expand:hover { background: #eef4ec; border-color: var(--ter2); color: var(--ter3); }
.pill-expand:focus-visible { outline: 2px solid rgba(123,174,90,0.7); outline-offset: 3px; }
.pill-expand svg { transition: transform 0.3s ease; }
.pill-expand[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Form */
.field {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  color: var(--navy-deep);
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.97rem;
  transition: all 0.25s;
}
.field:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ter2);
  box-shadow: 0 0 0 4px rgba(123,174,90,0.15);
}
.field::placeholder { color: rgba(71,85,105,0.55); }

/* Icon holder */
.svc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(123,174,90,0.22), rgba(44,71,104,0.08));
  border: 1px solid rgba(123,174,90,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ter1);
  margin-bottom: 1rem;
}

/* Step number */
.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--ter2);
  line-height: 1;
  display: block;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ter1);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ter2));
}

/* Hero headline gradient — white → sage on hero */
.hl-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #9bc97f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body :not(.hero) .hl-gradient {
  background: linear-gradient(180deg, var(--ter1) 0%, var(--ter2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Years counter */
.years-counter {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--ter1);
  text-shadow: 0 0 28px rgba(44,71,104,0.18);
  line-height: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .menu-tile, .menu-drip, .raindrop, .section-shine .shine, .phone-fab::before, .phone-fab::after {
    transition: opacity 0.3s !important;
    animation: none !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ── Service cards uniform treatment */
.svc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.svc-card .svc-icon svg { width: 22px; height: 22px; }
.svc-card h3 { min-height: 1.6em; }
.svc-card p { flex-grow: 1; }

/* ── Anatomy diagram (homepage signature) */
.anatomy-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.3rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  margin-bottom: 1.4rem;
  gap: 0.25rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 1px 2px rgba(26,37,54,0.04);
}
.anatomy-tab {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.anatomy-tab:hover { color: var(--ter1); }
.anatomy-tab.active {
  background: linear-gradient(180deg, var(--ter1), var(--ter3));
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(44,71,104,0.45), inset 0 1px 0 rgba(255,255,255,0.28);
}
.anatomy-tab:focus-visible { outline: 2px solid var(--ter2); outline-offset: 2px; }

.anatomy-diagram {
  position: relative;
  border-radius: 18px;
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 18px -8px rgba(44,71,104,0.15);
}
.anatomy-diagram::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, rgba(155,201,127,0.18), transparent);
  pointer-events: none;
  z-index: 1;
}

.anatomy-layer {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1rem 1.2rem 1rem 1rem;
  margin-bottom: 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  border-left: 3px solid rgba(148,163,184,0.45);
  background: #ffffff;
  transition: background 0.3s ease, border-left-color 0.3s ease;
}
.anatomy-layer:hover { background: #f4f7fb; }
.anatomy-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ter1);
  opacity: 0.55;
  letter-spacing: 0.02em;
}
.anatomy-layer-body { min-width: 0; }
.anatomy-layer-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-deep);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.anatomy-layer-spec {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.spec-bold { color: var(--ter1); font-weight: 700; }

.layer-membrane {
  padding: 1.15rem 1.2rem 1.15rem 1rem;
  background: linear-gradient(135deg, rgba(123,174,90,0.22) 0%, rgba(155,201,127,0.1) 100%);
  border: 1.5px solid rgba(123,174,90,0.55);
  border-left: 3px solid var(--ter2);
  box-shadow: 0 10px 30px -12px rgba(94,148,66,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.layer-membrane .anatomy-num { color: var(--ter2); opacity: 1; }
.layer-membrane .anatomy-layer-title { color: var(--ter3); font-size: 1.08rem; }
.layer-membrane .anatomy-layer-spec { color: #3d4a5e; }

.layer-adhesive { border-left-color: rgba(100,116,139,0.6); }
.layer-insulation {
  border-left-color: rgba(217,170,80,0.7);
  background: repeating-linear-gradient(45deg, rgba(217,170,80,0.05) 0 6px, rgba(217,170,80,0.12) 6px 12px);
}
.layer-vcl { border-left-color: rgba(56,189,248,0.65); }
.layer-deck {
  border-left-color: rgba(180,130,90,0.7);
  background: linear-gradient(180deg, rgba(180,130,90,0.08), rgba(180,130,90,0.03));
}

.anatomy-diagram[data-material="grp"] .layer-membrane {
  background: linear-gradient(135deg, rgba(123,174,90,0.25) 0%, rgba(155,201,127,0.12) 100%);
  border-color: rgba(94,148,66,0.6);
}
.anatomy-diagram[data-material="epdm"] .layer-membrane {
  background: linear-gradient(135deg, rgba(44,71,104,0.18) 0%, rgba(63,93,130,0.08) 100%);
  border-color: rgba(44,71,104,0.5);
  border-left-color: var(--ter1);
}
.anatomy-diagram[data-material="epdm"] .layer-membrane .anatomy-num { color: var(--ter1); }
.anatomy-diagram[data-material="epdm"] .layer-membrane .anatomy-layer-title { color: var(--ter1); }
.anatomy-diagram[data-material="felt"] .layer-membrane {
  background: linear-gradient(135deg, rgba(140,90,55,0.18) 0%, rgba(120,80,50,0.08) 100%);
  border-color: rgba(140,90,55,0.55);
  border-left-color: #8c5a37;
}
.anatomy-diagram[data-material="felt"] .layer-membrane .anatomy-num { color: #8c5a37; }
.anatomy-diagram[data-material="felt"] .layer-membrane .anatomy-layer-title { color: #6b3f23; }

.membrane-sheen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
  border-radius: inherit;
}
.membrane-sheen::before {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 35%; height: 100%;
  background: linear-gradient(105deg,
    transparent 0%,
    transparent 35%,
    rgba(255,255,255,0.6) 48%,
    rgba(123,174,90,0.18) 52%,
    transparent 70%);
  transform: skewX(-14deg);
  animation: membrane-sheen-pass 6.5s cubic-bezier(.4,.1,.3,1) infinite;
}
@keyframes membrane-sheen-pass {
  0%   { transform: translateX(0) skewX(-14deg); opacity: 0; }
  8%   { opacity: 0.85; }
  55%  { opacity: 0.85; }
  70%  { transform: translateX(360%) skewX(-14deg); opacity: 0; }
  100% { transform: translateX(360%) skewX(-14deg); opacity: 0; }
}

.anatomy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
}
.anatomy-stat { text-align: left; }
.anatomy-stat-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.anatomy-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 767px) {
  .anatomy-tab { padding: 0.55rem 0.4rem; font-size: 0.72rem; letter-spacing: 0.01em; }
  .anatomy-diagram { padding: 0.9rem; }
  .anatomy-layer { padding: 0.85rem 1rem 0.85rem 0.85rem; grid-template-columns: 1.8rem 1fr; gap: 0.85rem; }
  .anatomy-layer-title { font-size: 0.95rem; }
  .anatomy-layer-spec { font-size: 0.78rem; }
  .anatomy-stat-val { font-size: 1.5rem; }
  .membrane-sheen { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .membrane-sheen::before { animation: none; opacity: 0; }
  .anatomy-layer { transition: none; }
}

/* ── Sticky emergency bar */
.sticky-emergency {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 50%, #b91c1c 100%);
  color: #fff;
  padding: 0.7rem 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 4px 18px -4px rgba(239,68,68,0.6);
  animation: emergency-pulse 2s ease-in-out infinite;
}
.sticky-emergency.active { display: flex; }
.sticky-emergency a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}
body.has-emergency { padding-top: 44px; }

.hero.storm-mode .btn-primary {
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  opacity: 0.8;
  order: 2;
}
.hero.storm-mode .btn-emergency {
  padding: 1.15rem 2rem;
  font-size: 1.05rem;
  order: 1;
  box-shadow: 0 16px 44px -8px rgba(239,68,68,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}
.hero.storm-mode .btn-emergency svg {
  width: 1.2rem; height: 1.2rem;
}

@media (max-width: 767px) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ──────────────────────────────────────────
   Instagram feed section
   ────────────────────────────────────────── */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}
.ig-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #1a2536;
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 2px rgba(26,37,54,0.04);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s, border-color 0.35s;
  text-decoration: none;
  color: inherit;
}
.ig-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(44,71,104,0.28);
  box-shadow: 0 18px 50px -20px rgba(44,71,104,0.32);
}
.ig-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.ig-tile:hover img { transform: scale(1.07); }
.ig-tile .ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, transparent 35%, rgba(15,29,51,0.78) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  pointer-events: none;
}
.ig-tile:hover .ig-overlay,
.ig-tile:focus-visible .ig-overlay { opacity: 1; }
.ig-tile .ig-overlay-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ig-tile .ig-overlay-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.ig-tile .ig-tag {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--ter1);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ig-tile .ig-tag svg { width: 11px; height: 11px; }
.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 30%, #8134af 65%, #515bd4 100%);
  color: #fff;
  box-shadow: 0 14px 36px -10px rgba(132,52,134,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ig-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -10px rgba(132,52,134,0.65);
}
.ig-follow svg { width: 20px; height: 20px; }
