/* ═══ Apple-grade UX refinements — Batch 1 ═══════════════════════════════
   Zero markup, zero content, zero URL, zero schema changes. Pure CSS.

   Included fixes:
     C1. Hamburger touch target ≥44×44 (Apple HIG)
     C2. Inline chevron link touch targets ≥44px
     H1. Hero H1 line-height, tracking, text-balance
     H2. Mobile hero CTA reduction
     H4. Case-study carousel → horizontal snap-scroller
     C5. Roofle widget delayed reveal (on scroll commitment)
     Bonus: tap-delay, spring easing, iOS scroll momentum

   Revert: remove this stylesheet link; site returns to pre-Batch-1 state.
─────────────────────────────────────────────────────────────────────── */

/* ─── Bonus: kill the 300ms tap delay on touch devices */
html {
  touch-action: manipulation;
}

/* ─── C1. Hamburger touch target ≥44×44 (mobile only) ──────────────────
   Scoped so it only applies when hamburger is ACTUALLY visible (mobile).
   On desktop (>1000px), hamburger hides entirely — nav-links handle nav. */
@media (max-width: 1000px) {
  .ham,
  .hamburger,
  button.ham,
  button.hamburger {
    min-width: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box;
    padding: 10px 7px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 1001px) {
  .ham,
  .hamburger,
  button.ham,
  button.hamburger {
    display: none !important;
  }
}

/* ─── Desktop nav: push the 3 trailing pills (phone / quote / CTA) right */
@media (min-width: 1001px) {
  #nav .nav-links > li:nth-last-child(3) {
    margin-left: auto;
  }
}

/* ─── Instant Quote pill — nav-state-aware contrast.
   The nav has THREE display states (the JS toggles .scrolled and .on-dark):

     1. default, top of page, over dark hero   → inline white-on-transparent OK
     2. .scrolled (white liquid-glass nav)     → white inline DISAPPEARS — fix here
     3. .on-dark.scrolled (dark liquid-glass)  → inline white-on-dark OK

   Scope our overrides strictly to state 2 with :not(.on-dark) so we don't
   break the visible-already states. We override the inline `border`
   shorthand with our own `border` shorthand + !important — this is the
   only reliable way to beat an inline shorthand across all browsers. */
#nav.scrolled:not(.on-dark) .nav-links a[href*="instant-quote"],
#nav.scrolled:not(.on-dark) .nav-links li a[href*="instant-quote"] {
  color: #b30000 !important;
  background: transparent !important;
  border: 1.5px solid #b30000 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
#nav.scrolled:not(.on-dark) .nav-links a[href*="instant-quote"]:hover,
#nav.scrolled:not(.on-dark) .nav-links li a[href*="instant-quote"]:hover,
#nav.scrolled:not(.on-dark) .nav-links a[href*="instant-quote"]:focus,
#nav.scrolled:not(.on-dark) .nav-links li a[href*="instant-quote"]:focus {
  color: #ffffff !important;
  background: #b30000 !important;
  border-color: #b30000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12),
              0 6px 18px rgba(179, 0, 0, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* ─── C2. Inline chevron-arrow links (.bc-link) touch targets ≥44px ───
   These are the "Roof Repair →", "Storm Damage →" style inline links
   that currently render at 15px tall — too small to reliably tap. */
.bc-link {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 10px 6px;
  line-height: 1.3;
}

/* Also: ensure mob-nav top-level items and phone link hit 44px */
.nav-phone,
a.mob-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ─── H1. Hero H1 typography refinement (Apple display-type) ───────── */
.hero-h1,
.h-xl,
h1.h-xl,
.page-hero h1 {
  line-height: 1.07 !important;
  letter-spacing: -0.035em !important;
  text-wrap: balance;
}

/* Responsive hero clamp — prevents 5-line wraps on mobile */
@media (max-width: 768px) {
  .hero-h1,
  .page-hero h1,
  h1.h-xl {
    font-size: clamp(32px, 8.5vw, 48px) !important;
    letter-spacing: -0.025em !important;
  }
}

/* ─── H2. Mobile hero — keep 1 primary CTA, hide secondary ghosts ─── */
@media (max-width: 640px) {
  /* Hide ghost buttons inside the HERO specifically. The global sticky
     call button + Free Estimate pill still carry these actions globally. */
  #hero .hero-btns a.btn-ghost {
    display: none !important;
  }
  /* Lay out the remaining CTA with breathing room */
  #hero .hero-btns {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 340px;
    margin-inline: auto;
  }
  #hero .hero-btns .btn-red {
    width: 100%;
    padding: 16px 28px !important;
    font-size: 16px !important;
  }
}

/* ─── H4. Case-study carousel — horizontal snap-scroller ────────────
   The Jamestown-style `.pj-carousel-track` currently stacks 9 images
   vertically (4,840px tall on mobile). Convert to a true swipeable
   carousel with scroll-snap. */
.pj-carousel {
  position: relative;
}
.pj-carousel-track {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pj-carousel-track::-webkit-scrollbar {
  display: none;
}
.pj-carousel-slide {
  flex: 0 0 calc(100% - 32px);
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #f6f6f6;
}
@media (min-width: 768px) {
  .pj-carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }
}
@media (min-width: 1200px) {
  .pj-carousel-slide {
    flex: 0 0 calc(33.333% - 8px);
  }
}
.pj-carousel-slide img,
.pj-carousel-slide picture {
  width: 100%;
  height: auto;
  display: block;
}
.pj-carousel-slide img {
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Position counter chip that pj-refinements.js appends */
.pj-carousel-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 2;
  font-feature-settings: "tnum";
}

