/* ==========================================================================
   Responsive CSS - Mobile First Breakpoints
   ========================================================================== */

/* ==========================================================================
   Mobile Base (< 768px)
   ========================================================================== */

/* Navigation Mobile */
.nav__toggle {
  display: flex;
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-secondary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  transition: right var(--transition-base);
}

.nav__menu.active {
  right: 0;
}

.nav__link {
  font-size: var(--fs-xl);
  color: var(--color-text-inverse);
}

/* Hero Mobile */
.hero {
  padding: var(--space-4xl) 0 var(--space-2xl);
  background-attachment: scroll;
}

.hero__container {
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-size: var(--fs-3xl);
}

.hero__social.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.quote-card {
  padding: var(--space-xl);
}

/* Forms Mobile */
.form__row {
  grid-template-columns: 1fr;
}

/* Services Mobile */
.services__grid {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Slider Mobile */
.slider {
  aspect-ratio: 4 / 3;
  min-height: 300px;
}

/* Map Mobile */
.map-wrapper {
  height: 450px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Pricing Mobile */
.pricing__container {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.pricing__gallery {
  grid-column: span 1;
}

/* Vehicle Mobile */
.vehicle__container {
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.vehicle__content {
  text-align: center;
  order: -1;
}

/* Footer Mobile */
.footer__content {
  flex-direction: column;
  text-align: center;
}

/* ==========================================================================
   Tablet (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {
  /* Navigation Tablet */
  .nav__toggle {
    display: flex;
  }

  /* Hero Tablet */
  .hero__title {
    font-size: var(--fs-4xl);
  }

  /* Services Tablet */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid .card--service:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  /* Slider Tablet */
  .slider {
    aspect-ratio: 16 / 10;
    min-height: auto;
  }

  /* Map Tablet */
  .map-wrapper {
    height: 500px;
  }

  /* Pricing Tablet */
  .pricing__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__gallery {
    grid-column: span 2;
  }

  /* Vehicle Tablet */
  .vehicle__content {
    text-align: left;
    order: 0;
  }
}

/* ==========================================================================
   Desktop (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Navigation Desktop */
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    gap: var(--space-xl);
  }

  .nav__link {
    font-size: var(--fs-sm);
  }

  /* Hero Desktop */
  .hero {
    background-attachment: fixed;
  }

  .hero__container {
    grid-template-columns: 1fr 1fr;
  }

  .hero__content {
    text-align: left;
  }

  .hero__title {
    font-size: var(--fs-5xl);
  }

  .hero__social.social-links {
    align-items: flex-start;
    margin: 0;
  }

  /* Slider Desktop */
  .slider {
    aspect-ratio: 16 / 9;
  }

  /* Services Desktop */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid .card--service:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Map Desktop */
  .map-wrapper {
    height: 600px;
  }

  /* Pricing Desktop */
  .pricing__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing__gallery {
    grid-column: span 2;
  }

  /* Vehicle Desktop */
  .vehicle__container {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer Desktop */
  .footer__content {
    flex-direction: row;
    text-align: left;
  }
}

/* ==========================================================================
   Large Desktop (>= 1280px)
   ========================================================================== */

@media (min-width: 1280px) {
  :root {
    --container-max: 1200px;
  }

  .hero__container {
    gap: var(--space-4xl);
  }

  .services__grid {
    gap: var(--space-2xl);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .header,
  .nav__toggle,
  .back-to-top,
  #map,
  .quote-card {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
    background: none;
  }

  .hero::before {
    display: none;
  }

  .hero__content {
    color: var(--color-text);
  }

  .section {
    padding: var(--space-xl) 0;
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
  :root {
    --color-primary: #ffc107;
    --color-text: #000000;
    --color-text-muted: #333333;
  }

  .btn--primary {
    border: 2px solid var(--color-secondary);
  }

  .card {
    border: 2px solid var(--color-text);
  }
}

/* ==========================================================================
   Dark Mode (if user prefers)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Optionally add dark mode styles here */
  /* For now, keeping the branded look */
}
