/* Custom styles for Back on the Road Again Mobile Mechanics */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c0523a;
}

/* Selection color */
::selection {
    background: rgba(192, 82, 58, 0.3);
    color: #fff;
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.4s ease,
                border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Service cards reveal animation */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* About section reveal */
#about .relative > div {
    opacity: 1;
    transform: translateY(0);
}

/* Why us reveal */
#why-us .space-y-8 > div {
    opacity: 1;
    transform: translateX(0);
}

/* CTA reveal */
#contact .bg-charcoal-800 {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.5);
}

/* Mobile menu open state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Bar animations for mobile menu */
.menu-active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-active #bar2 {
    opacity: 0;
}
.menu-active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    #about .relative > div,
    #why-us .space-y-8 > div,
    #contact .bg-charcoal-800 {
        transition: none;
        animation: none;
    }
}

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

/* Select arrow customization */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c0523a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