/* pj-compare (before/after) — horizontal snap on small phones */
@media (max-width: 640px) {
  .pj-compare {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 16px;
    margin: 0 -16px;
  }
  .pj-compare::-webkit-scrollbar { display: none; }
  .pj-compare > * {
    flex: 0 0 calc(100% - 48px);
    scroll-snap-align: center;
  }
}

/* ─── C5. Roofle widget — delayed reveal on scroll commitment ──────
   Starts hidden (opacity 0 only — no transform, which was fighting
   Roofle's own right-edge positioning and pushing the widget to
   the bottom of the viewport). apple-refinements.js adds
   `scrolled-mid` to <html> when user scrolls past 40% of viewport. */
.slide-out-drag-handle,
.quick-quote-drag-handle {
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
html.scrolled-mid .slide-out-drag-handle,
html.scrolled-mid .quick-quote-drag-handle {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Bonus: spring easing on primary CTAs (Apple signature) ──────── */
.btn-red,
.nav-cta,
.mob-cta,
.tool-card {
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 280ms cubic-bezier(0.32, 0.72, 0, 1),
              background 200ms ease,
              border-color 200ms ease !important;
}
.btn-red:active,
.nav-cta:active,
.mob-cta:active,
.tool-card:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .btn-red,
  .nav-cta,
  .mob-cta,
  .tool-card {
    transition: background 200ms ease, border-color 200ms ease !important;
  }
  .btn-red:active,
  .nav-cta:active,
  .mob-cta:active,
  .tool-card:active {
    transform: none;
  }
}

/* ═══ Batch 2 ═══════════════════════════════════════════════════════════ */

/* ─── H5. Mobile menu affordance — chevron feels interactive ──────────
   The expandable sections (About, Residential, Commercial, Service Areas,
   Resources) have a `›` chevron but the affordance is subtle. Make it
   feel like an actionable disclosure indicator with spring-rotation. */
.mob-section-btn .mob-arrow {
  font-size: 18px !important;
  color: rgba(0, 0, 0, 0.4) !important;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              color 200ms ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.mob-section-btn:hover .mob-arrow,
.mob-section.open .mob-arrow {
  color: var(--red, #c0392b) !important;
}
.mob-section.open .mob-arrow {
  transform: rotate(90deg) !important;
}
/* Give expandable sections slight spacing so they read as grouped items */
.mob-section-btn {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.mob-section-links a {
  padding-left: 10px !important;
}

/* ─── H6. Hero overlay — let the video breathe through ───────────────
   Current: linear-gradient(rgba(0,0,0,.65), .55, .75) — too heavy.
   Target: video is the star, text still legible via text-shadow. */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.38) 40%,
    rgba(0, 0, 0, 0.62) 100%
  ) !important;
}
/* Ensure hero text stays legible with a subtle text-shadow */
.hero-body .hero-h1,
.hero-body .hero-sub,
.hero-body .hero-eyebrow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55),
               0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ─── FIX: Hero H1 was rendering as "barely visible grey" because the
   legacy gradient-clipped text fades to 75% opacity white at the bottom.
   Against the lighter Batch 2 overlay that reads as grey. Use solid
   white — Apple's actual hero pattern anyway — and let text-shadow
   provide the subtle depth. */
.hero-h1 {
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

/* ─── H7. Stats marquee — GPU promotion for buttery scroll ───────────
   Hoists the animated track onto its own compositor layer so the CPU
   doesn't repaint on every frame. We also re-declare the animation here
   with !important because homepage.min.css (which actually runs the
   marquee) loads BEFORE this file — any overrides in between can clobber
   the keyframe transform. */
.stats-track {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: marquee 30s linear infinite !important;
  animation-play-state: running !important;
}
.stats-track:hover {
  animation-play-state: paused !important;
}
/* Respect motion preferences — pause marquee for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .stats-track {
    animation-play-state: paused !important;
  }
}

/* ═══ Batch 3 ═══════════════════════════════════════════════════════════ */

/* ─── M1. Mega-menu for long dropdowns — 2-col on desktop ────────────
   Residential (15 items) and Service Areas (16 items) currently render
   as single-column walls 492-514 px tall. Use :has() to auto-flow into
   2 columns for any dropdown with ≥10 items. No markup changes. */
@media (min-width: 1024px) {
  /* Cap all dropdowns to viewport-safe height */
  .dd {
    max-height: min(560px, 78vh);
    overflow-y: auto;
  }
  /* 2-column treatment for dropdowns with 10+ items */
  .has-dd .dd:has(> li:nth-child(10)) {
    min-width: 420px !important;
    column-count: 2;
    column-gap: 4px;
    column-fill: balance;
    max-height: 440px;
  }
  .has-dd .dd:has(> li:nth-child(10)) > li {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
  }
  /* Full-width "All Services →" footer spans both columns */
  .has-dd .dd:has(> li:nth-child(10)) > li[style*="border-top"] {
    column-span: all;
    -webkit-column-span: all;
  }
}

/* ─── M2. Inline SVG sizing for CTAs (replaces emoji icons) ────────── */
.hero-btns .btn-ghost svg.icon,
.cta-btns .btn-ghost svg.icon,
.btn svg.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ─── M3. Eyebrow tracking + weight (Apple-signature typography) ──── */
.hero-eyebrow,
p.eyebrow,
.eyebrow {
  letter-spacing: 0.09em !important;
  font-weight: 500 !important;
}
/* Eyebrow dot: smaller, less shouty */
.hero-eyebrow::before {
  width: 5px !important;
  height: 5px !important;
  box-shadow: 0 0 6px var(--red, #c0392b) !important;
}

/* ─── M6. Nav primary CTA — bump font + adjust padding ──────────── */
.nav-cta {
  font-size: 14px !important;
  padding: 10px 22px !important;
  letter-spacing: -0.01em !important;
  font-weight: 600 !important;
}

/* ─── M8. Hide Roofle drag handle on mobile (too crowded) ─────────
   Mobile already has .mobile-call + .mobile-cta-form sticky elements.
   Roofle's right-edge drag handle stacks a third competing CTA.
   Desktop keeps Roofle (plenty of horizontal real estate). */
@media (max-width: 768px) {
  .slide-out-drag-handle,
  .quick-quote-drag-handle,
  [class*="quick-quote-drag"] {
    display: none !important;
  }
}

/* ═══ Batch 4 — Low-severity polish + Apple finishing touches ════════ */

/* ─── L1. Hero eyebrow — remove decorative red dot ──────────────────
   Apple removes visual noise that isn't functional. The pulsing red
   dot implies "live status" which it isn't. Lose it. Keep the text pill
   for its credential line. */
.hero-eyebrow::before {
  display: none !important;
  content: none !important;
}
/* Slightly tighten pill proportions now that the dot is gone */
.hero-eyebrow {
  gap: 0 !important;
  padding: 7px 18px !important;
}

/* ─── L2. Nav scroll state — refined Apple-style liquid glass ──────
   Smooth backdrop-blur transition + tiny compaction + subtle shadow lift
   when the user starts scrolling. Existing JS already toggles .scrolled. */
#nav {
  transition: height 320ms cubic-bezier(0.32, 0.72, 0, 1),
              padding 320ms cubic-bezier(0.32, 0.72, 0, 1),
              background-color 200ms ease,
              backdrop-filter 200ms ease,
              -webkit-backdrop-filter 200ms ease,
              box-shadow 200ms ease;
}
#nav.scrolled {
  background-color: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06),
              0 4px 20px rgba(0, 0, 0, 0.04);
  padding-top: 10px;
  padding-bottom: 10px;
}
/* Dark-themed pages (e.g. hero is dark): use dark-glass compact state */
#nav.on-dark.scrolled {
  background-color: rgba(12, 12, 14, 0.78) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06),
              0 4px 20px rgba(0, 0, 0, 0.5);
}
/* Logo scales down 5% when scrolled — subtle but Apple-grade */
#nav.scrolled .nav-logo img {
  transform: scale(0.92);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─── Bonus 1. Apple-grade focus ring (keyboard users only) ──────
   :focus-visible (not :focus) avoids showing a ring on mouse clicks
   but guarantees one when users tab with keyboard. Blue ring with
   2px offset — mimics native macOS/iOS focus style. */
