/* ============================================================
   EXCEL INDUSTRIAL — Canonical Site Design System
   site-system.css
   
   Single source of truth for:
   - Design tokens (colors, spacing, typography, z-index)
   - SiteHeader + MobileMenu
   - SiteFooter (3-column conversion)
   - MobileFAB (emergency call)
   - ChatWidget positioning
   - EmergencyForm component
   - Button system
   - Card system
   - Trust bar
   - Section spacing & layout
   - Responsive breakpoints
   - Accessibility
   ============================================================ */

/* ────────────────────────────────────────────
   1. DESIGN TOKENS
   ──────────────────────────────────────────── */
:root {
  /* Brand Palette (Dark Theme — Slate + Amber) */
  --brand-bg:           #020617;  /* slate-950 — page background */
  --brand-surface:      #0f172a;  /* slate-900 — cards, sections */
  --brand-elevated:     #1e293b;  /* slate-800 — elevated surfaces */
  --brand-border:       #334155;  /* slate-700 — borders */
  --brand-border-light: #475569;  /* slate-600 — subtle borders */
  --brand-accent:       #f59e0b;  /* amber-500 — primary accent */
  --brand-accent-hover: #fbbf24;  /* amber-400 — accent hover */
  --brand-accent-dim:   #d97706;  /* amber-600 — accent muted */
  --brand-danger:       #dc2626;  /* red-600 — urgency/emergency */
  --brand-danger-soft:  rgba(220,38,38,0.15);
  --brand-success:      #10b981;  /* emerald-500 */
  
  /* Text */
  --text-primary:       #f1f5f9;  /* slate-100 */
  --text-secondary:     #cbd5e1;  /* slate-300 */
  --text-muted:         #94a3b8;  /* slate-400 */
  --text-faint:         #64748b;  /* slate-500 */
  --text-on-accent:     #0f172a;  /* dark text on amber buttons */
  --text-white:         #ffffff;
  
  /* Layout */
  --header-height:      56px;
  --container-max:      1200px;
  --container-narrow:   800px;
  --container-padding:  1.5rem;
  --section-gap:        5rem;
  --section-gap-mobile: 3rem;
  --safe-bottom:        80px;     /* clearance for FAB + chat */
  
  /* Typography */
  --font-display:       'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:          'Inter', system-ui, -apple-system, sans-serif;
  
  /* Z-Index Scale (single source of truth) */
  --z-header:           100;
  --z-mobile-menu:      99;
  --z-fab:              90;
  --z-chat:             90;
  --z-modal:            200;
  
  /* Shadows */
  --shadow-sm:          0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:          0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:          0 8px 25px rgba(0,0,0,0.5);
  --shadow-accent:      0 4px 20px rgba(245,158,11,0.3);
  --shadow-accent-lg:   0 4px 30px rgba(245,158,11,0.5);
  
  /* Transitions */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  
  /* Border Radius */
  --radius-sm:          6px;
  --radius-md:          10px;
  --radius-lg:          16px;
  --radius-xl:          24px;
  --radius-full:        9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--brand-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Scroll offset for all anchored elements */
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

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

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-gap) 0;
}

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

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

.desk-only { display: none; }
.mobile-only { display: block; }

@media (min-width: 1151px) {
  .desk-only { display: inline !important; }
  .mobile-only { display: none !important; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-gap-mobile) 0; }
}

/* ────────────────────────────────────────────
   4. TYPOGRAPHY
   ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ────────────────────────────────────────────
   5. BUTTON SYSTEM
   ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-accent {
  background: var(--brand-accent);
  color: var(--text-on-accent);
}
.btn-accent:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-surface {
  background: var(--brand-elevated);
  color: var(--text-primary);
  border: 1px solid var(--brand-border);
}
.btn-surface:hover {
  background: var(--brand-border);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--brand-border-light);
}
.btn-outline:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn-hero-primary {
  font-size: 1.1rem;
  padding: 1.15rem 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-accent);
  animation: cta-glow 2.5s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: var(--shadow-accent); }
  50% { box-shadow: var(--shadow-accent-lg); }
}

/* ────────────────────────────────────────────
   6. SITE HEADER
   ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-accent);
  letter-spacing: -0.02em;
}

.site-logo-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
}

/* Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.05);
}

.site-nav-link.active {
  color: var(--brand-accent);
  font-weight: 700;
}

.site-nav-emergency {
  color: var(--brand-accent) !important;
  font-weight: 700 !important;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
}
.site-nav-emergency:hover {
  background: rgba(245,158,11,0.15);
  color: var(--brand-accent-hover) !important;
}

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

.site-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-accent);
  color: var(--text-on-accent);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.site-call-btn:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.site-header .site-email-link {
  display: none !important;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
/* The full desktop nav already fills the 1200px header container. Keep the
   secondary email link hidden until there is enough outer viewport room for
   it without clipping the primary phone action. */
