/* Import modern Sans-Serif fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-primary: #FCD116;       /* Bold Safety Yellow */
  --color-primary-hover: #e5bd10;
  --color-dark: #141414;          /* Deep Charcoal/Solid Black */
  --color-dark-accent: #222222;
  --color-white: #FFFFFF;
  --color-light-gray: #F4F4F4;
  --color-text-dark: #1d1d1d;
  --color-text-muted: #666666;
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-error: #c62828;
  --color-error-bg: #ffebee;
  --color-border: #dddddd;

  /* Typography */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 8px;
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: var(--shadow-subtle);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-dark:hover, .btn-dark:focus {
  background-color: var(--color-dark-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  color: var(--color-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-dark);
  box-shadow: 0 0 0 4px rgba(252, 209, 22, 0.2);
}

/* Sections General */
section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Section A: Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-dark);
  z-index: 1100; /* Stays above interactive map controls */
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo-img {
  height: 55px;
  width: auto;
  border-radius: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

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

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

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

.header-cta {
  display: flex;
  align-items: center;
}

.header-cta .btn {
  font-size: 0.85rem;
  padding: 10px 20px;
  box-shadow: none;
}

/* Mobile Nav Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1120; /* Stays above mobile menu drawer */
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-smooth);
  transform-origin: left center;
}

/* Section B: Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle, rgba(20,20,20,0.85) 0%, rgba(10,10,10,0.95) 100%), url('../assets/hero.png') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  padding-top: 120px; /* Offset for sticky nav */
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  font-weight: 300;
  border-left: 4px solid var(--color-primary);
  padding-left: 16px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-truck-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.hero-truck-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-truck-card img {
  border-radius: 8px;
  width: 100%;
}

.hero-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background-color: var(--color-primary);
  color: var(--color-dark);
  font-family: var(--font-headings);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: var(--shadow-medium);
  transform: rotate(-5deg);
  z-index: 10;
  white-space: nowrap;
}

/* Section C: Service Area Tool */
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.map-container {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
  position: relative;
  width: 100%;
  height: 450px;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

@media (max-width: 768px) {
  .map-container {
    height: 350px;
  }
}

/* Leaflet Popup Styling Customization to match Route One brand */
.leaflet-popup-content-wrapper {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--color-primary);
  padding: 4px;
}

.leaflet-popup-tip {
  background-color: var(--color-primary);
}

.leaflet-popup-content h4 {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  margin: 0 0 4px 0;
  color: var(--color-dark);
}

.leaflet-popup-content p {
  font-family: var(--font-body);
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-dark);
}

/* Leaflet Tooltip Styling Customization to match Route One brand */
.county-tooltip {
  background-color: var(--color-dark) !important;
  color: var(--color-white) !important;
  border: 1.5px solid var(--color-primary) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-family: var(--font-headings) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-subtle) !important;
  opacity: 0.95 !important;
}

.county-tooltip.leaflet-tooltip-top::before {
  border-top-color: var(--color-primary) !important;
}
.county-tooltip.leaflet-tooltip-bottom::before {
  border-bottom-color: var(--color-primary) !important;
}
.county-tooltip.leaflet-tooltip-left::before {
  border-left-color: var(--color-primary) !important;
}
.county-tooltip.leaflet-tooltip-right::before {
  border-right-color: var(--color-primary) !important;
}

.checker-container {
  background: var(--color-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  border-left: 6px solid var(--color-primary);
}

.checker-container h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.checker-container p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.checker-input-group {
  display: flex;
  gap: 12px;
}

.checker-input-group .form-control {
  max-width: 250px;
}

.checker-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: none;
  animation: slideDown 0.3s ease-out forwards;
}

.checker-result.success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.checker-result.error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* Section D: The Route One Difference */
.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.diff-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  border-left: 5px solid var(--color-dark);
  transition: var(--transition-smooth);
  position: relative;
}

.diff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--color-primary);
}

.diff-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-dark);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.diff-card:hover .diff-icon {
  background-color: var(--color-primary);
  transform: scale(1.1);
}

.diff-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.diff-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Section E: Quote & Sign-Up Form */
.quote-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.quote-info {
  position: sticky;
  top: 120px;
}

.quote-info h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.quote-info p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.contact-bullets {
  list-style: none;
}

.contact-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.contact-bullets .icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.form-wrapper {
  background-color: var(--color-white);
  padding: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
}

.form-wrapper form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-wrapper .form-group-full {
  grid-column: span 2;
}

.form-wrapper .btn {
  grid-column: span 2;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 16px;
}

.form-status {
  grid-column: span 2;
  padding: 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: none;
  text-align: center;
}

.form-status.success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.form-status.error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(198, 40, 40, 0.2);
}

/* Honeypot field (hidden from users) */
.honey-field {
  display: none;
}

/* Section F: Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-brand .footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-links h4, .footer-info h4 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-headings);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

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

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-info a {
  color: var(--color-primary);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

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

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

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .service-area-grid, .quote-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  /* Navigation Drawer style for Mobile */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    z-index: 1110; /* Stays above Leaflet controls (z-index: 1000) */
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-subtitle {
    border-left: none;
    border-bottom: 3px solid var(--color-primary);
    padding-left: 0;
    padding-bottom: 12px;
  }

  .hero-ctas {
    justify-content: center;
  }
  
  .hero-truck-card {
    transform: rotate(0deg);
    max-width: 500px;
    margin: 0 auto;
  }

  .service-area-grid {
    grid-template-columns: 1fr;
  }
  
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }
  
  .quote-info {
    position: relative;
    top: 0;
  }

  .form-wrapper {
    padding: 30px 20px;
  }

  .form-wrapper form {
    grid-template-columns: 1fr;
  }

  .form-wrapper .form-group-full {
    grid-column: span 1;
  }

  .form-wrapper .btn {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