*:focus-visible {
  outline: 2px solid #0071e3 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}
.btn:focus-visible,
.btn-red:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
.mob-cta:focus-visible {
  outline-offset: 3px !important;
}

/* ─── Bonus 2. Refined card shadows — layered soft-soft ─────────────
   Replace single heavy drop-shadow with two stacked shadows for the
   pillowy depth Apple uses on cards. */
.card,
.svc-item,
.tool-card,
.il-card,
.pj-card {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.03);
  transition: box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
.card:hover,
.svc-item:hover,
.tool-card:hover,
.il-card:hover,
.pj-card:hover {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.07),
    0 24px 64px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* ─── Bonus 3. Scroll-margin-top — anchor links don't hide under nav ─
   When user clicks an in-page anchor, target element needs room above
   it equal to the sticky nav height. */
section[id],
h1[id], h2[id], h3[id],
:target {
  scroll-margin-top: 92px;
}

/* ─── Bonus 4. Selection color — brand-red subtle tint ───────────── */
::selection {
  background: rgba(192, 57, 43, 0.16);
  color: inherit;
}

/* ─── Bonus 5. Smooth scroll behavior (respects reduced-motion) ─── */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ─── Bonus 6. Improve btn-ghost contrast and transition ──────── */
.btn-ghost {
  transition: background 200ms ease,
              border-color 200ms ease,
              transform 280ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}
.btn-ghost:active {
  transform: scale(0.97);
}

/* ═══ Batch 5 ═══════════════════════════════════════════════════════════ */

/* ─── RH5. Form validation state styling ────────────────────────────
   :user-invalid fires only after the user has interacted (typed, blurred,
   or submitted). Prevents the "angry red field on first load" UX anti-
   pattern. Fallback for older browsers uses :invalid:not(:placeholder-shown). */
input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}
input:user-valid:not(:placeholder-shown),
textarea:user-valid:not(:placeholder-shown) {
  border-color: #27ae60 !important;
}

/* Fallback for browsers without :user-invalid — Firefox <88 etc. */
@supports not selector(:user-invalid) {
  input:not(:focus):not(:placeholder-shown):invalid,
  textarea:not(:focus):not(:placeholder-shown):invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
  }
  input:not(:focus):not(:placeholder-shown):valid,
  textarea:not(:focus):not(:placeholder-shown):valid {
    border-color: #27ae60 !important;
  }
}

/* Smooth-animate the border color + shadow on state change */
input,
textarea,
select {
  transition: border-color 180ms ease,
              box-shadow 180ms ease !important;
}

/* ─── RH2. Calculator Add-ons checkbox group (replaces broken multi-select) */
.calc-extras {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 4px 16px;
  margin: 0;
  background: #fff;
}
.calc-extras legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  letter-spacing: -0.01em;
}
.calc-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  cursor: pointer;
  min-height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  user-select: none;
  -webkit-user-select: none;
}
.calc-check:last-of-type {
  border-bottom: none;
}
.calc-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #c0392b;
  flex-shrink: 0;
  cursor: pointer;
}
.calc-check:hover {
  color: #c0392b;
}
.calc-check-note {
  color: #888;
  font-size: 13px;
  font-weight: 400;
}

