/* Custom styles for L & R Supply & Chemical */

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

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

.navbar-scrolled .font-display,
.navbar-scrolled .font-sans {
    color: #2C3139 !important;
}

.navbar-scrolled a:not(.bg-coral-500):not(.bg-coral-600) {
    color: #565E6C !important;
}

.navbar-scrolled a:not(.bg-coral-500):not(.bg-coral-600):hover {
    color: #E83E1A !important;
}

/* Product card hover */
.product-card {
    will-change: transform, box-shadow;
}

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

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

/* Mobile link hover */
.mobile-link {
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    margin: 0 -1rem;
}

.mobile-link:hover {
    background: #FFF5F0;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C5C9D0;
    border-radius: 9999px;
}

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

/* Selection color */
::selection {
    background: #FFD0BB;
    color: #1D2026;
}

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

/* Reduced motion */
@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;
    }
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239BA2AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
}
