/* ==========================================================================
   Summit Shield Roofing — stylesheet
   Single file, no build step, mobile-first. Organised top-to-bottom:
   tokens → base → layout → components → header → hero → sections → footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — brand colours sampled from the Storm Ready logo
   -------------------------------------------------------------------------- */
:root {
  --graphite-950: #0b0e11;  /* footer, top bar */
  --graphite-900: #111418;  /* skyline silhouettes, trust strip */
  --graphite-850: #15191e;  /* header, dark sections */
  --graphite-800: #1d2228;  /* logo graphite, text on yellow */
  --slate-700: #2b323b;
  --slate-600: #3a434e;     /* Slate — dark cards, borders */
  --steel-400: #8a94a0;     /* Steel — meta text on dark */
  --steel-300: #b8c0c9;
  --concrete: #eef0f2;      /* Concrete — light sections */
  --hivis: #f5b01a;         /* Hi-Vis Yellow — buttons, accents (8.5:1 with graphite text) */
  --hivis-600: #e39e08;
  --hivis-300: #ffc84d;

  --ink: #15191e;
  --text: #3a434e;
  --muted: #5f6a76;         /* 5.5:1 on white */
  --line: #e2e6ea;
  --error: #b42318;

  --font-display: "Big Shoulders Display", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 68px;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, .06), 0 3px 10px rgba(17, 20, 24, .06);
  --shadow: 0 6px 16px rgba(17, 20, 24, .08), 0 18px 40px rgba(17, 20, 24, .1);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, .28), 0 34px 80px rgba(0, 0, 0, .34);

  --hazard: repeating-linear-gradient(-45deg, var(--hivis) 0 10px, var(--graphite-800) 10px 20px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --transition: 200ms var(--ease);
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--graphite-800); text-underline-offset: .18em; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--hivis); color: var(--graphite-800); }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--hivis);
  color: var(--graphite-800);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--star { width: .8em; height: .8em; fill: var(--hivis); stroke: none; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--concrete { background: var(--concrete); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head p:last-child { margin: 0; font-size: 1.0625rem; color: var(--muted); }

/* Eyebrow: the logo's three rain bars as a bullet */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  font: 800 .8125rem/1.2 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite-800);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 27px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32' fill='none' stroke='%23f5b01a' stroke-width='5.5' stroke-linecap='round'%3E%3Cpath d='M15 9 11 25M26 4l-4 16M37 9l-4 16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eyebrow--light { color: #fff; }

.section h2,
.storm h2,
.cta h2 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); }

/* --------------------------------------------------------------------------
   4. Components
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: 800 .9375rem/1.2 var(--font-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.2em; height: 1.2em; stroke-width: 2.4; }

.btn--primary { background: var(--hivis); color: var(--graphite-800); box-shadow: 0 10px 22px -10px rgba(245, 176, 26, .75); }
.btn--primary:hover { background: var(--hivis-300); }
.btn--ghost { border-color: rgba(255, 255, 255, .42); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: #fff; color: var(--graphite-800); }
.btn--dark { background: var(--graphite-800); color: #fff; }
.btn--dark:hover { background: var(--graphite-950); }
.btn--light { background: #fff; color: var(--graphite-800); }
.btn--light:hover { background: var(--concrete); }

.btn--lg { min-height: 56px; padding: .9rem 1.55rem; font-size: 1rem; }
.btn--xl { min-height: 64px; padding: 1rem 2rem; font-size: 1.25rem; }
.btn--block { width: 100%; }

/* Long uppercase labels may wrap on narrow phones instead of pushing the layout wider */
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; letter-spacing: .03em; }
  .btn--lg { padding-inline: 1.1rem; }
}

.pulse {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hivis);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 176, 26, .6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(245, 176, 26, 0); }
}

.stars { width: 110px; height: 22px; fill: var(--hivis); }

/* --------------------------------------------------------------------------
   5. Top bar + header (dark, so the light logo sits on graphite like the mockup)
   -------------------------------------------------------------------------- */
.topbar { display: none; background: var(--graphite-950); color: rgba(255, 255, 255, .72); font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__item, .topbar__list li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.topbar__list { display: flex; gap: 1.75rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--hivis); }