/* ═══ Batch 6 ═══════════════════════════════════════════════════════════ */

/* ─── RM3. Homepage combo-tabs — meet 44 px HIG minimum ───────────
   Current: padding 8/18 on 13 px font = ~34 px tall. Bump without
   breaking the pill-shape aesthetic. */
.combo-tab {
  min-height: 44px !important;
  padding: 11px 20px !important;
  letter-spacing: -0.01em;
}
/* Container: give the 12-tab row a little more breathing room */
#combo-tabs {
  gap: 8px !important;
  margin-bottom: 32px !important;
}

/* ─── RM5. Breadcrumb typography polish ──────────────────────────
   Current: 13 px white @ 40% opacity, separator `/` at 30% — low
   contrast, feels cheap. Nudge to readable + Apple-feel tracking. */
.breadcrumb {
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.55) !important;
  gap: 10px !important;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.55) !important;
  transition: color 180ms ease !important;
}
.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}
.breadcrumb-sep {
  opacity: 0.35 !important;
  font-weight: 300;
}
/* On light-background pages the breadcrumb is also used — darken it */
:is(main, body) > section:not(.page-hero) .breadcrumb,
nav[aria-label="Breadcrumb"]:not(.page-hero *) {
  color: rgba(0, 0, 0, 0.55) !important;
}
:is(main, body) > section:not(.page-hero) .breadcrumb a,
nav[aria-label="Breadcrumb"]:not(.page-hero *) a {
  color: rgba(0, 0, 0, 0.55) !important;
}
:is(main, body) > section:not(.page-hero) .breadcrumb a:hover,
nav[aria-label="Breadcrumb"]:not(.page-hero *) a:hover {
  color: var(--red, #c0392b) !important;
}

/* ═══ Batch 7 ═══════════════════════════════════════════════════════════ */

/* ─── RL2. Footer nav links — meet 44 px tap target ────────────────
   `.footer-ul a` is currently 14 px font with no vertical padding,
   rendering ~21 px tall. Users still find them but fat-finger risk. */
.footer-ul a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

/* ─── RL2. Hero eyebrow inline credential link — tap cushion ───── */
.hero-eyebrow a {
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
  margin: -6px -2px;
  min-height: 44px;
}

/* ─── RB1. Section padding on mobile — Apple-grade breathing room
   Current: 72 px top/bottom. Target: 88 px. Only applies below 768 px
   (desktop uses existing 96+ px from homepage.css and shared.css). */
@media (max-width: 768px) {
  section.sec,
  main > section:not(.page-hero):not(#hero) {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
  }
  /* Tighter inside carousels / galleries / forms to avoid double-padding */
  section.sec > .pj-carousel,
  section.sec > form,
  section.sec > .calc-wrap {
    margin-block: 0;
  }
}

/* ─── Homepage-only: tighter mobile padding (64 px) per Option C
   After removing redundant #cta + "15 counties" sections, we compound
   the visual reduction with slightly tighter section padding — but
   only on the homepage (other pages keep the 88 px breathing room). */
@media (max-width: 768px) {
  body.home section.sec,
  body.home main > section:not(.page-hero):not(#hero) {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
}
/* Fallback selector: match by root URL path hinting, if no .home class */
@media (max-width: 768px) {
  html[data-page="home"] section.sec,
  html:not([data-page]) body > main > section.sec:not(.page-hero):not(#hero):first-of-type ~ section.sec {
    /* No-op placeholder — rely on body.home instead */
  }
}

/* ═══ Batch 8 — Template-level design propagation ═══════════════════════
   Apply the homepage's Apple-grade design language to every other page
   type so the site feels unified. Zero SEO risk: pure CSS polish on
   existing class names used by service pages, about, reviews, blog,
   financing, service-area hub, case studies, combo pages. */

/* ─── `.h-lg` — Secondary headings (used site-wide for section H2/H3)
   Apply the same typography discipline as H1: balanced wrap, tighter
   tracking, tighter line-height. */
.h-lg,
.h2 {
  text-wrap: balance;
}
.h-lg {
  letter-spacing: -0.028em !important;
  line-height: 1.08 !important;
}
.h-md,
.h-sm {
  text-wrap: balance;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

/* ─── Services section header — align with the 1200px content grid
   The `.sec-hdr` container was 900px max-width un-centered, so on the
   services page it hugged the left edge while the `.svc-grid` below
   was 1200px centered. Widen + center the header container so the
   eyebrow / H2 / lead paragraph start at the same left position as
   the cards beneath them. */
#services .sec-hdr {
  max-width: 1200px;
  margin-inline: auto;
  margin-bottom: 48px;
  text-align: left;
}
@media (min-width: 1024px) {
  #services .sec-hdr {
    margin-bottom: 64px;
  }
}
/* Services section-header typography — match the clean services-redesign
   preview we built (same eyebrow + title treatment as .area-* patterns) */
#services .sec-hdr .eyebrow {
  color: #c0392b !important;
  font-weight: 500;
  letter-spacing: 0.09em;
  font-size: 12px;
}
#services .sec-hdr .h2 {
  font-size: clamp(36px, 6vw, 56px) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.06 !important;
}
#services .sec-hdr .body-lg {
  max-width: 560px !important;
  color: rgba(0, 0, 0, 0.62);
  font-size: 17px;
  line-height: 1.55;
}

/* ─── Financing page — same H1 visibility fix as homepage
   The financing hero uses <em>budget.</em> with gradient-clipped text
   that fades against lighter overlays. Apply same solid-color treatment. */
