/* Custom styles for Premier Auto Body */

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

/* Prevent FOUC on nav */
nav {
    will-change: transform;
}

/* Service card stagger animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern for hero background */
#hero {
    background-image: radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.04) 0%, transparent 50%);
}
