/* ==========================================================================
   Defend Sewer Repair - Main Stylesheet
   Mobile-First Responsive Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Kanit:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors — Matched to original defendsewerrepair.com */
  --color-primary: #00BFFF;
  --color-primary-rgb: 0, 191, 255;
  --color-primary-dark: #0CB1DC;
  --color-primary-light: #33CCFF;
  --color-accent: #00BFFF;
  --color-accent-rgb: 0, 191, 255;
  --color-background: #E9F8FC;
  --color-text: #121212;
  --color-text-rgb: 18, 18, 18;
  --color-text-muted: #5a6a7a;
  --color-text-light: #8896a6;
  --color-white: #FFFFFF;
  --color-dark: #0A1A3D;
  --color-dark-rgb: 10, 26, 61;
  --color-footer: #171717;
  --color-footer-rgb: 23, 23, 23;
  --color-footer-muted: #999999;
  --color-light-gray: #f7f9fc;
  --color-border: #e2e8f0;
  --color-border-light: #f0f4f8;

  /* Status Colors */
  --color-success: #22c55e;
  --color-success-light: #dcfce7;
  --color-success-dark: #16a34a;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-warning-dark: #d97706;
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-error-dark: #dc2626;
  --color-info: #00BFFF;
  --color-info-light: #e0f5fb;

  /* Typography */
  --font-heading: 'Kanit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font Sizes (Mobile-first) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --container-padding: 1rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 30px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 4px 16px rgba(0, 191, 255, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(0, 191, 255, 0.15);
  --shadow-primary: 0 4px 16px rgba(0, 191, 255, 0.35);
  --shadow-primary-hover: 0 8px 24px rgba(0, 191, 255, 0.45);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-toast: 600;
  --z-mobile-nav: 700;
  --z-header: 800;
  --z-mobile-cta: 900;

  /* Header */
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

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

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

::selection {
  background-color: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-dark);
}

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

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

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

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

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}

h5 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

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

strong,
b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

small {
  font-size: var(--text-sm);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-white); }
.text-dark { color: var(--color-dark); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-4);
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

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

/* Primary Button */
.btn--primary {
  background-color: var(--color-primary);
  color: #000000;
  box-shadow: none;
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: #000000;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

/* Secondary / Outline Button */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

/* White Button */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background-color: var(--color-light-gray);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Dark Button */
.btn--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn--dark:hover {
  background-color: #0d3050;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background-color: var(--color-light-gray);
  border-color: var(--color-text-muted);
}

/* Success Button */
.btn--success {
  background-color: var(--color-success);
  color: #000000;
}

.btn--success:hover {
  background-color: var(--color-success-dark);
  color: #000000;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

/* Button Sizes */
.btn--sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
  min-height: 40px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
  min-height: 56px;
}

.btn--xl {
  padding: 20px 44px;
  font-size: var(--text-lg);
  min-height: 60px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Button with icon */
.btn .btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--lg .btn-icon {
  width: 24px;
  height: 24px;
}

/* Phone CTA Button */
.btn--phone {
  background-color: var(--color-primary);
  color: #000000;
  font-weight: var(--font-weight-bold);
  box-shadow: none;
  gap: var(--space-2);
}

.btn--phone:hover {
  background-color: var(--color-primary-dark);
  color: #000000;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

.btn--phone .phone-icon {
  width: 18px;
  height: 18px;
  animation: phone-ring 2s ease-in-out infinite;
}

@keyframes phone-ring {
  0%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-12deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  25% { transform: rotate(0deg); }
}

/* Button Group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-group--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

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

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
  z-index: calc(var(--z-mobile-nav) + 1);
}

.header__logo img,
.header__logo svg {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: 1.2;
}

.header__logo-text span {
  color: var(--color-primary);
}

/* Desktop Navigation */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.06);
}

.nav__link--active {
  font-weight: var(--font-weight-semibold);
}

/* Nav Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav__dropdown-item:hover {
  background-color: rgba(var(--color-primary-rgb), 0.06);
  color: var(--color-primary);
}

/* Header Phone CTA */
.header__cta {
  display: none;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  z-index: calc(var(--z-mobile-nav) + 1);
  -webkit-tap-highlight-color: transparent;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.hamburger__line + .hamburger__line {
  margin-top: 6px;
}

/* Hamburger active state */
.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  z-index: var(--z-mobile-nav);
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-8);
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-mobile-nav) - 1);
  background: rgba(var(--color-footer-rgb), 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav__backdrop--visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--color-primary);
}

