*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating animations for hero stat cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.floating-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.floating-medium {
    animation: float-medium 4.5s ease-in-out infinite;
}

.floating-fast {
    animation: float-fast 3.5s ease-in-out infinite;
}

/* Scroll reveal — progressive enhancement, only applies when JS runs or motion is allowed */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Always-visible fallback for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Room card hover */
.room-card {
    will-change: transform;
}

.room-card img {
    will-change: transform;
}

/* Mobile menu */
#mobileMenu {
    animation: menuIn 0.3s ease forwards;
}

@keyframes menuIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-link {
    transition: opacity 0.2s ease;
}

.mobile-link:active {
    opacity: 0.6;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 90, 61, 0.08);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F0;
}
::-webkit-scrollbar-thumb {
    background: #BDD6BD;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8FBF8F;
}
