/* ==========================================================================
   EMERGENCY HOME CONTRACTOR - MODERN DESIGN SYSTEM
   Version: 2.0
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
  /* Primary Colors */
  --primary-900: #0c1e3a;
  --primary-800: #0f2942;
  --primary-700: #153555;
  --primary-600: #1a4568;
  --primary-500: #1e5a82;
  --primary-400: #2d7ab8;
  --primary-300: #4a9fd4;
  --primary-200: #7fc3e8;
  --primary-100: #b8ddf5;
  --primary-50: #e8f4fc;

  /* Accent/Emergency Colors */
  --accent-600: #dc2626;
  --accent-500: #ef4444;
  --accent-400: #f87171;
  --accent-50: #fef2f2;

  /* Success Colors */
  --success-600: #059669;
  --success-500: #10b981;
  --success-50: #ecfdf5;

  /* Neutral Colors */
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  /* Typography Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.4vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 1.8vw, 4rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);

  /* Spacing Scale */
  --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;

  /* Layout */
  --max-width: 1280px;
  --header-height: 90px;
  --header-height-mobile: 70px;
  --container-padding: clamp(1rem, 5vw, 2rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --shadow-accent: 0 4px 14px 0 rgba(220, 38, 38, 0.39);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  min-height: 100vh;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--primary-800);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  background: var(--gray-50);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--gray-100);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--gray-50);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-3);
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gray-50);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary-700);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .logo-img {
    height: 48px;
  }
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 50%, var(--primary-400) 100%);
  padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

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

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero h1 .highlight {
  color: var(--accent-400);
  display: inline;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
    min-height: auto;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.btn:hover::before {
  transform: translateX(100%);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-500) 100%);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-400) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary-700);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--primary-300);
  color: var(--primary-600);
}

.btn-emergency {
  background: linear-gradient(135deg, var(--accent-600) 0%, #b91c1c 100%);
  color: white;
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
  box-shadow: var(--shadow-accent);
  animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ==========================================================================
   7. FORMS
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(29, 122, 184, 0.1);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

/* Lead Form Container */
.lead-form-container {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.lead-form-header {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  padding: var(--space-6);
  text-align: center;
  color: white;
}

.lead-form-header h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.lead-form-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
}

.lead-form-body {
  padding: var(--space-6);
}

/* ==========================================================================
   8. SERVICE CARDS
   ========================================================================== */
.services-section {
  padding: var(--space-20) 0;
}

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

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.service-card .icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  font-size: var(--text-sm);
  flex-grow: 1;
}

.service-card .meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
}

.badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-emergency {
  background: var(--accent-50);
  color: var(--accent-600);
}

.badge-standard {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* ==========================================================================
   9. BREADCRUMB
   ========================================================================== */
.breadcrumb {
  padding: var(--space-4) 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary-600);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-800);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--gray-400);
}

/* ==========================================================================
   10. PAGE CONTENT & SIDEBAR
   ========================================================================== */
.page-content {
  padding: var(--space-16) 0;
  background: white;
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 968px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

.main-content h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.content-section {
  margin-bottom: var(--space-10);
}

.content-section h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gray-100);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  height: fit-content;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  margin-bottom: var(--space-6);
}

.sidebar-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   11. NEARBY LINKS
   ========================================================================== */
.nearby-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nearby-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.nearby-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  transform: translateX(4px);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand .logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
  display: block;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: var(--text-sm);
}

/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */
.mt-20 { margin-top: var(--space-20); }
.mb-20 { margin-bottom: var(--space-20); }
.text-white { color: white; }
.bg-white { background: white; }
.bg-light { background: var(--gray-50); }

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

/* Focus visible for keyboard navigation */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 2px;
}

/* ==========================================================================
   15. ADDITIONAL IMPROVEMENTS
   ========================================================================== */

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Better Form Styling */
.zip-input-wrapper {
  position: relative;
}

.zip-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: var(--text-lg);
}

