/* ==========================================================================
   AHRoofing North East — design tokens & system (v3)
   Direction: reference-pinned layout grammar — asymmetric hero with a
   floating stat card, offset photo collage, grouped service cards beside
   a lead photo, a dark navy portfolio band, a 4-up feature grid with one
   amber-outlined highlighted card, and image-led CTA/contact sections.
   Color strategy: white/cream ground carries the page; navy owns a small
   number of deliberate dark bands; amber is the single committed accent
   color, used for every action and the one "most-recommended" feature card
   (the lime accent tried earlier was removed 2026-08-15 to keep the
   palette to navy/white-cream/amber/grey, one fewer color to keep in sync).
   ========================================================================== */

:root {
  /* --- Palette --- */
  --navy-950: #0b1220;
  --navy-900: #121b2e;
  --navy-800: #1a2740;
  --navy-700: #263657;
  --ink: #16233d;
  --ink-soft: #57616f;
  --grey-300: #cdd3db;
  --grey-150: #e6e9ee;
  --grey-100: #f1f2f5;
  --cream: #faf8f3;
  --white: #ffffff;

  --amber-700: #a2530f;
  --amber-600: #d9741e;
  --amber-500: #f28c28;
  --amber-400: #f5a24f;
  --amber-100: #fdecd8;
  --amber-50: #fef6ec;

  /* --- Semantic --- */
  --surface: var(--white);
  --surface-alt: var(--cream);
  --line: var(--grey-150);

  /* --- Type --- */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Radius & shadow --- */
  /* Reverted 2026-08-15: buttons briefly went full-pill ("Apple-style")
     then back to the near-sharp reference treatment at the client's
     request. --radius-btn/--radius-ghost now just alias the existing
     sm/md tokens rather than carrying their own duplicate values —
     one less pair of tokens to keep in sync. */
  --radius-sharp: 0px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-btn: var(--radius-sm);
  --radius-ghost: var(--radius-md);
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 2px 6px rgba(11,18,32,.05);
  --shadow-md: 0 8px 24px rgba(11,18,32,.10), 0 2px 8px rgba(11,18,32,.06);
  --shadow-lg: 0 24px 60px rgba(11,18,32,.18), 0 6px 18px rgba(11,18,32,.09);
  --shadow-amber: 0 14px 30px rgba(242,140,40,.32);

  /* --- Motion --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-mid: 420ms;
  --dur-slow: 900ms;

  /* --- Layout --- */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px; /* fallback; set precisely by main.js from the real header height */
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
/* Safety net, not a fix in itself: every intentional horizontal scroller
   (.service-groups) opts in with its own overflow-x: auto, so this only
   ever catches something that shouldn't have been scrollable. */
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.6em; color: var(--ink); }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--amber-400); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy-900); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 1000; transition: top var(--dur-fast) var(--ease-out-expo);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3.25rem, 6.5vw, 5.5rem); scroll-margin-top: var(--header-h); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface-alt); }
.section--navy { background: linear-gradient(165deg, var(--navy-900), var(--navy-950)); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 46rem; margin-inline: auto; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-title { font-size: clamp(1.65rem, 2.6vw, 2.35rem); margin-bottom: 0.75rem; }
.section-lede { font-size: 1.09rem; color: var(--ink-soft); }
.section--navy .section-lede { color: var(--grey-300); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo), background-color var(--dur-fast) var(--ease-out-expo), color var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo), opacity var(--dur-fast) var(--ease-out-expo);
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.btn-lg { padding: 1.15rem 2.25rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--amber-500); color: var(--navy-950); box-shadow: 0 1px 2px rgba(11,18,32,.08); }
.btn-primary:hover { background: var(--amber-600); box-shadow: 0 4px 12px rgba(11,18,32,.12); }
.btn-primary:active { background: var(--amber-700); box-shadow: 0 1px 2px rgba(11,18,32,.08); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--navy-900); border-radius: var(--radius-ghost); }
.btn-secondary:hover { background: var(--navy-900); color: var(--white); }
.btn-secondary.on-dark { color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-secondary.on-dark:hover { background: var(--white); color: var(--navy-950); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--grey-150); border-radius: var(--radius-ghost); }
.btn-ghost:hover { background: var(--grey-100); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ==========================================================================
   Badges
   ========================================================================== */

.badge-row { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; margin-top: 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--grey-150);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem; font-weight: 700; color: var(--ink);
}
.badge.on-dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: var(--white); }
.badge .badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-700); flex-shrink: 0;
}
.badge.on-dark .badge-icon { background: rgba(242,140,40,0.22); color: var(--amber-400); }
.badge .badge-icon svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 950;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo), background-color var(--dur-fast) var(--ease-out-expo);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 900px) {
    .site-header { background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); }
  }
}
.site-header.is-scrolled { background: rgba(255,255,255,0.98); border-color: var(--grey-150); box-shadow: var(--shadow-sm); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.85rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-mark {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark img { height: 46px; width: auto; display: block; }
.brand-text-sub { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--amber-700); margin-top: 0.1rem; }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 0.94rem; color: var(--ink); position: relative; padding-block: 0.3rem; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--amber-500); transition: right var(--dur-mid) var(--ease-out-expo);
}
.nav-links a:hover::after { right: 0; }
@media (min-width: 1100px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-quick-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--grey-150); background: var(--white); color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.nav-icon-btn svg { width: 20px; height: 20px; }
.nav-icon-btn:hover { background: var(--grey-100); border-color: var(--grey-300); }
.nav-icon-btn:active { background: var(--grey-150); }
.nav-icon-btn.is-call { background: var(--amber-500); border-color: var(--amber-500); color: var(--navy-950); }
.nav-icon-btn.is-call:hover { background: var(--amber-600); border-color: var(--amber-600); }

