/* ============================================================
   BREA WATER HEATER PROS — styles.css
   Charcoal #111827 + Red #EF4444 | Outfit + DM Sans
   Mobile-first | WCAG AA | 2026-10-17
   ============================================================ */

/* ── Google Fonts are loaded in <head> via preconnect + link ── */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Primary color scale (Charcoal #111827) */
  --color-primary-50:  #F3F4F6;
  --color-primary-100: #E5E7EB;
  --color-primary-200: #D1D5DB;
  --color-primary-300: #9CA3AF;
  --color-primary-400: #6B7280;
  --color-primary-500: #4B5563;
  --color-primary-600: #374151;
  --color-primary-700: #1F2937;
  --color-primary-800: #111827;  /* primary */
  --color-primary-900: #0B0F1A;  /* darkest */

  /* Accent color (Red #EF4444) */
  --color-accent:      #EF4444;
  --color-accent-dark: #DC2626;
  --color-accent-light:#FCA5A5;
  --color-accent-glow: rgba(239, 68, 68, 0.25);

  /* Semantic aliases */
  --color-dark:        #0B0F1A;
  --color-off-white:   #F9FAFB;
  --color-border:      #E5E7EB;
  --color-border-dark: #374151;
  --color-text:        #111827;
  --color-text-muted:  #4B5563;
  --color-text-light:  #9CA3AF;
  --color-surface:     #FFFFFF;
  --color-surface-dark:#1F2937;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Fluid type scale */
  --text-h1:   clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --text-h2:   clamp(2rem,   3.5vw + 0.75rem, 3rem);
  --text-h3:   clamp(1.25rem,1.5vw + 0.5rem, 1.5rem);
  --text-body: clamp(1.0625rem, 0.5vw + 0.875rem, 1.125rem);
  --text-sm:   0.9375rem;
  --text-xs:   0.8125rem;

  /* Spacing */
  --section-padding:    clamp(4rem, 8vw, 7rem);
  --container-max:      1200px;
  --container-padding:  clamp(1rem, 4vw, 2rem);
  --gap-sm:   0.75rem;
  --gap-md:   1.25rem;
  --gap-lg:   2rem;
  --gap-xl:   3rem;

  /* Shadows */
  --shadow-ambient: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-direct:  0 8px 24px rgba(0,0,0,0.10);
  --shadow-card:    var(--shadow-ambient), var(--shadow-direct);
  --shadow-hover:   0 4px 16px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.14);
  --shadow-red-glow:0 0 0 3px rgba(239,68,68,0.30);

  /* Border */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill:9999px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-surface);
  overflow-x: hidden;
  /* bottom padding for mobile sticky bar */
  padding-bottom: 72px;
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

p {
  max-width: 68ch;
  color: var(--color-text-muted);
}

p + p { margin-top: 1rem; }

strong { font-weight: 700; color: var(--color-text); }

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* Accent underline on keyword phrase in H1 */
.accent-underline {
  position: relative;
  display: inline;
  white-space: nowrap;
}
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Gradient text (accent use in headings) */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), #F97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.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-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================================
   6. SECTIONS
   ============================================================ */
.section-white {
  background-color: var(--color-surface);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-offwhite {
  background-color: var(--color-off-white);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-tint {
  background-color: var(--color-primary-50);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-dark {
  background-color: var(--color-primary-800);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-dark p {
  color: var(--color-primary-300);
}

.section-dark .eyebrow {
  color: var(--color-accent-light);
}

/* Section header block */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header h2 {
  margin-top: 0.5rem;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
}

/* ============================================================
   7. WAVE / ANGLE DIVIDERS
   ============================================================ */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ============================================================
   8. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav__logo img,
.nav__logo svg {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* nav__links = the desktop <ul> menu */
.nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-200);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* Dropdown wrapper li */
.nav__dropdown-wrap {
  position: relative;
}

/* Dropdown toggle button */
.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-200);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  background: none;
  border: none;
}

.nav__dropdown-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* Dropdown submenu — hidden by default */
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--color-primary-700);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  z-index: 200;
  list-style: none;
  margin: 0;
}

