/* Custom styles for Direct Tools Factory Outlet */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F0E4;
}
::-webkit-scrollbar-thumb {
    background: #D49B62;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85446;
}

/* Hero animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Fade in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; }
    .fade-in.visible { opacity: 1; transform: none; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 251, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Card hover lift */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Selection color */
::selection {
    background: #D49B62;
    color: #301612;
}

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

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

/* Map container */
#location iframe {
    filter: grayscale(30%) contrast(1.05);
    transition: filter 0.3s ease;
}

#location iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* Product card image aspect ratio fix */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