/* Below 1100px .nav-links is hidden (hamburger takes over), so the header
   only has to fit brand + 3 icon buttons + toggle — tighten sizing so that
   still fits on narrow phones without wrapping. */
@media (max-width: 1099px) {
  .nav-quick-actions { gap: 0.4rem; }
  .nav-icon-btn { width: 40px; height: 40px; }
  .nav-icon-btn svg { width: 19px; height: 19px; }
}
/* On phones, stack the brand name under the logo instead of beside it —
   frees up the width the icon buttons need so they no longer clip/truncate
   the name, and lets the icons themselves run a bit larger. */
@media (max-width: 600px) {
  .brand-text-sub { display: none; }
  .brand { flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.8rem; line-height: 1.15; }
  .brand-text { white-space: normal; text-align: center; }
  .nav-inner { gap: 0.5rem; }
  .nav-actions { flex-shrink: 0; }
  .nav-quick-actions { gap: 0.4rem; }
  .nav-icon-btn { width: 42px; height: 42px; }
  .nav-icon-btn svg { width: 19px; height: 19px; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--grey-150); background: var(--white); color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.nav-toggle:hover { background: var(--grey-100); border-color: var(--grey-300); }
.nav-toggle:active { background: var(--grey-150); }
.nav-toggle[aria-expanded="true"] { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.nav-toggle[aria-expanded="true"]:hover { background: var(--navy-900); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1100px) { .nav-toggle { display: none; } }

.mobile-nav-scrim {
  position: fixed; inset: 0; z-index: 899;
  background: rgba(11,18,32,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out-expo);
}
.mobile-nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 900;
  background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  display: flex; flex-direction: column; gap: 1.75rem;
  padding: calc(var(--header-h) + 1.25rem + env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--dur-mid) var(--ease-out-expo), transform var(--dur-mid) var(--ease-out-expo);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); }

.mobile-nav-brand {
  display: flex; align-items: center; gap: 0.65rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--white);
}
.mobile-nav-brand img { height: 31px; width: auto; flex-shrink: 0; }

