/* ============================================================
   BREWER HVAC — Design System
   "Sierra Luxury" — Refined, authoritative, premium
   Palette: Navy + Brewer Blue + Frost
   Typography: Fraunces (display) / DM Sans (body)
   ============================================================ */

/* -------------------------------------------------------
   0. GOOGLE FONTS
   ------------------------------------------------------- */
/* Fonts loaded via <link> tags in HTML — no @import needed */

/* -------------------------------------------------------
   0.5. ACCESSIBILITY — SKIP NAV
   ------------------------------------------------------- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: var(--z-modal);
  padding: 12px 24px;
  background: var(--navy, #0f1d32);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

/* -------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ------------------------------------------------------- */
:root {
  /* Palette — Brewer Blue: professional navy + frost accent */
  --navy:        #0f1d32;
  --navy-dark:   #0a1423;
  --copper:      #2560a8;
  --copper-dark: #1d4d8a;
  --copper-light:#3a7cc4;
  --frost:       #4da8d4;
  --frost-light: #7ac2e3;
  --warm-white:  #faf8f5;
  --charcoal:    #1a1a1a;
  --white:       #ffffff;
  --light-gray:  #e8e4df;
  --mid-gray:    #5a6270;
  --amber:       #3a7cc4;
  --cream:       #f2ebe0;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale (8-px rhythm) */
  --space-xs:  0.25rem;  /*  4px */
  --space-sm:  0.5rem;   /*  8px */
  --space-md:  1rem;     /* 16px */
  --space-lg:  1.5rem;   /* 24px */
  --space-xl:  2rem;     /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* Borders & Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Shadows — enhanced with copper warmth */
  --shadow-sm:   0 1px 3px rgba(15, 29, 50, 0.06);
  --shadow-md:   0 4px 16px rgba(15, 29, 50, 0.08);
  --shadow-lg:   0 8px 30px rgba(15, 29, 50, 0.12);
  --shadow-xl:   0 16px 48px rgba(15, 29, 50, 0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-luxury: 0.6s cubic-bezier(0.23, 1, 0.32, 1);

  /* Layout */
  --container-max: 1140px;
  --header-height: 80px;

  /* Gradient tokens */
  --gradient-copper:       linear-gradient(135deg, var(--copper), var(--copper-dark));
  --gradient-copper-r:     linear-gradient(135deg, var(--copper-dark), #1d4d8a);
  --gradient-frost-copper: linear-gradient(135deg, var(--frost-light), var(--copper-light));
  --gradient-divider:      linear-gradient(90deg, transparent, var(--copper), transparent);

  /* Z-index scale */
  --z-below:   -1;
  --z-base:     0;
  --z-content:  1;
  --z-sticky:  10;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal:  300;
}

/* -------------------------------------------------------
   1b. PAGE LOADER — SŌM-inspired branded entrance
   ------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              visibility 0.6s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--frost), var(--copper-light));
  border-radius: 2px;
  transition: width 0.15s ease;
}

.loader-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* -------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* 16px base */
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}

/* Lenis overrides native scroll-behavior */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--copper-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

/* -------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------- */

/* Display headings — Fraunces serif (SŌM-inspired bold scale) */
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.025em;
}

h1, .h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-lg);
}

h2, .h2 {
  font-size: 1.875rem;
  margin-bottom: var(--space-md);
}

h3, .h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
}

h4, .h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--mid-gray);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--navy);
  position: relative;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* Minimal underline — restrained like SŌM */
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--copper);
  margin: var(--space-md) auto 0;
  border-radius: 1px;
  opacity: 0.7;
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: calc(-1 * var(--space-md)) auto var(--space-2xl);
  color: var(--mid-gray);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Tablet+ */
@media (min-width: 768px) {
  h1, .h1 { font-size: 3rem; }
  h2, .h2 { font-size: 2.5rem; }
  h3, .h3 { font-size: 1.625rem; }
  h4, .h4 { font-size: 1.1875rem; }
  .section-title { font-size: 2.5rem; }
}

/* Desktop */
@media (min-width: 1024px) {
  h1, .h1 { font-size: 3.75rem; }
  h2, .h2 { font-size: 2.875rem; }
  h3, .h3 { font-size: 1.75rem; }
  .section-title { font-size: 2.875rem; }
}

/* -------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Responsive grids */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------
   4b. SECTION DIVIDERS — Copper accent lines
   ------------------------------------------------------- */
.section-divider-top {
  position: relative;
}


/* Wave/curve dividers removed — clean section transitions only */

/* -------------------------------------------------------
   4c. 3D SCROLL-TRIGGERED ANIMATIONS — HVAC Themed
   ------------------------------------------------------- */

/* Base reveal — blur-to-sharp with vertical slide-up */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Word-stagger reveal — titles split into per-word spans */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-words.is-visible .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger delays for each word (JS applies --word-index) */
.reveal-words .word { transition-delay: calc(var(--word-index, 0) * 0.07s); }

/* Stagger delays — wider spacing for deliberate cascade */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }
.reveal-delay-6 { transition-delay: 0.9s; }

/* Accessibility: disable reveal animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-words .word {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .timeline-dot {
    transition: none;
  }
  .timeline-progress {
    display: none;
  }
}

/* -------------------------------------------------------
   5. STICKY HEADER
   ------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: transparent;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

/* JS adds .scrolled when the page scrolls past ~60 px */
.site-header.scrolled {
  background: rgba(15, 29, 50, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 48px;
  width: auto;
  border-radius: 4px;
  display: block;
}

/* Header dual logos — Brewer + Carrier logo */
.header-logos {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  /* Hide the Carrier sub-logo + separator on phones so the Brewer logo + burger
     have full breathing room. Carrier logo reappears at tablet+. */
  .header-logos img[alt="Carrier"],
  .header-logos > span {
    display: none !important;
  }
  .header-logos .header-logo img {
    height: 44px !important;
  }
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.header-logo-text span {
  color: var(--copper);
}

/* Footer logo — slightly larger */
.footer-brand .header-logo img,
.footer-brand img.footer-logo-img {
  height: 48px;
  border-radius: 4px;
}

/* Desktop nav — 3D glass box, absolutely centered */
.header-nav {
  display: none;
  position: absolute;
  left: calc(50% + 12px);
  transform: translateX(-50%);
  border-radius: 12px;
  height: 48px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Top-edge highlight ridge */
.header-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
  z-index: 0;
}

/* Scrolled state — glass on dark header */
.site-header.scrolled .header-nav {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 10px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-nav a:hover {
  color: #fff;
  transform: translateY(-0.5px);
}

.header-nav a.active {
  color: #fff;
  font-weight: 650;
  transform: translateY(-1px);
}

/* Mega Menu (replaces simple dropdown) */
.nav-dropdown {
  position: static;
}

.mega-menu {
  position: fixed;
  top: calc(var(--header-height) + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 29, 50, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--copper);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  padding: var(--space-2xl) 0 var(--space-xl);
  z-index: calc(var(--z-header) - 1);
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg) var(--space-2xl);
}

.mega-menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(184, 134, 74, 0.25);
}

.mega-menu-heading svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mega-menu-col a {
  display: flex;
  align-items: center;
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 36px;
}

.mega-menu-col a:hover {
  color: var(--white);
  padding-left: 6px;
}

.mega-menu-sub {
  margin-top: var(--space-md);
}

.mega-menu-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  margin-top: var(--space-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-menu-cta-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.mega-menu-cta-text svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mega-menu-cta-text a {
  display: inline;
  padding: 0;
  color: var(--copper);
  font-weight: 600;
  min-height: auto;
}

.mega-menu-cta-text a:hover {
  color: var(--copper-light);
  padding-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1023px) {
  .mega-menu {
    display: none;
  }
}

/* Header right — phone + CTA */
.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  position: relative;
}

/* Phone hover: copper underline slide effect */
.header-phone::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width var(--transition-base);
}

.header-phone:hover {
  color: var(--copper-light);
}


.header-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--copper);
}

