/* ============================================================
   GarageDoorRepairPhoenix — Premium Light Theme Design System
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap");

/* ---------- DESIGN TOKENS ---------- */
:root {
  --primary: #0a2540;
  --primary-light: #164677;
  --primary-dark: #051322;
  --primary-glow: rgba(10, 37, 64, 0.15);

  --accent: #f06a25;
  --accent-hover: #d15617;
  --accent-light: #fff2eb;
  --accent-glow: rgba(240, 106, 37, 0.3);
  --accent-gradient: linear-gradient(135deg, #f06a25, #f88748);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-bg: #fef2f2;

  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f5f7;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px rgba(10, 37, 64, 0.05);

  --shadow-xs: 0 2px 4px rgba(10, 37, 64, 0.03);
  --shadow-sm: 0 4px 12px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 24px 64px rgba(10, 37, 64, 0.16);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --max-width: 1280px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

ul,
ol {
  list-style: none;
}

p {
  margin-bottom: 1.25rem;
}

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

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

a:focus-visible {
  outline-offset: 2px;
}

button:focus-visible {
  outline-offset: 2px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 20px 5px var(--accent-glow);
  }
}

@keyframes barPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-target.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background: var(--gray-100);
  position: relative;
}

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

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

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

.section-tight {
  padding: 56px 0;
}

/* ---------- HEADER & EMERGENCY BAR ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  z-index: 10000;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 12px;
}

.emergency-top-bar {
  background: var(--accent-gradient);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  animation: barPulse 4s ease-in-out infinite;
}

.emergency-top-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-family: var(--font-heading);
}

.logo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-gradient);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* ---------- NAVIGATION (DESKTOP) ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.nav > a,
.nav .dropdown > a {
  padding: 10px 14px;
  color: var(--gray-700);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition-fast), color var(--transition-fast);
  font-size: 0.95rem;
  line-height: 1.2;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav > a:hover,
.nav .dropdown > a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav > a.active,
.nav .dropdown > a.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--gray-100);
}

.nav .nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 11px 20px;
  font-weight: 700;
  margin-left: 8px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.nav .nav-cta:hover {
  background: var(--primary-light);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: " \25BC";
  font-size: 0.6rem;
  margin-left: 6px;
  opacity: 0.5;
  transition: transform var(--transition-fast);
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
  opacity: 0.8;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 2000;
  padding: 12px 0;
  border: 1px solid var(--gray-200);
  /* Padding-top inside the box closes the visual gap so hovering between
     trigger and menu does not lose hover state */
  margin-top: 0;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
  transform: rotate(45deg);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  border-radius: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--gray-700);
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

/* Right-side dropdown — last 2 nav-level dropdowns risk overflowing the
   viewport when centered. Anchor them to the right edge of the trigger. */
.nav .dropdown:nth-last-of-type(1) .dropdown-menu:not(.mega-menu),
.nav .dropdown:nth-last-of-type(2) .dropdown-menu:not(.mega-menu) {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}

.nav .dropdown:nth-last-of-type(1) .dropdown-menu:not(.mega-menu)::after,
.nav .dropdown:nth-last-of-type(2) .dropdown-menu:not(.mega-menu)::after {
  left: auto;
  right: 24px;
  margin-left: 0;
}

.nav .dropdown:nth-last-of-type(1):hover .dropdown-menu:not(.mega-menu),
.nav .dropdown:nth-last-of-type(2):hover .dropdown-menu:not(.mega-menu),
.nav .dropdown:nth-last-of-type(1):focus-within .dropdown-menu:not(.mega-menu),
.nav .dropdown:nth-last-of-type(2):focus-within .dropdown-menu:not(.mega-menu) {
  transform: translateX(0) translateY(0);
}

.mega-menu {
  width: min(900px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 32px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
}

.dropdown:hover .mega-menu,
.dropdown:focus-within .mega-menu {
  transform: translateX(-50%) translateY(0);
}

.mega-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  padding: 0 12px 10px;
  font-weight: 800;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
  line-height: 1.3;
}