input.zip-input {
  padding-left: var(--space-12);
  font-size: var(--text-lg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Call Button States */
.call-button-wrapper {
  margin-top: var(--space-4);
}

.phone-display {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-3);
}

.phone-display .label {
  display: block;
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.phone-display .placeholder {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.phone-display .number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-600);
}

.btn-call {
  width: 100%;
  background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
  color: white;
  font-size: var(--text-lg);
  font-weight: 600;
  padding: var(--space-4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Footer Improvements */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-trust .trust-badge {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-2);
}

/* Better Cards */
.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Section Transitions */
section {
  position: relative;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Better Breadcrumbs */
.breadcrumb {
  background: linear-gradient(to right, var(--gray-50), white);
}

/* Trust Badges in Hero */
.trust-badges-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: white;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--primary-600);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: var(--primary-100);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--text-lg);
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.testimonial-info strong {
  display: block;
  color: var(--gray-900);
}

.testimonial-info span {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, var(--accent-600) 0%, #b91c1c 100%);
  color: white;
  padding: var(--space-4) 0;
  text-align: center;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.emergency-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Print Styles */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .sidebar,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .page-content {
    padding: 0;
  }
}

/* ==========================================================================
   16. MODERN CARD STYLES
   ========================================================================== */

.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  overflow: hidden;
}

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

.card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.card-content {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.card-text {
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Glass morphism cards */
.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   17. STEP CARDS (Process/Timeline)
   ========================================================================== */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--gray-900);
}

.step-content p {
  color: var(--gray-600);
  font-size: var(--text-sm);
}

/* ==========================================================================
   18. PRICING CARDS
   ========================================================================== */

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

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

.pricing-card.featured {
  border: 2px solid var(--primary-500);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-price {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin: var(--space-4) 0;
}

.pricing-price span {
  font-size: var(--text-lg);
  color: var(--gray-500);
  font-weight: 500;
}

/* ==========================================================================
   19. ALERTS & NOTIFICATIONS
   ========================================================================== */

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.alert-info {
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  color: var(--primary-800);
}

.alert-success {
  background: var(--success-50);
  border-left: 4px solid var(--success-500);
  color: var(--success-800);
}

.alert-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.alert-error {
  background: #fee2e2;
  border-left: 4px solid var(--accent-500);
  color: #991b1b;
}

/* ==========================================================================
   20. DIVIDERS & SEPARATORS
   ========================================================================== */

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-300), transparent);
  margin: var(--space-8) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.divider-text::before {
  margin-right: var(--space-4);
}

.divider-text::after {
  margin-left: var(--space-4);
}

/* ==========================================================================
   21. UTILITY CLASSES
   ========================================================================== */

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Text transforms */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* ==========================================================================
   22. RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  
  .text-center-mobile { text-align: center !important; }
  
  .full-width-mobile {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ==========================================================================
   23. DARK MODE SUPPORT (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-600: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f1f5f9;
  }
  
  body {
    background-color: var(--gray-50);
    color: var(--gray-800);
  }
  
  .card,
  .sidebar-card,
  .pricing-card {
    background: var(--gray-100);
  }
}

/* ==========================================================================
   24. INTERLINK GRID (Service-City Links)
   ========================================================================== */

.interlink-section {
  background: var(--gray-50);
  padding: var(--space-16) 0;
}

.interlink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.interlink-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.interlink-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.interlink-card .location {
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--text-base);
}

.interlink-card .service {
  font-size: var(--text-sm);
  color: var(--primary-600);
  font-weight: 500;
}

.interlink-card::after {
  content: '→';
  align-self: flex-end;
  color: var(--gray-400);
  font-size: var(--text-lg);
  transition: transform var(--transition-base);
}

.interlink-card:hover::after {
  transform: translateX(4px);
  color: var(--primary-500);
}

@media (max-width: 640px) {
  .interlink-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  
  .interlink-card {
    padding: var(--space-4);
  }
}