@media (min-width: 1024px) {
  .header-nav,
  .header-actions {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .header-nav a {
    font-size: 0.9375rem;
    padding: 10px 14px;
  }
  .header-nav ul {
    gap: 4px;
  }
}

/* -------------------------------------------------------
   5a. MOBILE HAMBURGER (CSS-only, checkbox hack)
   ------------------------------------------------------- */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: calc(var(--z-header) + 10);
  position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

/* X transform when open */
.nav-toggle-input:checked ~ .nav-toggle-label span {
  background: transparent;
}

.nav-toggle-input:checked ~ .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle-input:checked ~ .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile slide-out menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--navy);
  z-index: calc(var(--z-header) + 5);
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  transition: right var(--transition-base);
  overflow-y: auto;
}

.nav-toggle-input:checked ~ .mobile-nav {
  right: 0;
}

/* Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-header) + 4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
}

.nav-toggle-input:checked ~ .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--copper);
  padding-left: var(--space-sm);
}

.mobile-nav-cta {
  margin-top: var(--space-xl);
}

.mobile-nav-cta .btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.mobile-nav-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--white);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Mobile nav service categories */
.mobile-nav-services {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-sm) 0;
  margin: var(--space-xs) 0;
}

.mobile-nav-category {
  padding: var(--space-xs) 0;
}

.mobile-nav-cat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  padding: 8px 0 4px;
}

.mobile-nav-services a {
  display: flex;
  align-items: center;
  padding: 10px 0 10px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  font-weight: 400;
  min-height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-services a:hover,
.mobile-nav-services a.active {
  color: var(--white);
  padding-left: calc(12px + var(--space-xs));
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
  .nav-toggle-label,
  .nav-toggle-input,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}

/* -------------------------------------------------------
   6. HERO
   ------------------------------------------------------- */

/* -------------------------------------------------------
   6. HERO (base + sub-page)
   ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 35, 0.85) 0%,
    rgba(15, 29, 50, 0.70) 40%,
    rgba(15, 29, 50, 0.60) 100%
  );
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image img { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.hero-content {
  max-width: 560px;
}

.hero h1,
.hero .h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: var(--copper);
  background: var(--gradient-frost-copper);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Normalize sub-page hero headlines to match homepage */
.hero-sub h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Tablet+ hero layout */
@media (min-width: 768px) {
  .hero-ctas { flex-direction: row; align-items: center; }
  .hero-inner { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
}

@media (min-width: 1024px) {
  .hero { min-height: auto; padding-top: var(--header-height); padding-bottom: 0; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

/* Sub-page hero (shorter) */
/* Sub-page hero — matches homepage parallax hero feel */
.hero-sub {
  min-height: 44vh;
  max-height: 480px;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  display: flex;
  align-items: center;
}

/* Ken Burns hero background image */
.hero-sub-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-sub-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}
.hero-sub-bg + .hero-overlay,
.hero-sub-bg ~ .hero-inner {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-sub-bg img { animation: none; }
}

/* Centered text needs uniform overlay (homepage gets away with 135deg
   because its text is on the left where opacity is highest) */
.hero-sub .hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(15, 29, 50, 0.82) 0%,
      rgba(15, 29, 50, 0.75) 50%,
      rgba(15, 29, 50, 0.80) 100%
    );
}

.hero-sub .hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* Sub-page hero video */
.hero-sub-video {
  position: relative;
  overflow: hidden;
}

.hero-sub-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Subtle brightness normalization — keeps videos consistent regardless of content brightness.
   Homepage parallax hero relies on overlay only, but sub-page videos vary in brightness
   (e.g., white truck vs. dark mountain home), so a mild filter evens them out. */
.hero-sub-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
}

.hero-sub-video .hero-overlay,
.hero-sub-video .hero-inner {
  position: relative;
  z-index: 1;
}

/* Match homepage rounded corners on tablet+ */
@media (min-width: 768px) {
  .hero-sub {
    border-radius: 0 0 24px 24px;
    outline: 3px solid rgba(255, 255, 255, 0.1);
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sub-video-el { display: none; }
}

/* -------------------------------------------------------
   BREADCRUMBS
   ------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  padding: var(--space-md) 0;
}
.breadcrumb a { color: var(--mid-gray); }
.breadcrumb a:hover { color: var(--copper); }
.breadcrumb-separator { color: var(--mid-gray); user-select: none; }
.breadcrumb-separator::after { content: '>'; }
.breadcrumb-current { color: var(--charcoal); font-weight: 500; }

/* On dark backgrounds (inside hero-sub) */
.breadcrumb.on-dark a { color: rgba(255, 255, 255, 0.5); }
.breadcrumb.on-dark a:hover { color: var(--copper); }
.breadcrumb.on-dark .breadcrumb-separator { color: rgba(255, 255, 255, 0.3); }
.breadcrumb.on-dark .breadcrumb-current { color: rgba(255, 255, 255, 0.9); }

/* Hero form (right column) */

.hero-form {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(37, 96, 168, 0.20);
}

.hero-form h3,
.hero-form .h3 {
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

/* Sub-page hero (shorter) */


/* Sub-page hero overlay is slightly stronger than homepage for shorter hero readability */

/* Slower, subtler Ken Burns for sub-page heroes */


/* -------------------------------------------------------
   7. TRUST BAR
   ------------------------------------------------------- */
.trust-bar {
  background: var(--gradient-copper);
  padding: var(--space-xl) 0;
  overflow: hidden;
  position: relative;
}

/* Subtle shimmer on trust bar */


.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg) var(--space-2xl);
  position: relative;
  z-index: 1;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.trust-item svg,
.trust-item img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  opacity: 0.9;
}

.carrier-badge-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.15);
}

.trust-item-badge {
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .trust-bar {
    padding: var(--space-2xl) 0;
  }

  .trust-item {
    font-size: 1.0625rem;
  }

  .trust-item svg,
  .trust-item img {
    width: 30px;
    height: 30px;
  }

  .carrier-badge-img {
    height: 44px;
  }
}

/* -------------------------------------------------------
   8. CARDS
   ------------------------------------------------------- */

/* --- Service card --- dimensional, gradient border on hover */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 230, 236, 0.6);
}

/* Gradient border glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--copper), var(--frost), var(--copper-light));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(10, 30, 60, 0.12), 0 0 0 1px rgba(37, 96, 168, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--copper), var(--copper-dark, #1d4d8a));
  color: var(--white);
  transform: scale(1.08) rotate(-3deg);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}


/* Inner white background to create border effect */
.service-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--white);
  z-index: -1;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 96, 168, 0.12), rgba(37, 96, 168, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--copper);
  transition: background var(--transition-base), transform var(--transition-base);
}


.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.1875rem;
}

.service-card p {
  color: var(--mid-gray);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  color: var(--copper);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-card-link:hover {
  gap: var(--space-sm);
  color: var(--copper-dark);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}


/* --- Expanding cards --- multi-row service navigator */
.expanding-cards {
  display: grid;
  width: 100%;
  gap: 0.75rem;
  height: 340px;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  grid-template-rows: 1fr;
  transition: grid-template-columns 500ms ease-out, grid-template-rows 500ms ease-out;
}

.expanding-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(10, 30, 60, 0.15), 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.expanding-card:hover {
  box-shadow: 0 8px 32px rgba(10, 30, 60, 0.2), 0 2px 6px rgba(0,0,0,0.12);
}

.expanding-card:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.expanding-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(1);
  transform: scale(1.1);
}

.expanding-card[data-active="true"] > img {
  filter: grayscale(0);
  transform: scale(1);
}

.expanding-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 40%, transparent 100%);
  z-index: 1;
}

.expanding-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  gap: 0.5rem;
}

/* Rotated label shown when collapsed */
.expanding-card-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 1;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 3;
}

.expanding-card[data-active="true"] .expanding-card-label {
  opacity: 0;
}

/* Content — hidden when collapsed, staggered reveal */
.expanding-card-title,
.expanding-card-desc,
.expanding-card-link {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.expanding-card[data-active="true"] .expanding-card-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.expanding-card[data-active="true"] .expanding-card-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.expanding-card[data-active="true"] .expanding-card-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.expanding-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.expanding-card-title::after {
  display: none;
}

.expanding-card-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 380px;
  margin: 0;
}