@media (min-width: 900px) {
  .topbar { display: block; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 25, 30, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow var(--transition), background-color var(--transition);
}
@supports (backdrop-filter: blur(10px)) {
  .header { background: rgba(21, 25, 30, .86); backdrop-filter: saturate(1.3) blur(12px); }
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; }
.brand img { width: auto; height: 36px; }
.header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header__cta { display: none; }
.header__phone { display: none; }

@media (min-width: 480px) {
  .brand img { height: 40px; }
  .header__cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .brand img { height: 44px; }
}

/* Mobile menu panel */
.nav-toggle {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform var(--transition), opacity var(--transition); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: .5rem var(--gutter) 1.5rem;
  background: var(--graphite-850);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }

.nav__list a {
  display: block;
  padding: .95rem .25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 800 1.5rem/1.1 var(--font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.nav__list a:hover { color: var(--hivis); }
.nav__cta { display: grid; gap: .75rem; margin-top: 1.25rem; }

@media (min-width: 1080px) {
  .nav-toggle, .nav__cta { display: none; }
  .nav {
    position: static;
    height: auto;
    overflow: visible;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__list { display: flex; gap: 1.15rem; }
  .nav__list a {
    position: relative;
    padding: .5rem 0;
    white-space: nowrap;
    border: 0;
    font: 600 .9375rem var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, .8);
  }
  .nav__list a:hover { color: #fff; }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .1rem;
    height: 3px;
    background: var(--hivis);
    transform: scaleX(0);
    transition: transform var(--transition);
  }
  .nav__list a:hover::after,
  .nav__list a.is-active::after { transform: scaleX(1); }
  .nav__list a.is-active { color: #fff; }
  .header__actions { margin-left: 1.25rem; }
}

@media (min-width: 1280px) {
  .header__phone {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    font: 800 1.25rem/1.1 var(--font-display);
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
  }
  .header__phone small { display: block; font: 600 .6875rem var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-400); }
  .header__phone-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--hivis); }
}

/* --------------------------------------------------------------------------
   6. Hero — storm sky, rain that stops at the rooftops, inspection card
   -------------------------------------------------------------------------- */
.hero {
  --skyline-h: clamp(120px, 18vw, 260px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: calc(var(--skyline-h) * .58);
  color: rgba(255, 255, 255, .78);
  background:
    radial-gradient(55% 38% at 72% 100%, rgba(245, 176, 26, .17), transparent 70%),
    radial-gradient(45% 30% at 16% 0%, rgba(138, 148, 160, .17), transparent 70%),
    radial-gradient(40% 26% at 64% 3%, rgba(138, 148, 160, .12), transparent 70%),
    linear-gradient(180deg, #0e1114 0%, #151a1f 40%, #242b33 74%, #38414c 100%);
}

.hero__sky { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }

/* Rain: vertical streaks on a layer tilted to the logo's rain angle, scrolled one tile per loop */
.hero__rain { position: absolute; inset: -30% -20%; transform: rotate(15deg); }
.hero__rain::before {
  content: "";
  position: absolute;
  top: calc(var(--tile) * -1);
  right: 0;
  bottom: 0;
  left: 0;
  background: url("../images/rain.svg") 0 0 / var(--tile) var(--tile) repeat;
  animation: rain var(--speed) linear infinite;
  will-change: transform;
}
.hero__rain--far { --tile: 150px; --speed: 1s; opacity: .5; }
.hero__rain--near { --tile: 270px; --speed: .62s; opacity: .8; }
@keyframes rain { to { transform: translateY(var(--tile)); } }

/* Distant lightning: two soft flickers every 12 seconds */
.hero__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 80% 0%, rgba(214, 226, 255, .3), transparent 70%);
  opacity: 0;
  animation: flash 12s 2.5s infinite;
}
@keyframes flash {
  0%, 90%, 100% { opacity: 0; }
  90.6% { opacity: 1; }
  91.2% { opacity: .2; }
  91.9% { opacity: .75; }
  94.5% { opacity: 0; }
}

.hero__skyline {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: var(--skyline-h);
  pointer-events: none;
}
.skyline__palms { fill: #1b2127; }
.palm__fronds {
  transform-box: fill-box;
  transform-origin: 60% 47%;
  animation: sway 4.5s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(3deg); }
}
.skyline__houses { fill: var(--graphite-900); }
.skyline__ridge { fill: none; stroke: var(--hivis); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.skyline__windows { fill: #ffc44f; filter: drop-shadow(0 0 5px rgba(245, 176, 26, .6)); }
.skyline__windows--off { fill: #1f252c; filter: none; }

.hero.is-paused .hero__rain::before,
.hero.is-paused .hero__flash,
.hero.is-paused .palm__fronds { animation-play-state: paused; }

.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.75rem; align-items: end; }
.hero__grid > * { min-width: 0; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  padding: .45rem 1rem .45rem .8rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
@supports (backdrop-filter: blur(6px)) {
  .hero__badge { backdrop-filter: blur(6px); }
}

.hero__title {
  margin-bottom: 1.4rem;
  font-size: clamp(3.5rem, 1.9rem + 6.6vw, 7.5rem);
  line-height: .88;
  letter-spacing: .005em;
  color: #fff;
}
.hero__title span { display: block; color: var(--hivis); }

.hero__lead { max-width: 34rem; margin-bottom: 2rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 34rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__proof li { padding-right: .75rem; }
.hero__proof li + li { padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero__proof strong {
  display: flex;
  align-items: center;
  gap: .15rem;
  font: 800 clamp(1.35rem, 1rem + 1.5vw, 2.1rem)/1 var(--font-display);
  text-transform: uppercase;
  color: #fff;
}
.hero__proof span { display: block; margin-top: .4rem; font-size: .8125rem; line-height: 1.35; color: var(--steel-300); }

.hero__visual { position: relative; width: 100%; max-width: 480px; margin-inline: auto; }

/* Inspection card */
.inspect-card {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.inspect-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--hazard);
}
.inspect-card__tag {
  display: inline-block;
  margin: 0 0 .7rem;
  padding: .3rem .6rem;
  border-radius: 4px;
  background: var(--concrete);
  font: 800 .6875rem/1.2 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite-800);
}
.inspect-card__title { margin-bottom: .45rem; font-size: 2.1rem; }
.inspect-card__sub { margin-bottom: 1.35rem; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

.rating-chip {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  margin: 0;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--graphite-800);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.rating-chip strong { color: #fff; font-weight: 700; }
.rating-chip .stars { flex: none; width: 78px; height: 16px; }

.field { display: grid; gap: .35rem; margin-bottom: .95rem; }
.field label { font-size: .8125rem; font-weight: 700; color: var(--ink); }
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 .95rem;
  border: 1.5px solid #d3d9df;
  border-radius: 8px;
  background: #f6f7f9;
  font: 500 1rem var(--font-sans);
  color: var(--ink);
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.field input::placeholder { color: #98a1ab; }
.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2228' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: 18px;
  cursor: pointer;
}
.field select:invalid { color: #6d7782; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--graphite-800);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(245, 176, 26, .38);
}
.field.is-invalid input,
.field.is-invalid select { border-color: var(--error); }
.field__error { font-size: .8rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }

.field-row { display: grid; gap: 0 .9rem; }
@media (min-width: 360px) {
  .field-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}

.check { display: flex; align-items: center; gap: .65rem; margin: .15rem 0 1.15rem; font-size: .9375rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--hivis); cursor: pointer; }

.quote-form__note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .9rem 0 0; font-size: .8125rem; color: var(--muted); }
.quote-form__note .icon { width: 15px; height: 15px; }

.quote-success { padding: 1rem 0 .5rem; text-align: center; }
.quote-success p { margin-bottom: 1.5rem; }
.quote-success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; border-radius: 50%; background: var(--hivis); color: var(--graphite-800); }
.quote-success__icon .icon { width: 32px; height: 32px; stroke-width: 3; }

@media (max-width: 559px) {
  .hero__ctas .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; }
  .hero__visual { max-width: none; }
  .inspect-card { padding: 2.75rem 2rem 2rem; }
}

/* Hero entrance */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.js .hero__copy > * { animation: rise .7s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .07s; }
.js .hero__copy > :nth-child(3) { animation-delay: .14s; }
.js .hero__copy > :nth-child(4) { animation-delay: .21s; }
.js .hero__copy > :nth-child(5) { animation-delay: .28s; }
.js .inspect-card { animation: rise .8s var(--ease) .2s both; }

/* --------------------------------------------------------------------------
   7. Trust strip — continues the rooftop silhouettes from the hero
   -------------------------------------------------------------------------- */
.trust { padding: 1.5rem 0 3rem; background: var(--graphite-900); color: rgba(255, 255, 255, .7); }
.trust__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.trust__item { display: flex; flex-direction: column; gap: .75rem; }
.trust__item p { margin: 0; font-size: .875rem; line-height: 1.45; }
.trust__item strong { display: block; margin-bottom: .15rem; font: 800 1.3rem/1.1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.trust__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--hivis); }
.trust__icon .icon { width: 26px; height: 26px; }

@media (min-width: 700px) {
  .trust__item { flex-direction: row; align-items: flex-start; gap: 1rem; }
}
@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   8. Hazard tape marquee
   -------------------------------------------------------------------------- */
.hazard {
  overflow: hidden;
  padding-block: 16px;
  background: linear-gradient(var(--graphite-900) 50%, #fff 50%);
}
.hazard__band {
  margin-inline: -40px;
  border-block: 6px solid transparent;
  border-image: var(--hazard) 6;
  background: var(--hivis);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
  transform: rotate(-1.2deg);
}
.hazard__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.hazard__list { display: flex; flex: none; align-items: center; }
.hazard__list li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .75rem 0 .75rem 1.25rem;
  font: 800 1.3rem/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--graphite-800);
  white-space: nowrap;
}
.hazard__list li::after {
  content: "";
  width: 30px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32' fill='none' stroke='%231d2228' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M15 9 11 25M26 4l-4 16M37 9l-4 16'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services { display: grid; gap: 1rem; }
.service {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hivis);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.service:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--graphite-800);
  color: var(--hivis);
  transition: background-color var(--transition), color var(--transition);
}
.service__icon .icon { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--hivis); color: var(--graphite-800); }
.service h3 { margin: .15rem 0 .35rem; font-size: 1.5rem; font-weight: 800; }
.service p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--muted); }

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .service { display: block; padding: 1.75rem 1.5rem 1.6rem; }
  .service__icon { width: 58px; height: 58px; margin-bottom: 1.2rem; }
  .service h3 { margin: 0 0 .5rem; font-size: 1.6rem; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   10. Storm response band
   -------------------------------------------------------------------------- */
.storm {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: radial-gradient(60% 120% at 100% 50%, #2b323b, var(--graphite-850) 70%);
  color: rgba(255, 255, 255, .78);
}
.storm::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40%;
  background: url("../images/rain.svg") 0 0 / 180px repeat;
  opacity: .45;
  transform: rotate(15deg);
}
.storm::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background: var(--hazard);
}
.storm__inner { position: relative; display: grid; gap: 1.75rem; align-items: center; }
.storm__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hivis);
}
.storm h2 { margin-bottom: .6rem; color: #fff; }
.storm p:last-child { max-width: 40rem; margin: 0; font-size: 1.0625rem; }
.storm .btn { justify-self: start; }

@media (max-width: 559px) {
  .storm .btn { justify-self: stretch; }
}
@media (min-width: 900px) {
  .storm__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
}

/* --------------------------------------------------------------------------
   11. Process
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 1.25rem; }
.step { position: relative; padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.step__num {
  display: block;
  margin-bottom: 1rem;
  font: 900 3.75rem/1 var(--font-display);
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--graphite-800);
  text-shadow: 5px 5px 0 var(--hivis);
}
.step h3 { margin-bottom: .45rem; font-size: 1.65rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: calc(1.75rem + 30px);
    right: calc(-1.5rem - 1px);
    width: 1.5rem;
    border-top: 3px dashed var(--hivis);
  }
}

/* --------------------------------------------------------------------------
   12. Why us + spec sheet
   -------------------------------------------------------------------------- */
.why { display: grid; gap: clamp(2.75rem, 6vw, 5rem); align-items: center; }
.why__copy > p:not(.eyebrow) { font-size: 1.0625rem; }
.ticks { display: grid; gap: 1rem; margin: 1.75rem 0 2.25rem; }
.ticks li { display: flex; align-items: flex-start; gap: .85rem; }
.ticks p { margin: 0; }
.ticks strong { color: var(--ink); }
.ticks .icon { width: 26px; height: 26px; margin-top: .05rem; padding: 5px; border-radius: 6px; background: var(--hivis); color: var(--graphite-800); stroke-width: 3.2; }

.spec { overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite-850); box-shadow: var(--shadow); color: rgba(255, 255, 255, .78); }
.spec__head {
  position: relative;
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: repeating-linear-gradient(-45deg, rgba(245, 176, 26, .07) 0 10px, transparent 10px 20px);
}
.spec__head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--hazard); }
.spec__head p { margin: 0 0 .35rem; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--hivis); }
.spec__head h3 { margin: 0; font-size: 2rem; color: #fff; }
.spec__list { margin: 0; padding: .35rem 1.5rem; }
.spec__list div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.spec__list div:last-child { border-bottom: 0; }
.spec__list dt { font-size: .75rem; font-weight: 800; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-400); }
.spec__list dd { margin: 0; font-weight: 600; line-height: 1.45; color: #fff; }
.spec__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .18); }
.spec__stats p { margin: 0; padding: 1.1rem .5rem; text-align: center; line-height: 1.2; }
.spec__stats p + p { border-left: 1px solid rgba(255, 255, 255, .08); }
.spec__stats strong { display: flex; align-items: center; justify-content: center; gap: .1rem; font: 900 2.1rem/1 var(--font-display); color: var(--hivis); }
.spec__stats span { display: block; margin-top: .35rem; font-size: .75rem; color: var(--steel-300); }

