/* =====================================================================
   Naperville Roof Solutions — premium roofing lead-gen homepage
   Mobile-first, system-fonts fallback, subtle animations only.
   ===================================================================== */

:root {
  --color-bg: #ffffff;
  --color-ink: #0E2A47;             /* primary navy */
  --color-ink-2: #142F4F;
  --color-mute: #5b6a7e;
  --color-line: #e5e9ef;
  --color-soft: #f4f7fb;
  --color-accent: #F4A24A;          /* warm cedar-orange */
  --color-accent-2: #E58A2A;
  --color-success: #1f7a4d;
  --color-error: #c4332b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(14,42,71,.06), 0 1px 6px rgba(14,42,71,.05);
  --shadow-md: 0 6px 18px rgba(14,42,71,.10), 0 2px 6px rgba(14,42,71,.06);
  --shadow-lg: 0 24px 48px rgba(14,42,71,.16), 0 6px 12px rgba(14,42,71,.08);

  --container: 1180px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-ink); text-decoration: none; }
a:hover { color: var(--color-accent-2); }
button { font-family: inherit; }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--color-ink); letter-spacing: -.01em; line-height: 1.18; margin: 0 0 .6em; }
p { margin: 0 0 1em; color: var(--color-ink-2); }

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

.text-accent { color: var(--color-accent-2); }