.expanding-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--copper-light);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: gap 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}

.expanding-card-link:hover {
  gap: 0.75rem;
}

.expanding-card-link svg {
  transition: transform 0.2s ease;
}

.expanding-card-link:hover svg {
  transform: translateX(3px);
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .expanding-cards {
    height: 420px;
  }

  .expanding-card-label {
    transform: translateX(-50%) translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .expanding-cards {
    transition: none;
  }
  .expanding-card > img {
    transition: none;
    filter: none;
    transform: none;
  }
  .expanding-card-title,
  .expanding-card-desc,
  .expanding-card-link {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .expanding-card-label {
    transition: none;
  }
}

/* --- Service category headings --- */
.service-category-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--copper);
  display: inline-block;
}

/* --- Feature card --- numbered badge + left accent */
.grid-3 { counter-reset: feature-card; }

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  padding-left: calc(var(--space-xl) + 4px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid rgba(226, 230, 236, 0.5);
  border-left: 3px solid var(--copper);
  position: relative;
  counter-increment: feature-card;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.feature-card-number::after {
  content: counter(feature-card);
}

.feature-card h4 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--mid-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Why Brewer Split Layout --- */
.why-brewer-section {
  overflow: hidden;
}

.why-brewer-split {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .why-brewer-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.section-eyebrow-left {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: var(--space-md);
}

.why-brewer-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .why-brewer-heading {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .why-brewer-heading {
    font-size: 2.75rem;
  }
}

.why-brewer-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--mid-gray);
  margin-bottom: var(--space-xl);
}

.why-brewer-stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--light-gray);
}

.why-brewer-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.why-brewer-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--mid-gray);
  letter-spacing: 0.02em;
}

.why-brewer-media {
  position: relative;
}

.why-brewer-photo-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.why-brewer-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.why-brewer-photo-accent {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.why-brewer-badge {
  height: 56px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .why-brewer-photo-accent {
    bottom: -24px;
    right: -20px;
    padding: var(--space-lg);
  }

  .why-brewer-badge {
    height: 72px;
  }
}

/* About section photo strip */
.about-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}


@media (max-width: 768px) {
  .about-photo-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-photo {
    aspect-ratio: 16 / 9;
  }
}

/* --- Testimonial card --- with elegant left border accent */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--copper), var(--copper-light)) 1;
  border-image-slice: 1;
  overflow: visible;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(37, 96, 168, 0.35), rgba(37, 96, 168, 0.10));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: var(--space-sm);
  left: var(--space-lg);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--copper);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-top: 1px solid var(--light-gray);
  padding-top: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light-gray);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.testimonial-source {
  font-size: 0.8125rem;
  color: var(--mid-gray);
}

/* --- Testimonials Section Distinct Background --- */
.testimonials-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-divider);
  opacity: 0.4;
}

.testimonials-section .section-title {
  position: relative;
}

/* --- Testimonials Marquee Columns --- */
@keyframes marquee-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes marquee-down {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.testimonials-marquee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-height: 620px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-col {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: marquee-up var(--marquee-duration, 25s) linear infinite;
}

.marquee-col--reverse .marquee-track {
  animation-name: marquee-down;
}

.marquee-col:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(10, 30, 60, 0.06);
  box-shadow: 0 2px 8px rgba(10, 30, 60, 0.06);
  transition: box-shadow 0.2s ease;
  flex-shrink: 0;
}

.marquee-card:hover {
  box-shadow: 0 4px 16px rgba(10, 30, 60, 0.1);
}

.marquee-card-stars {
  display: flex;
  gap: 2px;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.marquee-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dark-gray);
  margin: 0 0 1rem 0;
}

.marquee-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.marquee-card-author div {
  display: flex;
  flex-direction: column;
}

.marquee-card-author strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.marquee-card-author span:not(.marquee-avatar) {
  font-size: 0.75rem;
  color: var(--mid-gray);
}

.marquee-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* Mobile: 1 column marquee */
@media (max-width: 767px) {
  .testimonials-marquee {
    grid-template-columns: 1fr;
    max-height: 500px;
  }
  .marquee-col:nth-child(2),
  .marquee-col:nth-child(3) {
    display: none;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .testimonials-marquee {
    grid-template-columns: repeat(2, 1fr);
  }
  .marquee-col:nth-child(3) {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Review Platform Snapshots */
.review-snapshots-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}
.review-snapshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
  gap: var(--space-lg);
}
.review-snapshot-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.review-snapshot-card:hover {
  transform: scale(1.02);
}
.review-snapshot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.review-snapshot-label {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-snapshot-platform {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}
.review-snapshot-rating {
  font-size: 0.8125rem;
  color: var(--copper);
  font-weight: 500;
}
@media (max-width: 768px) {
  .review-snapshots-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .review-snapshot-card img {
    height: 180px;
  }
}

/* -------------------------------------------------------
   9. FORMS — Enhanced with inner shadows and polish
   ------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition-base),
              background-color var(--transition-base);
  appearance: none;
  -webkit-appearance: none;
}

/* Focus: copper ring with glow */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(37, 96, 168, 0.15);
  background: rgba(250, 248, 245, 0.5);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--mid-gray);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9590' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Validation states */
.form-input.is-valid {
  border-color: #2e7d32;
}

.form-input.is-invalid {
  border-color: #c62828;
}

.form-error {
  font-size: 0.8125rem;
  color: #c62828;
  margin-top: var(--space-xs);
}

/* Submit button: gradient + hover glow */
.form-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-copper);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form-submit:hover {
  background: var(--gradient-copper-r);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


.form-submit:active {
  transform: translateY(0);
}

/* -------------------------------------------------------
   10. BUTTONS — Enhanced with gradients and glow
   ------------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast),
              background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  position: relative;
}

.btn-primary {
  background: var(--gradient-copper);
  color: var(--white);
  border: 2px solid var(--copper);
}

.btn-primary:hover {
  background: var(--gradient-copper-r);
  border-color: var(--copper-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Pulse animation for hero "Book Now" CTA */


.btn-secondary {
  background: transparent;
  color: var(--copper);
  border: 2px solid var(--copper);
}

.btn-secondary:hover {
  background: var(--copper);
  color: var(--white);
  transform: translateY(-2px);
}

/* On dark backgrounds */
.btn-secondary.on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}


.btn-phone {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
}

.btn-phone:hover {
  background: #162847;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-phone svg {
  width: 18px;
  height: 18px;
}

/* Small variant */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* Large variant */
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* -------------------------------------------------------
   11. CTA BANNERS
   ------------------------------------------------------- */
.cta-banner {
  background: var(--navy);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-banner h2::after {
  display: none;
}

.cta-banner h2 span {
  display: block;
  background: linear-gradient(135deg, var(--frost-light), var(--copper-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .cta-banner-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Financing CTA — solid background, no video */
.cta-financing {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
}

/* CTA gradient mesh overlay */
.cta-banner .cta-gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 96, 168, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(77, 168, 212, 0.06) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* CTA glow pulse — soft radial glow that shifts on hover */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 120%;
  transform: translate(-50%, -50%) translateY(1rem);
  background: radial-gradient(ellipse at center, rgba(37, 96, 168, 0.15) 0%, transparent 70%);
  opacity: 0.6;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.cta-banner:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(-0.5rem);
}

/* CTA thermostat rings */
.cta-thermostat-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-thermostat-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(37, 96, 168, 0.08);
  transform: translate(-50%, -50%);
  opacity: 0.5;
}


/* -------------------------------------------------------
   12. FOOTER — Enhanced with gradient and copper accents
   ------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-3xl);
  position: relative;
}

/* Subtle copper gradient line at top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), var(--copper-light), var(--copper), transparent);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
  }
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: var(--space-md);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

/* Accent line under footer headings */
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--copper);
  border-radius: 1px;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  padding: 6px 0;
  display: inline-block;
  min-height: 44px;
  line-height: 1.8;
}

