/* ==========================================================================
   LONG BEACH WATER HEATER SERVICES — CORE DESIGN SYSTEM & STYLES
   Version: 1.0.0
   Design tokens, base reset, typography, components, and layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-navy: #102A43;
  --color-deep-navy: #0B1F33;
  --color-blue: #1673B8;
  --color-blue-dark: #0F5B94;
  --color-light-blue: #EAF5FC;
  --color-light-blue-hover: #D8ECF9;
  --color-orange: #F5A623;
  --color-orange-hover: #E89512;
  --color-orange-active: #D48408;
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-text-main: #1E293B;
  --color-text-muted: #526477;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-focus: #1673B8;
  --color-card-bg: #FFFFFF;
  --color-danger-bg: #FEF2F2;
  --color-danger-border: #FECACA;
  --color-danger-text: #991B1B;

  /* Typography */
  --font-heading: 'Manrope', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing Scale */
  --space-2xs: 0.25rem;  /* 4px */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 2.5rem;   /* 40px */
  --space-3xl: 3.5rem;   /* 56px */
  --space-4xl: 5rem;     /* 80px */
  --space-5xl: 6.5rem;   /* 104px */

  /* Layout */
  --container-max: 1240px;
  --container-padding: 1.5rem;
  --header-height: 68px;
  --utility-height: 36px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(16, 42, 67, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(16, 42, 67, 0.08), 0 2px 4px -2px rgba(16, 42, 67, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(16, 42, 67, 0.08), 0 4px 6px -4px rgba(16, 42, 67, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(16, 42, 67, 0.10), 0 8px 10px -6px rgba(16, 42, 67, 0.04);
  --shadow-orange: 0 8px 20px -4px rgba(245, 166, 35, 0.45);
  --shadow-orange-hover: 0 12px 24px -4px rgba(245, 166, 35, 0.55);

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Modern Reset & Accessibility Foundations
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-white);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
}

section[id],
div[id],
[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

section,
main {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
}

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

img {
  height: auto;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--color-orange);
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Typography Hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.6rem); /* 36px to ~58px */
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem); /* 30px to ~44px */
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem); /* 22px to 28px */
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.68;
}

.text-lead {
  font-size: 1.2rem;
  line-height: 1.6;
}

.text-blue {
  color: var(--color-blue);
}

.text-orange {
  color: var(--color-orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  background-color: var(--color-light-blue);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.eyebrow-dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: #93C5FD;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
}

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

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

.section-padding-lg {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.bg-off-white {
  background-color: var(--color-off-white);
}

.bg-light-blue {
  background-color: var(--color-light-blue);
}

.bg-deep-navy {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
}

.bg-deep-navy h1,
.bg-deep-navy h2,
.bg-deep-navy h3,
.bg-deep-navy h4 {
  color: var(--color-white);
}

.bg-deep-navy p {
  color: #CBD5E1;
}

/* --------------------------------------------------------------------------
   5. Buttons & Interactive Elements (Call-Only Direct CTAs)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.25;
}

/* Primary Orange CTA — High Converting Phone Conversion */
.btn-primary-call {
  background-color: var(--color-orange);
  color: #0F172A;
  box-shadow: var(--shadow-orange);
}

.btn-primary-call:hover {
  background-color: var(--color-orange-hover);
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-hover);
}

.btn-primary-call:active {
  background-color: var(--color-orange-active);
  transform: translateY(0);
}

.btn-primary-call .icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #0F172A;
  stroke-width: 2.25;
  transition: transform var(--transition-fast);
}

.btn-primary-call:hover .icon-svg {
  transform: scale(1.1) rotate(5deg);
}

/* Large Hero CTA Button */
.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Secondary Button (Informational / Internal Scroll Navigation) */
.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-light-blue);
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-secondary-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Inline Card Phone Link */
.card-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-blue);
  margin-top: 1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.card-phone-link:hover {
  color: var(--color-orange-hover);
  transform: translateX(4px);
}

.card-phone-link .icon-svg {
  width: 1rem;
  height: 1rem;
}

