/* 
 * Hydrolux Water Systems - Main Stylesheet
 * Knoxville, Tennessee Water Treatment Specialists
 * Modern, Clean, Professional Design
 */

/* ===== CSS VARIABLES (DESIGN SYSTEM) ===== */
:root {
  /* Tennessee-Inspired Color Palette */
  --primary-blue: #1e3a8a;        /* Deep Tennessee Blue */
  --secondary-blue: #3b82f6;      /* Bright Blue */
  --accent-grey: #6b7280;         /* Professional Grey */
  --light-blue: #dbeafe;          /* Light Blue Background */
  --smoky-gray: #64748b;          /* Smoky Mountain Gray */
  --warning-orange: #f59e0b;      /* Iron/Rust Warning */
  --success-grey: #9ca3af;        /* Success Grey */
  --danger-red: #ef4444;          /* Contamination Alert */
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #334155;
  --charcoal-gray: #1f2937;
  --black: #0f172a;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* 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);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ===== LAYOUT & UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

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

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

.text-white {
  color: var(--white);
}

.bg-primary {
  background-color: var(--primary-blue);
}

.bg-secondary {
  background-color: var(--accent-green);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-blue);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--smoky-gray);
}

.text-small {
  font-size: 0.875rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--secondary-blue);
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--success-green);
  border-color: var(--success-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Hero section button override for better contrast */
.hero .btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
  backdrop-filter: blur(10px);
}

.hero .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

/* CTA section button override for better contrast */
.cta-section .btn-outline {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
  backdrop-filter: blur(10px);
}

.cta-section .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
}

.btn-small {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.875rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  height: 100px;
}

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

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  text-decoration: none;
  gap: var(--spacing-sm);
}

.logo-image {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1;
}

.logo-lux {
  color: #a1d6e2;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta .btn {
  align-self: flex-start;
  height: auto !important;
  min-height: auto !important;
  max-height: 44px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) 0;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== GLOBAL MODAL (Lead Capture) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--spacing-md);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
  animation: modalIn var(--transition-normal);
}

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

.modal-header {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
}

.modal-header h3 {
  color: var(--white);
  margin: 0 0 var(--spacing-xs) 0;
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-close span { font-size: 22px; font-weight: 700; line-height: 1; }

.modal-close:hover { filter: brightness(1.1); }

/* Form layout inside modal */
.lead-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.lead-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-md);
}

.lead-form label {
  font-weight: 600;
  margin-bottom: .4rem;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  padding: .75rem .85rem;
  font-size: 1rem;
}

.lead-form input.error { border-color: var(--danger-red); }
.lead-form .form-error { color: var(--danger-red); font-size: .875rem; margin-top: .35rem; }

.form-consent { margin: var(--spacing-sm) 0 var(--spacing-md); }
.consent-checkbox { display: flex; align-items: flex-start; gap: .6rem; }
.consent-checkbox input { margin-top: .2rem; }
.consent-text a { color: var(--primary-blue); text-decoration: underline; }

.form-trust { margin-top: var(--spacing-xs); }
.form-trust p { font-size: 0.8rem; line-height: 1.25; opacity: 0.9; }

.modal-submit { width: 100%; }

.modal-success { text-align: center; padding: var(--spacing-lg); }

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Header modal specific tightening to ensure overrides */
  #testRequestModal .lead-form .form-row { grid-template-columns: 1fr; gap: 6px !important; }
  #testRequestModal .lead-form .form-row > .form-group + .form-group { margin-top: 2px !important; }
  #testRequestModal .lead-form .form-group { margin-bottom: 8px !important; }
  #testRequestModal .lead-form label { margin-bottom: 0.25rem !important; }
  .modal-header p { font-size: 0.95rem; }
  .lead-form .form-row { grid-template-columns: 1fr; gap: var(--spacing-xs); }
  .lead-form .form-group { margin-bottom: var(--spacing-xs); }
  /* Reduce extra space before phone group when stacked at tablet widths */
  .lead-form .form-row > .form-group + .form-group { margin-top: 4px; }
  .lead-form label { font-size: 0.95rem; margin-bottom: 0.3rem; }
  .lead-form input[type="text"],
  .lead-form input[type="email"],
  .lead-form input[type="tel"] { padding: 0.6rem 0.75rem; font-size: 0.95rem; }
  .form-consent { margin: var(--spacing-xs) 0 var(--spacing-sm); }
  .modal-submit { padding: 0.7rem 1rem; font-size: 1rem; }
  .form-trust { margin-top: var(--spacing-xs); }
  .form-trust p { font-size: 0.8rem; line-height: 1.25; opacity: 0.9; }
  .modal { max-width: 560px; }
}