.mega-col a {
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  display: block;
  border-radius: var(--radius-sm);
  white-space: normal;
}

.mega-col a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

/* ---------- MOBILE TOGGLE (HAMBURGER → X) ---------- */
.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 0;
  flex: 0 0 auto;
}

.mobile-toggle:hover {
  background: var(--gray-100);
}

.mobile-toggle::before,
.mobile-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}

.mobile-toggle::before {
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.mobile-toggle[aria-expanded="true"]::before {
  box-shadow: 0 0 0 transparent, 0 0 0 transparent;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-close {
  display: none;
}

/* ---------- TABLET TIGHTENING (avoid cramped desktop nav) ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-inner {
    padding: 14px 20px;
    gap: 12px;
  }

  .nav {
    gap: 0;
  }

  .nav > a,
  .nav .dropdown > a {
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .nav .nav-cta {
    padding: 10px 16px;
    font-size: 0.9rem;
    margin-left: 6px;
  }

  .logo > span:not(.logo-icon) {
    font-size: 0.95rem;
  }
}

/* ---------- MOBILE NAV (≤ 1023px) ---------- */
@media (max-width: 1023px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
  }

  .site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    padding: 12px 20px;
    gap: 12px;
  }

  .logo {
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
  }

  .logo > span:not(.logo-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }

  /* Slide-in panel */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 2000;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 0 24px;
    box-shadow: -16px 0 40px rgba(10, 37, 64, 0.18);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    line-height: 1.3;
  }

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

  /* Close button */
  .nav-close {
    display: flex !important;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: background 0.2s ease, transform 0.3s ease;
    padding: 0;
  }

  .nav-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
  }

  /* Reset desktop link styles inside the panel */
  .nav > a,
  .nav .dropdown > a {
    padding: 14px 24px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    white-space: normal;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav > a:hover,
  .nav .dropdown > a:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 24px;
  }

  .nav > a.active {
    color: var(--accent);
    box-shadow: inset 4px 0 0 var(--accent);
  }

  /* Dropdown chevron + accordion */
  .dropdown > a::after {
    display: inline-block;
    content: '\25BC';
    font-size: 0.7rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-left: 12px;
    transform: rotate(0);
  }

  .dropdown:hover > a::after {
    transform: rotate(0);
  }

  .dropdown.open > a::after {
    transform: rotate(180deg);
    opacity: 1;
  }

  .dropdown.open > a {
    color: var(--primary);
    background: var(--gray-50);
  }

  .dropdown-menu {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    display: block;
    background: var(--gray-50);
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.35s ease;
    border-radius: 0;
  }

  .dropdown-menu::before,
  .dropdown-menu::after {
    display: none;
  }

  .dropdown.open .dropdown-menu {
    max-height: 1200px;
  }

  .dropdown-menu a {
    padding: 11px 32px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    display: block;
    font-weight: 500;
    white-space: normal;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .dropdown-menu a:hover {
    background: var(--white);
    color: var(--primary);
  }

  /* Mega menu collapsed into single-column accordion */
  .mega-menu {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }

  .mega-col {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
    padding-top: 4px;
  }

  .mega-col:last-child {
    border-bottom: none;
    padding-bottom: 8px;
  }

  .mega-col h4 {
    font-size: 0.72rem;
    padding: 14px 32px 6px;
    margin: 0;
    color: var(--gray-500);
    border: none;
    line-height: 1.3;
  }

  .mega-col a {
    padding: 10px 32px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--gray-700);
    border-radius: 0;
    border-bottom: none;
  }

  .mega-col a:hover {
    background: var(--white);
    color: var(--primary);
  }

  /* Phone CTA — keep prominent inside the panel */
  .nav .nav-cta {
    margin: 16px 20px 8px;
    padding: 14px 20px;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-md);
    justify-content: center;
    font-size: 1rem;
    line-height: 1.2;
    width: auto;
    flex: 0 0 auto;
  }

  .nav .nav-cta:hover {
    background: var(--accent-hover);
    color: var(--white);
    padding-left: 20px;
    transform: none;
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
  }

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