@media (min-width: 480px) {
  .spec__head, .spec__list { padding-inline: 2rem; }
  .spec__list div { grid-template-columns: 9rem minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .why { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* --------------------------------------------------------------------------
   13. Reviews
   -------------------------------------------------------------------------- */
.reviews { display: grid; gap: 1.25rem; }
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.review::before {
  content: "\201C";
  position: absolute;
  top: .6rem;
  right: 1.35rem;
  font: 900 5rem/1 var(--font-display);
  color: var(--line);
}
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { margin: 0; }
.review figcaption { display: flex; align-items: center; gap: .8rem; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.review figcaption strong { display: block; font-size: .9375rem; color: var(--ink); }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--graphite-800);
  font: 800 1.05rem var(--font-display);
  letter-spacing: .04em;
  color: var(--hivis);
}

@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   14. Service area
   -------------------------------------------------------------------------- */
.areas {
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--graphite-850);
  color: rgba(255, 255, 255, .78);
}
.areas h2 { color: #fff; }
.areas__inner { display: grid; gap: 2.5rem; align-items: center; }
.areas__copy p:not(.eyebrow) { margin-bottom: 1.75rem; }
.areas__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.areas__list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.areas__list .icon { width: 18px; height: 18px; color: var(--hivis); }

@media (min-width: 600px) {
  .areas__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .areas__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; }
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .85rem; }
.faq__item {
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--concrete);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.faq__item[open] { border-color: var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--hivis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2228' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.faq__item[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2228' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq__item p { margin: 0; padding: 0 1.35rem 1.35rem; }

/* --------------------------------------------------------------------------
   16. Closing CTA
   -------------------------------------------------------------------------- */
.cta { padding-bottom: var(--section-y); }
.cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  padding: clamp(2.25rem, 6vw, 4.25rem);
  border-radius: 20px;
  background: radial-gradient(120% 140% at 100% 100%, #3a434e 0%, var(--graphite-800) 55%, var(--graphite-900) 100%);
  color: rgba(255, 255, 255, .8);
}
.cta__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--hazard); }
.cta__copy { max-width: 38rem; }
.cta__card h2 { margin-bottom: .75rem; color: #fff; }
.cta__card h2 span { display: block; margin-top: .15em; color: var(--hivis); }
.cta__card p { margin: 0; font-size: 1.0625rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.cta__mark { position: absolute; z-index: -1; right: -50px; bottom: -40px; width: 240px; height: 240px; opacity: .14; }

@media (max-width: 559px) {
  .cta__actions .btn { width: 100%; }
}
@media (min-width: 900px) {
  .cta__mark { right: 3%; bottom: -30px; width: 380px; height: 380px; }
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { padding-top: clamp(3.5rem, 7vw, 5rem); background: var(--graphite-950); color: rgba(255, 255, 255, .68); font-size: .9375rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand img { width: auto; height: 50px; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 24rem; }
.footer h3 { margin-bottom: 1rem; font-size: 1.35rem; font-weight: 800; letter-spacing: .03em; color: #fff; }
.footer li + li { margin-top: .6rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--hivis); }
.footer__contact li { display: flex; align-items: flex-start; gap: .65rem; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: .2rem; color: var(--hivis); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom p { margin: 0; }

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.35fr; gap: 3rem; }
}

/* --------------------------------------------------------------------------
   18. Mobile call bar
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(17, 20, 24, .97);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
}
.mobile-bar .btn { min-height: 50px; padding-inline: .5rem; gap: .45em; font-size: .8125rem; letter-spacing: .03em; }

@media (max-width: 767px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .mobile-bar { display: none; }
}

/* --------------------------------------------------------------------------
   19. Scroll reveal (only when JS is running) + reduced motion
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__rain::before, .hero__flash, .palm__fronds, .hazard__track { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