.nav__dropdown-wrap:hover .nav__dropdown,
.nav__dropdown-wrap:focus-within .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-primary-200);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav__dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Nav CTA button */
.nav__cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav__cta { display: flex; }
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  transition: color var(--transition);
}

.nav__phone:hover { color: var(--color-accent); }

.nav__phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hamburger toggle */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--color-border-dark);
  color: #fff;
}

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile full-screen overlay menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-primary-900);
  overflow-y: auto;
  padding: 5rem var(--container-padding) 2rem;
}

.mobile-menu.is-open {
  display: block !important;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu__nav a,
.mobile-menu__section-title {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary-100);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu__nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }

.mobile-menu__section-title {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-400);
  margin-top: 1.5rem;
  padding-top: 0;
  padding-bottom: 0.25rem;
}

.mobile-menu__cta {
  margin-top: 2rem;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.5rem;
}

/* ============================================================
   9. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--color-dark);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}

/* Gradient mesh background */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(239, 68, 68, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(31, 41, 55, 0.8) 0%, transparent 60%),
    linear-gradient(160deg, #0B0F1A 0%, #111827 50%, #1F2937 100%);
}

/* Grain/noise overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero__content { max-width: 600px; }

.hero__content h1 {
  color: #fff;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__content p {
  color: var(--color-primary-300);
  font-size: 1.0625rem;
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Trust chip row below CTA */
.hero__chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero__chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-300);
  letter-spacing: 0.02em;
}

.hero__chip svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__chip-divider {
  width: 1px;
  height: 14px;
  background: var(--color-border-dark);
}

/* Hero illustration container */
.hero__illustration,
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

/* Hero water heater SVG — responsive */
.hero__wh-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

@media (min-width: 1024px) {
  .hero__wh-svg { max-width: 340px; }
}

/* Floating glass stat cards */
.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  min-width: 160px;
}

.glass-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.glass-card__icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.glass-card__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.125rem;
}

.glass-card__value,
.glass-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1;
}

.glass-card--top-left   { top: 5%; left: -10%; }
.glass-card--top-right  { top: 10%; right: -5%; }
.glass-card--bottom     { bottom: 5%; left: 5%; }

@media (max-width: 1023px) {
  /* Hide floating glass cards on mobile — they bleed outside
     the single-column layout and cover the H1 text */
  .glass-card { display: none; }
}

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  box-shadow: 0 4px 16px var(--color-accent-glow);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.25);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Dark section: secondary button adjusts */
.section-white .btn-secondary,
.section-offwhite .btn-secondary,
.section-tint .btn-secondary {
  color: var(--color-text);
  border-color: var(--color-border);
}

.section-white .btn-secondary:hover,
.section-offwhite .btn-secondary:hover,
.section-tint .btn-secondary:hover {
  border-color: var(--color-accent);
  background: rgba(239,68,68,0.05);
}

/* Full-width on mobile */
@media (max-width: 639px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   11. BENTO SERVICES GRID
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  /* Large card spans 2 rows on desktop */
  .bento-card--large {
    grid-row: span 2;
  }
}

.bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

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

.bento-card--large {
  background: linear-gradient(145deg, var(--color-primary-800), var(--color-primary-700));
  border-color: var(--color-border-dark);
  padding: 2.25rem;
}

.bento-card--large h3,
.bento-card--large p {
  color: #fff;
}

.bento-card--large p {
  color: var(--color-primary-300);
}

.bento-card--emergency {
  border-color: var(--color-accent-light);
  background: #FFF5F5;
  color: var(--color-text);
}

.bento-card--emergency h3 {
  color: var(--color-text);
}

.bento-card--emergency p {
  color: var(--color-text-muted);
}

.bento-card--emergency .bento-card__arrow {
  color: var(--color-accent);
}

.bento-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary-800);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card--large .bento-card__icon {
  background: rgba(239, 68, 68, 0.15);
}

.bento-card--large .bento-card__icon svg {
  color: var(--color-accent);
}

.bento-card--emergency .bento-card__icon {
  background: rgba(239, 68, 68, 0.10);
}

.bento-card--emergency .bento-card__icon svg {
  color: var(--color-accent);
}

.bento-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.bento-card--large h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  flex: 1;
}

.bento-card__arrow {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: auto;
  transition: gap var(--transition);
}

