/* Custom styles for Tyler Driving School */

/* Smooth focus outlines */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(181, 101, 74, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
    background: #D9C2AA;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B5654A;
}

/* Selection color */
::selection {
    background: rgba(181, 101, 74, 0.15);
    color: #2D2A26;
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu-btn.active .menu-line:first-child {
    transform: translateY(5px) rotate(45deg);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:last-child {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Subtle parallax on hero image */
@media (prefers-reduced-motion: no-preference) {
    #hero .absolute img {
        will-change: transform;
    }
}

/* Service card image hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

/* Button active states */
.btn-primary:active, .btn-outline:active {
    transform: translateY(0);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .nav-scrolled {
        transition: none;
    }
}
