/* Custom styles that extend beyond Tailwind */

/* Smooth font rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent flash of unstyled content */
.no-js .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Print styles */
@media print {
  nav, .mobile-menu, #menuOverlay, button {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .hero-gradient, .cta-section {
    background: #fff !important;
    color: #000 !important;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card, .vehicle-card, .testimonial-card {
    border-width: 2px;
  }
  .btn-primary, .btn-plum {
    border: 2px solid currentColor;
  }
}

/* Landscape on small screens */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding: 80px 0;
  }
}

/* Very large screens */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
}