@media (min-width: 1600px) {
  .site-header .site-email-link {
    display: inline-block !important;
  }
}
.site-email-link:hover {
  color: var(--brand-accent);
}

.footer-email {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color var(--transition-fast);
}
.footer-email:hover {
  color: var(--brand-accent-hover);
}

/* Hamburger */
.site-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.site-menu-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.site-hamburger,
.site-hamburger::before,
.site-hamburger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}
.site-hamburger {
  position: relative;
}
.site-hamburger::before,
.site-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.site-hamburger::before { top: -6px; }
.site-hamburger::after { top: 6px; }

/* Hamburger → X animation */
.nav-active .site-hamburger {
  background: transparent;
}
.nav-active .site-hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-active .site-hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Laptop header tightness (1151px - 1300px) */
@media (min-width: 1151px) and (max-width: 1300px) {
  .site-header-inner {
    padding: 0 0.75rem;
    gap: 0.35rem;
  }
  .site-nav-link {
    font-size: 0.76rem;
    padding: 0.35rem 0.5rem;
  }
  .site-call-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.8rem;
  }
}

/* ── Mobile / Tablet Header (<= 1150px) ── */
@media (max-width: 1150px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--brand-surface);
    border-bottom: 1px solid var(--brand-border);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.25rem;
    z-index: var(--z-mobile-menu);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-active .site-nav {
    display: flex;
  }
  
  .site-nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
  }
  .site-nav-link:hover,
  .site-nav-link:active {
    background: rgba(255,255,255,0.06);
  }
  
  .site-menu-toggle {
    display: flex;
  }
  
  .site-call-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* ────────────────────────────────────────────
   7. HERO SECTION
   ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: blur(1px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2,6,23,0.93) 0%, rgba(15,23,42,0.85) 50%, rgba(2,6,23,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--section-gap) 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  max-width: 700px;
}

.hero-location {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Two-column hero for landing pages */
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}
.hero-grid-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brand-border);
}
.hero-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-content { padding: var(--section-gap-mobile) 0; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-grid-image { display: none; }
}

/* ────────────────────────────────────────────
   8. TRUST BAR
   ──────────────────────────────────────────── */
.trust-bar {
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 1rem 0;
}

.trust-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .trust-pills { gap: 0.75rem 1.25rem; justify-content: center; }
  .trust-pill { font-size: 0.65rem; }
}

/* ────────────────────────────────────────────
   9. SERVICE CARDS
   ──────────────────────────────────────────── */
.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.carousel-container {
  position: relative;
}

.services-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}
.services-grid::-webkit-scrollbar { display: none; }

.service-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 300px;
  scroll-snap-align: start;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 1.25rem;
}
.service-card-body h3 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}
.service-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand-accent);
  color: var(--text-on-accent);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}
.carousel-nav:hover {
  background: var(--brand-accent);
  color: var(--text-on-accent);
  border-color: var(--brand-accent);
}
.carousel-nav.prev { left: -22px; }
.carousel-nav.next { right: -22px; }

/* Mobile: vertical stack */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 1rem;
    padding: 0;
  }
  .service-card {
    flex: none;
    width: 100%;
    min-width: unset;
    height: auto;
    min-height: 300px;
  }
  .carousel-nav { display: none; }
}

/* ────────────────────────────────────────────
   10. HOW IT WORKS / VALUE SECTION
   ──────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
}
.value-card h3 {
  font-size: 1.1rem;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ────────────────────────────────────────────
   11. ABOUT SECTION
   ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-quals {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.about-quals h3 {
  font-size: 1rem;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.about-quals li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-quals li:last-child { border-bottom: none; }
.about-quals li::before {
  content: '✓';
  color: var(--brand-accent);
  font-weight: 700;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brand-border);
}
.about-image img {
  width: 100%;
  object-fit: cover;
}

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

/* ────────────────────────────────────────────
   12. EMERGENCY FORM
   ──────────────────────────────────────────── */
.form-section {
  background: var(--brand-surface);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.form-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-white);
  margin-bottom: 1rem;
}
.form-info p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.form-direct {
  padding: 1.25rem;
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
}
.form-direct p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.form-card {
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Optional details expander */
.optional-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--brand-border);
  padding-top: 0.75rem;
}
.optional-details summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.optional-details summary:hover {
  color: var(--brand-accent);
}
.optional-fields {
  padding-top: 1rem;
}