.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--color-ink); color: #fff; padding: .8em 1.2em;
  border-radius: var(--radius-sm); z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #1a1206;
  box-shadow: 0 8px 20px rgba(245,162,74,.35);
}
.btn--primary:hover { color: #1a1206; box-shadow: 0 10px 28px rgba(245,162,74,.45); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover { background: var(--color-soft); color: var(--color-ink); border-color: #d3d9e3; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--lg { padding: 1.05em 1.6em; font-size: 1rem; }
.btn--sm { padding: .65em 1em; font-size: .85rem; border-radius: var(--radius-sm); }
.btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand:hover { color: var(--color-ink); }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--color-soft);
  border-radius: 10px;
}
.brand--footer .brand__mark { background: rgba(255,255,255,.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.brand__sub  { font-size: .73rem; color: var(--color-mute); letter-spacing: .04em; text-transform: uppercase; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub  { color: rgba(255,255,255,.6); }

.primary-nav {
  display: flex; align-items: center; gap: 1.2rem;
}
.primary-nav__list {
  display: flex; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav__list a {
  font-size: .92rem; font-weight: 500; color: var(--color-ink-2);
  position: relative; padding: .25em 0;
}
.primary-nav__list a:hover { color: var(--color-accent-2); }
.primary-nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.primary-nav__list a:hover::after { transform: scaleX(1); }
.primary-nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__phone {
  font-weight: 700;
  color: var(--color-ink);
}
.nav__phone:hover { color: var(--color-accent-2); }

/* Hamburger toggle button — premium, 48x48 tap target (above Apple HIG min).
   Hidden on desktop; shown on mobile via the @media block below. */
.nav-toggle {
  display: none;
  position: relative;
  background: transparent; border: 0;
  width: 48px; height: 48px;
  margin-right: -10px; /* visually align right edge with container padding */
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease;
}
.nav-toggle:hover    { background: var(--color-soft); }
.nav-toggle:active   { background: #e9eef5; }
.nav-toggle:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.nav-toggle__bars {
  position: absolute; top: 50%; left: 50%;
  width: 24px; height: 18px;
  transform: translate(-50%, -50%);
  display: block;
}
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), opacity .15s ease, top .25s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bars span:nth-child(3) { top: calc(100% - 2.5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0; transform: translateY(-50%) scaleX(.4);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 50%; transform: translateY(-50%) rotate(-45deg);
}

/* Mobile-nav scrim — sits below the nav panel, dims page content,
   tap-to-close. Idle state: invisible and non-interactive. */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(4, 14, 25, .48);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
  z-index: 84;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}
body.has-nav-open .nav-backdrop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .22s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Slightly compact header on phones so brand + hamburger have room. */
  .site-header__inner { height: 64px; gap: .6rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: .98rem; }

  /* Above the rule below: keep the sub-line visible on tablets / large phones. */
  .brand__sub { font-size: .68rem; }
}
@media (max-width: 480px) {
  /* On small phones the two-line brand competes with the hamburger.
     Hide the sub-text to give the toggle proper breathing room. */
  .brand__sub { display: none; }
  .brand__name { font-size: 1.02rem; line-height: 1.1; }
  .site-header__inner { gap: .4rem; }
}

@media (max-width: 880px) {
  .primary-nav {
    position: fixed;
    /* Use the same offset as the (mobile) header height so the panel sits flush. */
    top: 64px; left: 0; right: 0;
    /* Cover full remaining viewport, respecting iOS safe-area at the bottom. */
    height: calc(100dvh - 64px);
    height: calc(100vh  - 64px); /* fallback for older WebKit */
    max-height: calc(100dvh - 64px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0;
    background: #fff;
    padding: 1.2rem 1.25rem calc(1.6rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(-10px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s cubic-bezier(.2,.7,.3,1),
                opacity   .22s ease,
                visibility 0s linear .25s;
    box-shadow: 0 18px 40px rgba(14,42,71,.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .26s cubic-bezier(.2,.7,.3,1), opacity .22s ease;
  }

  .primary-nav__list {
    flex-direction: column; gap: 0;
    margin: 0 0 1rem;
    border-top: 1px solid var(--color-line);
  }
  .primary-nav__list > li {
    border-bottom: 1px solid var(--color-line);
  }
  .primary-nav__list > li > a {
    display: flex; align-items: center;
    min-height: 52px;
    padding: .8rem 0;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--color-ink);
  }
  .primary-nav__list > li > a:hover,
  .primary-nav__list > li > a:focus-visible {
    color: var(--color-accent-2);
  }
  .primary-nav__list a::after { display: none; }

  .primary-nav__cta {
    flex-direction: column; align-items: stretch; gap: .7rem;
    margin-top: .4rem;
    padding-top: .2rem;
  }
  .primary-nav__cta .btn { width: 100%; padding: 1.05em 1.2em; font-size: 1rem; }
  .primary-nav__cta .nav__phone {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; font-size: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
  }

  /* Hide the sticky bottom CTA while the mobile menu is open — its
     z-index (90) used to compete with the menu and visually clutter the panel. */
  body.has-nav-open .sticky-cta { display: none !important; }
  /* Lock background page scrolling while the menu covers the viewport. */
  body.has-nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #03101f;
  color: #fff;
  overflow: hidden;
  padding: 4rem 0 3rem;
  isolation: isolate;
}
/* Drone photo of Naperville rooftops — desktop variant.
   We load it via CSS background so the preload link in <head> can prioritize it. */
.hero__bg {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
  z-index: 0;
}
/* Homepage hero image — scoped so it CANNOT leak onto service pages even if
   service-page CSS variables fail to resolve. Without :not() the homepage
   url() would become a cascade fallback when var(--hero-image-mobile)
   returned an "invalid at computed-value time" result. */
.hero:not(.hero--service) .hero__bg {
  background-image: url('/assets/images/naperville-roofing-hero-mobile.webp');
}
@media (min-width: 760px) {
  .hero:not(.hero--service) .hero__bg {
    background-image: url('/assets/images/naperville-roofing-hero.webp');
    background-position: center 42%;
  }
}
/* Primary dark navy gradient — left side darker for legible H1/form column. */
.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(3, 15, 30, 0.88) 0%,
      rgba(3, 15, 30, 0.72) 45%,
      rgba(3, 15, 30, 0.38) 100%);
  pointer-events: none;
}
/* Secondary warm-orange brand highlight + bottom fade for depth. */
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 10% 18%, rgba(245,162,74,.18), transparent 62%),
    linear-gradient(180deg, transparent 60%, rgba(3,15,30,.55) 100%);
  pointer-events: none;
}
@media (max-width: 760px) {
  /* On mobile, image lives mostly above the form card.
     We tighten the gradient so the dark zone covers the H1 block. */
  .hero__bg::before {
    background: linear-gradient(180deg,
      rgba(3, 15, 30, 0.55) 0%,
      rgba(3, 15, 30, 0.80) 55%,
      rgba(3, 15, 30, 0.92) 100%);
  }
}
.hero__copy, .hero__form-wrap { position: relative; z-index: 1; }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
.hero__copy { color: #fff; }
.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .4em .8em;
  background: rgba(245,162,74,.14);
  border: 1px solid rgba(245,162,74,.35);
  color: #ffd9b0;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border-radius: 999px;
}
.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: #fff;
  margin: 0 0 1rem;
}
.hero__title-accent { color: var(--color-accent); }
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,.82);
  max-width: 56ch;
}
.hero__bullets {
  list-style: none; padding: 0; margin: 1.2rem 0 1.6rem;
  display: grid; gap: .55rem;
}
.hero__bullets li { display: flex; align-items: flex-start; gap: .7rem; color: #fff; font-weight: 500; }
.hero__bullet-dot {
  flex: 0 0 8px; width: 8px; height: 8px; margin-top: .58em;
  border-radius: 50%; background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(245,162,74,.18);
}
.hero__cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.hero__contact-line { font-size: .92rem; color: rgba(255,255,255,.72); }
.hero__contact-line a { color: var(--color-accent); }
.hero__contact-line a:hover { color: #fff; }

.hero__form-wrap {
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .hero { padding: 5rem 0 4rem; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .hero__form-wrap { padding: 2rem 1.8rem 1.8rem; }
}

/* ---------------------------------------------------------------------
   Form
   --------------------------------------------------------------------- */
.estimate-form__title { font-size: 1.5rem; margin-bottom: .15rem; }
.estimate-form__sub { color: var(--color-mute); margin-bottom: 1rem; font-size: .92rem; }
.estimate-form__row {
  display: grid; grid-template-columns: 1fr; gap: .8rem;
  margin-bottom: .8rem;
}
@media (min-width: 540px) { .estimate-form__row { grid-template-columns: 1fr 1fr; } }
.estimate-form__field { display: block; }
.estimate-form__field > span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.estimate-form__field input,
.estimate-form__field select,
.estimate-form__field textarea {
  width: 100%;
  padding: .8em .9em;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.estimate-form__field input:focus,
.estimate-form__field select:focus,
.estimate-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245,162,74,.18);
}
.estimate-form__field textarea { resize: vertical; min-height: 90px; }
.estimate-form__hp {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.estimate-form__legal { font-size: .76rem; color: var(--color-mute); margin: .8rem 0 0; }

.form-banner {
  margin: -.4rem 0 1rem;
  padding: .9em 1em;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .92rem;
}
.form-banner--ok  { background: #e6f4ec; color: var(--color-success); border: 1px solid #b6dcc4; }
.form-banner--err { background: #fcecea; color: var(--color-error);   border: 1px solid #f4c4bf; }

/* ---------------------------------------------------------------------
   Section primitives
   --------------------------------------------------------------------- */
.section { padding: 4rem 0; }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }
.section__header { max-width: 720px; margin: 0 0 2.4rem; }
.section__header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__eyebrow {
  display: inline-block;
  margin: 0 0 .7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}
.section__eyebrow--light { color: #ffd9b0; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.section__lead  { color: var(--color-mute); font-size: 1.05rem; max-width: 60ch; }
.section__header--center .section__lead { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------------
   Services
   --------------------------------------------------------------------- */
.services { background: var(--color-soft); }
.services__grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px)  { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services__grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  color: var(--color-ink);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d8dde6;
  color: var(--color-ink);
}
.service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--color-soft);
  color: var(--color-accent-2);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.service-card__title { font-size: 1.15rem; margin-bottom: .4rem; }
.service-card p { color: var(--color-mute); font-size: .96rem; margin-bottom: 1rem; }
.service-card__cta {
  font-weight: 700; color: var(--color-accent-2); font-size: .9rem;
  letter-spacing: .01em;
}
.service-card:hover .service-card__cta { color: var(--color-ink); }

/* ---------------------------------------------------------------------
   Why
   --------------------------------------------------------------------- */
.why__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem;
  align-items: start;
}
@media (min-width: 900px) { .why__grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; } }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.why__list li {
  display: grid; grid-template-columns: 54px 1fr; gap: 1.1rem; align-items: start;
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
}
.why__num {
  font-family: var(--font-display); font-weight: 800;
  background: var(--color-ink); color: #fff;
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.why__list h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.why__list p  { font-size: .94rem; color: var(--color-mute); margin: 0; }

/* ---------------------------------------------------------------------
   Local chips
   --------------------------------------------------------------------- */
.local__chips {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
}
.local__chips li {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: .55em 1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.local__chips li:has(a) { padding: 0; }
.local__chips li:hover { border-color: var(--color-accent); transform: translateY(-1px); }
.local__chips li a {
  display: block; padding: .55em 1em; color: var(--color-ink); text-decoration: none;
}
.local__chips li a:hover { color: var(--color-accent-2); }
.local__note { color: var(--color-mute); text-align: center; font-size: .92rem; }

/* ---------------------------------------------------------------------
   Storm
   --------------------------------------------------------------------- */
.storm { background: var(--color-soft); }
.storm__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
}
@media (min-width: 900px) { .storm__grid { grid-template-columns: 1.2fr .8fr; gap: 2.4rem; align-items: start; } }
.storm__list { padding-left: 1.2rem; margin: .4rem 0 1.4rem; color: var(--color-ink-2); }
.storm__list li { margin-bottom: .35rem; }
.storm__card {
  background: linear-gradient(160deg, var(--color-ink) 0%, var(--color-ink-2) 100%);
  color: #fff;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.storm__card h3 { color: #fff; margin-bottom: .6rem; }
.storm__card p { color: rgba(255,255,255,.82); }
.storm__card-cta a { color: var(--color-accent); font-weight: 700; }
.storm__card-cta a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   Process
   --------------------------------------------------------------------- */
.process__steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
  counter-reset: step;
}
@media (min-width: 800px) { .process__steps { grid-template-columns: 1fr 1fr 1fr; } }
.process__step {
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  padding: 1.6rem;
  border-radius: var(--radius-md);
  position: relative;
}
.process__num {
  position: absolute; top: -22px; left: 1.4rem;
  width: 44px; height: 44px;
  background: var(--color-accent);
  color: #1a1206;
  font-weight: 800; font-family: var(--font-display);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.process__step h3 { margin: .4rem 0 .3rem; font-size: 1.1rem; }
.process__step p  { color: var(--color-mute); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.faq { background: var(--color-soft); }
.faq__wrap { max-width: 820px; margin: 0 auto; }
.faq__item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
  transition: box-shadow .2s ease;
}
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-accent-2);
  font-weight: 400;
  transition: transform .25s ease;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--color-mute); margin: .6rem 0 0; font-size: .96rem; }

/* ---------------------------------------------------------------------
   Final CTA
   --------------------------------------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, #0E2A47 0%, #16365b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 360px at 0% 10%, rgba(245,162,74,.20), transparent 60%),
    radial-gradient(800px 420px at 100% 110%, rgba(245,162,74,.10), transparent 65%);
  pointer-events: none;
}
.final-cta__inner { position: relative; max-width: 800px; margin: 0 auto; text-align: center; }
.final-cta__title { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .6rem; }
.final-cta__sub   { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 1.6rem; }
.final-cta__row   { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.final-cta__fine  { color: rgba(255,255,255,.55); font-size: .82rem; margin: 1.2rem 0 0; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: #0a1c30; color: #c8d1dd; padding: 3rem 0 1rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.8rem;
}
@media (min-width: 720px)  { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__h {
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; margin-bottom: .8rem;
}
.site-footer__col ul, .site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: .45rem; font-size: .94rem; }
.site-footer__col a { color: #c8d1dd; }
.site-footer__col a:hover { color: #fff; }
.site-footer__about { font-size: .94rem; color: #9fadc0; margin: 1rem 0 0; }
.site-footer__email { color: #ffd9b0; font-weight: 600; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem; padding-top: 1rem;
  font-size: .85rem; color: #8a98ad;
}
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; }
.site-footer__bottom a { color: #c8d1dd; }
.footer__phone { color: #ffd9b0; font-weight: 700; }

/* ---------------------------------------------------------------------
   Sticky mobile CTA
   --------------------------------------------------------------------- */
.sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  gap: .5rem;
  padding: .55rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.sticky-cta__estimate {
  flex: 1;
  text-align: center;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #1a1206;
  font-weight: 700;
  padding: .8em 1em;
  border-radius: 10px;
  font-size: .92rem;
}
.sticky-cta__phone {
  flex: 0 0 auto;
  text-align: center;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-weight: 700;
  padding: .8em 1em;
  border-radius: 10px;
  font-size: .92rem;
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  /* Lift footer to avoid sticky CTA covering content */
  body { padding-bottom: 80px; }
}

/* ---------------------------------------------------------------------
   Subtle scroll-reveal animation
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
   Services dropdown (desktop hover + click; mobile accordion)
   --------------------------------------------------------------------- */
.primary-nav__list .has-dropdown { position: relative; }
.primary-nav__toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 0; padding: .25em 0;
  font: inherit; cursor: pointer; color: var(--color-ink-2);
  font-size: .92rem; font-weight: 500;
}
.primary-nav__toggle:hover { color: var(--color-accent-2); }
.primary-nav__caret {
  transition: transform .2s ease;
}
.has-dropdown.is-open .primary-nav__caret,
.primary-nav__toggle[aria-expanded="true"] .primary-nav__caret {
  transform: rotate(180deg);
}
.dropdown {
  list-style: none; margin: 0; padding: 0;
  display: none;
}
/* Desktop: absolute mega-menu look */
@media (min-width: 881px) {
  .dropdown {
    position: absolute; top: calc(100% + 14px); left: -16px;
    min-width: 340px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: .55rem;
    opacity: 0; transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .18s ease;
    display: block;
  }
  .has-dropdown.is-open .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  /* Hover bridge so the dropdown stays open while traversing the gap */
  .has-dropdown::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  }
  .dropdown li { margin: 0; }
  .dropdown a {
    display: block;
    padding: .65rem .8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }
  .dropdown a:hover, .dropdown a:focus-visible {
    background: var(--color-soft);
    outline: none;
  }
  .dropdown__title {
    display: block;
    font-weight: 700; color: var(--color-ink); font-size: .96rem; line-height: 1.2;
  }
  .dropdown__blurb {
    display: block;
    color: var(--color-mute); font-size: .82rem; line-height: 1.4; margin-top: .15rem;
  }
  .dropdown a:hover .dropdown__title { color: var(--color-accent-2); }
}
/* Mobile: inline accordion */
@media (max-width: 880px) {
  /* Services accordion inside the mobile menu — matches the other top-level
     rows visually so the dropdown reads as part of the same list. */
  .has-dropdown { border-bottom: 1px solid var(--color-line); }
  .primary-nav__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: .8rem 0;
    font-size: 1.06rem;
    font-weight: 600;
    color: var(--color-ink);
    background: transparent; border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .primary-nav__toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .primary-nav__caret {
    transition: transform .25s ease;
  }
  .has-dropdown.is-open > .primary-nav__toggle { color: var(--color-accent-2); }
  .has-dropdown.is-open .primary-nav__caret    { transform: rotate(180deg); }

  /* Sub-menu */
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown {
    padding: .1rem 0 .8rem .9rem;
    margin-top: 0;
    border-top: 0;
    border-left: 2px solid var(--color-accent);
    background: var(--color-soft);
    border-radius: 0 0 8px 8px;
  }
  .dropdown li a {
    display: block;
    min-height: 44px;
    padding: .65rem 0;
    border-bottom: 1px dotted rgba(0,0,0,.08);
    font-size: 1rem;
    color: var(--color-ink-2);
    font-weight: 500;
  }
  .dropdown li:last-child a { border-bottom: 0; }
  .dropdown__title { font-weight: 600; }
  .dropdown__blurb { display: none; }
}