.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav ul li:last-child { border-bottom: none; }
.mobile-nav ul li {
  opacity: 0; transform: translateX(14px);
  transition: opacity 280ms var(--ease-out-expo), transform 280ms var(--ease-out-expo);
}
.mobile-nav.is-open ul li { opacity: 1; transform: translateX(0); }
.mobile-nav ul li:nth-child(1) { transition-delay: 60ms; }
.mobile-nav ul li:nth-child(2) { transition-delay: 95ms; }
.mobile-nav ul li:nth-child(3) { transition-delay: 130ms; }
.mobile-nav ul li:nth-child(4) { transition-delay: 165ms; }
.mobile-nav ul li:nth-child(5) { transition-delay: 200ms; }
.mobile-nav ul li:nth-child(6) { transition-delay: 235ms; }
.mobile-nav ul li:nth-child(7) { transition-delay: 270ms; }
.mobile-nav ul li:nth-child(8) { transition-delay: 305ms; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav ul li { opacity: 1; transform: none; transition: none; }
}
.mobile-nav ul a {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; color: var(--white); padding-block: 0.95rem;
}
.mobile-nav ul a svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; color: var(--amber-400); }
.mobile-nav ul a:hover { color: var(--amber-400); }
.mobile-nav ul a:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.mobile-nav .btn-group {
  flex-direction: column; gap: 0.85rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: auto;
}
.mobile-nav .btn { padding-block: 1.05rem; }
@media (min-width: 1100px) { .mobile-nav, .mobile-nav-scrim { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */

/* Contained, rounded-corner banner (not a full-viewport-height bleed) —
   matches the reference's compact hero card sitting inside the white page
   with margin on every side, rather than an edge-to-edge tall section. */
.hero-section { padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(3rem, 6vw, 4.5rem); background: var(--white); scroll-margin-top: var(--header-h); }

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--navy-950);
  min-height: clamp(420px, 54vw, 620px);
  display: flex; align-items: flex-start;
}
.hero-media { position: absolute; inset: 0; z-index: 0; min-width: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,18,32,0.92) 0%, rgba(11,18,32,0.74) 40%, rgba(11,18,32,0.28) 70%, rgba(11,18,32,0.1) 100%),
    linear-gradient(180deg, rgba(11,18,32,0.8) 0%, rgba(11,18,32,0) 45%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; min-width: 0; padding: clamp(1.75rem, 4vw, 3rem); }
.hero-copy { max-width: 34rem; color: var(--white); }
.hero-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.2; color: var(--white); max-width: 21ch; }
.hero-title em { font-style: normal; color: var(--amber-400); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 40ch; margin-top: 0.85rem; }

.hero-emergency-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem; font-size: 0.86rem; font-weight: 600;
  color: var(--amber-400); text-decoration: none;
}
.hero-emergency-link svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }
.hero-emergency-link:hover, .hero-emergency-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.hero-float-cta {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: calc(-1 * clamp(1.4rem, 3vw, 2rem)) 0 0 clamp(1.75rem, 4vw, 3rem);
  background: var(--amber-500); color: var(--navy-950);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 1.1rem 1.85rem;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out-expo);
}
.hero-float-cta:hover, .hero-float-cta:focus-visible { background: var(--amber-600); }
.hero-float-cta svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

.hero-trust {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.6rem; color: var(--white);
}
.hero-trust .trust-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--amber-400);
}
.hero-trust .trust-icon svg { width: 1.15rem; height: 1.15rem; }
.hero-trust strong { display: block; font-size: 0.95rem; font-weight: 600; }
.hero-trust span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.hero-stat-card {
  position: absolute; z-index: 2;
  top: clamp(1.25rem, 3vw, 1.75rem); right: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(11,18,32,0.88);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: none; align-items: center; gap: 0.75rem;
  max-width: 13rem; color: var(--white);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 900px) {
    .hero-stat-card { background: rgba(11,18,32,0.7); backdrop-filter: blur(10px); }
  }
}
.hero-stat-card .stat-icon {
  width: 2.3rem; height: 2.3rem; border-radius: 10px; flex-shrink: 0;
  background: rgba(242,140,40,0.18); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
}
.hero-stat-card .stat-icon svg { width: 1.2rem; height: 1.2rem; }
.hero-stat-card strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); line-height: 1; }
.hero-stat-card span { display: block; font-size: 0.76rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; line-height: 1.3; }
@media (min-width: 640px) { .hero-stat-card { display: flex; } }