@media (max-width: 480px) {
  /* Slightly smaller circle on small phones while keeping X large */
  .modal-close { width: 36px; height: 36px; }
  .modal { border-radius: var(--radius-md); padding-bottom: var(--spacing-sm); }
  .modal-header { padding: var(--spacing-md); }
  .modal-header h3 { font-size: 1.2rem; }
  .modal-header p { font-size: 0.85rem; }
  .modal-body { padding: var(--spacing-md); }
  .lead-form label { font-size: 0.9rem; margin-bottom: 0.25rem; }
  .lead-form input[type="text"],
  .lead-form input[type="email"],
  .lead-form input[type="tel"] { padding: 0.55rem 0.7rem; font-size: 0.92rem; }
  .modal-submit { padding: 0.6rem 0.9rem; font-size: 0.95rem; }
  /* Tighter gap specifically between Email and Phone on stacked row */
  .lead-form .form-row { gap: var(--spacing-xs); }
  /* Reduce extra space before phone group when stacked */
  .lead-form .form-row .form-group + .form-group { margin-top: 6px; }
  /* Shrink trust note further */
  .form-trust { margin-top: var(--spacing-xs); }
  .form-trust p { font-size: 0.7rem; line-height: 1.2; opacity: 0.8; }
}

.dropdown-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--dark-gray);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* ===== MOBILE HEADER ===== */
.mobile-controls {
  display: none;
  align-items: center;
  gap: var(--spacing-md);
}

/* Mobile controls proper styling */
.mobile-controls {
  display: none;
}