.mobile-nav__cta {
  margin-top: var(--space-8);
}

.mobile-nav__cta .btn {
  width: 100%;
}

.mobile-nav__contact {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.mobile-nav__contact p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.mobile-nav__phone {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* Prevent body scroll when nav is open */
body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-16);
  background: linear-gradient(
    135deg,
    var(--color-background) 0%,
    rgba(var(--color-primary-rgb), 0.08) 50%,
    var(--color-background) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-6);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero__title-highlight {
  color: var(--color-primary);
  position: relative;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* On very small screens, make hero buttons full width */
@media (max-width: 480px) {
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hero__trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__trust-stars {
  color: var(--color-warning);
}

.hero__image {
  margin-top: var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hero dark variant (for homepage) */
.hero--dark {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0d2d4a 50%, #0a2848 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero--dark::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero--dark::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero--dark .hero__title {
  color: var(--color-white);
}

.hero--dark .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero--dark .hero__trust-item {
  color: rgba(255, 255, 255, 0.75);
}

.hero--dark .hero__badge {
  background: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-primary-light);
  border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* Hero with background image variant */
.hero--image-bg {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-20);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.hero--image-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--color-dark-rgb), 0.85) 0%,
    rgba(var(--color-dark-rgb), 0.6) 100%
  );
  z-index: 0;
}

.hero--image-bg .hero__title {
  color: var(--color-white);
}

.hero--image-bg .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero--image-bg .hero__trust-item {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   7b. Sewer Scope CTA
   -------------------------------------------------------------------------- */
.sewer-scope-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-base);
}

.sewer-scope-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary-dark);
}

.sewer-scope-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.sewer-scope-cta__title strong {
  color: var(--color-primary);
}

.sewer-scope-cta__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  max-width: 420px;
}

/* Desktop: inline pill style */
@media (min-width: 768px) {
  .sewer-scope-cta {
    flex-direction: row;
    align-items: center;
    text-align: left;
    display: inline-flex;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
  }

  .sewer-scope-cta__title {
    font-size: var(--text-lg);
    white-space: nowrap;
    border-right: 2px solid var(--color-border);
    padding-right: var(--space-4);
  }

  .sewer-scope-cta__sub {
    font-size: var(--text-xs);
    max-width: 360px;
  }
}

/* --------------------------------------------------------------------------
   8. Trust Bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-white);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  min-width: max-content;
  padding: 0 var(--space-4);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
}

.trust-bar__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-bar__icon svg {
  width: 22px;
  height: 22px;
}

.trust-bar__text {
  display: flex;
  flex-direction: column;
}

.trust-bar__value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: 1.2;
}

.trust-bar__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.trust-bar__stars {
  color: var(--color-warning);
  font-size: var(--text-lg);
}

.trust-bar__divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-16) 0;
}

.section--sm {
  padding: var(--space-10) 0;
}

.section--lg {
  padding: var(--space-20) 0;
}

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

.section--light {
  background-color: var(--color-light-gray);
}

.section--ice {
  background-color: var(--color-background);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .section-label {
  background: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-accent);
}

.section--gradient {
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-white) 100%);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__header--left {
  text-align: left;
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--color-primary-rgb), 0.15);
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.card--flat:hover {
  box-shadow: var(--shadow-md);
}

.card--no-hover:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.card-grid--2 {
  grid-template-columns: 1fr;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card-grid--4 {
  grid-template-columns: 1fr;
}

/* Card Icon */
.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-accent-rgb), 0.06));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  color: var(--color-primary);
  font-size: var(--text-2xl);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__icon--sm {
  width: 44px;
  height: 44px;
}