@media (max-width: 639px) {
  .hero { min-height: clamp(480px, 120vw, 620px); }
  .hero-title { max-width: 18ch; }
  .hero-trust { margin-top: 1.25rem; }
  .hero-float-cta { margin-left: clamp(1.25rem, 4vw, 1.75rem); font-size: 0.88rem; padding: 1rem 1.5rem; }
}

/* ==========================================================================
   About — proof stat grid
   ========================================================================== */

.about-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 0.85fr; } }

.about-copy-secondary { margin-top: 1.1rem; color: var(--ink-soft); }
.about-cta { margin-top: 1.75rem; }

/* Real, checkable facts only — no fabricated project counts or client
   logos; see DESIGN.md's rule against unverifiable claims. */
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.about-stat {
  background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem; box-shadow: var(--shadow-sm);
}
.about-stat--wide { grid-column: 1 / -1; }
.about-stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700; color: var(--amber-600); line-height: 1; }
.about-stat span { display: block; margin-top: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Flat roofing services — primary, photo-led cards
   ========================================================================== */

/* Simplified 2026-08-15: dropped the multi-service tag-list/pill-count
   treatment (was cramming 4-7 services into one card) in favor of one
   card per genuine flat-roofing service, each linking to its own page —
   crawlable content before a conversion ask, not just a tel: link. */
.section-head--carousel {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; text-align: left; margin-inline: 0; max-width: none;
}
.section-head--carousel .section-lede { margin: 0; }

.carousel-nav { display: flex; gap: 0.6rem; flex-shrink: 0; }
.carousel-nav-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--grey-300); background: var(--white); color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out-expo), color var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.carousel-nav-btn svg { width: 1.1rem; height: 1.1rem; }
.carousel-nav-btn:hover, .carousel-nav-btn:focus-visible { border-color: var(--navy-900); }
.carousel-nav-btn.is-primary { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.carousel-nav-btn.is-primary:hover, .carousel-nav-btn.is-primary:focus-visible { background: var(--navy-800); }
.carousel-nav-btn:disabled { opacity: 0.35; cursor: default; }

/* Stays fully inside .container's own padding — no negative-margin bleed
   past the container edge. That technique (cancel the padding with a
   negative margin, then re-add it as the track's own padding) relies on
   calc(-1 * clamp(...)) landing on the exact same subpixel value as the
   padding it's meant to cancel; a rounding difference between browsers
   leaves either a doubled or a missing gutter at the page edge. A plain
   0.75rem trailing gap for scrollbar clearance can't drift like that. */
.service-groups {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-bottom: clamp(3rem, 6vw, 4rem);
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
}
.service-groups::-webkit-scrollbar { display: none; }
/* No card box — image tile + text below, on the page background directly,
   matching the pinned reference exactly (no border, no shadow, no fill).
   Fixed width via clamp(), not flex-grow: a flex-grow/flex-basis:0 card
   inside an overflow-x:auto flex container doesn't reliably respect its
   own max-width in Safari — it was rendering cards far past 270px with
   the last one sliced off mid-content instead of capping. A width that's
   a plain function of viewport size has no such failure mode. */
.service-group-card {
  flex: 0 0 auto; width: clamp(200px, 24vw, 270px); scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.sgc-media { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; }
.sgc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out-expo); }
.service-group-card:hover .sgc-media img { transform: scale(1.03); }
.sgc-number {
  position: absolute; z-index: 1; top: 0.9rem; left: 0.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--white);
  text-shadow: 0 1px 4px rgba(11,18,32,0.55);
}
.sgc-body { display: flex; flex-direction: column; padding-top: 1rem; }
.sgc-body h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.sgc-body p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.sgc-cta { margin-top: 0.75rem; }
.sgc-cta a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  /* padding-block, not a taller line-height: WCAG 2.2's 2.5.8 Target Size
     (AA) wants a 24px-tall hit area; the text itself only needs to look
     like a compact link, so the extra height goes to invisible padding,
     with a negative margin to cancel the padding's effect on surrounding
     layout spacing. */
  padding-block: 0.15rem; margin-block: -0.15rem;
  font-size: 0.86rem; font-weight: 700; color: var(--amber-700); text-decoration: none;
}
.sgc-cta a svg { width: 1rem; height: 1rem; transition: transform var(--dur-fast) var(--ease-out-expo); }
.sgc-cta a:hover, .sgc-cta a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sgc-cta a:hover svg, .sgc-cta a:focus-visible svg { transform: translateX(2px); }