/* Direct Phone Display Text Under CTAs */
.cta-phone-subtext {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

.cta-phone-subtext a {
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-phone-subtext a:hover {
  color: var(--color-blue);
}

.bg-deep-navy .cta-phone-subtext {
  color: #94A3B8;
}

.bg-deep-navy .cta-phone-subtext a {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   6. SVG Icons Utility
   -------------------------------------------------------------------------- */
.icon-svg {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. Section 1 — Top Utility Bar
   -------------------------------------------------------------------------- */
.top-utility-bar {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--utility-height);
  display: flex;
  align-items: center;
  z-index: 1001;
  position: relative;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.utility-left .icon-svg,
.utility-right .icon-svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-orange);
}

.utility-phone-link {
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.utility-phone-link:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.utility-badge {
  background-color: rgba(22, 115, 184, 0.35);
  border: 1px solid rgba(22, 115, 184, 0.6);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #BFDBFE;
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. Section 2 — Sticky Main Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: height var(--transition-normal), box-shadow var(--transition-normal);
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.site-header.is-scrolled {
  height: 60px;
  min-height: 60px;
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  gap: 1rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(22, 115, 184, 0.25);
  flex-shrink: 0;
}

.brand-icon-wrapper .icon-svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-orange);
}

.brand-text-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  position: relative;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-blue);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--color-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menus (Services & Service Areas Mega Menu) */
.nav-dropdown-item {
  position: relative;
}

/* Invisible bridge so mouse moving from link to dropdown never loses hover */
.nav-dropdown-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -15px;
  right: -15px;
  height: 18px;
  display: block;
}

.dropdown-chevron {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown-item:hover .dropdown-chevron,
.nav-dropdown-item:focus-within .dropdown-chevron,
.nav-dropdown-item.is-expanded .dropdown-chevron,
.nav-dropdown-item.is-active .dropdown-chevron {
  transform: rotate(180deg);
}

/* Standard Dropdown Menu (Services) — Desktop Floating */
@media (min-width: 1025px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: -1rem;
    width: 280px;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms;
    pointer-events: none;
    z-index: 1050;
  }

  .nav-dropdown-item:hover .dropdown-menu,
  .nav-dropdown-item:focus-within .dropdown-menu,
  .nav-dropdown-item.is-expanded .dropdown-menu,
  .nav-dropdown-item.is-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover,
.dropdown-link:focus {
  background-color: var(--color-light-blue);
  color: var(--color-blue);
}

.dropdown-link .icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-blue);
  flex-shrink: 0;
}

/* Service Areas Dropdown Mega Menu — Desktop Floating */
@media (min-width: 1025px) {
  .dropdown-mega-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 480px;
    max-width: calc(100vw - 2rem);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    padding: 1rem 1.125rem 0.875rem 1.125rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1), transform 200ms cubic-bezier(0.16, 1, 0.3, 1), visibility 200ms;
    pointer-events: none;
    z-index: 1050;
    box-sizing: border-box;
  }

  .nav-dropdown-item:hover .dropdown-mega-menu,
  .nav-dropdown-item:focus-within .dropdown-mega-menu,
  .nav-dropdown-item.is-expanded .dropdown-mega-menu,
  .nav-dropdown-item.is-active .dropdown-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  border-bottom: 1px solid var(--color-border);
}

.mega-menu-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue);
}

.mega-menu-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-blue);
  background-color: var(--color-light-blue);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.mega-menu-link:hover,
.mega-menu-link:focus {
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  transform: translateX(3px);
}