.mobile-cta-btn {
  background: var(--primary-blue);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.mobile-cta-btn:hover {
  background: var(--secondary-blue);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  padding: 0;
  gap: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.hamburger-line {
  width: 24px !important;
  height: 3px !important;
  background: var(--primary-blue) !important;
  transition: all var(--transition-fast);
  border-radius: 2px;
  display: block !important;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  background: var(--primary-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.mobile-logo-img {
  height: 40px;
  width: auto;
}

.mobile-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-logo-text .logo-lux {
  color: #a1d6e2;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-content {
  padding: var(--spacing-lg);
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--light-gray);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-blue);
}

.mobile-nav-link i {
  font-size: 0.875rem;
  transition: transform var(--transition-fast);
}

.mobile-nav-item.has-dropdown .mobile-nav-link[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background: var(--light-gray);
}

.mobile-nav-item.has-dropdown .mobile-nav-link[aria-expanded="true"] + .mobile-dropdown-menu {
  max-height: 600px;
  padding: var(--spacing-sm) 0;
  overflow-y: auto;
}

.mobile-dropdown-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link.active {
  color: var(--primary-blue);
  background: var(--white);
}

.mobile-nav-footer {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--light-gray);
}

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.mobile-contact-item i {
  width: 20px;
  text-align: center;
}

/* Mobile Menu Body Lock */
body.mobile-menu-open {
  overflow: hidden;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .mobile-controls {
    display: flex !important;
  }
  
  .nav-wrapper {
    display: none !important;
  }
  
  /* Force full width mobile header */
  .header {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Override any container constraints */
  .container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Mobile navbar layout - full width */
  .navbar.container,
  .navbar {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: none !important;
    margin: 0 !important;
    padding-left: var(--spacing-lg) !important;
    padding-right: var(--spacing-lg) !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .logo {
    justify-self: start;
  }
  
  .mobile-cta-btn {
    justify-self: center;
    grid-column: 2;
  }
  
  .mobile-controls {
    justify-self: end;
    display: flex !important;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  /* Reduce logo size on mobile */
  .logo-img {
    height: 40px;
  }
  
  .logo-name {
    font-size: 1.4rem;
  }
  
  /* Improve service cards readability on mobile */
  .service-content h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
  }
  
  .service-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .service-benefits li {
    color: var(--dark-gray);
    font-size: 0.9rem;
  }
  
  .service-card {
    box-shadow: var(--shadow-md);
  }
  
  /* Hide desktop hero image on mobile */
  .hero-image {
    display: none !important;
  }
  
  /* Show mobile hero image between title and description */
  .hero-image-mobile {
    display: block !important;
    text-align: center;
    margin: var(--spacing-lg) 0;
    padding: 0 var(--spacing-md);
  }
  
  .hero-image-mobile img {
    max-width: 280px;
    width: 100%;
    height: auto;
  }
  
  /* Center hero content on mobile */
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: none !important;
    width: 100% !important;
    min-height: auto !important;
    gap: 0 !important;
    padding: 0 var(--spacing-md) !important;
  }
  
  .hero-content {
    text-align: center !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .hero-title-container {
    text-align: center !important;
    padding: 0 var(--spacing-lg) !important;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
    text-align: center !important;
  }
  
  .lead {
    text-align: center !important;
    font-size: 1.1rem !important;
    margin-bottom: var(--spacing-sm) !important;
    line-height: 1.4 !important;
  }
  
  .hero-cta {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: var(--spacing-sm) !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    margin-top: var(--spacing-xs) !important;
  }
  
  .hero-cta .btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    white-space: nowrap !important;
    flex: 1 !important;
    max-width: 48% !important;
    text-align: center !important;
  }
  
  .hero-cta .btn-primary {
    font-size: 0.85rem !important;
  }
  
  .hero-cta .btn-outline {
    font-size: 0.85rem !important;
  }
  
  .hero-stats-container {
    text-align: center !important;
    margin-top: var(--spacing-xs) !important;
  }
  
  .hero-stats {
    justify-content: center !important;
  }
  
  /* Reduce overall hero section spacing on mobile */
  .hero {
    padding-top: var(--spacing-xl) !important;
    padding-bottom: var(--spacing-lg) !important;
  }
  
  .hero-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero-content > * {
    margin-bottom: var(--spacing-xs) !important;
  }
  
  .hero-content > *:last-child {
    margin-bottom: 0 !important;
  }
  
  .hero-content .lead {
    margin-bottom: var(--spacing-xs) !important;
    margin-top: 0 !important;
  }
  
  /* Override default hero lead and CTA spacing */
  .hero .lead {
    margin-bottom: var(--spacing-xs) !important;
    margin-top: 0 !important;
  }
  
  .hero .hero-cta {
    margin-top: var(--spacing-xs) !important;
    margin-bottom: 0 !important;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 5rem 0 2rem;
  margin-top: 0px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="water" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23water)"/></svg>');
  opacity: 0.3;
}

.hero-title-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: var(--spacing-md) auto;
  padding: 0 var(--spacing-md);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-2xl);
  align-items: center;
  min-height: 500px;
}

.hero-content {
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide mobile hero image on desktop */
.hero-image-mobile {
  display: none !important;
}

/* Ensure desktop hero image is visible on desktop */
.hero-image {
  display: flex !important;
}

.hero-filter-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-normal);
}

.hero-filter-image:hover {
  transform: scale(1.05);
}

.hero .lead {
  color: var(--light-blue);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xl);
  max-width: none;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.hero-stats-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--light-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--spacing-2xl) 0;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--smoky-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(30, 58, 138, 0.1);
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-gray);
}

.card-text {
  color: var(--smoky-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  flex-grow: 1;
}

.symptom-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
}

.symptom-list li {
  padding: var(--spacing-xs) 0;
  color: var(--smoky-gray);
  position: relative;
  padding-left: var(--spacing-md);
}