.card__icon--lg {
  width: 68px;
  height: 68px;
}

.card__icon--rounded {
  border-radius: var(--radius-full);
}

/* Card Content */
.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-top: var(--space-4);
  transition: gap var(--transition-fast);
}

.card__link:hover {
  gap: var(--space-3);
}

.card__link::after {
  content: '\2192';
  transition: transform var(--transition-fast);
}

.card__link:hover::after {
  transform: translateX(2px);
}

/* Card Image */
.card__image {
  margin: calc(-1 * var(--space-6));
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.03);
}

/* Service Card */
.card--service {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.card--service .card__icon {
  margin-left: auto;
  margin-right: auto;
}

/* Area Card */
.card--area {
  padding: var(--space-5);
  cursor: pointer;
}

.card--area .card__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.card--area .card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Featured Card */
.card--featured {
  border: 2px solid var(--color-primary);
  padding: var(--space-8);
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* --------------------------------------------------------------------------
   11. Process Steps
   -------------------------------------------------------------------------- */
.process {
  position: relative;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
}

/* Vertical connecting line on mobile */
.process__steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(var(--color-primary-rgb), 0.2));
}

.process__step {
  display: flex;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

.process__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.process__content {
  flex: 1;
  padding-top: var(--space-2);
}

.process__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.process__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --------------------------------------------------------------------------
   12. Grants Table & Cards
   -------------------------------------------------------------------------- */
/* Filter Controls */
.grants-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.grants-filter__btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.grants-filter__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.grants-filter__btn--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Grants Grid */
.grants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* Grant Card */
.grant-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.grant-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.grant-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
}

.grant-card__area {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.grant-card__amount {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.grant-card__details {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* Grants Table (desktop view) */
.grants-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.grants-table {
  width: 100%;
  font-size: var(--text-sm);
}

.grants-table thead {
  background: var(--color-light-gray);
}

.grants-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  white-space: nowrap;
  border-bottom: 2px solid var(--color-border);
}

.grants-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  vertical-align: middle;
}

.grants-table tbody tr {
  transition: background-color var(--transition-fast);
}

.grants-table tbody tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.03);
}

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

/* --------------------------------------------------------------------------
   13. Status Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  line-height: 1.4;
  text-transform: capitalize;
}

.badge--available,
.badge--active,
.badge--success {
  background-color: var(--color-success-light);
  color: var(--color-success-dark);
}

.badge--unknown,
.badge--assessment,
.badge--warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.badge--exhausted,
.badge--expired,
.badge--error {
  background-color: var(--color-error-light);
  color: var(--color-error-dark);
}

.badge--loan,
.badge--info,
.badge--assessment-required {
  background-color: var(--color-info-light);
  color: var(--color-primary-dark);
}

.badge--neutral {
  background-color: var(--color-light-gray);
  color: var(--color-text-muted);
}

.badge--lg {
  padding: 6px 16px;
  font-size: var(--text-sm);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge--available .badge-dot { background-color: var(--color-success); }
.badge--unknown .badge-dot { background-color: var(--color-warning); }
.badge--exhausted .badge-dot { background-color: var(--color-error); }
.badge--loan .badge-dot { background-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   14. I&I Programs
   -------------------------------------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.program-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.program-card__header {
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
}

.program-card__header h3 {
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.program-card__header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
}

.program-card__body {
  padding: var(--space-6);
}

.program-card__stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.program-card__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.program-card__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   15. Benefits List
   -------------------------------------------------------------------------- */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.benefits-list__item + .benefits-list__item {
  border-top: 1px solid var(--color-border-light);
}

.benefits-list__check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
}

.benefits-list__check::before {
  content: '\2713';
}