.mega-menu-link .icon-svg {
  width: 1rem;
  height: 1rem;
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.mega-menu-link:hover .icon-svg {
  transform: scale(1.15);
}

.dropdown-mega-footer {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.dropdown-mega-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-blue);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.dropdown-mega-footer a:hover {
  color: var(--color-blue-dark);
  gap: 0.55rem;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-actions .btn-primary-call {
  padding: 0.55rem 1.15rem;
  font-size: 0.925rem;
  white-space: nowrap;
}

/* Mobile Toggle Hamburger & Close (X) Transition */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 1110;
  outline: none;
  box-shadow: 0 1px 3px rgba(16, 42, 67, 0.06);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.mobile-nav-toggle:hover {
  background-color: var(--color-light-blue);
  border-color: var(--color-blue);
  color: var(--color-blue);
  box-shadow: 0 2px 6px rgba(22, 115, 184, 0.15);
}

.mobile-nav-toggle:active {
  background-color: #D8ECF9;
  border-color: var(--color-blue);
  color: var(--color-blue-dark);
  transform: scale(0.96);
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-color: var(--color-blue);
}

/* Open state: Active blue and clean contrast */
.mobile-nav-toggle[aria-expanded="true"],
.site-header.is-menu-open .mobile-nav-toggle {
  background-color: var(--color-light-blue);
  border-color: var(--color-blue);
  color: var(--color-blue);
  box-shadow: 0 2px 8px rgba(22, 115, 184, 0.2);
}

.mobile-nav-toggle[aria-expanded="true"]:hover,
.site-header.is-menu-open .mobile-nav-toggle:hover {
  background-color: #D8ECF9;
  border-color: var(--color-blue-dark);
  color: var(--color-blue-dark);
}

.mobile-nav-toggle[aria-expanded="true"]:active,
.site-header.is-menu-open .mobile-nav-toggle:active {
  background-color: #C6E2F7;
  border-color: var(--color-blue-dark);
  color: var(--color-blue-dark);
  transform: scale(0.96);
}

.mobile-nav-toggle .icon-svg,
.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  overflow: visible;
  display: block;
  pointer-events: none;
}

.mobile-nav-toggle svg line {
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 12px 12px;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease, stroke 220ms ease;
}

/* Smooth transition to Close (X) icon when opened */
/* Top bar moves down 6px to center and rotates 45deg */
.mobile-nav-toggle[aria-expanded="true"] svg line[y1="6"],
.site-header.is-menu-open .mobile-nav-toggle svg line[y1="6"] {
  transform: translateY(6px) rotate(45deg);
}

/* Center bar scales down to zero and fades out */
.mobile-nav-toggle[aria-expanded="true"] svg line[y1="12"],
.site-header.is-menu-open .mobile-nav-toggle svg line[y1="12"] {
  opacity: 0;
  transform: scaleX(0);
}

/* Bottom bar moves up 6px to center and rotates -45deg */
.mobile-nav-toggle[aria-expanded="true"] svg line[y1="18"],
.site-header.is-menu-open .mobile-nav-toggle svg line[y1="18"] {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   9. Section 3 — Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 2.25rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.52;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.65rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-badge-floating {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.125rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.hero-badge-floating.badge-bottom-left {
  bottom: 0.5rem;
  left: 0.5rem;
}

.hero-badge-floating.badge-top-right {
  top: 1rem;
  right: 0.5rem;
}

.badge-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-text-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. Section 4 — Trust & Service Highlights Bar
   -------------------------------------------------------------------------- */
.trust-bar-section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-box .icon-svg {
  width: 24px;
  height: 24px;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.15rem;
}

.trust-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   11. Section 5 — Core Water Heater Services
   -------------------------------------------------------------------------- */
.services-section {
  background-color: var(--color-off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #BAE6FD;
}

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #E2E8F0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-media img {
  transform: scale(1.035);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.btn-card-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-navy);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-card-learn:hover {
  color: var(--color-blue);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   12. Section 6 — Emergency Water Heater Repair CTA
   -------------------------------------------------------------------------- */
.emergency-section {
  background-color: var(--color-deep-navy);
  position: relative;
  overflow: hidden;
}

.emergency-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3.5rem;
  align-items: center;
}

.emergency-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0 2.25rem 0;
}

.emergency-feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: #F1F5F9;
  font-weight: 600;
  font-size: 1.05rem;
}

.emergency-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(245, 166, 35, 0.2);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.emergency-image-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 4 / 3;
}