/* Success state */
.success-box {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeUp 0.4s ease-out;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: var(--brand-success);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(16,185,129,0.25);
}
.success-box h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}
.success-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}

/* ────────────────────────────────────────────
   13. FAQ SECTION
   ──────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--brand-border);
  padding: 1.25rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.faq-item summary:hover { color: var(--brand-accent); }
.faq-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  padding-top: 0.75rem;
}

.coverage-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.coverage-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .coverage-list { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────
   14. SITE FOOTER
   ──────────────────────────────────────────── */
.site-footer {
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding: var(--section-gap-mobile) 0;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
  margin-bottom: 1.25rem;
}

.footer-phone {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-accent-hover);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}
.footer-phone:hover { color: var(--text-white); }

.footer-cta-text {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.footer-hours {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--brand-accent-hover); }

.footer-area-main {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-cities {
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid var(--brand-border);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-brand-name {
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 0.85rem;
}
.footer-tagline {
  color: var(--text-faint);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.footer-copyright {
  color: var(--text-faint);
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ────────────────────────────────────────────
   15. MOBILE FAB (Emergency Call)
   ──────────────────────────────────────────── */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-fab);
  background: var(--brand-accent);
  color: var(--text-on-accent);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-accent-lg);
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  animation: fab-pulse 3s ease-in-out infinite;
}
.mobile-fab:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-2px);
}
.mobile-fab .fab-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: var(--shadow-accent); }
  50% { box-shadow: var(--shadow-accent-lg); }
}

@media (max-width: 768px) {
  .mobile-fab { display: flex; }
}

/* ────────────────────────────────────────────
   16. AI CHAT WIDGET
   ──────────────────────────────────────────── */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--z-chat);
}

/* Offset chat when FAB is visible on mobile */
@media (max-width: 768px) {
  .ai-chat-widget {
    bottom: 80px;
    right: 20px;
  }
}

.ai-chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  color: var(--brand-accent);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  position: relative;
}
.ai-chat-toggle:hover {
  background: var(--brand-accent);
  color: var(--text-on-accent);
  border-color: var(--brand-accent);
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-danger);
  border: 2px solid var(--brand-bg);
  display: none;
}

.ai-chat-window {
  display: none;
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 380px;
  max-height: 520px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: chat-popup 0.3s ease-out;
}

@keyframes chat-popup {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ai-chat-header {
  padding: 1rem 1.25rem;
  background: var(--brand-elevated);
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-success);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ai-chat-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.ai-chat-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ai-chat-header-actions {
  display: flex;
  gap: 0.5rem;
}
.ai-chat-header-actions button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.ai-chat-header-actions button:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 340px;
}

.chat-msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}
.chat-msg.assistant {
  align-self: flex-start;
  background: var(--brand-elevated);
  color: var(--text-primary);
  border: 1px solid var(--brand-border);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--brand-accent-dim);
  color: var(--text-on-accent);
}

.ai-chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--brand-border);
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.ai-chat-input-area textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--brand-border);
  background: var(--brand-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  max-height: 80px;
}
.ai-chat-input-area textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
}
.ai-chat-send {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-accent);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.ai-chat-send:hover {
  background: var(--brand-accent-hover);
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 480px) {
  .ai-chat-window {
    width: calc(100vw - 40px);
    right: -10px;
    max-height: 450px;
  }
}

/* ────────────────────────────────────────────
   17. MODALS
   ──────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  margin: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text-primary); }

/* ────────────────────────────────────────────
   18. ADDRESS AUTOCOMPLETE
   ──────────────────────────────────────────── */
.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.suggestion-item {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--brand-border);
  transition: background var(--transition-fast);
}
.suggestion-item:hover {
  background: rgba(245,158,11,0.08);
  color: var(--text-primary);
}
.suggestion-item:last-child { border-bottom: none; }

/* ────────────────────────────────────────────
   19. LANDING PAGE — CONTENT SECTIONS
   ──────────────────────────────────────────── */
.content-section {
  padding: var(--section-gap) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.content-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.content-card h3 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}
.content-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Standalone form section for landing pages */
.landing-form-section {
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
  padding: var(--section-gap) 0;
}

.landing-form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--brand-elevated);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.landing-form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.landing-form-header h2 {
  font-size: 1.75rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}
.landing-form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.landing-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.landing-form-full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .landing-form-card { padding: 1.5rem; }
  .landing-form-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────
   20. ACCESSIBILITY
   ──────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Ensure adequate contrast on interactive elements */
.btn-accent,
.site-call-btn,
.mobile-fab {
  color: var(--text-on-accent); /* #0f172a on amber — passes WCAG AA */
}

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

/* Reduced motion preference */
@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; }
}