/* ---------- SMALL PHONES ---------- */
@media (max-width: 480px) {
  .header-inner {
    padding: 10px 16px;
  }

  .logo {
    gap: 8px;
  }

  .logo > span:not(.logo-icon) {
    font-size: 0.85rem;
  }

  .nav {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ---------- HERO ---------- */
.hero {
  background: var(--white);
  padding: 120px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0) 85%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--white);
  box-shadow: var(--shadow-md), 0 0 0 0 var(--accent-glow);
  animation: pulseGlow 3s infinite;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px 5px var(--accent-glow);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--white);
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
  margin-top: -1px;
}

.trust-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
  font-family: var(--font-heading);
}

.trust-item .icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

/* ---------- SECTION TITLES ---------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary);
  position: relative;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 6px;
  background: var(--accent-gradient);
  border-radius: 3px;
  margin-top: 16px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 800px;
  margin-bottom: 48px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- SERVICE CARDS ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.service-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--gray-600);
  margin-bottom: 24px;
  flex: 1;
}

.service-card-body .btn {
  width: fit-content;
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* ---------- FEATURE CARDS ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: left;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-600);
}

/* ---------- EMERGENCY BLOCK ---------- */
.emergency-block {
  background: var(--accent-gradient);
  color: var(--white);
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-2xl);
  margin: 32px 0;
  box-shadow: var(--shadow-lg), 0 0 0 0 var(--accent-glow);
  position: relative;
  overflow: hidden;
  animation: pulseGlow 4s infinite;
}

.emergency-block::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.emergency-block h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.emergency-block p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.emergency-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.emergency-list li {
  padding: 8px 0 8px 32px;
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
}

.emergency-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--white);
  font-weight: 800;
  background: rgba(0, 0, 0, 0.2);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  top: 12px;
}

/* ---------- AREA CARDS ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.area-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.area-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.area-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.area-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.area-read-more {
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.area-read-more:hover {
  color: var(--accent);
}

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  background: transparent;
  padding: 24px 56px 24px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  color: var(--gray-900);
  font-family: var(--font-heading);
  position: relative;
}

.faq-question .arrow {
  display: none;
}

.faq-question::after {
  content: '\25BC';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-slow);
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 24px 24px;
  max-height: 1000px;
}

/* ---------- TABLES ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pricing-table,
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--white);
}

.pricing-table th,
.comp-table th {
  background: var(--gray-50);
  color: var(--gray-900);
  font-weight: 800;
  font-family: var(--font-heading);
  padding: 16px 24px;
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
}

.pricing-table td,
.comp-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.pricing-table tr:hover td,
.comp-table tr:hover td {
  background: var(--gray-50);
}

/* ---------- PROCESS STEPS ---------- */
.process-steps {
  position: relative;
  padding-left: 72px;
  margin: 32px 0;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  opacity: 0.5;
}

.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

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

.process-step .step-number {
  position: absolute;
  left: -72px;
  top: 14px;
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  box-shadow: 0 0 0 6px var(--white);
  z-index: 2;
  line-height: 1;
}

.process-step:hover .step-number {
  background: var(--accent);
  color: var(--white);
}

.process-step h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.process-step p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ---------- SYMPTOM LISTS ---------- */
.symptom-list {
  padding-left: 0;
}

.symptom-list li {
  padding: 12px 16px 12px 36px;
  position: relative;
  font-size: 1rem;
  border-left: 4px solid transparent;
  margin-bottom: 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gray-50);
  transition: all var(--transition);
}

.symptom-list li:hover {
  background: var(--gray-100);
  transform: translateX(4px);
}

