/* Custom Styles for Neely's Mobile Tire Service */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .text-charcoal-800,
.navbar-scrolled .text-charcoal-600 {
    color: #2D3748 !important;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #ffd4cc;
    color: #2D3748;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #ED8972;
    outline-offset: 2px;
}

/* Ensure form inputs have proper focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #ED8972 !important;
    box-shadow: 0 0 0 4px rgba(237, 137, 114, 0.15) !important;
}

/* Image loading placeholder */
img {
    background-color: #e8eaf0;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 640px) {
    nav a,
    nav button {
        min-height: 44px;
        min-width: 44px;
    }
}
