/* Custom styles for Bogalusa Driving School */

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

/* Selection color */
::selection {
    background-color: #166534;
    color: #fefdf8;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.1);
}

nav.scrolled .navbar-link {
    color: #166534;
}

nav.scrolled .navbar-link:hover {
    color: #15803d;
}

nav.scrolled .logo-text {
    color: #166534;
}

/* Scroll reveal base — content always visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .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; }
}

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

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Fade-in for hero stats */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stat {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.hero-stat:nth-child(1) { animation-delay: 0.8s; }
.hero-stat:nth-child(2) { animation-delay: 0.9s; }
.hero-stat:nth-child(3) { animation-delay: 1s; }

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #bbf7d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #86efac;
}

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

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

/* Service card hover image parallax */
.group:hover .card-image {
    transform: scale(1.05);
}

.card-image {
    transition: transform 0.6s ease;
}
