/* ═══════════════════════════════════════════════════════════════════════════
   Rain Right Roofing — Lead Generation One-Pager
   Mobile-first • AI SEO + Local SEO optimised
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --dark:        #050f1e;
  --dark2:       #0c1e38;
  --dark3:       #112540;
  --dark4:       #071628;
  --blue:        #2574C4;
  --blue-bright: #4fc3f7;
  --red:         #D93025;
  --red-dark:    #b71c1c;
  --white:       #ffffff;
  --off-white:   #f0f4f8;
  --gray:        #94a3b8;
  --gray-light:  #cbd5e1;
  --gold:        #f59e0b;
  --green:       #16a34a;

  --font-h:   'Oswald', 'Arial Narrow', sans-serif;
  --font-b:   'Inter', system-ui, -apple-system, sans-serif;

  --trans:    0.2s ease;
  --radius:   6px;
  --radius-lg:14px;
  --shadow:   0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:0 12px 48px rgba(0,0,0,.5);

  --container: 1200px;
  --pad-x:     24px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--dark);
  color: var(--gray-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }

.section { padding: 80px 0; }
.section--alt { background: var(--dark2); }
.section--dark3 { background: var(--dark3); }
.services-section { background: transparent; }

/* Shared glow wrapper — centers the radial across both Services + Process */
.services-process-wrap {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(37,116,196,.35) 0%, rgba(37,116,196,.15) 45%, transparent 70%),
    radial-gradient(ellipse 40% 25% at 50% 50%, rgba(79,195,247,.20) 0%, transparent 60%),
    var(--dark3);
}

.section__eyebrow {
  font-family: var(--font-h);
  font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
  display: block;
}
.section__title {
  font-family: var(--font-h);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.05; color: var(--white);
  margin-bottom: 16px;
}
.section__sub {
  font-size: 17px; color: var(--gray);
  max-width: 640px; line-height: 1.7;
}
.section__header { margin-bottom: 52px; }
.section__header--center { text-align: center; }
.section__header--center .section__sub { margin: 0 auto; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), filter var(--trans);
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(217,48,37,.4);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,48,37,.55); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn--outline:hover { border-color: var(--white); }
.btn--lg { font-size: 18px; padding: 17px 36px; }
.btn--full { width: 100%; }
.btn--phone {
  background: rgba(37,116,196,.15);
  color: var(--white);
  border: 1px solid rgba(79,195,247,.35);
}
.btn--phone:hover { background: rgba(37,116,196,.3); }

/* ── Sticky Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,15,30,.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(37,116,196,.20), inset 0 1px 0 rgba(255,255,255,.07);
  transition: box-shadow var(--trans), background var(--trans);
}
.nav--scrolled {
  background: rgba(5,15,30,.75);
  box-shadow: 0 4px 32px rgba(0,0,0,.5), 0 1px 0 rgba(37,116,196,.25);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  height: 66px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 60px; width: auto;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,.9))
    drop-shadow(0 0 8px rgba(255,255,255,.6))
    drop-shadow(0 0 18px rgba(79,195,247,.45));
  transition: filter var(--trans);
}
.nav__logo:hover .nav__logo-img {
  filter:
    drop-shadow(0 0 4px rgba(255,255,255,1))
    drop-shadow(0 0 12px rgba(255,255,255,.75))
    drop-shadow(0 0 26px rgba(79,195,247,.65));
}
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone-link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-h); font-size: 17px; font-weight: 600;
  color: var(--white);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: color var(--trans), opacity var(--trans), transform var(--trans);
}
.nav--scrolled .nav__phone-link {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav__phone-link:hover { color: var(--blue-bright); }
.nav__phone-link svg { flex-shrink: 0; }
.nav__cta-mobile { display: flex; }
.nav__cta-desktop { display: none; }

/* Nav section links — hidden on mobile, visible on desktop */
.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

