/* Queen Anne Driving School — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0c4a6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #075985;
}

/* Navigation transitions */
.nav-text-color {
    color: #0c4a6e;
}
.nav-subtext-color {
    color: #0c4a6e;
}
.nav-link-color {
    color: #334155;
}
.nav-logo-color {
    color: #0c4a6e;
}

/* Dark nav state */
nav.scrolled .nav-text-color,
nav.scrolled .nav-logo-color {
    color: #f8fafc;
}
nav.scrolled .nav-subtext-color {
    color: #5eead4;
}
nav.scrolled .nav-link-color {
    color: #e2e8f0;
}
nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero ornament animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-ornament {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-ornament ~ h1 {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-ornament ~ h1 ~ p {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-ornament ~ h1 ~ p ~ div {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transition: all 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(12, 74, 110, 0.08);
    border-color: rgba(12, 74, 110, 0.15);
}

/* Mobile links */
.mobile-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Scroll reveal (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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