/* Custom styles for Ramlogan's Driving School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2b1119;
}
::-webkit-scrollbar-thumb {
  background: #6f2b46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #873754;
}

/* Selection color */
::selection {
  background: #ffbc2e;
  color: #2b1119;
}

/* Reduced motion support */
@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;
  }
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is enabled and animation class is present */
.animate-scroll-reveals .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.animate-scroll-reveals .scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.scroll-reveal.delay-100 { transition-delay: 100ms; }
.scroll-reveal.delay-200 { transition-delay: 200ms; }
.scroll-reveal.delay-300 { transition-delay: 300ms; }
.scroll-reveal.delay-400 { transition-delay: 400ms; }
.scroll-reveal.delay-500 { transition-delay: 500ms; }

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(43, 17, 25, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero gradient overlay for image */
.hero-image-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 17, 25, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

/* Amber glow effect */
.amber-glow {
  box-shadow: 0 0 40px rgba(255, 188, 46, 0.15);
}

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #ffbc2e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Select dropdown styling */
select option {
  background: #2b1119;
  color: #f5e9ee;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a0a10 inset !important;
  -webkit-text-fill-color: #f5e9ee !important;
}
