/* Custom styles for Abilene Auto Mart */

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

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

/* Navbar scroll state */
.nav-scrolled {
  box-shadow: 0 1px 20px rgba(10, 37, 46, 0.08);
}

/* Reveal animations — progressive enhancement, only when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Ensure all text is readable */
.bg-midnight-900 {
  background-color: #0a252e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f2fdf8;
}
::-webkit-scrollbar-thumb {
  background: #86e8b5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4fd592;
}

/* Form focus styles */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(79, 213, 146, 0.2);
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero decorative elements */
.hero-blob {
  animation: float 6s ease-in-out infinite;
}
.hero-blob-2 {
  animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}
