/* Dolphin Driving School — Custom Styles */

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

/* Selection color */
::selection {
  background-color: #ffd99a;
  color: #261326;
}

/* Service card stagger animation */
.service-card {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial card */
.testimonial-card {
  opacity: 1;
  transform: translateY(0);
}

/* Process step */
.process-step {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animations */
.mobile-link {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f0f7;
}

::-webkit-scrollbar-thumb {
  background: #c29dc9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ab72aa;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid #ffd99a;
  outline-offset: 2px;
}

/* Reduced motion */
@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 base — visible by default, animated via JS */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* At-rest state for elements that start hidden via JS enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal-hidden {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ffc163 !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 99, 0.2);
}

/* Button hover lift effect */
button:hover,
a:hover {
  transform: translateY(-1px);
}

button:active,
a:active {
  transform: translateY(0);
}

/* Image placeholder fallback */
img {
  background: linear-gradient(135deg, #ebe0ef 0%, #d8c4df 100%);
}