.footer-links a:hover {
  color: var(--copper);
  padding-left: 4px;
}

/* Newsletter form */


/* Social icons — circular border with hover fill */
.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast);
}

.footer-social a:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}


@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* -------------------------------------------------------
   13. BREADCRUMBS
   ------------------------------------------------------- */


/* On dark backgrounds (inside hero-sub) */


/* -------------------------------------------------------
   14. MOBILE CTA BAR
   ------------------------------------------------------- */
.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-header) - 1);
  background: var(--gradient-copper);
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
}

.mobile-cta-bar a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-cta-bar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Only show on mobile */
@media (min-width: 768px) {
  .mobile-cta-bar {
    display: none;
  }
}

/* Add bottom padding to body so footer isn't hidden behind mobile CTA bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }
}

/* -------------------------------------------------------
   15. ANIMATIONS
   ------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Staggered entrance delays */

/* Elements start invisible until animation fires */
[class*="animate-"] {
  opacity: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [class*="animate-"] {
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Hide HVAC-themed animated elements entirely */
}

/* -------------------------------------------------------
   16. UTILITY CLASSES
   ------------------------------------------------------- */

/* Text color */
.text-copper  { color: var(--copper); }
.text-frost   { color: var(--frost); }
.text-white   { color: var(--white); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--mid-gray); }

/* Background */
.bg-navy       { background-color: var(--navy); }
.bg-warm-white { background-color: var(--warm-white); }
.bg-copper     { background-color: var(--copper); }
.bg-white      { background-color: var(--white); }
.bg-frost      { background-color: var(--frost); }
.bg-light-gray { background-color: var(--light-gray); }

/* Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Flex helpers */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }
.gap-xl      { gap: var(--space-xl); }

/* Spacing */
.mt-0   { margin-top: 0; }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-0   { margin-bottom: 0; }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* Max width */
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 640px; }
.max-w-lg  { max-width: 800px; }
.mx-auto   { margin-left: auto; margin-right: auto; }

/* Lists */
.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}

/* Divider */
.divider {
  border: none;
  height: 1px;
  background: var(--light-gray);
  margin: var(--space-2xl) 0;
}

/* -------------------------------------------------------
   17. PAGE-SPECIFIC HELPERS
   ------------------------------------------------------- */

/* About page — (story-grid removed, replaced by exploded-section) */

/* -------------------------------------------------------
   HVAC Exploded View — Panel-Aligned Scroll Section
   ------------------------------------------------------- */
.exploded-section {
  position: relative;
  height: 250vh;
  background: #060a14;
  margin: 16px auto 16px;
  max-width: 100%;
  z-index: 1;
}

@media (min-width: 768px) {
  .exploded-section {
    border-radius: 24px;
    max-width: calc(100% - 48px);
    box-shadow: var(--shadow-lg);
  }
}

/* Spacing: hero → exploded panel */
.hero-sub + .exploded-section,
.hero-sub-video + .exploded-section {
  margin-top: 24px;
}

.exploded-sticky {
  position: sticky;
  top: 0;
  height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}

.exploded-sticky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Progress rail --- */
.explode-progress {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 180px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  z-index: 5;
}

.explode-progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-copper, #c77d4a);
  border-radius: 2px;
  transform-origin: bottom;
}

.explode-progress-thumb {
  position: absolute;
  left: 50%;
  bottom: 0%;
  width: 9px;
  height: 9px;
  background: var(--accent-copper, #c77d4a);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 0 8px rgba(199,125,74,0.5);
}

/* --- Stage text cards --- */
.explode-stage {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  will-change: opacity, transform;
}

.explode-stage[data-stage="0"] { left: 6%; bottom: 14%; }
.explode-stage[data-stage="1"] { right: 6%; top: 18%; }
.explode-stage[data-stage="2"] { left: 6%; top: 18%; }
.explode-stage[data-stage="3"] { right: 6%; bottom: 14%; }

.explode-card {
  background: rgba(10, 15, 28, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  max-width: 380px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.explode-label {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-copper, #c77d4a);
  margin-bottom: 0.625rem;
  font-weight: 700;
}

.explode-card h2 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.2;
}

.explode-card h3 {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.25;
}

.explode-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* --- Scroll hint --- */
.explode-scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  animation: explode-hint-bob 2.5s ease-in-out 3;
}

@keyframes explode-hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  .exploded-section { height: 200vh; }
  .exploded-sticky { height: 70vh; }

  .explode-stage {
    left: 1rem !important;
    right: 1rem !important;
    top: auto !important;
    bottom: 6% !important;
  }

  .explode-card {
    max-width: none;
  }

  .explode-progress { display: none; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .exploded-section { height: auto; }
  .exploded-sticky { position: relative; height: auto; min-height: 50vh; }
  .explode-stage { position: relative; opacity: 1; margin: var(--space-lg) auto; }
  .explode-scroll-hint { display: none; }
}

/* -------------------------------------------------------
   GSAP Storytelling Timeline
   ------------------------------------------------------- */
.story-timeline {
  position: relative;
  padding-left: 60px;
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
}

/* Vertical line */
.story-timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
}

.story-timeline-fill {
  width: 100%;
  height: 0%;
  background: var(--gradient-frost-copper);
  border-radius: 1px;
  transition: height 0.05s linear;
}

/* Chapter block */
.story-chapter {
  position: relative;
  margin-bottom: var(--space-3xl);
}

.story-chapter:last-child {
  margin-bottom: 0;
}

/* Marker (year + dot) */
.story-chapter-marker {
  position: absolute;
  left: -60px;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
}

.story-chapter-year {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mid-gray);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.story-chapter.is-active .story-chapter-year {
  color: var(--copper);
}

.story-chapter-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--light-gray);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  position: relative;
}

.story-chapter.is-active .story-chapter-dot {
  background: var(--copper);
  box-shadow: 0 0 0 2px var(--copper);
}

/* Content card */
.story-chapter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}

/* Visual (video) */
.story-chapter-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.story-chapter-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text content */
.story-chapter-text {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-chapter-text h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.story-chapter-text p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mid-gray);
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
  .story-timeline {
    padding-left: 40px;
  }
  .story-timeline-line {
    left: 14px;
  }
  .story-chapter-marker {
    left: -40px;
    width: 28px;
  }
  .story-chapter-year {
    font-size: 0.75rem;
  }
  .story-chapter-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
  .story-chapter-content {
    grid-template-columns: 1fr;
  }
  .story-chapter-visual {
    aspect-ratio: 16 / 9;
  }
  .story-chapter-text {
    padding: var(--space-lg);
  }
  .story-chapter-text h3 {
    font-size: 1.125rem;
  }
}

/* About page — credentials grid */
.credential-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--light-gray);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.credential-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.credential-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 96, 168, 0.12), rgba(37, 96, 168, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--copper);
}

.credential-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.credential-card p {
  color: var(--mid-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* About page — mission / vision / values */
.mvv-section {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mvv-section--solid {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
}

/* MVV section inside floating panel — light treatment */
.floating-panel > .mvv-section,
.floating-panel > .mvv-section--solid {
  background: transparent;
  color: var(--navy);
}

.floating-panel > .mvv-section .section-title,
.floating-panel > .mvv-section h2 {
  color: var(--navy);
}

.floating-panel > .mvv-section .section-title::after {
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.floating-panel > .mvv-section .mvv-item h4 {
  color: var(--copper);
}

.floating-panel > .mvv-section .mvv-item p {
  color: var(--mid-gray);
}

.floating-panel > .mvv-section .mvv-motto blockquote {
  color: var(--navy);
}

.floating-panel > .mvv-section .mvv-motto cite {
  color: var(--mid-gray);
}

/* Financing CTA inside floating panel — light treatment */
.floating-panel > .cta-financing {
  background: transparent;
}

.floating-panel > .cta-financing h2 {
  color: var(--navy);
}

.floating-panel > .cta-financing p {
  color: var(--mid-gray);
}

.floating-panel > .cta-financing .btn-primary {
  /* Keep existing copper gradient */
}

/* Hide dark overlay pseudo-elements inside floating panel */
.floating-panel > .cta-financing::before,
.floating-panel > .mvv-section::before {
  display: none;
}

.mvv-section .section-title::after {
  background: linear-gradient(90deg, transparent, var(--copper-light), transparent);
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .mvv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mvv-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--copper-light);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mvv-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
}

.mvv-motto {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.mvv-motto blockquote {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--copper-light);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .mvv-motto blockquote {
    font-size: 2.5rem;
  }
}

.mvv-motto cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Contact page — info cards */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(37, 96, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper);
}

/* Contact page — two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-2xl);
  }
}

.contact-form-column {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 230, 236, 0.5);
}

@media (min-width: 768px) {
  .contact-form-column {
    padding: var(--space-2xl);
  }
}

.contact-details-column .contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Contact page — prominent phone card */
.contact-phone-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.contact-phone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.contact-phone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 96, 168, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper-light);
}