.hero-h1 em {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* ─── `.il-card` — Inline link cards (blog previews, related links)
   Used on about/blog/reviews/service-area as 2-3 column tile grids
   linking to related content. Apply Apple card treatment. */
.il-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.04) !important;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 200ms ease !important;
}
.il-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.08),
    0 20px 56px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(192, 57, 43, 0.2) !important;
}

/* ─── `.rev-card` — Review cards
   Reviews page has 13 customer cards. Consistent card treatment +
   refined typography. */
.rev-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px !important;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.rev-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.04);
}

/* ─── `.svc-item` — Service / certification item cards
   About page uses for 4 certification cards. Service pages may also
   use. Apply consistent card treatment. */
.svc-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px !important;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 200ms ease !important;
}
.svc-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1) !important;
}
/* Icon inside .svc-item gets Apple-signature scale on hover */
.svc-item-icon {
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-item:hover .svc-item-icon {
  transform: scale(1.08);
}

/* ─── `.step` — Process steps (homepage + about-us)
   The 4-step process cards. Apply subtle card shadow for depth. */
.step {
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─── `.sec-hdr` — Section header typography rhythm
   Used on every section site-wide. Refine the eyebrow → H2 → body
   cadence so it reads as one block. */
.sec-hdr {
  max-width: 900px;
}
.sec-hdr .eyebrow {
  margin-bottom: 14px !important;
}
.sec-hdr h2,
.sec-hdr .h2,
.sec-hdr .h-lg {
  margin-bottom: 16px !important;
}
.sec-hdr .body-lg,
.sec-hdr .body-md {
  color: rgba(0, 0, 0, 0.62);
}
/* Centered section headers (ctr variant) */
.sec-hdr.ctr {
  text-align: center;
  margin-inline: auto;
}

/* ─── Page hero eyebrow — refined typography
   Ensure all `.page-hero .eyebrow` matches homepage treatment. */
.page-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
}

/* ─── Breadcrumb on page-hero pages — already polished in Batch 6
   (refinement: tighten gap on mobile) */
@media (max-width: 640px) {
  .breadcrumb {
    gap: 8px !important;
    font-size: 13px !important;
  }
}

/* ─── Generic city-pill style — consistent across pages
   Used on homepage coverage, service-area hub, and various location
   pages. Ensure all render with consistent Apple polish. */
.city-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 10px 16px !important;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 999px !important;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.78);
  text-decoration: none;
  transition: border-color 180ms ease,
              background 180ms ease,
              transform 220ms cubic-bezier(0.32, 0.72, 0, 1) !important;
  min-height: 44px;
  box-sizing: border-box;
}
.city-pill:hover {
  border-color: rgba(192, 57, 43, 0.3) !important;
  color: #c0392b !important;
  transform: translateY(-1px);
}
.city-pill .city-dot,
.city-pill-dot {
  width: 6px;
  height: 6px;
  background: #c0392b;
  border-radius: 50%;
  opacity: 0.75;
  flex-shrink: 0;
}

/* ─── Combo-link (city+service link grids on combo pages) ─────────
   Apply same hover treatment as homepage grid-link */
.combo-link {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 12px !important;
  border-left: 3px solid transparent !important;
  transition: border-color 180ms ease,
              transform 220ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 220ms ease !important;
}
.combo-link:hover {
  transform: translateY(-2px);
  border-left-color: #c0392b !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
              0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ─── Tool cards on /tools/ hub — consistent treatment */
.tool-card {
  border-radius: 18px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ═══ Batch 9 — Homepage redesigns (services grid + combined service area)
   Ported from the previews at /services-redesign-preview/ and
   /service-area-redesign-preview/ after user sign-off. */

/* ─── Services section — Apple product grid (12 uniform cards) ───── */
.svc-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  min-height: 240px;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 200ms ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
              0 14px 38px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.svc-card .svc-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.svc-locations a { position: relative; z-index: 2; }
.svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 32px;
}
.svc-icon {
  width: 32px;
  height: 32px;
  color: #c0392b;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-card:hover .svc-icon { transform: scale(1.08); }
.svc-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
}
.svc-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1d1d1f;
  margin: 0 0 10px;
}
.svc-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 20px;
  flex-grow: 1;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: gap 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-card:hover .svc-link { gap: 9px; }
.svc-locations {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-locations-label {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 2px;
}
.svc-locations a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}
.svc-locations a:hover {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
}

/* ─── Combined "Where we work" service-area section ─────────────── */
.area-redesign {
  padding: 80px 24px 96px;
  background: #ffffff;
}
@media (min-width: 768px) {
  .area-redesign { padding: 120px 40px; }
}
.area-inner { max-width: 1200px; margin: 0 auto; }
.area-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 72px;
}
@media (min-width: 960px) {
  .area-hero {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
}
.area-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 14px;
}
.area-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #1d1d1f;
  margin: 0 0 20px;
  text-wrap: balance;
}
.area-lead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.62);
  margin: 0 0 32px;
  max-width: 540px;
}
.area-stats {
  display: flex;
  gap: 40px;
  margin: 0 0 36px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.area-stat { flex: 1; }
.area-stat b {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  line-height: 1;
  margin-bottom: 4px;
}
.area-stat span {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
}
.area-top-cities-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 12px;
}
.area-top-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.area-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.area-city-pill:hover {
  background: #ffffff;
  border-color: rgba(192, 57, 43, 0.35);
  color: #c0392b;
  transform: translateY(-1px);
}
.area-city-pill-dot {
  width: 6px;
  height: 6px;
  background: #c0392b;
  border-radius: 50%;
  opacity: 0.8;
}
.area-city-pill-more {
  background: rgba(192, 57, 43, 0.06);
  border-color: rgba(192, 57, 43, 0.2);
  color: #c0392b;
  font-weight: 600;
}
.area-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.area-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c0392b;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.area-cta-primary:hover { background: #a93226; }
.area-cta-primary:active { transform: scale(0.97); }
.area-cta-secondary {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.area-cta-secondary:hover { color: #c0392b; border-color: #c0392b; }
.area-map-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  min-height: 360px;
}
@media (min-width: 960px) {
  .area-map-wrap {
    min-height: 520px;
    position: sticky;
    top: 100px;
  }
}
.area-map-wrap #service-map {
  width: 100%;
  height: 360px;
  background: #eee;
}
@media (min-width: 960px) {
  .area-map-wrap #service-map { height: 520px; }
}
.area-map-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  pointer-events: none;
}
.area-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 48px 0;
}
.area-matrix-header {
  margin: 0 auto 32px;
  text-align: center;
  max-width: 720px;
}
.area-matrix-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 10px;
}
.area-matrix-title {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #1d1d1f;
  margin: 0 0 8px;
}
.area-matrix-sub {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}
.area-tabs-scroll {
  position: relative;
  margin-bottom: 32px;
}
.area-tabs-scroll::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
  pointer-events: none;
  border-radius: 0 16px 16px 0;
  opacity: 0;
  transition: opacity 200ms ease;
}
.area-tabs-scroll.is-scrollable::after { opacity: 1; }
.area-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 6px;
  background: #f5f5f7;
  border-radius: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.area-tabs::-webkit-scrollbar { display: none; }