.bento-card__arrow svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.bento-card:hover .bento-card__arrow svg {
  transform: translateX(4px);
}

/* ============================================================
   12. SYMPTOM CHECKER
   ============================================================ */
.symptom-checker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .symptom-checker { grid-template-columns: repeat(2, 1fr); }
}

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

.symptom-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-ambient);
}

.symptom-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.symptom-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.symptom-item__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-600);
}

.symptom-item__title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.symptom-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 100%;
  line-height: 1.5;
}

/* ============================================================
   13. PROCESS STEPS
   ============================================================ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

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

/* Vertical connecting line */
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 56px;
  width: 2px;
  height: calc(100% - 56px);
  background: var(--color-border);
}

.process-step__number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-primary-200);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-surface);
  position: relative;
  z-index: 1;
  transition: border-color var(--transition), color var(--transition);
}

.process-step:hover .process-step__number {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.process-step__body {
  padding-top: 1rem;
}

.process-step__body h3 {
  margin-bottom: 0.375rem;
  font-size: 1.0625rem;
}

.process-step__body p {
  font-size: 0.9375rem;
}

/* Dark bg variant */
.section-dark .process-step__number {
  border-color: var(--color-border-dark);
  color: var(--color-primary-400);
  background: var(--color-surface-dark);
}

.section-dark .process-step:not(:last-child)::before {
  background: var(--color-border-dark);
}

/* ============================================================
   14. CALLOUT BOXES
   ============================================================ */
.callout-pro,
.callout-warn {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
}

.callout-pro {
  background: rgba(17,24,39,0.04);
  border-left: 4px solid var(--color-primary-800);
}

.callout-warn {
  background: #FFF5F5;
  border-left: 4px solid var(--color-accent);
}

.callout-pro__icon,
.callout-warn__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.callout-pro__icon svg  { color: var(--color-primary-800); }
.callout-warn__icon svg { color: var(--color-accent); }

.callout-pro__label,
.callout-warn__label {
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.callout-pro__label  { color: var(--color-primary-800); }
.callout-warn__label { color: var(--color-accent); }

.callout-pro p,
.callout-warn p {
  font-size: 0.9375rem;
  max-width: none;
  margin-top: 0;
}

/* Dark bg variant */
.section-dark .callout-pro {
  background: rgba(255,255,255,0.04);
  border-left-color: var(--color-primary-300);
}

.section-dark .callout-pro__label { color: var(--color-primary-300); }
.section-dark .callout-pro__icon svg { color: var(--color-primary-300); }

/* ============================================================
   15. FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--color-primary-300);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--color-primary-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition), background-color var(--transition);
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(45deg);
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.faq-item__a {
  padding: 0 1.375rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-item__a p { max-width: none; }

/* Dark bg variant */
.section-dark .faq-item {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

.section-dark .faq-item__q {
  color: #fff;
}

.section-dark .faq-item__q::after {
  background-color: rgba(255,255,255,0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.section-dark .faq-item[open] .faq-item__q::after {
  background-color: var(--color-accent);
}

.section-dark .faq-item__a {
  color: var(--color-primary-300);
}

/* ============================================================
   16. CTA BAND
   ============================================================ */
.cta-band {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--container-padding);
  text-align: center;
}

/* Radial glow effect */
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band__phone {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  letter-spacing: -0.02em;
  margin: 1.25rem 0;
  text-decoration: none;
  transition: color var(--transition);
}

.cta-band__phone:hover { color: var(--color-accent); }

.cta-band__trust {
  font-size: var(--text-sm);
  color: var(--color-primary-400);
  margin-top: 1.25rem;
}

/* ============================================================
   17. TRUST BADGE ROW
   ============================================================ */
.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.trust-badge-row__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  box-shadow: var(--shadow-ambient);
  transition: border-color var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

.trust-badge-row__badge:hover {
  border-color: var(--color-primary-300);
  transform: translateY(-2px);
}

.trust-badge-row__badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Dark bg variant */
.section-dark .trust-badge-row__badge {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
  color: var(--color-primary-300);
}

/* ============================================================
   18. SPLIT SECTIONS
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .split-section--reverse .split-section__visual {
    order: -1;
  }
}

.split-section__text h2 { margin-bottom: 1rem; }

.split-section__text p + p { margin-top: 0.75rem; }

.split-section__text .btn-primary,
.split-section__text .btn-secondary {
  margin-top: 1.5rem;
}

.split-section__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-section__visual svg {
  width: 100%;
  max-width: 420px;
}

/* ============================================================
   19. COST TABLE
   ============================================================ */
.cost-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-ambient);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cost-table caption {
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  padding: 0.75rem 1.25rem;
  color: var(--color-text-muted);
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
}

.cost-table th {
  background: var(--color-primary-800);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-sm);
}

.cost-table th:first-child { border-radius: 0; }

.cost-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  line-height: 1.5;
  vertical-align: top;
}

.cost-table tr:last-child td { border-bottom: none; }

.cost-table tr:nth-child(even) td {
  background: var(--color-off-white);
}

.cost-table td:last-child {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* ============================================================
   20. AREAS GRID
   ============================================================ */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-ambient);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.area-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.area-card__zip {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.area-card__arrow {
  color: var(--color-accent);
  transition: transform var(--transition);
}

.area-card:hover .area-card__arrow { transform: translateX(4px); }

/* ============================================================
   21. LOCATION MESH LINK
   ============================================================ */
.location-mesh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.location-mesh-link:hover { color: var(--color-accent-dark); }

.location-mesh-link svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   22. SERVICE PAGE LAYOUT (sidebar + TOC)
   ============================================================ */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 1024px) {
  .page-with-sidebar {
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
  }
}

.page-main {
  min-width: 0;
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sticky TOC */
.sticky-toc {
  position: sticky;
  top: 80px;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.9rem;
}

.sticky-toc__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.sticky-toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  counter-reset: toc;
  list-style: none;
}

.sticky-toc ol li {
  counter-increment: toc;
}

.sticky-toc ol li a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}