.symptom-list li::before {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 0.9rem;
}

.symptom-list.urgent li {
  border-left-color: var(--danger);
}

.symptom-list.urgent li::before {
  content: '\1F534';
}

.symptom-list.warning li {
  border-left-color: var(--warning);
}

.symptom-list.warning li::before {
  content: '\1F7E1';
}

/* ---------- LOCAL CONTENT BOX ---------- */
.local-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 32px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  margin: 32px 0;
}

section.local-box {
  margin: 0;
  padding: 80px 0;
  border-radius: 0;
}

.local-box h4 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.local-box p {
  color: var(--gray-800);
}

/* ---------- DIY WARNING ---------- */
.diy-warning {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius-xl);
  padding: 32px;
  margin: 32px 0;
}

.diy-warning h4 {
  color: var(--danger);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diy-warning h4::before {
  content: '\26A0';
  font-size: 1.4rem;
}

.diy-warning p {
  color: var(--gray-800);
}

/* ---------- THREAT LIST ---------- */
.threat-list li {
  padding: 16px 0 16px 36px;
  position: relative;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.6;
}

.threat-list li::before {
  content: '\26A0';
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--accent);
  font-size: 1.2rem;
}

.threat-list li:last-child {
  border-bottom: none;
}

/* ---------- RELATED SERVICES ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.related-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.related-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.related-item h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-col p,
.footer-col li {
  font-size: 0.95rem;
  line-height: 2.2;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-emergency-header {
    display: none;
  }

  .mobile-bottom-bar {
    display: block;
  }

  .emergency-top-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .trust-grid {
    gap: 16px;
    justify-content: center;
  }

  .trust-item {
    flex: 0 1 auto;
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .emergency-block {
    padding: 40px 24px;
  }

  .emergency-block h2 {
    font-size: 1.6rem;
  }

  .emergency-list li {
    font-size: 0.95rem;
  }

  .threat-list li {
    padding-left: 32px;
  }

  .threat-list li::before {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    top: 2px;
  }

  .process-steps {
    padding-left: 56px;
  }

  .process-steps::before {
    left: 19px;
    top: 12px;
    bottom: 12px;
  }

  .process-step {
    padding: 16px 18px;
    margin-bottom: 16px;
  }

  .process-step .step-number {
    width: 40px;
    height: 40px;
    left: -56px;
    top: 12px;
    font-size: 1rem;
    box-shadow: 0 0 0 5px var(--white);
  }

  .process-step h4 {
    font-size: 1.1rem;
  }

  .page-header {
    padding: 60px 0 40px;
  }

  .faq-question {
    padding: 16px 40px 16px 16px;
    font-size: 1rem;
  }

  .pricing-table,
  .comp-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Page Header */
.page-header {
  background: var(--gray-50);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.page-header h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.85rem;
  line-height: 1.5;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Auto-inject the slash before each li after the first
   (matches the manual span.sep used on flat-markup pages) */
.breadcrumbs li + li::before {
  content: '/';
  color: var(--gray-300);
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--gray-500);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.breadcrumbs span {
  color: var(--gray-900);
  font-weight: 600;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--gray-900);
  font-weight: 600;
}

/* Final CTA */
.final-cta {
  background: var(--gray-900);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.final-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.nap-block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nap-block p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.nap-block strong {
  color: var(--white);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 12px;
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 0;
}

.legal-content>h1:first-child {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.legal-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.8rem;
  color: var(--primary);
}

.legal-content p,
.legal-content li {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.legal-content li {
  list-style: disc;
}

.legal-content hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--gray-200);
}

.legal-content address {
  background: var(--gray-50);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  font-style: normal;
  margin-top: 24px;
}

.effective-date {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

/* 404 Page */
.error-page {
  text-align: center;
  padding: 120px 24px;
}

.error-page h1 {
  font-size: 8rem;
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 2rem;
  color: var(--gray-800);
  margin-bottom: 24px;
}

.error-page p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
}

