/* Butler Automotive Sales — Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1a0b;
}
::-webkit-scrollbar-thumb {
  background: #1f4520;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c49a2e;
}

/* Selection color */
::selection {
  background: rgba(196, 154, 46, 0.3);
  color: #faf9f6;
}

/* Base font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c49a2e;
  outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Animation keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card-hover {
    transition: none;
  }
  .card-hover:hover {
    transform: none;
  }
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  .pulse-gold {
    animation: none;
  }
}

/* Print styles */
@media print {
  nav,
  .mobile-menu,
  #menuOverlay {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .hero-gradient {
    background: #1a3a1a !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary {
    border: 2px solid ButtonText;
  }
  .card-hover {
    border: 1px solid ButtonText;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .font-display {
    font-size: 1.5rem;
  }
  h1 {
    font-size: 2rem !important;
  }
}

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