.sticky-toc ol li a::before {
  content: counter(toc);
  font-weight: 700;
  color: var(--color-primary-300);
  font-size: 0.75rem;
  min-width: 1rem;
}

.sticky-toc ol li a:hover { color: var(--color-accent); }

/* Mobile TOC as details */
.toc-mobile {
  display: block;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .toc-mobile { display: none; }
}

.toc-mobile summary {
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.875rem 1.25rem;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-mobile summary::-webkit-details-marker { display: none; }

.toc-mobile ol {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.toc-mobile ol li a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.toc-mobile ol li a:hover { color: var(--color-accent); }

/* Sticky call card */
.sticky-call-card {
  position: sticky;
  top: 80px;
  background: var(--color-primary-800);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.sticky-call-card h4 {
  color: #fff;
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.sticky-call-card p {
  color: var(--color-primary-300);
  font-size: 0.9rem;
  max-width: none;
  margin-bottom: 1rem;
}

.sticky-call-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.sticky-call-card__phone {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Hide sidebar TOC/call card on mobile — handled by TOC mobile + above-CTA block */
@media (max-width: 1023px) {
  .page-sidebar { display: none; }
}

/* ============================================================
   23. BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 0.875rem 0;
  margin-bottom: 0.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb li::after {
  content: '›';
  color: var(--color-primary-300);
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================================
   24. STICKY MOBILE CALL BAR
   ============================================================ */
.sticky-call-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-primary-900);
  border-top: 1px solid var(--color-border-dark);
  padding: 0.75rem var(--container-padding);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Slide in after 3 s so it doesn't immediately interrupt the user */
  animation: cta-bar-in 0.4s ease 3s both;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes cta-bar-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 1024px) {
  .sticky-call-bar { display: none; }
}

/* Label text on the left */
.sticky-call-bar__text {
  color: var(--color-primary-300);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  flex: 1;
}

.sticky-call-bar__text strong {
  display: block;
  color: #fff;
  font-size: 0.875rem;
}

.sticky-call-bar__phone {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.0625rem;
  color: #fff;
}

/* The full-width link used on location / blog pages */
.sticky-call-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.sticky-call-bar__link:hover,
.sticky-call-bar__link:active {
  background: var(--color-accent-dark, #dc2626);
  color: #fff;
  transform: scale(1.01);
}

.sticky-call-bar__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sticky-call-bar .btn-primary {
  flex-shrink: 0;
  padding: 0.625rem 1.125rem;
  font-size: 0.9rem;
}

/* ============================================================
   25. FOOTER
   ============================================================ */
.footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border-dark);
  padding: clamp(3rem, 6vw, 5rem) var(--container-padding) 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border-dark);
}

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer__col h4 {
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}

.footer__col p {
  color: var(--color-primary-400);
  font-size: var(--text-sm);
  max-width: 30ch;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: var(--color-primary-400);
  font-size: var(--text-sm);
  transition: color var(--transition);
  text-decoration: none;
}

.footer__links a:hover { color: #fff; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-primary-400);
  margin-bottom: 0.5rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary-500);
}

