/* Custom styles for Summit Diesel Parts */

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

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

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

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

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

/* Selection color */
::selection {
    background: #f4d3c6;
    color: #6d2d21;
}

/* Navbar scroll effect */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Subtle hover transitions */
a, button {
    transition: all 0.3s ease;
}

/* Image lazy loading fade */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Reduce motion for accessibility */
@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;
    }
}

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

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px currentColor;
}

/* Button hover lift effect */
button:hover, a:hover {
    transform: translateY(-1px);
}

button:active, a:active {
    transform: translateY(0);
}

/* Card hover effect */
.group:hover img {
    transform: scale(1.05);
}

/* Custom underline animation */
.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}