/* ---------------------------------------------------------------------
   Service-page specifics
   --------------------------------------------------------------------- */
.hero--service { padding-bottom: 3.5rem; }
.hero__grid--service { grid-template-columns: 1fr; align-items: flex-start; }
@media (min-width: 960px) {
  .hero__grid--service { grid-template-columns: 1.35fr .85fr; gap: 3rem; }
}

/* Per-service hero background — image fed in via inline --hero-image / --hero-image-mobile
   CSS custom properties from service-page.php. Overlays are scoped via .hero--service so
   the homepage hero (.hero .hero__bg) is unaffected. */
.hero--service .hero__bg.hero__bg--service {
  background-image: var(--hero-image-mobile, none);
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: cover;
}
@media (min-width: 760px) {
  .hero--service .hero__bg.hero__bg--service {
    background-image: var(--hero-image, none);
    background-position: center 45%;
  }
}
/* Reset the homepage radial highlight (so the photo reads first), then re-apply
   per spec: navy left→right gradient on desktop, navy top→bottom on mobile. */
.hero--service .hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(3,15,30,.84) 0%,
    rgba(3,15,30,.68) 48%,
    rgba(3,15,30,.48) 100%);
  pointer-events: none;
}
@media (min-width: 760px) {
  .hero--service .hero__bg::before {
    background: linear-gradient(90deg,
      rgba(3,15,30,.88) 0%,
      rgba(3,15,30,.72) 45%,
      rgba(3,15,30,.38) 100%);
  }
}
/* Subtle warm-orange brand wash + a bottom fade for depth — matches homepage feel
   but lighter so the photograph stays the hero. */