.benefits-list__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.benefits-list__text strong {
  color: var(--color-text);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.benefit-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  font-size: var(--text-xl);
}

.benefit-item__content h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.benefit-item__content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   16. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.faq__item:hover {
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.faq__item--open {
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-gray);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.faq__icon::before {
  content: '+';
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  line-height: 1;
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
  background: rgba(var(--color-primary-rgb), 0.1);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.faq__answer-inner p + p {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   17. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, #0d3050 50%, var(--color-primary-dark) 100%);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner__title {
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.cta-banner__phone {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-top: var(--space-4);
}

.cta-banner__phone a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-footer);
  color: var(--color-footer-muted);
  padding: var(--space-16) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

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

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.footer__logo-text span {
  color: var(--color-primary);
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-footer-muted);
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-footer-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Footer Columns */
.footer__column h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
}

.footer__links li + li {
  margin-top: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-primary);
  padding-left: var(--space-1);
}

/* Footer Contact Info */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-text {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  line-height: var(--leading-normal);
}

.footer__contact-text a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-text a:hover {
  color: var(--color-primary);
}

/* Contact Info (used on light backgrounds, e.g. /contact/ page) */
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.contact-info__icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-normal);
}

.contact-info__label {
  color: var(--color-dark);
  font-weight: 600;
}

.contact-info__value {
  color: var(--color-text);
}

.contact-info__link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
}

.contact-info__link:hover {
  color: var(--color-primary);
}

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
}

.footer__made-with {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
  margin-top: 0.25rem;
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-sm);
  color: var(--color-footer-muted);
}

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

/* --------------------------------------------------------------------------
   19. Contact Form
   -------------------------------------------------------------------------- */
.form {
  max-width: 640px;
}

.form--centered {
  margin-left: auto;
  margin-right: auto;
}

.form__group {
  margin-bottom: var(--space-5);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form__label--required::after {
  content: ' *';
  color: var(--color-error);
}

.form__input,
.form__select,
.form__textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-light);
}

.form__input:hover,
.form__select:hover,
.form__textarea:hover {
  border-color: var(--color-text-light);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

.form__input--error,
.form__select--error,
.form__textarea--error {
  border-color: var(--color-error);
}

.form__input--error:focus,
.form__select--error:focus,
.form__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

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

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a7a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}

.form__helper {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin-top: var(--space-1);
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form__submit {
  margin-top: var(--space-6);
}

/* Checkbox / Radio */
.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  min-height: 44px;
  padding: var(--space-2) 0;
}

.form__checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form__checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --------------------------------------------------------------------------
   20. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs__item::before {
  content: '/';
  color: var(--color-text-light);
}

.breadcrumbs__item:first-child::before {
  display: none;
}

.breadcrumbs__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--color-primary);
}

.breadcrumbs__current {
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   21. Service Area Page
   -------------------------------------------------------------------------- */
.area-hero {
  padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
  background: var(--color-background);
}

.area-hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.area-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* Neighborhood Tags */
.neighborhood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.neighborhood-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 40px;
}

.neighborhood-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.04);
}

.neighborhood-tag--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Highlight Cards for Area Pages */
.highlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.05), rgba(var(--color-accent-rgb), 0.03));
  border: 1px solid rgba(var(--color-primary-rgb), 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.highlight-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.highlight-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.highlight-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Area Stats */
.area-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.area-stat {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.area-stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: block;
}

.area-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   22. Before/After Comparison
   -------------------------------------------------------------------------- */
.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.before-after__panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.before-after__panel img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.before-after__label {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  color: var(--color-white);
}

.before-after__label--before {
  background: var(--color-error);
}

.before-after__label--after {
  background: var(--color-success);
}

/* Side-by-side slider variant */
.before-after--slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

.before-after--slider .before-after__panel {
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   23. For Professionals Section
   -------------------------------------------------------------------------- */
.professionals {
  position: relative;
  padding: var(--space-10);
  background: linear-gradient(135deg, #fef3c7 0%, #fff7e6 50%, #fffbeb 100%);
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.professionals::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-warning), #fbbf24, var(--color-warning));
}

.professionals__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-warning-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.professionals__title {
  font-size: var(--text-2xl);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.professionals__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 640px;
}

.professionals__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.professionals__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.professionals__feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-warning-dark);
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.professionals__feature-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.professionals__feature-text strong {
  color: var(--color-text);
}

/* Alternative blue professional variant for inspectors */
.professionals--blue {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #f0f9ff 100%);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.professionals--blue::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.professionals--blue .professionals__badge {
  background: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary-dark);
}