/* ==========================================================================
   Roofing systems
   ========================================================================== */

.systems-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .systems-grid { grid-template-columns: repeat(3, 1fr); } }

.system-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-fast) var(--ease-out-expo);
}
.system-card:hover { box-shadow: var(--shadow-md); }

.system-card-media { position: relative; aspect-ratio: 4/3; }
.system-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.system-card-badge, .system-card-guarantee {
  position: absolute; top: 0.85rem; z-index: 1;
  font-size: 0.72rem; font-weight: 700; padding: 0.4rem 0.7rem; border-radius: var(--radius-pill);
}
.system-card-badge {
  left: 0.85rem; background: rgba(11,18,32,0.7); color: var(--white);
}
@supports (backdrop-filter: blur(1px)) { .system-card-badge { backdrop-filter: blur(6px); } }
.system-card-guarantee { right: 0.85rem; background: var(--amber-500); color: var(--navy-950); }

.system-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.system-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.system-card-body > p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 1.1rem; }

.system-card-points { margin: 0 0 1.35rem; display: grid; gap: 0.65rem; }
.system-card-points li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.86rem; color: var(--ink); }
.system-card-points svg { width: 1.05rem; height: 1.05rem; color: var(--amber-600); flex-shrink: 0; margin-top: 0.1rem; }
.system-card-points strong { font-weight: 700; margin-right: 0.3rem; }

.system-card-body .btn { margin-top: auto; }

.systems-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.systems-note strong { color: var(--ink); }

/* Pull-quote card */
.quote-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--white); box-shadow: var(--shadow-lg);
}
.quote-card svg { width: 2rem; height: 2rem; color: var(--amber-400); margin-bottom: 1rem; }
.quote-card p { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; }
.quote-card cite { font-style: normal; font-weight: 700; font-size: 0.88rem; color: var(--grey-300); }

/* ==========================================================================
   Portfolio — dark band
   ========================================================================== */

/* Reference-matched grid: heading/copy and the CTA button each occupy a
   real grid cell alongside the photos — not a header row above the grid
   and a centered button below it. height:100% on the img (not
   aspect-ratio+height:auto) avoids the HTML-height-attribute/aspect-ratio
   interaction bug documented in DESIGN.md; this is the same safe pattern
   .sgc-media already used. */
.portfolio-bento {
  display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr);
}
.portfolio-text, .portfolio-cta { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .portfolio-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "text imgA imgC"
      "imgB imgD cta";
  }
  .portfolio-text { grid-area: text; grid-column: auto; }
  .portfolio-tile--a { grid-area: imgA; }
  .portfolio-tile--b { grid-area: imgB; }
  .portfolio-tile--c { grid-area: imgC; }
  .portfolio-tile--d { grid-area: imgD; }
  .portfolio-cta { grid-area: cta; grid-column: auto; }
}
.portfolio-text { display: flex; flex-direction: column; justify-content: center; }
.portfolio-text .section-title { margin-bottom: 0.6rem; }
.portfolio-text p { color: var(--grey-300); margin: 0; }

