/* Custom styles for Casale Hotel */

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

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

/* Only apply animation when prefers-reduced-motion is not set */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #d4445e;
    border-radius: 4px;
}

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

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

/* Print styles */
@media print {
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav, .animate-fade-in-up {
        opacity: 1 !important;
    }
}

/* Ensure hero content is visible without JS */
@supports not (animation: float 6s ease-in-out infinite) {
    .animate-float {
        animation: none;
    }
}

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

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

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading optimization */
img {
    background-color: #fce7eb;
}