.professionals--blue .professionals__feature-icon {
  background: rgba(var(--color-primary-rgb), 0.12);
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   24. Mobile Phone CTA (Fixed Bottom)
   -------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-mobile-cta);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
  transform: translateY(0);
  transition: transform var(--transition-base);
}

.mobile-cta--hidden {
  transform: translateY(100%);
}

.mobile-cta__inner {
  display: flex;
  gap: var(--space-3);
}

.mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-pill);
  text-decoration: none;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-cta__btn:active {
  transform: scale(0.97);
}

.mobile-cta__btn--call {
  background: var(--color-primary);
  color: #000000;
  box-shadow: none;
}

.mobile-cta__btn--call:hover {
  background: var(--color-primary-dark);
  color: #000000;
}

.mobile-cta__btn--form {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.mobile-cta__btn--form:hover {
  background: rgba(var(--color-primary-rgb), 0.06);
  color: var(--color-primary);
}

.mobile-cta__btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Add bottom padding to body to account for mobile CTA */
body.has-mobile-cta {
  padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   25. Animations
   -------------------------------------------------------------------------- */
/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left--visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children--visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children--visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children--visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children--visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children--visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children--visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children--visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children--visible > *:nth-child(8) { transition-delay: 560ms; }

.stagger-children--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in--visible {
  opacity: 1;
  transform: scale(1);
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Shimmer loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-light-gray) 25%, #e8ecf1 50%, var(--color-light-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .fade-in-up,
  .fade-in-left,
  .fade-in-right,
  .scale-in,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   26. Utility Classes
   -------------------------------------------------------------------------- */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

/* --------------------------------------------------------------------------
   26b. Responsive: Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.875rem;
    --header-height: 64px;
  }

  /* Hero — tighter spacing on very small screens */
  .hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-10);
  }
  .hero__title {
    font-size: var(--text-2xl);
  }
  .hero__subtitle {
    font-size: var(--text-base);
  }
  .hero__badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }
  .hero__trust {
    gap: var(--space-2) var(--space-3);
  }
  .hero__trust-item {
    font-size: var(--text-xs);
  }

  /* Trust bar — compact */
  .trust-bar {
    padding: var(--space-4) 0;
  }
  .trust-bar__item {
    padding: var(--space-2) var(--space-3);
  }
  .trust-bar__icon {
    width: 32px;
    height: 32px;
  }
  .trust-bar__icon svg {
    width: 18px;
    height: 18px;
  }
  .trust-bar__value {
    font-size: var(--text-base);
  }
  .trust-bar__label {
    font-size: 0.625rem;
  }
  .trust-bar__divider {
    height: 32px;
  }

  /* Section — less padding */
  .section {
    padding: var(--space-10) 0;
  }
  .section__header {
    margin-bottom: var(--space-8);
  }
  .section-title {
    font-size: var(--text-xl);
  }
  .section-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  /* Process — compact */
  .process__steps::before {
    left: 19px;
    top: 36px;
    bottom: 36px;
  }
  .process__number {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
  .process__title {
    font-size: var(--text-base);
  }
  .process__text {
    font-size: var(--text-xs);
  }

  /* Cards — compact */
  .card {
    padding: var(--space-4);
  }
  .card--service {
    padding: var(--space-5) var(--space-4);
  }
  .card__title {
    font-size: var(--text-base);
  }
  .card__text {
    font-size: var(--text-xs);
  }
  .card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-3);
  }
  .card__icon svg {
    width: 22px;
    height: 22px;
  }

  /* Benefits — compact */
  .benefits-list__text {
    font-size: var(--text-sm);
  }
  .benefits-list__check {
    width: 20px;
    height: 20px;
    font-size: var(--text-xs);
  }

  /* Before/After — compact */
  .before-after__panel .card {
    padding: var(--space-4);
  }

  /* CTA Banner — compact */
  .cta-banner {
    padding: var(--space-10) 0;
  }
  .cta-banner__title {
    font-size: var(--text-xl);
  }
  .cta-banner__text {
    font-size: var(--text-base);
  }
  .cta-banner__phone {
    font-size: var(--text-2xl);
  }

  /* FAQ — compact */
  .faq__question {
    padding: var(--space-4);
    font-size: var(--text-sm);
  }
  .faq__answer-inner {
    padding: 0 var(--space-4) var(--space-4);
    font-size: var(--text-sm);
  }

  /* Footer — compact */
  .footer {
    padding: var(--space-10) 0 0;
  }
  .footer__grid {
    gap: var(--space-6);
    padding-bottom: var(--space-8);
  }

  /* Mobile CTA — ensure good touch targets */
  .mobile-cta__btn {
    padding: 12px var(--space-3);
    font-size: var(--text-sm);
    min-height: 48px;
  }

  /* Grants filter */
  .grants-filter__btn {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
  }

  /* Area stats */
  .area-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .area-stat {
    padding: var(--space-3);
  }
  .area-stat__number {
    font-size: var(--text-xl);
  }

  /* Professionals section */
  .professionals {
    padding: var(--space-6) var(--space-4);
  }
  .professionals__title {
    font-size: var(--text-xl);
  }
  .professionals__text {
    font-size: var(--text-sm);
  }

  /* Neighborhood tags */
  .neighborhood-tag,
  .area-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    min-height: 36px;
  }

  /* Forms */
  .form__input,
  .form__select,
  .form__textarea {
    padding: 12px 14px;
    font-size: var(--text-base); /* Prevent zoom on iOS */
  }

  /* Buttons — ensure proper touch targets */
  .btn {
    padding: 12px 24px;
    font-size: var(--text-sm);
    min-height: 44px;
  }
  .btn--lg {
    padding: 14px 28px;
    font-size: var(--text-base);
    min-height: 48px;
  }
}