.contact-phone-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xs);
}

.contact-phone-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition-fast);
  font-variant-numeric: tabular-nums;
}

.contact-phone-number:hover {
  color: var(--copper-light);
}

@media (min-width: 768px) {
  .contact-phone-number {
    font-size: 1.75rem;
  }
}

/* Contact page — checkbox */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--copper);
  cursor: pointer;
}

/* FAQ / Accordion */
.faq-item {
  border-bottom: 1px solid var(--light-gray);
  border-left: 3px solid transparent;
  padding-left: var(--space-md);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.faq-item.open {
  border-left-color: var(--copper);
  background: rgba(37, 96, 168, 0.03);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--copper);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--copper);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-answer > div,
.faq-answer > p {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--mid-gray);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Service area map placeholder */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--light-gray);
  border: 1px solid rgba(226, 230, 236, 0.5);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Badge / label */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375em 1em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: rgba(37, 96, 168, 0.08);
  color: var(--copper);
  border: 1px solid rgba(37, 96, 168, 0.15);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.badge:hover {
  background: rgba(37, 96, 168, 0.15);
  border-color: rgba(37, 96, 168, 0.3);
  transform: translateY(-1px);
}

/* Image with overlay caption */


/* -------------------------------------------------------
   17b. DARK SERVICES SECTION — Medley-inspired
   Horizontal copper cards on navy background
   ------------------------------------------------------- */

/* When services section has bg-navy, override card styles */

/* Remove the gradient border glow pseudo-elements on dark cards */


/* Dark card icon — circular, subtle white bg */


/* Dark card text */


/* -------------------------------------------------------
   VISUAL SERVICE CARDS — Large image cards with parallax
   Inspired by 45R.jp scroll-driven storytelling
   ------------------------------------------------------- */
.service-grid-visual {
  gap: 20px;
}

.service-card-visual:hover {
  transform: scale(1.02);
}

.service-card-visual .service-card-image {
  position: absolute;
  inset: -30px 0;
  overflow: hidden;
  z-index: 0;
}

.service-card-visual .service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.service-card-visual .service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 20px;
  background: linear-gradient(
    to top,
    rgba(10, 22, 40, 0.95) 0%,
    rgba(10, 22, 40, 0.80) 40%,
    rgba(10, 22, 40, 0.3) 75%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 1;
  transition: padding 0.5s cubic-bezier(0.23, 1, 0.32, 1), background 0.5s ease;
  min-height: 50%;
}


/* Icon within visual cards */
.service-card-visual .service-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(37, 96, 168, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 96, 168, 0.3);
  margin-bottom: 0;
}


/* Text within visual cards */
.service-card-visual h3 {
  font-size: 1.125rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.service-card-visual p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Subtle blue glow on hover */
.service-card-visual::after {
  content: '';
  display: block !important;
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: none !important;
  border: 2px solid transparent;
  transition: border-color 0.4s ease;
  z-index: 2;
  pointer-events: none;
}


/* Responsive: visual cards */
@media (max-width: 768px) {
  .service-card-visual {
    height: 260px;
  }
  .service-card-visual .service-card-overlay {
    padding: 16px 18px;
  }
  .service-card-visual h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .service-card-visual {
    height: 220px;
  }
}

/* Service card content wrapper for flex layout */

/* Chevron on right side of dark service cards */


/* Hide the "Learn More" link on dark cards — whole card is clickable */

/* Dark service card link wrapper */
a.service-card-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* -------------------------------------------------------
   17c. BG-NAVY TEXT OVERRIDES
   White text for section titles/subtitles on dark backgrounds
   ------------------------------------------------------- */
.bg-navy .section-title {
  color: var(--white);
}

.bg-navy .section-title::after {
  background: linear-gradient(90deg, transparent, var(--copper-light), transparent);
}

.bg-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------
   17d. VALUES STRIP — "What You Can Expect"
   Horizontal strip of value icons on dark background
   ------------------------------------------------------- */


/* Subtle copper underline below each title */


/* -------------------------------------------------------
   17e. ACTION CARDS — White cards on dark background
   Financing, maintenance, reviews, emergency
   ------------------------------------------------------- */


/* -------------------------------------------------------
   18. PARALLAX HERO
   ------------------------------------------------------- */

.hero-parallax {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

/* --- Cinematic Hero Video Background --- */
.hero-video-wrap {
  position: absolute;
  inset: -25% 0 0 0;
  width: 100%;
  height: 150%;
  will-change: transform;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.hero-parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(15, 29, 50, 0.80) 0%,
      rgba(15, 29, 50, 0.60) 50%,
      rgba(15, 29, 50, 0.75) 100%
    );
}

.hero-parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem var(--space-2xl) 5rem;
  max-width: 820px;
  margin: 0 auto;
}

/* --- Unified hero: headline left + form right --- */
.hero-unified-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 7rem var(--space-lg) 3rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero-left {
  max-width: 540px;
}

.hero-left .hero-headline {
  text-align: left;
}


.hero-left .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-right .hero-form {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(37, 96, 168, 0.15);
}

@media (min-width: 1024px) {
  .hero-unified-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 9rem var(--space-lg) 4rem;
    gap: var(--space-3xl);
  }

  .hero-left {
    flex: 1;
    max-width: 520px;
  }

  .hero-right {
    flex: 0 0 380px;
  }
}

@media (max-width: 767px) {
  .hero-unified-inner {
    padding: 6.5rem var(--space-lg) 2.5rem;
    gap: var(--space-xl);
  }

  .hero-left .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-right .hero-form {
    padding: var(--space-lg);
  }
}