.emergency-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   13. Section 7 — Common Water Heater Problems
   -------------------------------------------------------------------------- */
.problems-section {
  background-color: var(--color-white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.problem-card {
  background-color: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.problem-card:hover {
  border-color: var(--color-blue);
  background-color: #F0F9FF;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.problem-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.problem-card:hover .problem-icon-wrapper {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.problem-card-title {
  font-size: 1.18rem;
  margin-bottom: 0.625rem;
}

.problem-card-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

/* Safety guidance alert box */
.safety-alert-banner {
  background-color: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.safety-alert-banner .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-danger-text);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.safety-alert-content {
  font-size: 0.925rem;
  color: #7F1D1D;
  line-height: 1.55;
}

.safety-alert-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   14. Section 8 — Why Choose This Service
   -------------------------------------------------------------------------- */
.why-choose-section {
  background-color: var(--color-off-white);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3.5rem;
  align-items: center;
}

.why-image-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.why-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.benefit-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.benefit-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   15. Section 9 — Repair vs. Replacement
   -------------------------------------------------------------------------- */
.comparison-section {
  background-color: var(--color-light-blue);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.comparison-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid rgba(22, 115, 184, 0.15);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-header-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.comparison-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

.comparison-bullet-item .icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-blue);
  margin-top: 0.15rem;
}

.comparison-bottom-note {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   16. Section 10 — How Our Phone-Based Process Works
   -------------------------------------------------------------------------- */
.process-section {
  background-color: var(--color-white);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  margin-bottom: 3.5rem;
}

.process-steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background-color: var(--color-border);
  z-index: 1;
}

.process-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step-number {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  border: 3px solid var(--color-blue);
  color: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.process-step-item:hover .process-step-number {
  background-color: var(--color-blue);
  color: var(--color-white);
  transform: scale(1.05);
}

.process-step-number .icon-svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.process-step-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.process-step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 290px;
}

.process-cta-wrap {
  text-align: center;
}

/* --------------------------------------------------------------------------
   17. Section 11 — Tankless Water Heater Feature
   -------------------------------------------------------------------------- */
.tankless-section {
  background-color: var(--color-off-white);
}

.tankless-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 3.5rem;
  align-items: center;
}

.tankless-points-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0 2rem 0;
}

.tankless-point-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
}

.tankless-point-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background-color: #DBEAFE;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tankless-point-icon .icon-svg {
  width: 14px;
  height: 14px;
}

.tankless-image-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.tankless-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   18. Section 12 — Customer Reviews & Trust
   -------------------------------------------------------------------------- */
.reviews-section {
  background-color: var(--color-white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.review-card-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-orange);
  margin-bottom: 1.25rem;
}

.review-card-stars .icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.review-quote {
  font-size: 0.975rem;
  color: var(--color-text-main);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: normal;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.author-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.author-meta-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.author-meta-loc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Review transparency disclosure note */
.reviews-transparency-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   19. Section 13 — Long Beach Service Area
   -------------------------------------------------------------------------- */
.service-area-section {
  background-color: var(--color-off-white);
}

.service-area-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3.5rem;
  align-items: center;
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.75rem 0 2rem 0;
}

.neighborhood-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-white);
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.neighborhood-tag .icon-svg {
  width: 14px;
  height: 14px;
  color: var(--color-blue);
}

/* Neighboring published city link tags */
.service-areas-hub-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.service-cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.neighborhood-tag-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background-color: var(--color-white);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.neighborhood-tag-link:hover,
.neighborhood-tag-link:focus {
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  border-color: #BFDBFE;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.neighborhood-tag-link-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.neighborhood-tag-link .icon-svg {
  width: 14px;
  height: 14px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.neighborhood-tag-link .tag-arrow {
  color: var(--color-text-light);
  font-size: 0.85rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.neighborhood-tag-link:hover .tag-arrow {
  color: var(--color-blue);
  transform: translateX(3px);
}

.service-area-image-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.service-area-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   20. Section 14 — Frequently Asked Questions (Accessible Accordion)
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--color-white);
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--color-blue);
}

