/* Custom styles for Atlantic Driving School */

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

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

/* Scroll reveal base — progressive enhancement, visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.visible {
    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; }
  .reveal.delay-4 { transition-delay: 0.4s; }
  .reveal.delay-5 { transition-delay: 0.5s; }
  .reveal.delay-6 { transition-delay: 0.6s; }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(12, 25, 43, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-content {
  max-height: 200px;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Service card image hover */
.service-card img {
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.03);
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Selection color */
::selection {
  background: #facc15;
  color: #0c192b;
}

/* Remove outline for mouse users, keep for keyboard */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle pattern for hero overlay area */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(69, 105, 191, 0.05) 0%, transparent 50%);
}