/* --- Hero reveal animation (SŌM-inspired: slow, deliberate) --- */
.reveal-hero {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Trust ribbon --- */
.hero-trust-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.hero-carrier-inline {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

/* --- Headline --- */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-headline span {
  display: block;
  background: var(--gradient-frost-copper);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Subtitle --- */
.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- Hero actions --- */
.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-cta-primary svg {
  transition: transform 0.3s ease;
}


/* --- Stats strip --- */
.hero-stats-strip {
  display: inline-flex;
  gap: 0.5rem;
}


.stat-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Scroll indicator line --- */


/* --- Mobile parallax hero --- */
@media (max-width: 767px) {
  .hero-parallax {
    min-height: auto;
  }

  .hero-video-wrap {
    inset: 0;
    height: 100%;
  }

  .hero-parallax-content {
    padding: 7rem var(--space-lg) 4rem;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-stats-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .hero-trust-ribbon {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .hero-carrier-inline {
    height: 18px;
  }

}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap {
    inset: 0;
    height: 100%;
  }

  .hero-video {
    display: none;
  }

  /* Show poster image as static fallback */
  .hero-video-wrap {
    background: url(assets/images/hero-poster.jpg) center/cover no-repeat;
  }


  .reveal-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------------------------------
   19. PRINT STYLES
   ------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-cta-bar,
  .mobile-nav,
  .mobile-nav-overlay,
  .nav-toggle-label,
  .nav-toggle-input {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    padding-bottom: 0;
  }

  .hero-parallax {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-video-wrap,
  .hero-parallax-overlay {
    display: none !important;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    color: #666;
  }

  .btn-primary,
  .btn-secondary,
  .btn-phone {
    border: 1px solid #333;
    color: #333 !important;
    background: transparent !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}

/* ================================================================
   PROCESS TIMELINE — Animated drawing line + staggered steps
   ================================================================ */

.process-timeline {
  position: relative;
  padding-left: 68px;
  max-width: 720px;
  margin: 0 auto;
}

/* Track line (gray, always visible) */
.process-timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-gray);
  border-radius: 1px;
}

/* Filled line (copper gradient, draws with scroll via JS) */
.process-timeline::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-copper);
  border-radius: 1px;
  transform-origin: top center;
  transform: scaleY(var(--timeline-progress, 0));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-bottom: var(--space-3xl);
}

.process-step:last-child {
  padding-bottom: 0;
}

/* Step number circle */
.process-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -68px;
  top: 0;
  z-index: var(--z-content);
  box-shadow: 0 0 0 4px var(--warm-white), 0 0 0 6px var(--light-gray);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.6s ease;
}

/* Number glow on reveal */
.process-step.is-visible .process-step-number {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 4px var(--warm-white), 0 0 0 6px var(--copper);
}

/* Step content */
.process-step-content {
  flex: 1;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.is-visible .process-step-content {
  opacity: 1;
  transform: translateX(0);
}

.process-step-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.process-step-content p {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.process-step.is-visible .process-step-content p {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays per step */
.process-step:nth-child(1) { --step-delay: 0s; }
.process-step:nth-child(2) { --step-delay: 0.15s; }
.process-step:nth-child(3) { --step-delay: 0.3s; }
.process-step:nth-child(4) { --step-delay: 0.45s; }

.process-step .process-step-number {
  transition-delay: var(--step-delay);
}
.process-step .process-step-content {
  transition-delay: calc(var(--step-delay) + 0.1s);
}
.process-step .process-step-content p {
  transition-delay: calc(var(--step-delay) + 0.25s);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .process-timeline {
    padding-left: 52px;
  }

  .process-timeline::before,
  .process-timeline::after {
    left: 17px;
  }

  .process-step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
    left: -52px;
    box-shadow: 0 0 0 3px var(--warm-white), 0 0 0 5px var(--light-gray);
  }

  .process-step.is-visible .process-step-number {
    box-shadow: 0 0 0 3px var(--warm-white), 0 0 0 5px var(--copper);
  }

  .process-step {
    padding-bottom: var(--space-2xl);
  }

  .process-step-content h3 {
    font-size: 1.125rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .process-timeline::after {
    transform: scaleY(1);
    transition: none;
  }

  .process-step-number,
  .process-step-content,
  .process-step-content p {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================================================
   NEW SECTION A: PROCESS CINEMATIC — Ken Burns split-screen
   ================================================================ */


/* Left: cinematic image with Ken Burns */


/* Diagonal overlay mask on the image — creates an angled edge */


/* Right: process steps */


/* ================================================================
   NEW SECTION B: IMPACT COUNTER — Scroll-triggered animated stats
   ================================================================ */


/* Divider line between stats on desktop */

/* ================================================================
   NEW SECTION C: AMBIENT CTA — Sunset Ken Burns background
   ================================================================ */
.cta-ambient {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-ambient-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 30s ease-in-out infinite alternate;
}


/* Dark gradient overlay for text readability */
.cta-ambient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10, 20, 35, 0.75) 0%,
      rgba(10, 20, 35, 0.55) 40%,
      rgba(10, 20, 35, 0.7) 100%
    );
}

.cta-ambient-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  max-width: 680px;
}

.cta-ambient-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-ambient-content h2 span {
  display: block;
  background: linear-gradient(135deg, var(--frost-light), var(--copper-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-ambient-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.cta-ambient-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .cta-ambient-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Phone badge under CTA */
.cta-ambient-phone {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.cta-ambient-phone a {
  color: var(--frost-light);
  font-weight: 600;
  font-size: 0.9375rem;
}


/* Reduced motion: freeze Ken Burns */
@media (prefers-reduced-motion: reduce) {
  .process-cinematic-media img,
  .cta-ambient-bg img {
    animation: none;
    transform: scale(1.02);
  }
}

/* ================================================================
   COOLFIX-INSPIRED ENHANCEMENTS
   ================================================================ */

/* -------------------------------------------------------
   CF-1. SECTION SIDE LABELS — Vertical text markers
   Uses writing-mode to stay inside parent bounds
   ------------------------------------------------------- */
.section-side-label {
  display: none;
}

@media (min-width: 1024px) {
  .section-side-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--copper);
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
  }

  .section-side-label::before {
    content: '';
    display: block;
    width: 1px;
    height: 32px;
    background: currentColor;
    opacity: 0.4;
    flex-shrink: 0;
  }

  /* Light text variant for dark sections */
  .section-side-label--light {
    color: rgba(255, 255, 255, 0.4);
  }

  .section-side-label--light::before {
    background: rgba(255, 255, 255, 0.25);
  }
}

/* -------------------------------------------------------
   CF-2. LARGE STATS SECTION — Oversized editorial counters
   CoolFix-style giant numbers with scroll-triggered animation
   ------------------------------------------------------- */
.stats-editorial {
  padding: var(--space-4xl) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}


.stats-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .stats-editorial-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.stat-editorial-item {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

@media (min-width: 768px) {
  .stat-editorial-item + .stat-editorial-item {
    border-left: 1px solid var(--light-gray);
  }
}

.stat-editorial-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: var(--space-md);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-editorial-number.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-editorial-number .stat-suffix {
  color: var(--copper);
}

.stat-editorial-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mid-gray);
  max-width: 220px;
  margin: 0 auto;
}

/* -------------------------------------------------------
   CF-3. HORIZONTAL PROCESS CARDS — CoolFix step slider
   Numbered cards in a row, one highlighted
   ------------------------------------------------------- */
.process-horizontal {
  padding: var(--space-4xl) 0;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.process-horizontal .container {
  max-width: var(--container-max);
}

.process-horizontal-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.process-horizontal-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: var(--space-md);
}

.process-horizontal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.process-horizontal-subtitle {
  font-size: 1.0625rem;
  color: var(--mid-gray);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.process-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .process-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.process-h-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--light-gray);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-h-card:hover {
  transform: scale(1.02);
}

/* Active/highlighted card */
.process-h-card--active {
  background: var(--navy);
  border-color: var(--navy);
}


.process-h-card-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--copper);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.process-h-card-number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.process-h-card--active .process-h-card-number {
  color: var(--copper-light);
}

.process-h-card--active .process-h-card-number::after {
  background: rgba(255, 255, 255, 0.1);
}

.process-h-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(37, 96, 168, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--copper);
  transition: transform var(--transition-base);
}


.process-h-card--active .process-h-card-icon {
  background: rgba(37, 96, 168, 0.2);
  color: var(--copper-light);
}

.process-h-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.process-h-card--active .process-h-card-title {
  color: var(--white);
}

.process-h-card-desc {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  line-height: 1.7;
}

.process-h-card--active .process-h-card-desc {
  color: rgba(255, 255, 255, 0.65);
}

/* -------------------------------------------------------
   CF-4. SCROLL-LINKED HERO ZOOM — Image scales on scroll
   ------------------------------------------------------- */
.hero-parallax .hero-video-wrap {
  transition: transform 0.05s linear;
}

/* Scroll-linked scale for the hero (set via JS) */
.hero-parallax[data-scroll-scale] .hero-video-wrap {
  will-change: transform;
}

/* -------------------------------------------------------
   CF-5. ENHANCED SECTION TRANSITIONS — Cleaner rhythm
   ------------------------------------------------------- */

/* Top border accent for non-navy sections */
.section-accent-top {
  position: relative;
}

.section-accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--gradient-divider);
  opacity: 0.5;
}

/* Smooth gradient transition between navy and white */

/* -------------------------------------------------------
   CF-6. SCROLL PROGRESS — Thin bar at top
   ------------------------------------------------------- */