@media (min-width: 768px) {
  .nav__cta-mobile { display: none; }
  .nav__cta-desktop { display: flex; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: #040c1c;
  overflow: hidden;
  padding: 72px 0 80px;
}
/* Video background */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
/* Dark overlay so text stays readable */
.hero__video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(4,12,28,.88) 0%, rgba(4,12,28,.70) 55%, rgba(4,12,28,.55) 100%),
    linear-gradient(to top,   rgba(4,12,28,.80) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
/* Grid texture over video */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,116,196,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,116,196,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 2;
  pointer-events: none;
}
/* Remove old accent glow pseudo (video replaces it) */
.hero::after { display: none; }
.hero__inner {
  position: relative; z-index: 3;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,116,196,.15);
  border: 1px solid rgba(79,195,247,.35);
  color: var(--blue-bright);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 6px 14px; border-radius: 2px;
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-h);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700; text-transform: uppercase;
  line-height: .95; color: var(--white);
  margin-bottom: 20px;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__sub {
  font-size: 18px; color: rgba(255,255,255,.8);
  line-height: 1.65; margin-bottom: 28px;
  max-width: 520px;
}
.hero__stars {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px;
}
.hero__stars-icons { display: flex; gap: 2px; color: var(--gold); font-size: 18px; }
.hero__stars-text { font-size: 14px; color: var(--gray); }
.hero__stars-text strong { color: var(--white); }
.hero__bullets {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px;
}
.hero__bullet {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: rgba(255,255,255,.85);
}
.hero__bullet svg { color: var(--green); flex-shrink: 0; }

/* Lead form card */
.hero__form-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(37,116,196,.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero__form-card h2 {
  font-family: var(--font-h);
  font-size: 22px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 6px;
}
.hero__form-card p {
  font-size: 14px; color: var(--gray);
  margin-bottom: 24px;
}
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color var(--trans), background var(--trans);
  width: 100%;
  appearance: none; -webkit-appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpolyline points='2 4 6 8 10 4' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group select option { background: #0c1e38; color: #fff; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,.09);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148,163,184,.5); }
.form-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray);
  margin-top: 10px;
}
.form-note svg { flex-shrink: 0; color: var(--green); }
.form-success {
  display: none;
  text-align: center; padding: 32px 0;
}
.form-success svg { color: var(--green); margin: 0 auto 12px; }
.form-success h3 { font-family: var(--font-h); font-size: 22px; color: var(--white); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--gray); }

@media (min-width: 960px) {
  .hero { padding: 96px 0 100px; }
  .hero__inner { grid-template-columns: 1fr 420px; align-items: start; }
  .hero__form-card { position: sticky; top: 86px; }
}

/* ── Trust Bar ─────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--dark3);
  border-top: 1px solid rgba(37,116,196,.2);
  border-bottom: 1px solid rgba(37,116,196,.2);
  padding: 22px 0;
}
/* Mobile: marquee track */
.trust-bar__track {
  display: flex;
  overflow: hidden;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.trust-bar__list {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 0 32px;
  animation: marquee 22s linear infinite;
  will-change: transform;
}
/* Pause on hover/focus for accessibility */
.trust-bar__track:hover .trust-bar__list,
.trust-bar__track:focus-within .trust-bar__list { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-bar__item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--white);
  white-space: nowrap; flex-shrink: 0;
}
.trust-bar__item svg { color: var(--blue-bright); flex-shrink: 0; }
.trust-bar__divider {
  width: 1px; height: 28px; flex-shrink: 0;
  background: rgba(255,255,255,.15);
}

/* Desktop: static centered row, no marquee */
@media (min-width: 768px) {
  .trust-bar__track {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    justify-content: center;
  }
  .trust-bar__list {
    animation: none;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0 28px;
  }
  /* Hide the duplicated set on desktop */
  .trust-bar__list--clone { display: none; }
}

