/* Custom styles for SAGE Truck Driving Schools */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Navigation scroll state */
nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

nav.scrolled .font-serif {
    color: #0f1a0f;
}

/* Program card hover lift */
.program-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-4px);
}

/* Process step connector for mobile */
@media (max-width: 1023px) {
    .process-step:not(:last-child)::after {
        content: '';
        display: block;
        width: 2px;
        height: 32px;
        background: #d1fae5;
        margin: 0 auto;
    }
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .program-card,
    .testimonial-card {
        transition: none;
    }
    .program-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fdfbf7 inset !important;
}
