/* Custom styles for Fork Creek Truck Accessories */

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

/* Floating animation for hero stat cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

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

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

::-webkit-scrollbar-thumb {
    background: #d66f38;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #f9e8df;
    color: #6c2e1e;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #d66f38;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

/* Button press effect */
button:active, a:active {
    transform: scale(0.97) !important;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f9e8df 0%, #fdf4f0 100%);
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(214, 111, 56, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(234, 179, 8, 0.03) 0%, transparent 50%);
}

/* Card hover glow */
.group:hover .group-hover\:shadow-glow {
    box-shadow: 0 20px 60px -15px rgba(214, 111, 56, 0.25);
}

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

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, #FFF8F0 0%, #f9e8df 50%, #fefce8 100%);
    }
}