/* --------------------------------------------------------------------------
   27. Responsive: Tablet (768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  /* Container */
  :root {
    --container-padding: 1.5rem;
  }

  /* Typography */
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  h4 { font-size: var(--text-xl); }

  .section-title {
    font-size: var(--text-3xl);
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-20);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__actions {
    flex-direction: row;
  }

  .hero__image img {
    height: auto;
  }

  /* Trust Bar */
  .trust-bar__inner {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Cards */
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card__image img {
    height: 220px;
  }

  /* Grants */
  .grants-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Programs */
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Before/After */
  .before-after {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after__panel img {
    height: 300px;
  }

  /* Professionals */
  .professionals__features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Form */
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: var(--text-3xl);
  }

  .cta-banner__actions {
    flex-direction: row;
    justify-content: center;
  }

  /* Area Stats */
  .area-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Area Hero */
  .area-hero__title {
    font-size: var(--text-4xl);
  }

  /* Process - start horizontal transition */
  .process__steps {
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   28. Responsive: Desktop (1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  /* Container */
  :root {
    --container-padding: 2rem;
    --header-height: 80px;
  }

  /* Typography */
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }

  .section-title {
    font-size: var(--text-4xl);
  }

  .section-subtitle {
    font-size: var(--text-xl);
  }

  /* Header */
  .nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-nav,
  .mobile-nav__backdrop {
    display: none;
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-24);
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
  }

  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }

  .hero__image {
    margin-top: 0;
  }

  /* Sections */
  .section {
    padding: var(--space-20) 0;
  }

  .section--lg {
    padding: var(--space-24) 0;
  }

  .section__header {
    margin-bottom: var(--space-16);
  }

  /* Cards */
  .card {
    padding: var(--space-8);
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .card--service {
    padding: var(--space-10) var(--space-8);
  }

  .card__image img {
    height: 240px;
  }

  /* Process Steps - Horizontal layout */
  .process__steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .process__steps::before {
    left: 48px;
    right: 48px;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), rgba(var(--color-primary-rgb), 0.2));
  }

  .process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: var(--space-4);
  }

  .process__content {
    padding-top: 0;
  }

  /* Grants */
  .grants-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Programs */
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--space-20) 0;
  }

  .cta-banner__title {
    font-size: var(--text-4xl);
  }

  /* Before/After */
  .before-after__panel img {
    height: 350px;
  }

  /* Mobile CTA - hide on desktop */
  .mobile-cta {
    display: none;
  }

  body.has-mobile-cta {
    padding-bottom: 0;
  }

  /* FAQ */
  .faq__question {
    font-size: var(--text-lg);
    padding: var(--space-6) var(--space-8);
  }

  .faq__answer-inner {
    padding: 0 var(--space-8) var(--space-8);
    font-size: var(--text-base);
  }

  /* Professionals */
  .professionals {
    padding: var(--space-12);
  }

  .professionals__title {
    font-size: var(--text-3xl);
  }
}