.faq-icon-indicator {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.faq-item.is-open .faq-icon-indicator {
  background-color: var(--color-blue);
  color: var(--color-white);
  transform: rotate(45deg); /* morphs plus into x */
}

/* Location and service pages chevron icon */
.faq-chevron {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  color: var(--color-blue) !important;
  stroke: var(--color-blue) !important;
  fill: none !important;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast), stroke var(--transition-fast);
  display: block;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-orange-hover) !important;
  stroke: var(--color-orange-hover) !important;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
  opacity: 0;
}

.faq-item.is-open .faq-panel {
  opacity: 1;
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.68;
}

.faq-bottom-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* --------------------------------------------------------------------------
   21. Section 15 — Final High-Conversion CTA
   -------------------------------------------------------------------------- */
.final-cta-section {
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.final-cta-content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.final-cta-title {
  margin-bottom: 1.25rem;
}

.final-cta-desc {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-bottom: 2.25rem;
}

/* --------------------------------------------------------------------------
   22. Section 16 — Comprehensive Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #071827;
  color: #CBD5E1;
  border-top: 1px solid #284154;
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

/* Footer Headings - Pure White & High Contrast */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.footer-col-title,
.footer-heading,
.footer-map-title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  opacity: 1 !important;
}

/* Brand Name in Footer */
.site-footer .brand-logo,
.site-footer .brand-logo div,
.footer-brand .brand-logo {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

/* Footer Brand Descriptions */
.footer-brand p,
.footer-about-text,
.site-footer p {
  color: #CBD5E1;
  font-size: 0.925rem;
  line-height: 1.65;
  margin-top: 1rem;
  opacity: 1 !important;
}

/* Footer Link Lists */
.footer-links,
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li,
.footer-links-list li {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Footer Links & Legal Navigation */
.footer-links-list a,
.footer-links a,
.footer-legal-links a,
.site-footer a:not(.btn):not(.footer-contact-phone):not(.brand-logo):not(.footer-phone-number) {
  color: #CBD5E1 !important;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color var(--transition-fast, 180ms ease), transform var(--transition-fast, 180ms ease);
  display: inline-block;
  opacity: 1 !important;
}

/* Footer Link Hover State */
.footer-links-list a:hover,
.footer-links a:hover,
.footer-legal-links a:hover,
.site-footer a:hover:not(.btn):not(.footer-contact-phone):not(.brand-logo):not(.footer-phone-number) {
  color: #60B5FF !important;
  transform: translateX(3px);
  text-decoration: none;
}

/* Phone Contact in Footer */
.footer-contact-phone {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-orange, #F5A623);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast, 180ms ease);
}

.footer-contact-phone:hover {
  color: #60B5FF;
}

.footer-phone-cta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.footer-phone-cta span {
  display: block;
  color: #A9C5DC !important;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  opacity: 1 !important;
}

.footer-phone-number {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-orange, #F5A623) !important;
  text-decoration: none;
  transition: color var(--transition-fast, 180ms ease);
  display: inline-block;
  opacity: 1 !important;
}

.footer-phone-number:hover {
  color: #60B5FF !important;
}

/* Secondary Labels in Footer */
.site-footer .brand-text-sub,
.footer-brand .brand-text-sub,
.footer-address-info,
.footer-hours-info,
.site-footer .footer-hours-info,
.site-footer p.footer-hours-info,
.footer-map-address,
.footer-phone-cta span,
.footer-bottom-bar,
.referral-disclaimer,
.site-footer .referral-disclaimer,
.site-footer p.referral-disclaimer {
  color: #A9C5DC !important;
  opacity: 1 !important;
}

.footer-address-info {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.footer-address-info .icon-svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-orange, #F5A623);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-hours-info {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Footer Map Container */
.footer-map-container {
  margin: 2.75rem 0 3rem 0;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid #284154;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.footer-map-header {
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid #284154;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-map-header-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-map-header-left .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-orange, #F5A623);
  flex-shrink: 0;
}

.footer-map-address {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.footer-map-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background-color: #0B1F33;
}

.footer-map-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer Bottom Bar & Disclaimer */
.footer-bottom-bar {
  border-top: 1px solid #284154;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.referral-disclaimer {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.825rem;
  line-height: 1.55;
}

.referral-disclaimer strong {
  color: #CBD5E1 !important;
}

/* --------------------------------------------------------------------------
   23. Sticky Mobile Call Bar
   -------------------------------------------------------------------------- */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-deep-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-mobile-bar.is-visible {
  transform: translateY(0);
}

.sticky-mobile-btn {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-orange);
  color: #0F172A;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  box-shadow: var(--shadow-orange);
}

.sticky-mobile-btn .icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.4;
}

/* --------------------------------------------------------------------------
   24. Breadcrumbs (Service Pages)
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  padding: 0.45rem 0;
  background-color: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
}

.breadcrumb-item a {
  color: var(--color-blue);
  font-weight: 600;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--color-navy);
  font-weight: 700;
}

.breadcrumb-separator {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   25. Water Heater Repair Page Specialized Components
   -------------------------------------------------------------------------- */
.hero-repair,
.service-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF5FC 100%);
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-repair-grid,
.service-hero-grid {
  display: grid;
  grid-template-columns: 54% 46%;
  gap: 2.25rem;
  align-items: center;
}

