/* Custom styles beyond Tailwind */

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 80, 45, 0.08);
}

/* Room card stagger animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .room-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, -webkit-transform 0.6s ease;
    }

    .room-card.reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .room-card.reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .amenity-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .amenity-card.reveal {
        opacity: 0;
        transform: translateY(20px);
    }

    .amenity-card.reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .room-card,
    .amenity-card {
        transition: none;
    }
}

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

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.2s ease;
}

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

/* Subtle pattern for cream sections */
.bg-cream-50::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(45, 80, 45, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content sits above pattern */
section > div {
    position: relative;
    z-index: 1;
}