/* -------------------------------------------------------
   CF-7. ENHANCED REVEAL — Aliases for base reveal
   ------------------------------------------------------- */

/* ================================================================
   FLOATING PANEL ARCHITECTURE — CoolFix-inspired depth
   Fixed background with white panels floating over it
   ================================================================ */

/* -------------------------------------------------------
   FP-1. FIXED BACKGROUND — Full-bleed Sierra landscape
   ------------------------------------------------------- */
.fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.fixed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.85);
}

/* -------------------------------------------------------
   FP-2. FLOATING PANEL — White content containers
   ------------------------------------------------------- */
.floating-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.97);
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

/* Panel spacing — small gap between adjacent panels */
.floating-panel + .floating-panel {
  margin-top: 16px;
}

/* Gap between full-bleed dark sections and floating panels */
.floating-panel + .section.bg-navy,
.floating-panel + .cta-ambient {
  margin-top: 48px;
}

.section.bg-navy + .floating-panel,
.cta-ambient + .floating-panel {
  margin-top: 48px;
}

/* Gap between hero and first element on sub-pages */
.hero-sub + .floating-panel,
.hero + .floating-panel {
  margin-top: 24px;
}

/* Trust bar into first panel spacing */
.trust-bar + .floating-panel {
  margin-top: 24px;
}

/* Gap between last floating panel and CTA/footer */
.floating-panel + .cta-banner,
.floating-panel + .cta-financing-panel,
.floating-panel + .mvv-section,
.floating-panel + .site-footer {
  margin-top: 24px;
}

/* Gap between full-bleed sections and floating panels */

/* Tablet+ : rounded corners + constrained width */
@media (min-width: 768px) {
  .floating-panel {
    border-radius: 24px;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-lg);
  }

  .floating-panel + .floating-panel {
    margin-top: 16px;
  }
}

/* Desktop: max-width constraint */
@media (min-width: 1024px) {
  .floating-panel {
    max-width: 1200px;
    overflow: hidden;
  }

  /* Side labels inside floating panels — visible with writing-mode positioning */

  /* Sections inside panels inherit border-radius for clean corners */
  .floating-panel > section:first-child {
    border-radius: 24px 24px 0 0;
  }
  .floating-panel > section:last-child {
    border-radius: 0 0 24px 24px;
  }
  .floating-panel > section:only-child {
    border-radius: 24px;
  }
}

/* -------------------------------------------------------
   WATERMARK TEXT — CoolFix-inspired background text
   ------------------------------------------------------- */


/* -------------------------------------------------------
   Alternating panel tints — CoolFix-style light blue sections
   ------------------------------------------------------- */
.floating-panel--blue {
  background: linear-gradient(180deg, #f0f7fc 0%, #e8f2fa 100%);
}


/* Override bg-white/warm-white inside blue panels so panel tint shows through */
.floating-panel--blue > .section.bg-white,
.floating-panel--blue > .section.bg-warm-white {
  background: transparent;
}

/* -------------------------------------------------------
   Accent line on floating panels — CoolFix detail
   ------------------------------------------------------- */


/* -------------------------------------------------------
   FP-3. FULL-BLEED SECTIONS — Stay outside panels
   Services, action cards, CTA, footer keep their own bg
   ------------------------------------------------------- */
.section.bg-navy,
.action-cards-section,
.cta-ambient,
.site-footer {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------
   FP-4. TRUST BAR — Semi-transparent between hero + panels
   ------------------------------------------------------- */
.trust-bar {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------
   FP-5. PANEL VISIBILITY — Always visible, content animates
   The white panel structure is always shown so the page
   has clear visual hierarchy. Inner .reveal elements
   animate in on scroll via the existing observer.
   ------------------------------------------------------- */

/* -------------------------------------------------------
   FP-6. HERO FRAMING — Rounded corners on tablet+
   ------------------------------------------------------- */
@media (min-width: 768px) {
  .hero-parallax {
    border-radius: 0 0 24px 24px;
    outline: 3px solid rgba(255, 255, 255, 0.1);
    outline-offset: -3px;
  }
}

/* -------------------------------------------------------
   FP-7. ENSURE HEADER + FIXED ELEMENTS STACK ABOVE PANELS
   ------------------------------------------------------- */
.site-header {
  z-index: var(--z-header);
}

.page-loader {
  z-index: var(--z-modal);
}

.mobile-cta-bar {
  z-index: calc(var(--z-header) - 1);
}

/* ================================================================
   SERVICES ACCORDION — CoolFix split layout
   ================================================================ */

/* -------------------------------------------------------
   SA-1. SPLIT LAYOUT — Image left, accordion right
   ------------------------------------------------------- */
.services-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .services-split {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3xl);
  }
}

/* -------------------------------------------------------
   SA-2. VISUAL PREVIEW — Sticky image on desktop
   ------------------------------------------------------- */
.services-visual {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.services-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (min-width: 768px) {
  .services-visual {
    width: 45%;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    aspect-ratio: 3/4;
    border-radius: 20px;
  }
}

/* -------------------------------------------------------
   SA-3. ACCORDION CONTAINER
   ------------------------------------------------------- */
.services-accordion {
  flex: 1;
}

.services-accordion-header {
  margin-bottom: var(--space-xl);
}

.services-accordion-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0;
}

/* -------------------------------------------------------
   SA-4. ACCORDION ITEMS
   ------------------------------------------------------- */
.accordion-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-base);
}

.accordion-header:hover {
  color: var(--copper-light);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.7);
}

.accordion-header-left svg {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.accordion-item--active .accordion-header-left svg {
  opacity: 1;
  color: var(--copper-light);
}

.accordion-header-left h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  transition: color var(--transition-base);
}

.accordion-item--active .accordion-header-left h3 {
  color: var(--white);
  font-weight: 700;
}


.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, color var(--transition-base);
  line-height: 1;
}

.accordion-item--active .accordion-icon {
  transform: rotate(45deg);
  color: var(--copper-light);
}

/* -------------------------------------------------------
   SA-5. ACCORDION BODY — Smooth expand/collapse
   ------------------------------------------------------- */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              padding 0.3s ease;
  padding: 0 0 0 36px;
}

.accordion-body > * {
  overflow: hidden;
}

.accordion-item--active .accordion-body {
  grid-template-rows: 1fr;
  padding: 0 0 var(--space-lg) 36px;
}

.accordion-body p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0 0 var(--space-sm) 0;
}

/* -------------------------------------------------------
   SA-6. PROGRESS BAR — Auto-cycle timer indicator
   ------------------------------------------------------- */
.accordion-progress {
  height: 2px;
  width: 100%;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion-item--active .accordion-progress {
  opacity: 1;
}

.accordion-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--copper-light), var(--copper));
  border-radius: 2px;
  will-change: width;
}

.accordion-item--active .accordion-progress-fill {
  animation: progressFill 5s linear forwards;
}

.services-accordion[data-paused="true"] .accordion-item--active .accordion-progress-fill {
  animation-play-state: paused;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}


/* -------------------------------------------------------
   SA-7. BRAND BADGE — Logo overlay on service images
   ------------------------------------------------------- */
.services-brand-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 14px;
  z-index: 3;
}

.services-brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================================
   MOBILE RESPONSIVE — consolidated 767px block
   ================================================================ */
@media (max-width: 767px) {
  /* Accordion */
  .services-visual {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
  }
  .services-accordion-title { font-size: 1.5rem; }
  .accordion-header-left h3 { font-size: 1rem; }
  .accordion-body,
  .accordion-item--active .accordion-body { padding-left: 0; }

  /* Brand badge */
  .services-brand-badge { bottom: 10px; right: 10px; padding: 6px 10px; }
  .services-brand-logo { height: 22px; }

  /* Trust bar — 2×2 grid */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    text-align: center;
  }
  .trust-item {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
    white-space: normal;
    justify-content: center;
  }

  /* Testimonials — single column */
  .testimonials-section .grid-3 { grid-template-columns: 1fr; }
  .testimonial-card { padding: var(--space-lg); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* Section padding */
  .section,
  .stats-editorial,
  .process-horizontal { padding: var(--space-2xl) 0; }
  .stat-editorial-number { font-size: clamp(3.5rem, 15vw, 6rem); }

  /* Map */
  .map-container { height: 250px; }
}