.hero-repair .eyebrow,
.service-hero .eyebrow {
  margin-bottom: 0.45rem;
}

.hero-repair .hero-title,
.service-hero .hero-title,
.hero-title {
  font-size: clamp(1.95rem, 2.75vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  letter-spacing: -0.025em;
}

.hero-repair .hero-description,
.service-hero .hero-description {
  font-size: 0.985rem;
  line-height: 1.48;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.hero-repair-image-card,
.service-hero-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px -4px rgba(16, 42, 67, 0.15), 0 0 0 1px rgba(16, 42, 67, 0.05);
  background-color: var(--color-white);
  max-height: 420px;
  width: 100%;
}

.hero-repair-image-card img,
.service-hero-image-card img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.65rem 0 1rem 0;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
}

.hero-highlight-item .icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-blue);
  flex-shrink: 0;
}

.hero-repair .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.hero-repair .cta-phone-subtext {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  gap: 0.4rem;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-top: 0.45rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.hero-secondary-link:hover {
  color: var(--color-orange-hover);
  transform: translateX(3px);
}

/* Section 4: 4-Column Repair Service Highlights */
.repair-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.repair-highlight-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.repair-highlight-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.repair-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.repair-highlight-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.repair-highlight-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Section 5: Common Problems Enhanced Cards */
.problem-card-v2 {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.problem-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue);
  box-shadow: 0 12px 24px -4px rgba(16, 42, 67, 0.12);
}

.problem-icon-v2 {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 200ms ease, color 200ms ease;
}

.problem-card-v2:hover .problem-icon-v2 {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.problem-card-v2 .problem-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.65rem;
}

.problem-card-v2 .problem-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.problem-call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  margin-top: auto;
}

.problem-call-link:hover {
  color: var(--color-orange-hover);
  transform: translateX(4px);
}

/* Section 7: Types of Water Heaters */
.heater-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.heater-type-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.heater-type-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-blue);
  box-shadow: 0 16px 30px -4px rgba(16, 42, 67, 0.12);
}

.heater-type-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: #E2E8F0;
}

.heater-type-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.heater-type-card:hover .heater-type-media img {
  transform: scale(1.035);
}

.heater-type-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.heater-type-title {
  font-size: 1.28rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.heater-type-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.58;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.heater-type-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

/* Section 8: 4-Step Process Timeline */
.steps-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
  margin-bottom: 3.5rem;
}

.steps-4-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-color: var(--color-border);
  z-index: 1;
}

/* Section 10: Cost Factors List */
.cost-factors-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem 0;
}

.cost-factor-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.cost-factor-item:hover {
  border-color: var(--color-blue);
  transform: translateX(3px);
}