.hero--service .hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 6% 18%, rgba(245,162,74,.14), transparent 64%),
    linear-gradient(180deg, transparent 70%, rgba(3,15,30,.45) 100%);
  pointer-events: none;
}

.hero__service-card {
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.service-card-callout__eyebrow {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-2); font-weight: 700; margin: 0 0 .3rem;
}
.service-card-callout__title { font-size: 1.4rem; margin: 0 0 .3rem; }
.service-card-callout__body { color: var(--color-mute); margin: 0 0 1rem; font-size: .95rem; }
.service-card-callout__legal { color: var(--color-mute); font-size: .78rem; margin: .7rem 0 0; }

/* Benefits grid */
.benefits__grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 720px)  { .benefits__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .benefits__grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.benefit-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.benefit-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(245,162,74,.14);
  color: var(--color-accent-2);
  border-radius: 10px;
  margin-bottom: .9rem;
}
.benefit-card h3 { font-size: 1rem; margin: 0 0 .35rem; }
.benefit-card p  { color: var(--color-mute); font-size: .92rem; margin: 0; }

/* Signs section */
.signs { background: var(--color-soft); }
.signs__grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 880px) { .signs__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.signs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.signs__list li {
  display: flex; gap: .8rem;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: var(--color-ink-2); font-size: .95rem;
}
.signs__bullet { color: var(--color-accent-2); font-weight: 700; flex: 0 0 auto; }
.section__cta { margin-top: 1.2rem; }

/* Related services */
.related__grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px)  { .related__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .related__grid { grid-template-columns: 1fr 1fr 1fr; } }
.related .service-card p { color: var(--color-mute); font-size: .94rem; }