/* Fixed square crop, not the varying rectangle heights the asymmetric
   bento used before — aspect-ratio + height:auto (not a fixed px height)
   so the square scales with the column width at every breakpoint. */
.portfolio-tile { margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1 / 1; }
.portfolio-tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out-expo); }
.portfolio-tile:hover img { transform: scale(1.02); }
.portfolio-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,18,32,0.8) 0%, rgba(11,18,32,0) 45%);
  pointer-events: none;
}
.portfolio-tile figcaption { position: absolute; z-index: 1; left: 0.9rem; bottom: 0.85rem; margin: 0; }
.portfolio-tag {
  display: inline-block; background: rgba(255,255,255,0.14); color: var(--white);
  font-size: 0.78rem; font-weight: 600; padding: 0.42rem 0.8rem; border-radius: var(--radius-pill);
}
@supports (backdrop-filter: blur(1px)) { .portfolio-tag { backdrop-filter: blur(6px); } }

.portfolio-cta { display: flex; align-items: center; justify-content: center; margin-top: 0; }
@media (max-width: 699px) { .portfolio-cta { margin-top: 0.5rem; } }

/* ==========================================================================
   Why choose us — 4-up feature grid, one highlighted card
   ========================================================================== */

/* Flush, adjacent strip — no gaps, no individual card shadows. Each cell
   contributes its own right + bottom divider; the container supplies the
   top + left outer edge, so shared edges between cells never double up. */
.feature-grid {
  display: grid;
  border-top: 1px solid var(--grey-150);
  border-left: 1px solid var(--grey-150);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--white);
  border-right: 1px solid var(--grey-150); border-bottom: 1px solid var(--grey-150);
  padding: 1.9rem;
  transition: background-color var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo);
}
.feature-card.is-highlight { background: var(--amber-50); box-shadow: inset 0 0 0 2px var(--amber-500); }
.feature-icon {
  width: 3.1rem; height: 3.1rem; border-radius: 12px;
  background: var(--navy-950); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.15rem;
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.feature-card p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Guarantee
   ========================================================================== */

.guarantee-card {
  display: grid; gap: clamp(2rem, 4vw, 2.75rem);
  background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.9rem, 4vw, 2.75rem);
}
@media (min-width: 760px) { .guarantee-card { grid-template-columns: 0.85fr 1.15fr; align-items: center; } }

.guarantee-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

/* Medallion, not a flat stat circle: a bright inner face, an embossed
   highlight/shadow pair for dimension, and a navy outline ring standing
   proud of the face — the "official seal" reading a 10-year promise wants,
   rather than the generic big-number/small-label KPI card the craft floor
   refuses by default. */
.guarantee-number {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 7rem; height: 7rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, var(--amber-400), var(--amber-600));
  color: var(--navy-950);
  outline: 3px solid var(--navy-950);
  outline-offset: 5px;
  box-shadow:
    var(--shadow-amber),
    inset 0 2px 3px rgba(255,255,255,0.45),
    inset 0 -3px 6px rgba(11,18,32,0.18);
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.guarantee-number strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.guarantee-number span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2; margin-top: 0.15rem; }
/* Single authored entrance: the medallion pops in with a slight spin just
   after the card fades up, reusing the existing .is-visible toggle — no
   new JS, and every other element on the page keeps the plain fade/rise. */
.js .guarantee-card .guarantee-number { transform: scale(0.55) rotate(-16deg); }
.js .guarantee-card.is-visible .guarantee-number { transform: scale(1) rotate(0deg); transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) { .js .guarantee-card .guarantee-number { transform: none; } }

.guarantee-lede { margin: 0; color: var(--ink-soft); }

