/* Custom styles for C & M Automotive */

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

/* Custom selection color */
::selection {
    background-color: #9c2525;
    color: white;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(108, 29, 29, 0.08);
}

/* Subtle hover animations */
.group:hover svg {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.group svg {
    transition: transform 0.3s ease;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(156, 37, 37, 0.1);
}

/* Image hover zoom effect */
.group:hover img {
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

img {
    transition: transform 0.6s ease;
}

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c2525;
}
