/* Custom styles for All Stars Truck Driving School */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070F1E;
}
::-webkit-scrollbar-thumb {
    background: #132F54;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a3d6b;
}

/* FAQ animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-content {
    max-height: 200px;
    padding-top: 0;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Scroll reveal base — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Subtle hover lift for cards */
.group {
    will-change: transform;
}
