/* Custom styles for JM Automotive Services */

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 30, 64, 0.08);
}

.nav-scrolled .nav-text {
    color: #6b1e40 !important;
}

.nav-scrolled .nav-subtext {
    color: #a05f04 !important;
}

.nav-scrolled .nav-link {
    color: #6b1e40 !important;
}

.nav-scrolled #mobile-menu-btn span {
    background-color: #6b1e40 !important;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.35s; }
    .reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

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

/* Selection color */
::selection {
    background-color: rgba(107, 30, 64, 0.15);
    color: #3d0a20;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fafaf5;
}

::-webkit-scrollbar-thumb {
    background: #c4277e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a11d5f;
}

/* Form select arrow */
select {
    appearance: none;
    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='%236b1e40' stroke-width='2'%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;
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal { display: none; }
    body { background: white; color: black; }
    section { padding: 1rem 0; }
}