.guarantee-details { margin: 0; display: grid; gap: 0.85rem; grid-template-columns: repeat(2, 1fr); }
.guarantee-details > div {
  background: var(--grey-100); border-radius: var(--radius-md); padding: 1.1rem 1.15rem;
  transition: background-color var(--dur-fast) var(--ease-out-expo), transform var(--dur-fast) var(--ease-out-expo);
}
.guarantee-details > div:hover { background: var(--amber-50); transform: translateY(-2px); }
.guarantee-details-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem; border-radius: 50%; margin-bottom: 0.7rem;
  background: var(--amber-100); color: var(--amber-700);
}
.guarantee-details svg { width: 1.1rem; height: 1.1rem; }
.guarantee-details dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 0.3rem; }
.guarantee-details dd { margin: 0; font-size: 0.88rem; color: var(--ink); }
@media (max-width: 519px) { .guarantee-details { grid-template-columns: 1fr; } }

/* ==========================================================================
   Emergency band
   ========================================================================== */

.emergency { max-width: 42rem; margin-inline: auto; text-align: center; }
.emergency-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-700);
  margin-bottom: 1.5rem;
  animation: pulse-ring 2.4s var(--ease-out-expo) infinite;
}
.emergency-icon svg { width: 2rem; height: 2rem; }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,140,40,0.35); } 50% { box-shadow: 0 0 0 14px rgba(242,140,40,0); } }
.emergency p.section-lede { margin-inline: auto; margin-bottom: 1.75rem; }
.emergency .btn-group { justify-content: center; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-provenance { text-align: center; max-width: 40rem; margin: -1.5rem auto 0.75rem; font-size: 0.86rem; color: var(--ink-soft); }
.testimonial-swipe-hint { margin: 0 auto 1.5rem; text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--amber-700); }
.testimonial-grid {
  display: flex; align-items: flex-start; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
}
.testimonial-grid::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 clamp(280px, 42vw, 420px); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--grey-150); border-radius: var(--radius-lg);
  padding: 1.9rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1.1rem;
}
.testimonial-card blockquote { margin: 0; font-size: 0.98rem; color: var(--ink); flex: 1; }
.testimonial-card blockquote p { margin: 0 0 0.85rem; }
.testimonial-card blockquote p:last-child { margin-bottom: 0; }
@media (max-width: 759px) {
  .testimonial-card { flex-basis: 100%; padding: 1.4rem; }
  .testimonial-card blockquote { font-size: 0.94rem; line-height: 1.5; }
}
.testimonial-meta { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex-shrink: 0;
  background: var(--navy-950); color: var(--amber-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.92rem;
}
.testimonial-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.testimonial-loc { font-size: 0.82rem; color: var(--ink-soft); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-list { display: grid; gap: 0.75rem; max-width: 52rem; margin-inline: auto; }
.faq-item {
  background: var(--grey-100); border-radius: var(--radius-sharp); overflow: hidden;
  transition: background-color var(--dur-fast) var(--ease-out-expo);
}
.faq-item:hover { background: var(--grey-150); }
.faq-item[open] { background: var(--grey-150); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.35rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--amber-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out-expo), background-color var(--dur-mid) var(--ease-out-expo), color var(--dur-mid) var(--ease-out-expo);
}
.faq-plus svg { width: 1.05rem; height: 1.05rem; }
.faq-item[open] .faq-plus { background: var(--navy-950); color: var(--white); transform: rotate(135deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  color: var(--ink-soft); font-size: 0.98rem;
  transition: grid-template-rows var(--dur-mid) var(--ease-out-expo);
}
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 1.5rem 1.5rem; margin: 0; }
.faq-answer a {
  color: var(--amber-700);
  font-weight: 700;
  text-underline-offset: 0.16em;
}
.faq-answer a:hover { color: var(--amber-500); }
@media (prefers-reduced-motion: reduce) { .faq-answer { transition: none; } }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; } }
.contact-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 20rem; box-shadow: var(--shadow-lg); }
.contact-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.contact-card { background: var(--navy-950); border-radius: var(--radius-lg); padding: clamp(1.9rem, 4vw, 2.75rem); color: var(--white); }
.contact-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.35rem; }
.contact-role { color: var(--grey-300); margin-bottom: 1.5rem; }