/* --------------------------------------------------------------------------
   29. Responsive: Large (1200px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  /* Typography */
  h1 { font-size: var(--text-6xl); }

  /* Hero */
  .hero__title {
    font-size: var(--text-6xl);
  }

  .hero__inner {
    gap: var(--space-16);
  }

  /* Cards */
  .card-grid {
    gap: var(--space-8);
  }

  /* Section spacing */
  .section {
    padding: var(--space-24) 0;
  }

  .section--lg {
    padding: var(--space-32) 0;
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: var(--text-5xl);
  }

  /* Grants */
  .grants-grid {
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   30. Print Styles
   -------------------------------------------------------------------------- */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
    color: #666 !important;
  }

  a[href^='#']::after,
  a[href^='javascript:']::after,
  a[href^='tel:']::after {
    content: '';
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  /* Hide non-essential elements */
  .header,
  .mobile-cta,
  .hamburger,
  .mobile-nav,
  .mobile-nav__backdrop,
  .footer__social,
  .btn,
  .cta-banner,
  .faq__icon {
    display: none !important;
  }

  /* Show FAQ answers */
  .faq__answer {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Simplify layout */
  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding: 20pt 0;
  }

  .card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  .card-grid,
  .grants-grid,
  .programs-grid,
  .benefits-grid {
    display: block;
  }

  .card-grid > *,
  .grants-grid > *,
  .programs-grid > *,
  .benefits-grid > * {
    margin-bottom: 12pt;
  }

  .footer {
    padding: 20pt 0;
  }

  .footer__grid {
    display: block;
  }

  .footer__column {
    margin-bottom: 12pt;
  }

  /* Badge colors for print */
  .badge {
    border: 1px solid #999;
    padding: 2pt 6pt;
  }
}

/* ==========================================================================
   Template ↔ CSS Class Aliases
   Resolves naming differences between EJS templates and CSS definitions.
   ========================================================================== */

/* cards-grid → card-grid */
.cards-grid { display: grid; gap: var(--space-6); }
.cards-grid--2 { grid-template-columns: 1fr; }
.cards-grid--3 { grid-template-columns: 1fr; }
.cards-grid--4 { grid-template-columns: 1fr; }

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

/* grants-card (full component, templates use plural) */
.grants-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid rgba(0,0,0,0.06);
}
.grants-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.grants-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--color-light-gray);
}
.grants-card__city {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  margin: 0;
}
.grants-card__body {
  padding: var(--space-4) var(--space-5);
}
.grants-card__row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.grants-card__label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 70px;
  flex-shrink: 0;
}
.grants-card__value {
  font-size: var(--text-sm);
  color: var(--color-text);
  word-break: break-word;
}
.grants-card__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.grants-card__actions .btn {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
}