/* ── Pain Section ──────────────────────────────────────────────────────────── */
.pain {
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(37,116,196,.35) 0%, rgba(37,116,196,.15) 45%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(79,195,247,.20) 0%, transparent 60%),
    var(--dark2);
}
.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
.pain__card {
  background: rgba(5,15,30,.6);
  border: 1px solid rgba(217,48,37,.2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.pain__card h3 {
  font-family: var(--font-h); font-size: 17px;
  font-weight: 600; color: var(--white);
  margin-bottom: 8px;
}
.pain__card p { font-size: 14px; color: var(--gray); line-height: 1.65; }
@media (min-width: 640px) { .pain__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pain__grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Certifications ─────────────────────────────────────────────────────────── */
.certs {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(80px, 12vh, 140px);
  position: relative;
  background-image:
    linear-gradient(
      115deg,
      rgba(7,22,40,1)   0%,
      rgba(7,22,40,1)  45%,
      rgba(7,22,40,.82) 60%,
      rgba(7,22,40,.45) 78%,
      rgba(7,22,40,.15) 100%
    ),
    url('../images/tile-roof-bg-opt.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.no-fixed-bg .certs {
  background-attachment: scroll;
}
.certs > .container { width: 100%; }
.certs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.cert-card {
  background: var(--dark3);
  border: 1px solid rgba(37,116,196,.15);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.cert-card:hover {
  border-color: rgba(37,116,196,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.cert-card__img {
  width: 100px; height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.cert-card__name {
  font-family: var(--font-h);
  font-size: 18px; font-weight: 700;
  color: var(--white); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 6px;
}
.cert-card__tag {
  font-size: 13px; font-weight: 600;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.cert-card__desc {
  font-size: 14px; color: var(--gray);
  line-height: 1.65; max-width: 220px;
}
.certs__footnote {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px 28px;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.certs__footnote-badges {
  display: flex; gap: 12px; align-items: center; flex-shrink: 0;
}
.certs__footnote-badges img {
  height: 44px; width: auto; object-fit: contain;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 6px 8px;
}
.certs__footnote p {
  font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.4;
}
.certs__footnote strong { color: var(--white); }
@media (min-width: 640px) {
  .certs__grid { grid-template-columns: repeat(4, 1fr); }
  .cert-card__img { width: 120px; height: 120px; }
}

/* ── Services ──────────────────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service-card {
  background: var(--dark2);
  border: 1px solid rgba(37,116,196,.15);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,116,196,.2);
}
.service-card__icon {
  width: 44px; height: 44px;
  background: rgba(37,116,196,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--blue-bright);
}
.service-card__title {
  font-family: var(--font-h); font-size: 16px;
  font-weight: 600; color: var(--white);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.service-card__desc { font-size: 13px; color: var(--gray); line-height: 1.6; }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Process ───────────────────────────────────────────────────────────────── */
.process { background: transparent; }
.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 52px;
  position: relative;
}
.process__step {
  display: flex; gap: 20px; align-items: flex-start;
}
.process__num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(217,48,37,.4);
}
.process__content h3 {
  font-family: var(--font-h); font-size: 20px; font-weight: 700;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 8px;
}
.process__content p { font-size: 15px; color: var(--gray); line-height: 1.65; }
@media (min-width: 768px) {
  .process__steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .process__step { flex-direction: column; align-items: center; text-align: center; }
  .process__steps::before {
    content: '';
    position: absolute;
    top: 26px; left: calc(16.66% + 26px); right: calc(16.66% + 26px);
    height: 2px;
    background: linear-gradient(to right, var(--red), rgba(37,116,196,.4));
  }
}

/* ── Reviews ───────────────────────────────────────────────────────────────── */
.reviews-section {
  position: relative;
  background-image:
    linear-gradient(
      295deg,
      rgba(7,22,40,1)   0%,
      rgba(7,22,40,1)  45%,
      rgba(7,22,40,.82) 60%,
      rgba(7,22,40,.45) 78%,
      rgba(7,22,40,.15) 100%
    ),
    url('../images/review-bg-opt.jpg');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.no-fixed-bg .reviews-section { background-attachment: scroll; }
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: var(--dark3);
  border: 1px solid rgba(37,116,196,.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  text-align: center;
  position: relative;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.review-card:hover {
  border-color: rgba(37,116,196,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.review-card__stars { display: flex; gap: 2px; color: var(--gold); font-size: 15px; margin-bottom: 14px; justify-content: center; }
.review-card__text { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 20px; font-style: italic; flex: 1; }
.review-card__author { display: flex; align-items: center; gap: 10px; justify-content: center; }
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--dark3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 16px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.review-card__name { font-size: 14px; font-weight: 600; color: var(--white); }
.review-card__meta { font-size: 12px; color: var(--blue-bright); }
.reviews__footer {
  text-align: center; margin-top: 36px;
  font-size: 14px; color: var(--gray);
}
.reviews__footer a { color: var(--blue-bright); border-bottom: 1px solid rgba(79,195,247,.35); transition: color var(--trans); }
.reviews__footer a:hover { color: var(--white); }
@media (min-width: 640px) { .reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Why Us ────────────────────────────────────────────────────────────────── */
.why {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(37,116,196,.35) 0%, rgba(37,116,196,.15) 45%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(79,195,247,.20) 0%, transparent 60%),
    var(--dark2);
}
.why > .container { width: 100%; }
.why__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-top: 52px;
}
.why__item {
  display: flex; gap: 18px; align-items: flex-start;
}
.why__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(37,116,196,.1);
  border: 1px solid rgba(37,116,196,.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright);
}
.why__text h3 {
  font-family: var(--font-h); font-size: 17px; font-weight: 600;
  color: var(--white); text-transform: uppercase; margin-bottom: 6px;
}
.why__text p { font-size: 14px; color: var(--gray); line-height: 1.65; }
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why__grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Areas ─────────────────────────────────────────────────────────────────── */
.areas {
  background-image:
    linear-gradient(115deg,
      rgba(7,22,40,1)   0%,
      rgba(7,22,40,1)   42%,
      rgba(7,22,40,.80) 58%,
      rgba(7,22,40,.40) 76%,
      rgba(7,22,40,.10) 100%
    ),
    url('../images/serving-bg-opt.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center right;
}
.no-fixed-bg .areas { background-attachment: scroll; }

/* ── CTA Form Section ──────────────────────────────────────────────────────── */
.cta-section {
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(37,116,196,.35) 0%, rgba(37,116,196,.15) 45%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 50%, rgba(79,195,247,.20) 0%, transparent 60%),
    var(--dark2);
}
.cta-section__inner {
  display: grid; grid-template-columns: 1fr;
  gap: 48px;
}
.cta-section__copy h2 {
  font-family: var(--font-h); font-size: clamp(28px,4vw,46px);
  font-weight: 700; text-transform: uppercase; color: var(--white);
  line-height: 1.05; margin-bottom: 16px;
}
.cta-section__copy h2 em { font-style: normal; color: var(--red); }
.cta-section__copy p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 28px; }
.cta-guarantee {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.25);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 24px;
}
.cta-guarantee svg { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.cta-guarantee p { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }
.cta-form-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(37,116,196,.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.cta-form-card h3 {
  font-family: var(--font-h); font-size: 20px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 24px;
}
@media (min-width: 960px) {
  .cta-section__inner { grid-template-columns: 1fr 480px; align-items: center; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq { background: var(--dark3); }
.faq__list {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 52px;
  border-top: 1px solid rgba(37,116,196,.15);
}
.faq__item {
  border-bottom: 1px solid rgba(37,116,196,.15);
}
.faq__question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-h); font-size: 18px;
  font-weight: 600; color: var(--white);
  text-align: left; line-height: 1.3;
  transition: color var(--trans);
}
.faq__question:hover { color: var(--blue-bright); }
.faq__chevron {
  flex-shrink: 0; width: 22px; height: 22px;
  background: rgba(37,116,196,.1);
  border: 1px solid rgba(37,116,196,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bright);
  transition: transform var(--trans), background var(--trans);
}
.faq__item.open .faq__chevron { transform: rotate(180deg); background: rgba(37,116,196,.25); }
.faq__answer {
  display: none;
  padding-bottom: 22px;
  font-size: 16px; color: var(--gray); line-height: 1.75;
  max-width: 800px;
}
.faq__item.open .faq__answer { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: #03080f;
  border-top: 1px solid rgba(37,116,196,.2);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer__brand p { font-size: 14px; color: var(--gray); line-height: 1.7; margin-top: 12px; }
.footer__logo {
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--white);
}
.footer__col h4 {
  font-family: var(--font-h); font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--white);
  margin-bottom: 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list li { font-size: 14px; color: var(--gray); }
.footer__list a { color: var(--gray); transition: color var(--trans); }
.footer__list a:hover { color: var(--blue-bright); }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--gray);
}
.footer__contact-item a { color: var(--gray); transition: color var(--trans); }
.footer__contact-item a:hover { color: var(--white); }
.footer__contact-item svg { flex-shrink: 0; color: var(--blue-bright); margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center;
}
.footer__bottom p { font-size: 12px; color: rgba(148,163,184,.6); }
.footer__license {
  font-size: 11px; color: rgba(148,163,184,.4);
  letter-spacing: .5px;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── Emergency banner ──────────────────────────────────────────────────────── */
.emergency-bar {
  background: var(--red);
  padding: 10px var(--pad-x);
  text-align: center;
  font-family: var(--font-h);
  font-size: 14px; font-weight: 600;
  letter-spacing: .5px; color: var(--white);
}
.emergency-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

/* ── Service Area Cards ─────────────────────────────────────────────────────── */
.areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .areas__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .areas__grid { grid-template-columns: repeat(3, 1fr); }
}

.area-card {
  background: var(--dark3);
  border: 1px solid rgba(37,116,196,.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.area-card:hover {
  border-color: rgba(37,116,196,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.area-card__hd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(37,116,196,.15);
}
.area-card__county {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
}
.area-card__label {
  font-size: 12px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.area-card__cities {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.area-city__name {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.area-city__name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(79,195,247,.5);
}
.area-city__note {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  padding-left: 13px;
}

.area-card__cta {
  display: block;
  margin-top: auto;
  background: transparent;
  color: var(--blue-bright);
  border: 1px solid rgba(37,116,196,.35);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.area-card__cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.areas__more {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: rgba(148,163,184,.5);
  line-height: 1.7;
}

/* ── Consent checkbox ──────────────────────────────────────────────────────── */
.form-consent {
  margin-bottom: 4px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}
.modal-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--blue-bright);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.modal-link:hover { color: var(--white); }

/* ── Footer legal links ─────────────────────────────────────────────────────── */
.footer__legal {
  font-size: 12px;
  color: rgba(148,163,184,.5);
}
.footer-modal-link {
  font-size: 12px;
  color: rgba(148,163,184,.5);
  text-decoration: none;
}
.footer-modal-link:hover { color: var(--blue-bright); }

/* ── Lightbox modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,15,30,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--dark2);
  border: 1px solid rgba(37,116,196,.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-box__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(37,116,196,.15);
  flex-shrink: 0;
}
.modal-box__title {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin: 0;
}
.modal-box__close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--trans);
}
.modal-box__close:hover { color: var(--white); }
.modal-box__body {
  overflow-y: auto;
  padding: 28px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(37,116,196,.3) transparent;
}
.modal-box__body::-webkit-scrollbar { width: 4px; }
.modal-box__body::-webkit-scrollbar-thumb { background: rgba(37,116,196,.3); border-radius: 2px; }

/* Legal doc typography */
.legal-doc__updated {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 24px;
}
.legal-doc h3 {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-bright);
  margin: 24px 0 8px;
}
.legal-doc h3:first-of-type { margin-top: 0; }
.legal-doc p, .legal-doc li {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
}
.legal-doc ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Two-column form row (first name / last name) ───────────────────────────── */
.form-grid--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Section light variant (about/definition block) ─────────────────────────── */
.section--light {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(37,116,196,.1);
  border-bottom: 1px solid rgba(37,116,196,.1);
}
.section--light h2,
.section--light p,
.section--light a { color: var(--gray-light); }
.section--light strong { color: var(--white); }
.section--light a { color: var(--blue-bright); }

/* ── Responsive helpers ────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .section { padding: 60px 0; }
  .section__title { font-size: 28px; }
  .hero { padding: 52px 0 60px; }
  .hero__form-card { padding: 24px 20px; }
  .cta-form-card { padding: 24px 20px; }
}

/* ── Mobile-specific fixes ───────────────────────────────────────────────────── */

/* 1. Nav logo — shrink on small screens to prevent overflow */
@media (max-width: 767px) {
  .nav__logo-img { height: 40px; }
}

/* 2. Emergency bar — ensure graceful line-wrap on narrow screens */
.emergency-bar {
  line-height: 1.5;
}
@media (max-width: 479px) {
  .emergency-bar { font-size: 12px; padding: 10px 16px; }
}

/* 3. Hero name fields — stack to single column on small phones */
@media (max-width: 479px) {
  .form-grid--2col { grid-template-columns: 1fr; }
}

/* 4. Cert and Why sections — remove 100vh min-height on mobile
      (iOS Safari 100vh includes the browser chrome, causing oversized sections) */
@media (max-width: 767px) {
  .certs { min-height: auto; }
  .why   { min-height: auto; }
}

/* 5. Hero bullets — slightly smaller on mobile */
@media (max-width: 479px) {
  .hero__bullet { font-size: 14px; }
}

/* 6. Service cards — 1 column on very small screens */
@media (max-width: 479px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* 7. CTA section copy buttons — stack vertically on very small screens */
@media (max-width: 479px) {
  .cta-section__copy div[style] { flex-direction: column !important; }
  .cta-section__copy .btn { width: 100%; justify-content: center; }
}

/* 8. Footer — contact email wraps gracefully */
@media (max-width: 479px) {
  .footer__contact-item { font-size: 13px; word-break: break-all; }
}

/* 9. Review cards — full-width text alignment on mobile */
@media (max-width: 479px) {
  .review-card { text-align: left; }
  .review-card__stars { justify-content: flex-start; }
  .review-card__author { justify-content: flex-start; }
}

/* 10. Modal — full-width on very small screens */
@media (max-width: 479px) {
  .modal-overlay { padding: 12px; }
  .modal-box__hd { padding: 16px 20px; }
  .modal-box__body { padding: 20px; }
}

/* 11. FAQ questions — smaller font on mobile for long questions */
@media (max-width: 639px) {
  .faq__question { font-size: 15px; padding: 18px 0; }
  .faq__answer   { font-size: 15px; }
}

/* 12. Mobile sticky call footer + hide nav phone number ─────────────────── */
.mobile-call-bar {
  display: none;
}

@media (max-width: 767px) {
  /* Hide phone number from nav on scroll */
  .nav__phone-link { display: none !important; }

  /* Sticky call footer */
  .mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(5,15,30,.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(37,116,196,.3);
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
  }

  .mobile-call-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
    padding: 14px 24px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-h);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(217,48,37,.45);
    transition: background var(--trans), transform var(--trans);
  }
  .mobile-call-bar__btn:active {
    transform: scale(.97);
    background: var(--red-dark);
  }
  .mobile-call-bar__btn svg {
    flex-shrink: 0;
    animation: phone-ring 2s ease-in-out infinite;
  }
  @keyframes phone-ring {
    0%, 80%, 100% { transform: rotate(0); }
    5%  { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(12deg); }
    20% { transform: rotate(-8deg); }
    25% { transform: rotate(0); }
  }

  /* Pad bottom of page so content isn't hidden behind the bar */
  body { padding-bottom: 72px; }

  /* Shift the chat FAB up above the call bar */
  .rrr-chat-fab { bottom: 84px !important; }
  .rrr-chat-panel { bottom: 156px !important; }
}