/* ================================================================
   VISUAL TRANSITIONS — Phase 5 enhancements
   ================================================================ */

/* -------------------------------------------------------
   VT-1. STAGGERED STAT ANIMATION — Cascade reveal
   ------------------------------------------------------- */
.stat-editorial-item:nth-child(1) .stat-editorial-number {
  transition-delay: 0s;
}

.stat-editorial-item:nth-child(2) .stat-editorial-number {
  transition-delay: 0.15s;
}

.stat-editorial-item:nth-child(3) .stat-editorial-number {
  transition-delay: 0.3s;
}

/* -------------------------------------------------------
   VT-2. PANEL HOVER LIFT — Subtle depth on hover (desktop)
   ------------------------------------------------------- */
/* -------------------------------------------------------
   VT-4. FULL-BLEED SECTIONS — Maintain z-index over bg
   ------------------------------------------------------- */
.hero-parallax {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------
   VT-5. SECTION VIDEO BACKGROUNDS — Cinematic depth
   ------------------------------------------------------- */
.section-video-bg {
  position: relative;
  overflow: hidden;
}

.section-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

/* Services section — slightly brighter video behind navy */
#services .section-video {
  opacity: 0.15;
  filter: brightness(0.7) saturate(0.6);
}

/* Action cards — subtle equipment footage */

/* CTA ambient — video replaces static image, uses existing overlay */
.cta-ambient .cta-ambient-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 30s ease-in-out infinite alternate;
}

/* Ensure content stays above videos */
.section-video-bg > .container {
  position: relative;
  z-index: 2;
}

.section-video-bg > .section-side-label {
  z-index: 2;
}

/* Reduce motion: hide autoplay video, show poster */
@media (prefers-reduced-motion: reduce) {
  .section-video,
  .cta-ambient .cta-ambient-bg video {
    display: none;
  }
}


/* Subtle pattern overlay on gradient-only cards */

/* Icon inside gradient header for cards without images */


/* CTA banner video — same treatment as other section videos */

/* Financing CTA video — warmer treatment */

/* MVV section video on about page */

/* Ensure all section-video-bg children stack correctly */

/* ================================================================
   FAQ SECTION LAYOUT
   ================================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

#faq .section-title {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#faq .section-eyebrow-left {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   ANIMATED HVAC BACKGROUND — CoolFix-inspired
   Subtle animated HVAC unit silhouette behind fixed background
   ================================================================ */


/* Slow breathing animation */

/* Fan rotation */


/* Floating panels always visible — inner .reveal elements
   handle the scroll-triggered card animations */

/* -------------------------------------------------------
   ACCESSIBILITY — Focus-visible states
   ------------------------------------------------------- */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-phone:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(77, 168, 212, 0.3);
}

.faq-question:focus-visible,
.accordion-header:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 2px;
}

.service-card-link:focus-visible,
.header-nav a:focus-visible,
.mobile-nav a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 2px;
}


/* === BMM 2026-04-28: "Thousands" stat needs smaller font to fit column === */
#stat-customers {
  font-size: clamp(2.25rem, 5vw, 4rem) !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
@media (max-width: 768px) {
  #stat-customers {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
}

/* === BMM 2026-04-28: Legal pages — Five Star-style hero + ToC sidebar layout === */

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, #0a1626 0%, #15263d 55%, #0a1626 100%);
  display: flex;
  align-items: center;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'><g fill='none' stroke='%231d4d8a' stroke-width='1.4'><path d='M0 80 Q 300 30, 600 80 T 1200 80' opacity='.5'/><path d='M0 160 Q 300 110, 600 160 T 1200 160' opacity='.42'/><path d='M0 240 Q 300 190, 600 240 T 1200 240' opacity='.34'/><path d='M0 320 Q 300 270, 600 320 T 1200 320' opacity='.26'/><path d='M0 400 Q 300 350, 600 400 T 1200 400' opacity='.2'/><path d='M0 480 Q 300 430, 600 480 T 1200 480' opacity='.14'/></g></svg>");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}
.legal-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}
.legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: rgba(231, 168, 91, 0.9);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.legal-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(231, 168, 91, 0.55);
}
.legal-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0;
}
.legal-hero__subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  margin-top: 1.5rem;
  line-height: 1.4;
}
.legal-body {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 8vw, 8rem);
  background: linear-gradient(180deg, #f7f4f0 0%, #efe9e2 100%);
}
.legal-body__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 960px) {
  .legal-body__grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 4rem;
  }
}
.legal-toc { position: relative; }
.legal-toc__sticky { position: sticky; top: 6rem; }
.legal-toc__eyebrow { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; color: var(--navy); text-transform: uppercase; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(15, 29, 50, 0.15); }
.legal-toc__list { list-style: none; padding: 0; margin: 0; }
.legal-toc__list li { margin-bottom: 0.5rem; }
.legal-toc__list a { display: flex; align-items: baseline; gap: 0.875rem; padding: 0.5rem 0; text-decoration: none; color: rgba(15, 29, 50, 0.7); font-size: 0.9375rem; line-height: 1.4; transition: color 0.2s ease; border-left: 2px solid transparent; padding-left: 0.875rem; margin-left: -0.875rem; }
.legal-toc__list a:hover { color: var(--navy); border-left-color: var(--copper); }
.legal-toc__list a.is-active { color: var(--navy); border-left-color: var(--copper); font-weight: 600; }
.legal-toc__num { font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: 0.75rem; font-weight: 500; color: var(--copper); flex-shrink: 0; letter-spacing: 0.05em; }
.legal-toc__label { flex: 1; }
.legal-article { background: #fff; border-radius: 14px; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem); box-shadow: 0 18px 60px rgba(15, 29, 50, .08), 0 2px 6px rgba(15, 29, 50, .04); border: 1px solid rgba(15, 29, 50, .06); position: relative; overflow: hidden; font-family: var(--font-body); color: var(--charcoal); line-height: 1.7; font-size: 1rem; }
.legal-article::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--copper)); }
.legal-article h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 1.875rem); color: var(--navy); line-height: 1.2; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(15, 29, 50, 0.08); scroll-margin-top: 6rem; }
.legal-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-article h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.legal-article h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; color: var(--navy); margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-article p { margin: 0 0 1.25rem; }
.legal-article a { color: var(--copper); text-decoration: underline; text-underline-offset: 2px; }
.legal-article a:hover { color: var(--copper-dark, #a87530); }
.legal-article ul, .legal-article ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.legal-article li { margin-bottom: 0.5rem; }
.legal-article ul + ul { margin-top: -1rem; }
.legal-article strong { color: var(--navy); font-weight: 600; }
.legal-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.legal-article th, .legal-article td { padding: 0.625rem 1rem; border: 1px solid rgba(15, 29, 50, 0.1); text-align: left; }
.legal-article th { background: rgba(15, 29, 50, 0.04); font-weight: 600; color: var(--navy); }


/* === BMM 2026-04-28: Header scroll-state (readable on light content) === */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 2px 24px rgba(15, 29, 50, 0.08);
  border-bottom: 1px solid rgba(15, 29, 50, 0.06);
}
.site-header.is-scrolled .header-nav a,
.site-header.is-scrolled .header-phone,
.site-header.is-scrolled .header-cta,
.site-header.is-scrolled .site-title,
.site-header.is-scrolled .header-logo-link,
.site-header.is-scrolled .header-brand,
.site-header.is-scrolled a {
  color: var(--navy) !important;
}
.site-header.is-scrolled .header-cta,
.site-header.is-scrolled .btn-cta,
.site-header.is-scrolled .btn-primary {
  background: var(--navy) !important;
  color: var(--white) !important;
}
.site-header.is-scrolled .header-nav a:hover {
  color: var(--copper) !important;
}