.symptom-list li::before {
  content: '•';
  color: var(--primary-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--spacing-xl) !important;
  margin-top: var(--spacing-2xl);
}

/* Service Cards Mobile Responsive */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-lg) !important;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md) !important;
  }
  
  .service-card {
    margin-bottom: var(--spacing-lg);
  }
}



.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.service-card.featured {
  border: 2px solid var(--primary-blue);
  position: relative;
}

.service-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--primary-blue);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.service-image {
  position: relative;
  height: 200px !important;
  overflow: hidden;
  background-color: #f8f9fa;
}

.service-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: var(--spacing-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
}

.service-content p {
  color: var(--smoky-gray);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.service-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
}

.service-benefits li {
  padding: var(--spacing-xs) 0;
  color: var(--smoky-gray);
  font-size: 0.9rem;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.service-price {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.1rem;
}

/* Responsive Service Cards CTA */
@media (max-width: 768px) {
  .service-cta {
    justify-content: center;
  }
}

/* ===== PET BENEFITS SECTION ===== */
.pet-benefits .pet-benefits-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--spacing-2xl) !important;
  align-items: center;
  margin-top: var(--spacing-2xl);
}

.pet-benefits-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--spacing-2xl) !important;
  align-items: center;
  margin-top: var(--spacing-2xl);
}

.pet-benefits-image {
  position: relative;
}

.pet-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.pet-image:hover {
  transform: scale(1.02);
}

.pet-benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.pet-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.pet-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pet-benefit-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-gray);
}

.pet-benefit-content p {
  color: var(--smoky-gray);
  line-height: 1.6;
  margin: 0;
}

/* Responsive Pet Benefits */
@media (max-width: 768px) {
  .pet-benefits-content,
  .pet-benefits .pet-benefits-content {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-xl) !important;
  }
  
  .pet-benefits-image {
    order: -1;
  }
  
  .pet-benefit {
    padding: var(--spacing-md);
  }
  
  .pet-benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--accent-grey); }
.text-muted { color: var(--smoky-gray); }
.text-white { color: var(--white); }