/* ---------------------------------------------------------------------
   Blog hero (smaller than service hero — text only on navy gradient)
   --------------------------------------------------------------------- */
.blog-hero {
  position: relative;
  background: #03101f;
  color: #fff;
  overflow: hidden;
  padding: 3.5rem 0 2.8rem;
  isolation: isolate;
}
.blog-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(800px 420px at 8% 18%, rgba(245,162,74,.16), transparent 62%),
    radial-gradient(900px 500px at 100% 0%, rgba(81,160,255,.10), transparent 60%),
    linear-gradient(180deg, #0E2A47 0%, #102e4d 60%, #0E2A47 100%);
}
.blog-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.blog-hero__crumbs {
  font-size: .8rem; color: rgba(255,255,255,.65);
  margin: 0 0 1rem;
}
.blog-hero__crumbs a { color: var(--color-accent); }
.blog-hero__crumbs a:hover { color: #fff; }
.blog-hero__crumbs span[aria-hidden] { margin: 0 .5rem; color: rgba(255,255,255,.35); }
.blog-hero__crumbs-here { color: rgba(255,255,255,.8); }
.blog-hero__eyebrow {
  display: inline-block;
  padding: .35em .8em;
  background: rgba(245,162,74,.14);
  border: 1px solid rgba(245,162,74,.35);
  color: #ffd9b0;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px;
  margin: 0 0 1rem;
}
.blog-hero__title {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 .8rem;
}
.blog-hero__dek {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem; line-height: 1.55;
  margin: 0 0 1.2rem;
  max-width: 60ch;
}
.blog-hero__meta {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin: 0 0 1.6rem;
}
.blog-hero__meta time { color: rgba(255,255,255,.78); }
.blog-hero__meta span[aria-hidden] { margin: 0 .4rem; }
.blog-hero__cta-row {
  display: flex; flex-wrap: wrap; gap: .7rem;
}

/* ---------------------------------------------------------------------
   Article reading layout
   --------------------------------------------------------------------- */
.article { padding: 3.5rem 0 1rem; }
.article__wrap {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 960px) {
  .article__wrap { grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
}

.article__toc {
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  position: relative;
}
@media (min-width: 960px) {
  .article__toc {
    position: sticky; top: 90px;
    max-height: calc(100vh - 110px); overflow-y: auto;
  }
}
.article__toc-title {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-2); font-weight: 700; margin: 0 0 .6rem;
}
.article__toc ol {
  list-style: none; padding: 0; margin: 0; counter-reset: tocstep;
}
.article__toc li { margin: 0 0 .35rem; counter-increment: tocstep; }
.article__toc a {
  display: block;
  color: var(--color-ink-2);
  font-size: .88rem;
  line-height: 1.4;
  padding: .25rem 0;
  border-radius: 4px;
}
.article__toc a:hover { color: var(--color-accent-2); }

.article__body {
  max-width: 720px;
  color: var(--color-ink-2);
  font-size: 1.05rem;
  line-height: 1.7;
}
.article__body .lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0 0 1.6rem;
}
.article__body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--color-ink);
  margin: 2.4rem 0 .8rem;
  scroll-margin-top: 100px;
}
.article__body h3 {
  font-size: 1.18rem;
  color: var(--color-ink);
  margin: 1.6rem 0 .5rem;
  scroll-margin-top: 100px;
}
.article__body p { margin: 0 0 1.1rem; }
.article__body ul, .article__body ol {
  margin: 0 0 1.2rem 1.4rem;
  padding: 0;
}
.article__body li { margin: 0 0 .35rem; }
.article__body a {
  color: var(--color-accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article__body a:hover { color: var(--color-ink); }
.article__body strong { color: var(--color-ink); }

/* ---------------------------------------------------------------------
   Inline CTA card (mid-article)
   --------------------------------------------------------------------- */
.cta-box {
  background: linear-gradient(160deg, #0E2A47 0%, #16365b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  margin: 2rem 0 2.5rem;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at 90% 20%, rgba(245,162,74,.22), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box__eyebrow {
  color: #ffd9b0;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  margin: 0 0 .35rem;
}
.cta-box h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 .55rem;
}
.cta-box p {
  color: rgba(255,255,255,.82);
  margin: 0 0 1.1rem;
  font-size: .96rem;
}
.cta-box--urgent {
  background: linear-gradient(160deg, #2a1a08 0%, #4a2a10 100%);
  border-left: 4px solid var(--color-accent);
}

/* ---------------------------------------------------------------------
   Blog index page
   --------------------------------------------------------------------- */
.blog-index { padding: 4rem 0; }
.blog-index__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
@media (min-width: 760px)  { .blog-index__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .blog-index__grid { grid-template-columns: 1fr 1fr 1fr; } }

.blog-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8dde6; }
.blog-card__eyebrow {
  color: var(--color-accent-2);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  margin: 0;
}
.blog-card__title {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0;
}
.blog-card__title a { color: var(--color-ink); }
.blog-card__title a:hover { color: var(--color-accent-2); }
.blog-card__excerpt {
  color: var(--color-mute);
  font-size: .96rem;
  margin: 0;
  flex-grow: 1;
}
.blog-card__meta {
  color: var(--color-mute);
  font-size: .8rem;
  margin: 0;
}
.blog-card__cta {
  color: var(--color-accent-2);
  font-weight: 700;
  font-size: .9rem;
  margin-top: .5rem;
}
.blog-card__cta:hover { color: var(--color-ink); }

/* ---------------------------------------------------------------------
   Print
   --------------------------------------------------------------------- */
@media print {
  .site-header, .sticky-cta, .nav-toggle, .hero__form-wrap, .estimate-form { display: none; }
  body { padding-bottom: 0; }
}
