/* Leon Driving School — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0fb;
}
::-webkit-scrollbar-thumb {
    background: #b896d6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9667c0;
}

/* Navigation text color transitions */
.nav-text {
    color: #371e4a;
}

/* Navbar scrolled state handled by JS */

/* Hero decorative elements */
.hero-gradient {
    background: linear-gradient(135deg, #1e0f28 0%, #43245a 40%, #7a44a5 100%);
}

/* Reveal animations — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile menu */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* Mobile link animation */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Subtle hover effects on service cards */
.group:hover .group-hover\:bg-amber-500\/20 {
    background-color: rgba(201, 162, 39, 0.2);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #C9A227;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group:hover {
        transform: none;
    }
    .group:hover .group-hover\:bg-amber-500\/20 {
        background-color: rgba(201, 162, 39, 0.1);
    }
}

/* Print styles */
@media print {
    nav, #contact-form, #form-success, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