.area-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  min-height: 44px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
  font-family: inherit;
  letter-spacing: -0.01em;
  white-space: nowrap;
  scroll-snap-align: start;
}
.area-tab:hover { color: #1d1d1f; }
.area-tab.active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.area-grid-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  text-decoration: none;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 180ms ease, transform 220ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 220ms ease;
}
.area-grid-link::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #c0392b;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 180ms ease, transform 180ms ease;
  flex-shrink: 0;
}
.area-grid-link:hover {
  border-color: rgba(192, 57, 43, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.area-grid-link:hover::before {
  opacity: 1;
  transform: scale(1.3);
}
.area-matrix-cta {
  text-align: center;
  margin-top: 8px;
}
.area-matrix-cta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(192, 57, 43, 0.3);
  transition: border-color 180ms ease, gap 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.area-matrix-cta a:hover {
  border-color: #c0392b;
  gap: 8px;
}
/* Leaflet marker override when inside .area-map-wrap */
.area-map-wrap .city-marker {
  background: transparent !important;
  border: none !important;
}
/* Mobile: map above copy */
@media (max-width: 959px) {
  .area-hero .area-map-wrap { order: -1; }
}

/* ═══ Batch 10 — Reviews section redesign ═══════════════════════════════
   Apple-clean replacement for the old bento-style featured-card + 5 mixed
   review cards. Uniform 3-col grid, stat row header, unified avatars,
   decorative opening-quote mark, small SVG stars, "See all reviews" CTA. */

.reviews-redesign {
  padding: 80px 24px 96px;
  background: #fafafa;
}
@media (min-width: 768px) {
  .reviews-redesign { padding: 120px 40px; }
}
.reviews-inner { max-width: 1200px; margin: 0 auto; }

.reviews-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.reviews-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 14px;
}
.reviews-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: #1d1d1f;
  margin: 0 0 18px;
  text-wrap: balance;
}
.reviews-lead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.62);
  margin: 0 auto 36px;
  max-width: 540px;
}
.reviews-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}
.reviews-stats > div {
  flex: 0 0 auto;
  text-align: center;
  min-width: 110px;
}
.reviews-stats b {
  display: block;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #c0392b;
  line-height: 1;
  font-feature-settings: "tnum";
}
.reviews-stats b sup {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: 600;
  margin-left: 1px;
}
.reviews-stats b .star {
  color: #f5a623;
  font-size: 0.85em;
  margin-left: 4px;
  display: inline;
}
.reviews-stats > div > span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.03em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* ─── Grid ───────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 56px 0 40px;
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ─── Card ──────────────────────────────────────────────────── */
.review-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 200ms ease;
  overflow: hidden;
  min-height: 260px;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
              0 14px 38px rgba(0, 0, 0, 0.08);
  border-color: rgba(192, 57, 43, 0.18);
}

/* Decorative opening quote mark (Georgia for serif-style glyph) */
.review-quote-mark {
  position: absolute;
  top: 4px;
  right: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  font-weight: 400;
  line-height: 1;
  color: #c0392b;
  opacity: 0.08;
  transition: opacity 400ms ease;
  pointer-events: none;
  user-select: none;
}
.review-card:hover .review-quote-mark {
  opacity: 0.16;
}

/* Stars row */
.review-stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.review-stars svg {
  width: 14px;
  height: 14px;
  fill: #f5a623;
  flex-shrink: 0;
}