/* Contact Page */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  color: var(--accent);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-card p,
.contact-card a {
  color: var(--gray-600);
  font-size: 1rem;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all var(--transition);
  background: var(--gray-50);
  margin-bottom: 24px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

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

/* About Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-sm {
  margin-top: 16px;
}

.mt-md {
  margin-top: 32px;
}

.mt-lg {
  margin-top: 48px;
}

.mb-sm {
  margin-bottom: 16px;
}

.mb-md {
  margin-bottom: 32px;
}

/* ============================================================
   UTILITIES & COMPONENT CLASSES — replaces inline styles
   ============================================================ */

/* ---------- TEXT COLORS ---------- */
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-bold-primary { color: var(--primary); font-weight: 700; }
.text-italic-muted { font-style: italic; color: var(--gray-500); }
.text-underline { text-decoration: underline; }
.text-light-md { color: rgba(255, 255, 255, 0.8); margin-bottom: 24px; }
.text-light-sm { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 8px; }
.fw-bold { font-weight: 700; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.text-emph { font-weight: 700; font-size: 1.1rem; }
.text-lead { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.text-sm { font-size: 0.9rem; color: var(--gray-700); line-height: 1.6; }
.text-xs { font-size: 0.88rem; color: var(--gray-700); line-height: 1.6; }

/* Sub-headings inside content sections (was a forest of inline h3/h4 styles) */
.subhead {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 24px 0 10px;
}

.subhead-lg { font-size: 1.15rem; margin-top: 28px; margin-bottom: 8px; }
.subhead-tight { margin: 0 0 6px; }
.subhead-mini { font-size: 1rem; margin: 0 0 4px; }
.subhead-warning { color: var(--warning); }
.subhead-danger { color: var(--danger); }
.subhead-white {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Footer license line — small faded text in dark footers */
.footer-license {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- SPACING (px-named, multiples of the design grid) ---------- */
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }

.my-20 { margin: 20px 0; }

/* ---------- WIDTH / LAYOUT HELPERS ---------- */
.mw-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.mw-800 { max-width: 800px; }
.form-narrow { max-width: 640px; margin: 0 auto; }

.text-left { text-align: left; }
.justify-start { justify-content: flex-start; }

/* Horizontal flex row of buttons / chips */
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-row-lg {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ---------- BUTTON SIZE/COLOR VARIANTS ---------- */
.btn-lg {
  font-size: 1.15rem;
  padding: 16px 36px;
}

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

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ---------- CALLOUT BOXES ---------- */
.callout {
  margin: 20px 0;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--gray-300);
}

.callout-warning { border-left-color: var(--warning); }
.callout-danger { border-left-color: var(--danger); }
.callout-primary {
  border-left-color: var(--primary);
  margin: 24px 0;
}

/* ---------- BORDERED CONTENT BOXES ---------- */
.box-alt {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}

.box-alt-primary {
  background: var(--gray-50);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 32px;
}

.box-alt-primary--sm { padding: 24px; }

.box-danger {
  background: var(--danger-bg);
  border: 2px solid var(--danger);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

/* Plain boxed feature card variant (used in motor-repair) */
.feature-card-flat {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

/* FAQ flat-button variant (about page) */
.faq-button-flat {
  border: none;
  background: var(--white);
  padding: 16px;
  cursor: pointer;
}

/* ---------- EMERGENCY HERO BACKGROUND ---------- */
.bg-emergency {
  background: linear-gradient(135deg, #7f1d1d, #c0392b);
}

.bg-emergency-hero {
  background: linear-gradient(135deg, #7f1d1d, #c0392b);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

/* ---------- FORM ---------- */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* ---------- LIST VARIANTS ---------- */
.list-disc-sm {
  list-style: disc;
  padding-left: 20px;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.7;
}

.list-disc-sm li { margin-bottom: 4px; }