.contact-actions { display: grid; gap: 0.9rem; }
.contact-action-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.3rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.14);
  text-decoration: none; transition: transform var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) var(--ease-out-expo);
}
.contact-action-btn:hover { box-shadow: var(--shadow-md); }
.contact-action-btn.is-call { border-color: var(--amber-500); background: rgba(242,140,40,0.12); }
.contact-action-icon {
  width: 3rem; height: 3rem; border-radius: 12px; flex-shrink: 0;
  background: var(--amber-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
}
.contact-action-btn:not(.is-call) .contact-action-icon { background: rgba(255,255,255,0.1); color: var(--white); }
.contact-action-icon svg { width: 1.3rem; height: 1.3rem; }
.contact-action-text strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--white); }
.contact-action-text span { font-size: 0.84rem; color: var(--grey-300); }

.coverage-area { margin-top: clamp(3rem, 6vw, 4rem); }
.coverage-area h3 { font-size: 1.4rem; margin-bottom: 0.5rem; text-align: center; }
.coverage-intro {
  max-width: 48rem; margin: 0 auto 1.75rem;
  color: var(--ink-soft); text-align: center;
}
.coverage-region-grid {
  display: grid; gap: 1rem;
  margin-bottom: 1.25rem;
}
.coverage-region {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,247,250,0.92));
  border: 1px solid var(--grey-150);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.coverage-region h4 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}
.coverage-region p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.72;
}
.coverage-note {
  margin: 0 auto 0.85rem;
  max-width: 70rem;
  color: var(--ink-soft);
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.68;
}
.coverage-note strong { color: var(--ink); }

@media (min-width: 860px) {
  .coverage-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.coverage-map-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.coverage-map {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 380px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--grey-150);
  background: linear-gradient(135deg, #0b1220 0%, #1a2d4a 100%);
}
.coverage-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}
.coverage-map-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
}
.coverage-map-actions .btn-sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.86rem;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .coverage-map-row { flex-direction: column; }
  .coverage-map-actions { align-items: stretch; }
  .coverage-map-actions .btn-sm { text-align: center; }
}
@media (max-width: 600px) {
  .coverage-map,
  .coverage-map iframe { min-height: 300px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.72); padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 1rem; max-width: 28rem; }
.footer-heading { font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--white); text-transform: uppercase; margin-bottom: 1.1rem; }
/* The footer now carries eleven quick links; a two-column split keeps the
   middle column balanced against the brand and contact blocks. */
.footer-list { display: grid; gap: 0.1rem; }
.footer-list a { display: block; padding-block: 0.6rem; text-decoration: none; color: rgba(255,255,255,0.72); font-size: 0.94rem; }
.footer-list a:hover { color: var(--amber-400); }
@media (min-width: 760px) {
  .footer-list {
    grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, auto);
    grid-auto-flow: column; column-gap: 1.5rem;
  }
}

.footer-contact { display: grid; gap: 0.2rem; }
.footer-contact a, .footer-contact-static { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.65rem; font-size: 0.94rem; font-weight: 600; color: var(--white); text-decoration: none; }
.footer-contact a:hover { color: var(--amber-400); }
.footer-contact svg { width: 1.1rem; height: 1.1rem; color: var(--amber-400); flex-shrink: 0; }

.footer-bottom { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.84rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Fails open: with no .js class (JS didn't load/run), [data-reveal]
   elements are just normal, fully visible content — the hide-then-reveal
   treatment is opt-in, added only once main.js confirms it's running and
   can guarantee the IntersectionObserver will actually flip .is-visible. */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .emergency-icon { animation: none; }
}
@media print { .js [data-reveal] { opacity: 1; transform: none; } }
