/* Custom styles for S and S Supply */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Selection color */
::selection {
    background: #eab308;
    color: #102a43;
}

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

/* Subtle pattern for hero */
#top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Nav shadow on scroll */
#nav.scrolled {
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.08);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

.group {
    transition: transform 0.3s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* 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);
    }
}