.footer__contact-item a {
  color: var(--color-primary-300);
  transition: color var(--transition);
  text-decoration: none;
}

.footer__contact-item a:hover { color: #fff; }

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-primary-500);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 38ch;
}

.footer__bottom {
  max-width: var(--container-max);
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-primary-500);
}

.footer__legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: var(--color-primary-500);
  transition: color var(--transition);
  text-decoration: none;
}

.footer__legal-links a:hover { color: var(--color-primary-300); }

/* ============================================================
   26. STARS / RATINGS
   ============================================================ */
.star-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star-rating__stars {
  display: flex;
  gap: 2px;
}

.star-rating__stars svg {
  width: 16px;
  height: 16px;
  fill: #F59E0B;
  color: #F59E0B;
}

.star-rating__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ============================================================
   27. ANIMATION (fade-up on scroll)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   28. BLOG / ARTICLE
   ============================================================ */
.article-body h2 {
  font-size: clamp(1.375rem, 2vw + 0.75rem, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-body h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.article-body p {
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: 68ch;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 0.375rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   29. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, var(--color-primary-800) 0%, var(--color-primary-700) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239,68,68,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page-hero h1 { color: #fff; margin-top: 0.5rem; }
.page-hero .eyebrow { color: var(--color-accent-light); }

.page-hero p {
  color: var(--color-primary-300);
  font-size: 1.0625rem;
  margin-top: 1rem;
  max-width: 54ch;
}

/* ============================================================
   30. UTILITY
   ============================================================ */
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }

.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.25rem; }
.mb-lg { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.items-center { align-items: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.rounded { border-radius: var(--radius-md); }
.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-ambient);
}

/* Inline icon wrapper */
.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary-700);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Referral disclosure small print */
.referral-note {
  font-size: var(--text-xs);
  color: var(--color-primary-400);
  line-height: 1.6;
}

/* ============================================================
   31. HERO — INNER PAGE VARIANT (.hero--inner)
   Used on location pages: downtown-brea, west-brea, etc.
   Root cause fix: hero has dark bg but no white-text overrides
   for this variant, so headings showed as dark-on-dark.
   ============================================================ */
.hero--inner {
  min-height: auto;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  align-items: flex-start;
}

.hero--inner h1,
.hero--inner h2,
.hero--inner h3,
.hero--inner h4 {
  color: #fff;
}

.hero--inner p,
.hero--inner .hero__sub {
  color: var(--color-primary-300);
}

.hero--inner .eyebrow {
  color: var(--color-accent-light);
}

.hero--inner .hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero--inner .hero__small-print {
  font-size: var(--text-xs);
  color: var(--color-primary-500);
  margin-top: 0.875rem;
  max-width: 54ch;
}

.hero--inner .hero__small-print a {
  color: var(--color-primary-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Breadcrumb on dark hero bg */
.hero--inner .breadcrumb ol {
  color: var(--color-primary-500);
}

.hero--inner .breadcrumb a {
  color: var(--color-primary-400);
}

.hero--inner .breadcrumb [aria-current="page"] {
  color: var(--color-primary-200);
}

.hero--inner .breadcrumb li::after {
  color: var(--color-primary-600);
}

/* ============================================================
   32. PAGE HERO SUB-ELEMENTS (missing from original)
   ============================================================ */
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page-hero__chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-hero__sub {
  color: var(--color-primary-300);
  font-size: 1.0625rem;
  margin-top: 1rem;
  max-width: 54ch;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Emergency variant — slightly more red-tinted dark */
.page-hero--emergency {
  background: linear-gradient(160deg, #160808 0%, #1F0A0A 50%, #240c0c 100%);
}

/* ============================================================
   33. NAV — ALTERNATE CLASS ALIASES
   8 pages use these names; CSS/JS only defined the primary set.
   ============================================================ */

/* nav__brand ≈ nav__logo-text */
.nav__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* nav__hamburger ≈ nav__toggle */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--color-border-dark);
  color: #fff;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav__hamburger { display: none; }
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* nav__dropdown-btn ≈ nav__dropdown-toggle */
.nav__dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-200);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav__dropdown-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* li.nav__dropdown ≈ li.nav__dropdown-wrap
   IMPORTANT: the UL .nav__dropdown rule sets display:none — override
   that when the class is on an <li> instead of a <ul>. */
li.nav__dropdown {
  display: list-item !important;
  position: relative;
}

/* nav__dropdown-menu ≈ nav__dropdown (the submenu <ul>) */
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--color-primary-700);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  z-index: 200;
  list-style: none;
  margin: 0;
}

li.nav__dropdown:hover > .nav__dropdown-menu,
li.nav__dropdown:focus-within > .nav__dropdown-menu {
  display: block;
}

.nav__dropdown-menu a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-primary-200);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav__dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* nav__toggle-bar ≈ nav__toggle span (inner bar spans) */
.nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   34. TRUST BADGE (alt class — without -row suffix)
   ============================================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-ambient);
  letter-spacing: 0.02em;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.section-dark .trust-badge {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
  color: var(--color-primary-300);
}

