/* Custom Styles for When It Really Matters */

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

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

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

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

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

/* Nav scroll effect */
.nav-scrolled #mainNav {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hero section parallax */
#hero {
    scroll-behavior: smooth;
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Button hover effects */
.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Image hover zoom */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

#mobileMenu.active {
    max-height: 400px;
}

/* Subtle entrance animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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