/* Custom styles for Casa Luna */

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

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 244, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(112, 45, 88, 0.08);
}

nav.scrolled .font-serif {
    color: #5c2747;
}

/* Hero stat cards floating animation */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(6px); }
}
@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}
@keyframes float-4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(7px); }
}

.stat-card.card-1 { animation: float-1 4s ease-in-out infinite; }
.stat-card.card-2 { animation: float-2 4.5s ease-in-out infinite; }
.stat-card.card-3 { animation: float-3 3.8s ease-in-out infinite; }
.stat-card.card-4 { animation: float-4 4.2s ease-in-out infinite; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal-child > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-child > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-child > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-child > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-child > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-child > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-child > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-child > *:nth-child(8) { transition-delay: 0.75s; }

/* Room cards */
.room-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.room-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Amenity cards */
.amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.amenity-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery images */
.gallery-img {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-img.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

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

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #a8558c;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Reduced motion */
@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; }
    .reveal, .room-card, .amenity-card, .gallery-img {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu links */
.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.mobile-link:hover {
    background-color: rgb(243 232 240);
}