/* grants-filter */
.grants-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  justify-content: center;
}
.grants-filter__btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 2px solid rgba(0,0,0,0.1);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-base);
}
.grants-filter__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.grants-filter__btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* for-professionals → professionals aliases */
.for-professionals {
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--color-primary);
}
.for-professionals::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.for-professionals--realtor {
  border-top-color: #f59e0b;
}
.for-professionals--realtor::before {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}
.for-professionals--inspector {
  border-top-color: var(--color-primary);
}
.for-professionals__badge {
  display: inline-block;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.for-professionals--realtor .for-professionals__badge {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}
.for-professionals__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.for-professionals__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}
.for-professionals__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}
.for-professionals__features li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}
.for-professionals__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* process-steps → process aliases */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
  padding-left: var(--space-10);
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}
.process-step {
  position: relative;
}
.process-step__number {
  position: absolute;
  left: calc(-1 * var(--space-10));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  z-index: 1;
}
.process-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.process-step__text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .process-steps {
    flex-direction: row;
    padding-left: 0;
    padding-top: var(--space-10);
  }
  .process-steps::before {
    left: 0;
    right: 0;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  }
  .process-step {
    flex: 1;
    text-align: center;
    padding-top: var(--space-6);
  }
  .process-step__number {
    left: 50%;
    top: calc(-1 * var(--space-10));
    transform: translateX(-50%);
  }
}

/* area-neighborhoods / area-tag → neighborhood aliases */
.area-neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.area-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--color-light-gray);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition-base);
}
.area-tag:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

/* breadcrumbs__separator */
.breadcrumbs__separator {
  margin: 0 var(--space-2);
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

/* before-after panel modifiers */
.before-after__panel--before {
  background-color: #fef2f2;
  border: 2px solid #fecaca;
}
.before-after__panel--after {
  background-color: #f0fdf4;
  border: 2px solid #bbf7d0;
}

/* nav-toggle alias (used on hamburger button) */
.nav-toggle { /* handled by .hamburger styles */ }

/* ii-programs grid */
.ii-programs {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ii-programs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ii-programs { grid-template-columns: repeat(3, 1fr); }
}

/* grants-grid (wrapper for grants cards) */
.grants-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grants-grid { grid-template-columns: repeat(2, 1fr); }
}

/* section--gradient */
.section--gradient {
  background: linear-gradient(135deg, var(--color-dark) 0%, #0d3050 100%);
  color: var(--color-white);
}
.section--gradient .section-label {
  color: var(--color-primary-light);
}
.section--gradient .section-title {
  color: var(--color-white);
}
.section--gradient .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Grant Info Page
   -------------------------------------------------------------------------- */

/* Icon badge for about-program cards */
.grant-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.grant-info__icon svg {
  width: 28px;
  height: 28px;
}

/* Search bar */
.grant-info__search-wrap {
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

.grant-info__search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.grant-info__search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12);
}

.grant-info__search-icon {
  flex-shrink: 0;
  color: var(--color-text-light);
  width: 20px;
  height: 20px;
}

.grant-info__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  padding: var(--space-2) 0;
}

.grant-info__search-input::placeholder {
  color: var(--color-text-light);
}

/* Cities grid */
.grant-info__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.grant-info__city-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.grant-info__city-tag:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* No results */
.grant-info__no-results {
  text-align: center;
  padding: var(--space-10) 0;
}

.grant-info__no-results p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* Steps */
.grant-info__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.grant-info__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
}

.grant-info__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #000;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
}

.grant-info__step-content h3 {
  margin-bottom: var(--space-2);
}

.grant-info__step-content p {
  margin-bottom: 0;
}

/* Section compact */
.section--compact {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .section--compact {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}
