/* Custom styles for Two Amigos Tire Shop */

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(121, 26, 54, 0.08);
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

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

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

/* Fade-in animation for elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero parallax-like effect */
#hero img {
    transition: transform 0.3s ease-out;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #ffc000;
    color: #3d0a19;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    button,
    a {
        transition: none;
    }
    
    .fade-in {
        transition: none;
        opacity: 1;
        transform: 0;
    }
    
    .animate-bounce {
        animation: none;
    }
}
