/* Custom styles for Mushroom Manor */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\:scale-110 {
        transform: none;
    }
    
    .transform {
        transform: none !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 244, 246, 0.95) !important;
    box-shadow: 0 4px 20px rgba(110, 29, 49, 0.1);
}

/* Image aspect ratios to prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}