.bg-primary { background-color: var(--primary-blue); }
.bg-secondary { background-color: var(--accent-grey); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .grid {
    gap: var(--spacing-md);
  }
  
  /* Increase container padding on mobile to prevent edge-riding */
  .container {
    padding-left: var(--spacing-lg) !important;
    padding-right: var(--spacing-lg) !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card {
    padding: var(--spacing-sm);
  }
  
  /* Extra padding for very small screens */
  .container {
    padding-left: var(--spacing-xl) !important;
    padding-right: var(--spacing-xl) !important;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control.error {
  border-color: var(--danger-red);
}

.form-error {
  color: var(--danger-red);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-link {
  color: var(--light-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--light-blue);
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===== PROCESS SECTION ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.process-step {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.process-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: var(--white);
  font-size: 2rem;
}

.process-step h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.process-step p {
  color: var(--smoky-gray);
  line-height: 1.6;
  margin: 0;
}

/* Process Step Numbers */
.process-step::before {
  content: counter(process-counter);
  counter-increment: process-counter;
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 30px;
  height: 30px;
  background: var(--accent-grey);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.process-grid {
  counter-reset: process-counter;
}

/* ===== PET BENEFITS SECTION ===== */
.pet-benefits {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.pet-benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  margin-top: var(--spacing-2xl);
}

.pet-benefits-image {
  position: relative;
}

.pet-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.pet-benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.pet-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pet-benefit:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.pet-benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-grey), #9ca3af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pet-benefit-content h4 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.pet-benefit-content p {
  color: var(--smoky-gray);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pet-benefits-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .pet-image {
    height: 300px;
  }
}

/* ===== HOMEPAGE SPECIFIC STYLES ===== */

/* Symptom Lists */
.symptom-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.symptom-list li {
  padding: var(--spacing-xs) 0;
  color: var(--smoky-gray);
  font-size: 0.9rem;
  position: relative;
  padding-left: var(--spacing-md);
}

.symptom-list li::before {
  content: '•';
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

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

.service-card.featured {
  grid-row: span 2;
}

.service-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.service-card.featured .service-image {
  height: 300px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: var(--spacing-lg);
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-blue);
}

.service-content p {
  color: var(--smoky-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.service-benefits {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
}

.service-benefits li {
  padding: var(--spacing-xs) 0;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.service-price {
  font-weight: 600;
  color: var(--accent-grey);
  font-size: 1.1rem;
}

/* Responsive Services Grid */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card.featured {
    grid-row: span 1;
  }
  
  .service-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .service-cta .btn {
    text-align: center;
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.testimonial-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

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

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--light-blue);
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-rating {
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.star {
  font-size: 1.2rem;
  margin-right: var(--spacing-xs);
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--dark-gray);
  margin: var(--spacing-md) 0;
  font-style: italic;
  border: none;
  padding: 0;
}

.testimonial-author {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--light-gray);
}

.testimonial-author strong {
  display: block;
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.testimonial-location,
.testimonial-service {
  display: block;
  font-size: 0.9rem;
  color: var(--smoky-gray);
}

.testimonials-cta {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* ===== SERVICE AREAS SECTION ===== */
.service-areas-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.service-areas-list {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.service-areas-list h3 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.areas-section {
  margin-bottom: var(--spacing-xl);
}

.areas-section:last-child {
  margin-bottom: 0;
}

.areas-section h4 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.service-badge {
  background: var(--accent-grey);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-badge.next-day {
  background: var(--primary-blue);
}

.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.area-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--light-gray);
  transition: background-color var(--transition-fast);
}

.area-item:last-child {
  border-bottom: none;
}

.area-item:hover {
  background-color: var(--light-gray);
}

.area-item h5 {
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.area-item p {
  color: var(--smoky-gray);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.secondary-areas {
  margin-top: var(--spacing-lg);
}

.secondary-areas h5 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.areas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

/* Primary Areas Section Styling */
.primary-areas-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.primary-areas-section h4 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-blue);
}

.area-description {
  display: block;
  color: var(--smoky-gray);
  font-size: 0.9rem;
  font-weight: normal;
  margin-top: var(--spacing-xs);
}

.secondary-areas h5 {
  text-align: center;
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  justify-items: center;
}

/* Additional Areas Below Map (In Right Column) */
.additional-areas-below-map {
  background: var(--white);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.additional-areas-below-map h4 {
  text-align: center;
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.additional-areas-below-map .areas-grid {
  justify-items: center;
}

/* Service Areas Mobile Responsive */
@media (max-width: 968px) {
  .service-areas-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .service-areas-map {
    order: -1;
  }
  
  #google-map {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .service-areas-list {
    padding: var(--spacing-lg);
  }
  
  .service-areas-list h3 {
    font-size: 1.5rem;
  }
  
  .primary-areas-section {
    padding: var(--spacing-lg);
  }
  
  .primary-areas-section h4 {
    font-size: 1.3rem;
  }
  
  .additional-areas-below-map {
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
  }
  
  .additional-areas-below-map h4 {
    font-size: 1.1rem;
  }
  
  .areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--spacing-xs);
  }
  
  .area-tag {
    font-size: 0.8rem;
    padding: var(--spacing-xs);
  }
  
  #google-map {
    height: 350px;
  }
}

.area-tag {
  background: var(--light-gray);
  color: var(--dark-gray);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-areas-cta {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--light-gray);
  border-radius: var(--radius-lg);
}

.service-areas-cta p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
}

/* Google Map Container */
.service-areas-map {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

#google-map {
  width: 100%;
  height: 500px;
  border: none;
}

/* Extended Coverage Section */
.extended-coverage {
  background: var(--light-gray);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.extended-coverage .areas-section {
  text-align: center;
  margin-bottom: 0;
}

.extended-coverage h4 {
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.extended-coverage .secondary-areas {
  margin-top: 0;
}

.extended-coverage .areas-tags {
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}



/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
  color: var(--white) !important;
  text-align: center;
  padding: var(--spacing-5xl) 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* Mobile: reduce horizontal padding for CTA sections */
@media (max-width: 768px) {
  .cta-section .container { padding-left: var(--spacing-sm) !important; padding-right: var(--spacing-sm) !important; }
  .cta-content { padding-left: var(--spacing-sm) !important; padding-right: var(--spacing-sm) !important; }
  .cta-section h2 { font-size: 2rem; line-height: 1.25; }
}

.cta-section h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

/* Ensure mobile CTA H2 override wins in cascade */
@media (max-width: 768px) {
  .cta-section h2 { font-size: 2rem !important; line-height: 1.25 !important; }
}

.cta-section .lead {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-2xl);
  color: var(--white) !important;
  opacity: 1;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
  font-size: 1.1rem;
  padding: var(--spacing-md) var(--spacing-xl);
}

.cta-guarantees {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  min-width: 180px;
  justify-content: center;
}

.guarantee-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.guarantee-item span:last-child {
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: var(--white);
}





/* ===== FOOTER ===== */
footer {
  background: var(--charcoal-gray);
  color: var(--white);
  padding-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.footer-logo .logo-image {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1;
}

.footer-logo .logo-lux {
  color: #a1d6e2;
}

.footer-logo .logo-tagline {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-top: 2px;
}

.footer-logo .logo-lux {
  color: var(--secondary-blue);
}

.footer-logo .logo-tagline {
  font-size: 0.9rem;
  color: #d1d5db; /* Lighter grey for tagline */
  margin: 0;
  line-height: 1;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
}

.footer-section h4 {
  color: #d1d5db; /* Lighter grey for headings */
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  font-weight: 600;
}

.footer-section p,
.footer-section li {
  color: #d1d5db; /* Lighter grey for text */
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: #d1d5db; /* Lighter grey for links */
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-section a:hover {
  color: var(--white); /* White on hover for better contrast */
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.contact-item strong {
  color: var(--white);
}

.hours-list {
  display: grid;
  gap: var(--spacing-xs);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



/* Footer Service Areas */
.footer-service-areas {
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-lg);
}

.service-areas-text {
  color: #d1d5db; /* Lighter grey for service areas text */
  margin: 0;
  line-height: 1.6;
}

.service-areas-text strong {
  color: var(--white);
}

.area-link {
  color: #9ca3af; /* Medium grey for area links */
  text-decoration: none;
  transition: color var(--transition-normal);
}

.area-link:hover {
  color: var(--white);
}



.footer-cta {
  background: var(--primary-blue);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.footer-cta h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}



.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.footer-legal {
  margin-bottom: var(--spacing-lg);
}

.footer-legal p {
  color: #d1d5db; /* Lighter grey for legal text */
  margin: 0 0 var(--spacing-md) 0;
  font-size: 0.9rem;
}

.footer-resources {
  margin-top: var(--spacing-sm);
}

.footer-resources strong {
  display: inline;
  margin-right: var(--spacing-xs);
}

.footer-resources .footer-links {
  display: inline;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-resources .footer-links li {
  display: inline;
}

.footer-resources .footer-links li::after {
  content: ", ";
  color: #9ca3af;
}

.footer-resources .footer-links li:last-child::after {
  content: "";
}

.footer-resources .footer-link {
  color: #9ca3af; /* match area-link color */
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-resources .footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.legal-links .footer-link {
  color: #9ca3af; /* Medium grey for legal links */
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

.legal-links .footer-link:hover {
  color: var(--white);
}

.separator {
  color: #9ca3af; /* Medium grey for separators */
  font-size: 0.8rem;
}

.footer-credentials {
  margin-bottom: var(--spacing-lg);
}

.credentials-text {
  color: #d1d5db; /* Lighter grey for credentials */
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.floating-call {
  background: #10b981; /* Green for call */
  border: 2px solid var(--white);
}

.floating-test {
  background: var(--primary-blue);
  border: 2px solid var(--white);
}

.floating-chat {
  background: var(--warning-orange); /* Orange for chat */
  border: 2px solid var(--white);
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-text {
  position: absolute;
  right: 70px;
  background: var(--charcoal-gray);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.floating-btn:hover .floating-text {
  opacity: 1;
  transform: translateX(0);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
}



.footer-competitive {
  background: var(--primary-blue);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-lg);
}

.competitive-text {
  color: var(--white);
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.competitive-text strong {
  font-weight: 700;
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
}

.floating-cta.show {
  display: block;
}

.floating-cta .btn {
  box-shadow: var(--shadow-xl);
  border-radius: 50px;
  padding: var(--spacing-md) var(--spacing-lg);
}

/* ===== HORIZONTAL CARD LAYOUT ===== */
.card-horizontal {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.card-horizontal .card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.card-horizontal .card-icon {
  flex-shrink: 0;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-horizontal .card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1.3;
}

.card-horizontal .card-text {
  margin: 0;
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-horizontal .card-header {
    gap: var(--spacing-sm);
  }
  
  .card-horizontal .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .card-horizontal .card-title {
    font-size: 1.125rem;
  }
}

/* ===== SERVICE AREAS SECTION ===== */
.service-areas-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.areas-column h5 {
  color: var(--primary-blue);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--light-blue);
}

.areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xs) var(--spacing-md);
}

.areas-list li {
  padding: var(--spacing-xs) 0;
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  padding-left: var(--spacing-md);
}

.areas-list li:before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-areas-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .areas-list {
    grid-template-columns: 1fr;
  }
}




/* ===== HOMEPAGE HERO (MOBILE SPACING) ===== */
@media (max-width: 768px) {
  /* Add vertical padding around the mobile hero image on homepage */
  body.homepage .hero-image-mobile,
  body.homepage .hero .hero-image,
  body.homepage .hero-image {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
  }

  /* Fallback: ensure spacing on the image itself */
  body.homepage .hero-image img.hero-filter-image,
  body.homepage .hero-image-mobile img.hero-filter-image {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: block;
  }
}

/* ===== GLOBAL MOBILE PADDING REDUCTIONS ===== */
@media (max-width: 768px) {
  /* Tighten section vertical padding sitewide */
  .section { padding: var(--spacing-lg) 0 !important; }
  .section .section-header { margin-bottom: var(--spacing-md) !important; }

  /* Reduce horizontal gutters on small screens */
  .container { padding-left: var(--spacing-md) !important; padding-right: var(--spacing-md) !important; }

  /* Cards and common blocks */
  .card,
  .comparison-card,
  .faq-item,
  .testimonial-card,
  .process-step,
  .benefit-card {
    padding: var(--spacing-md) !important;
  }

  /* Grids: reduce gaps slightly */
  .grid-2, .grid-3, .services-grid, .benefits-grid, .faq-grid { gap: var(--spacing-md) !important; }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs-wrapper {
  background: #f8fafc;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  z-index: 1;
}

.breadcrumbs-wrapper .container {
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.breadcrumbs {
  font-size: 0.95rem;
  color: var(--medium-gray);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--medium-gray);
}

.breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item::after {
  content: "/";
  margin: 0 var(--spacing-xs);
  color: var(--light-gray);
}

.breadcrumb-item:last-child::after {
  content: "";
}

.breadcrumb-item.active span {
  color: var(--charcoal-gray);
  font-weight: 700;
}

/* Ensure breadcrumbs clear the fixed header when placed right after header (even with promo bar) */
header ~ .breadcrumbs-wrapper { margin-top: 120px; }

@media (max-width: 768px) {
  .breadcrumbs { font-size: 0.9rem; }
  .breadcrumbs-wrapper .container { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
  header ~ .breadcrumbs-wrapper { margin-top: 120px; }
}

/* ===== GOOGLE PLACES AUTOCOMPLETE (DROPDOWN LAYERING) ===== */
/* Ensure the dropdown appears above fixed header and hero content on all pages */
.pac-container {
  position: absolute !important;
  z-index: 99999 !important; /* higher than header (1000) and modals (2000) if needed */
}

/* Optional: prevent any accidental clipping if injected inside containers */
.pac-container, .pac-item, .pac-item span {
  overflow: visible !important;
}