/* Quote text */
.review-text {
  font-size: 16px;
  line-height: 1.55;
  color: #1d1d1f;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

/* Attribution row */
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f2f4;
  color: #1d1d1f;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
  transition: background 220ms ease, color 220ms ease;
}
.review-card:hover .review-avatar {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
}
.review-author-text {
  flex-grow: 1;
  min-width: 0;
}
.review-name {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.review-city {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 2px;
  line-height: 1.3;
}
.review-source {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

/* See-all CTA */
.reviews-cta,
.blog-cta {
  text-align: center;
  margin-top: 8px;
}
.reviews-cta a,
.blog-cta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(192, 57, 43, 0.3);
  transition: border-color 180ms ease,
              gap 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.reviews-cta a:hover,
.blog-cta a:hover {
  border-color: #c0392b;
  gap: 9px;
}

/* ═══ Batch 11 — Blog preview section redesign ═══════════════════════
   Apple-clean replacement for the mixed bento + compact-pills layout.
   All 8 internal links preserved as a single uniform article grid. */

.blog-redesign {
  padding: 80px 24px 96px;
  background: #ffffff;
}
@media (min-width: 768px) {
  .blog-redesign { padding: 120px 40px; }
}
.blog-inner { max-width: 1200px; margin: 0 auto; }

.blog-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.blog-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c0392b;
  margin: 0 0 14px;
}
.blog-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: #1d1d1f;
  margin: 0 0 18px;
  text-wrap: balance;
}
.blog-lead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.62);
  margin: 0 auto;
  max-width: 560px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 40px;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 320ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 200ms ease;
  min-height: 200px;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04),
              0 14px 38px rgba(0, 0, 0, 0.08);
  border-color: rgba(192, 57, 43, 0.2);
}
.blog-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1d1d1f;
  margin: 0 0 8px;
  text-wrap: balance;
}
.blog-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.58);
  margin: 0 0 16px;
  flex-grow: 1;
}
.blog-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  letter-spacing: -0.005em;
  transition: gap 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.blog-card:hover .blog-card-arrow { gap: 8px; }

/* ─── Blog section guide-pill strips (seasonal + expert) ──────────
   Compact supplementary navigation moved here from the footer bottom
   where the 8 links were buried. Small pills with season-color dots
   so users can distinguish at a glance without emoji. */
.blog-guides {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin-inline: auto;
}
.blog-guides-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 14px;
}
.blog-guides-label:not(:first-child) {
  margin-top: 24px;
}
.blog-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.blog-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.78);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: background 180ms ease,
              border-color 180ms ease,
              color 180ms ease,
              transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
  min-height: 44px;
  box-sizing: border-box;
}
.blog-guide-pill:hover {
  background: #ffffff;
  border-color: rgba(192, 57, 43, 0.35);
  color: #c0392b;
  transform: translateY(-1px);
}
.blog-guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.blog-guide-pill:hover .blog-guide-dot {
  transform: scale(1.3);
  opacity: 1;
}

/* ─── Trust section guarantee capstone ─────────────────────────────
   Repositioned from the random band between service-area and blog.
   Now lives as the emotional payoff at the bottom of the #trust
   section — reinforces the credentials listed above it. */
.trust-guarantee {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 24px 28px;
  background: rgba(192, 57, 43, 0.04);
  border: 1px solid rgba(192, 57, 43, 0.16);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
@media (max-width: 640px) {
  .trust-guarantee {
    margin-top: 36px;
    padding: 20px 22px;
    gap: 14px;
    align-items: flex-start;
  }
}
.trust-guarantee-icon {
  width: 32px;
  height: 32px;
  color: #c0392b;
  flex-shrink: 0;
}
.trust-guarantee-text {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
  margin: 0;
  letter-spacing: -0.005em;
}
.trust-guarantee-text strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* ═══ Batch 12 — Footer redesign (applies site-wide via #footer selector) ══
   Tightens typography, unifies spacing/colors, refines component-level
   details (badges, chevrons, links). Zero markup required — every
   internal link stays exactly where it was. */

#footer {
  /* Override existing dark footer bg with slightly deeper near-black */
  background: #0a0a0c !important;
  color: rgba(255, 255, 255, 0.7);
}

/* Column headers — refined uppercase labels */
#footer .footer-col-h {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45) !important;
  margin-bottom: 18px !important;
}

/* All link text — consistent */
#footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: color 180ms ease !important;
  line-height: 1.45;
}
#footer a:hover {
  color: #ffffff !important;
}

/* Footer ul — consistent list spacing */
#footer .footer-ul {
  display: flex;
  flex-direction: column;
  gap: 8px !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
#footer .footer-ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 0;
}

/* Service Areas — cleaner details/summary */
#footer .ft-county {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
}
#footer .ft-county:last-of-type {
  border-bottom: none;
}
#footer .ft-county summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease;
}
#footer .ft-county summary::-webkit-details-marker {
  display: none;
}
#footer .ft-county summary:hover {
  color: #ffffff;
}
#footer .ft-county-arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1), color 180ms ease;
  flex-shrink: 0;
}
#footer .ft-county[open] .ft-county-arrow {
  transform: rotate(90deg);
  color: #c0392b;
}
#footer .ft-county-list {
  list-style: none;
  padding: 4px 0 12px 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#footer .ft-county-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
#footer .ft-county-list a:hover {
  color: rgba(255, 255, 255, 0.95);
}
#footer .ft-all-cities {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b !important;
  letter-spacing: -0.005em;
}
#footer .ft-all-cities:hover {
  color: #e54434 !important;
}

/* Brand block — logo + address + phone + email + hours + social */
#footer .ft-col-main {
  max-width: 280px;
}
#footer .footer-logo img {
  margin-bottom: 24px;
  opacity: 0.95;
}
#footer .ft-address,
#footer .ft-hours {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
#footer .ft-address svg,
#footer .ft-hours svg {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  margin-top: 3px;
}
#footer .footer-phone,
#footer .footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 10px;
  min-height: 32px;
}
#footer .footer-phone svg,
#footer .footer-email svg {
  color: rgba(255, 255, 255, 0.55);
}
#footer .footer-phone:hover,
#footer .footer-email:hover {
  color: #ffffff !important;
}

/* Social icons */
#footer .ft-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
#footer .ft-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  transition: background 180ms ease, color 180ms ease, transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
#footer .ft-social a:hover {
  background: rgba(192, 57, 43, 0.85);
  color: #ffffff !important;
  transform: translateY(-2px);
}
#footer .ft-social a svg {
  width: 16px;
  height: 16px;
}