.cost-factor-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--color-light-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cost-factor-text-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-navy);
}

.cost-factor-text-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
  line-height: 1.45;
}

/* Section 15: Related Services Grid */
.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.related-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
}

.related-service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #E2E8F0;
}

.related-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.related-service-card:hover .related-service-media img {
  transform: scale(1.035);
}

.related-service-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.related-service-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   26. GLOBAL DARK / NAVY SECTION CONTRAST & TYPOGRAPHY SYSTEM
   Fixes Issue 3: Guarantees pure white headings & crisp contrast on all dark navy backgrounds
   ========================================================================== */
.emergency-section,
.final-cta-section,
.bg-deep-navy,
.bg-navy {
  background-color: var(--color-deep-navy) !important;
  color: #FFFFFF !important;
}

/* Headings in dark sections MUST be pure white */
.emergency-section h1,
.emergency-section h2,
.emergency-section h3,
.emergency-section h4,
.final-cta-section h1,
.final-cta-section h2,
.final-cta-section h3,
.final-cta-section h4,
.final-cta-title,
.bg-deep-navy h1,
.bg-deep-navy h2,
.bg-deep-navy h3,
.bg-deep-navy h4,
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.footer-col-title,
.footer-heading,
.footer-map-title {
  color: #FFFFFF !important;
}

/* Supporting paragraphs in dark sections */
.emergency-section p,
.final-cta-section p,
.final-cta-desc,
.bg-deep-navy p,
.bg-navy p {
  color: #DCE6EF !important;
}

/* Problem / feature bullet items in dark sections */
.emergency-feature-item,
.emergency-features span {
  color: #F1F5F9 !important;
}

/* Eyebrows in dark sections */
.emergency-section .eyebrow,
.final-cta-section .eyebrow,
.bg-deep-navy .eyebrow,
.bg-navy .eyebrow {
  background-color: rgba(22, 115, 184, 0.28) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
}

/* Primary CTA buttons in dark sections */
.emergency-section .btn-primary-call,
.final-cta-section .btn-primary-call,
.bg-deep-navy .btn-primary-call,
.bg-navy .btn-primary-call {
  background-color: var(--color-orange) !important;
  color: #0B1F33 !important;
  font-weight: 800 !important;
}

.emergency-section .btn-primary-call:hover,
.final-cta-section .btn-primary-call:hover,
.bg-deep-navy .btn-primary-call:hover,
.bg-navy .btn-primary-call:hover {
  background-color: var(--color-orange-hover) !important;
  color: #0B1F33 !important;
}

/* Secondary outline button in dark sections */
.emergency-section .btn-secondary,
.final-cta-section .btn-secondary,
.bg-deep-navy .btn-secondary,
.bg-navy .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.emergency-section .btn-secondary:hover,
.final-cta-section .btn-secondary:hover,
.bg-deep-navy .btn-secondary:hover,
.bg-navy .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

/* Phone numbers & subtext in dark sections */
.emergency-section .cta-phone-subtext,
.final-cta-section .cta-phone-subtext,
.bg-deep-navy .cta-phone-subtext,
.bg-navy .cta-phone-subtext {
  color: #CBD5E1 !important;
}

.emergency-section .cta-phone-subtext span,
.final-cta-section .cta-phone-subtext span,
.bg-deep-navy .cta-phone-subtext span,
.bg-navy .cta-phone-subtext span {
  color: #DCE6EF !important;
}

.emergency-section .cta-phone-subtext a,
.final-cta-section .cta-phone-subtext a,
.bg-deep-navy .cta-phone-subtext a,
.bg-navy .cta-phone-subtext a {
  color: #FFFFFF !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  font-weight: 700 !important;
}

.emergency-section .cta-phone-subtext a:hover,
.final-cta-section .cta-phone-subtext a:hover,
.bg-deep-navy .cta-phone-subtext a:hover,
.bg-navy .cta-phone-subtext a:hover {
  color: var(--color-orange) !important;
}