/* ============================================================
   Section 35 — Nav & mobile-menu fixes for location-page HTML pattern
   ============================================================ */

/* ── Desktop nav: location pages wrap dropdowns in div.nav__dropdown  ──────
   The base .nav__dropdown rule sets display:none (it's the submenu on service
   pages). When that same class is used as the WRAPPER div inside .nav__links
   we must un-hide it.  Use a direct-child selector so only the wrapper is
   affected, not the .nav__dropdown-menu inside it.                        */
.nav__links > .nav__dropdown {
  display: block !important;
  position: relative;
}

/* Submenu inside the wrapper stays hidden until hover/focus */
.nav__links > .nav__dropdown > .nav__dropdown-menu {
  display: none;
}
.nav__links > .nav__dropdown:hover > .nav__dropdown-menu,
.nav__links > .nav__dropdown:focus-within > .nav__dropdown-menu {
  display: block;
}

/* ── Desktop nav: plain <a> links (no .nav__link class) in .nav__links ──── */
.nav__links > a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-200);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* ── Mobile menu: ensure all text is readable on dark overlay ───────────── */
/* Location pages do not add .mobile-menu__nav class, so links inherit body
   color (dark charcoal) which is invisible on the dark menu background.
   Setting color on .mobile-menu itself fixes all descendants at once.     */
.mobile-menu {
  color: var(--color-primary-100);
}

/* Style plain <nav> + <a> pattern used on location pages */
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary-100);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.mobile-menu nav a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
/* Call button inside mobile nav (location pages use inline style + btn-primary) */
.mobile-menu nav a.btn-primary {
  margin-top: 1rem;
  text-align: center;
}

/* ============================================================
   Section 36 — Missing mobile-menu link classes (service pages)
   ============================================================ */

/* Header row with close button */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

/* Individual nav links */
.mobile-menu__link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu__link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

/* Indented sub-links */
.mobile-menu__link--sub {
  font-size: 0.9375rem;
  font-weight: 400;
  padding-left: 1.5rem;
  color: var(--color-primary-300);
}
.mobile-menu__link--sub:hover { color: #fff; }

/* Group/section wrapper */
.mobile-menu__group {
  margin-top: 0.5rem;
}

/* Section heading label */
.mobile-menu__group-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-400);
  padding: 0.75rem 1rem 0.25rem;
}

/* Call CTA inside mobile menu */
.mobile-menu__cta {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
}

/* Mobile navigation icon contrast fix — only changes hamburger line color */
.nav__toggle .nav__toggle-bar,
.nav__hamburger span {
  background-color: #7dd3fc !important;
}