/* Certifications row */
#footer .footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 28px 0;
  margin: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#footer .f-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
#footer .f-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}
#footer .f-badge-gold {
  color: #f5c447;
  border-color: rgba(245, 196, 71, 0.24);
  background: rgba(245, 196, 71, 0.06);
}
#footer .f-badge-gold:hover {
  background: rgba(245, 196, 71, 0.1);
  color: #ffd676;
}

/* Parent company line */
#footer .footer-parent-line {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
#footer .footer-parent-line strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

/* Copyright line */
#footer .footer-copy {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Bottom legal row */
#footer .footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex-wrap: wrap;
}
#footer .footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  padding: 4px 0;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}
#footer .footer-legal a:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* Redesigned footer-bottom wrapper — 3 clean lines */
#footer .footer-bottom {
  text-align: center;
  padding: 24px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#footer .footer-bottom .footer-copy {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Parent company line — slightly above the border */
#footer .footer-parent-line {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 0 20px;
  letter-spacing: 0.02em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
#footer .footer-parent-line strong,
#footer .footer-parent-line strong a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500 !important;
  font-size: inherit !important;
  letter-spacing: -0.005em;
  font-family: inherit;
}
#footer .footer-parent-line a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease, color 180ms ease;
}
#footer .footer-parent-line a:hover {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* ─── Hero manufacturer badges — bigger + better contrast ────────
   The 4 credential logos (GAF Gold Elite, GAF Master Elite, CertainTeed
   Select ShingleMaster, OC Platinum Preferred) were rendering at 40px
   on mobile — too small to read. Bump sizes across all breakpoints
   and add subtle background tint so the logos pop against the dark
   hero video. */
.mfg-inner {
  gap: clamp(4px, 0.6vw, 10px) !important;
  padding-top: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}
.mfg-inner picture {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.mfg-inner img,
.mfg-inner picture img {
  max-height: 88px !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  /* Layered drop-shadow: tight dark base + diffuse glow so logos stay
     readable against the dark hero video without any card treatment. */
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 28px rgba(0, 0, 0, 0.35)) !important;
}
@media (min-width: 768px) {
  .mfg-inner img,
  .mfg-inner picture img { max-height: 116px !important; }
}
@media (min-width: 1061px) {
  .mfg-inner img,
  .mfg-inner picture img { max-height: 144px !important; max-width: none !important; }
}
@media (max-width: 600px) {
  /* Mobile: let logos wrap to 2 rows, much bigger so brand details
     (GAF logo, CertainTeed wordmark, Pink Panther, etc.) remain
     distinguishable at phone sizes. */
  .mfg-inner {
    gap: 10px 14px !important;
    padding-top: 20px !important;
    row-gap: 12px !important;
  }
  .mfg-inner img,
  .mfg-inner picture img {
    max-height: 96px !important;
  }
}

/* Perceptual balance: Master Elite (diamond, pos 2) and CertainTeed
   (pentagon, pos 3) have their brand content concentrated in the center
   ~70% of their bounding box — the corners are empty. Horizontal banners
   (GAF Gold Elite, OC Platinum) spread brand content across the full
   canvas. To make visible content read the same height, we INFLATE the
   full-bleed shapes by ~35%. */
.mfg-inner picture:nth-child(2) img,
.mfg-inner picture:nth-child(3) img {
  max-height: 120px !important;
}
@media (min-width: 768px) {
  .mfg-inner picture:nth-child(2) img,
  .mfg-inner picture:nth-child(3) img { max-height: 158px !important; }
}
@media (min-width: 1061px) {
  .mfg-inner picture:nth-child(2) img,
  .mfg-inner picture:nth-child(3) img { max-height: 196px !important; }
}
@media (max-width: 600px) {
  .mfg-inner picture:nth-child(2) img,
  .mfg-inner picture:nth-child(3) img { max-height: 132px !important; }
}

/* ─── Mobile: eliminate blank white space below the footer ───────────
   Causes: (1) injected Roofle widget placeholder may render a tall empty
   block after the </footer>, (2) `overflow-x:hidden` on body can leave
   trailing whitespace from flex/iOS rubber-band overscroll. Fix by
   extending the footer color onto `html` so any gap visually blends. */
html {
  background-color: #0a0a0c;
}
body {
  margin: 0 !important;
  background-color: var(--bg, #ffffff);
}
/* Defensive: hide any element that Roofle drops after the footer that
   has no visible content. These class patterns match the widget's
   injected DOM nodes on mobile. */
@media (max-width: 768px) {
  body > .roofle-trigger:empty,
  body > [class*="roofle"]:empty,
  body > iframe[src=""]:empty {
    display: none !important;
  }
  /* Zero out any trailing margin-bottom on the footer itself */
  #footer {
    margin-bottom: 0 !important;
    padding-bottom: 16px !important;
  }
  /* Account for the fixed .mobile-call + .mobile-cta-form (bottom:20px)
     so their drop-shadows don't push a scroll-gap. */
  body {
    scroll-padding-bottom: 100px;
  }
}

/* Seasonal + Expert guide blocks — unify card style */
#footer [style*="Seasonal Maintenance Guides"] + * a,
#footer [style*="Expert Guides"] + * a,
#footer div[style*="repeat(auto-fit,minmax(220px,1fr))"] a {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease !important;
}
#footer div[style*="repeat(auto-fit,minmax(220px,1fr))"] a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(192, 57, 43, 0.35);
  color: #ffffff !important;
}
/* Section labels before guide grids */
#footer p[style*="TEXT-TRANSFORM:uppercase"],
#footer p[style*="text-transform:uppercase"] {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  font-weight: 600 !important;
  margin-bottom: 14px !important;
}
