/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #1a3c2a;
    color: #faf8f4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #aed0ba;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7fb896;
}

/* Hero Content Animation */
.hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Labels */
.section-label {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s ease;
}
.section-label.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lodging Cards */
.lodging-card {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.lodging-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.lodging-card:nth-child(2) { transition-delay: 0.1s; }
.lodging-card:nth-child(3) { transition-delay: 0.2s; }

/* Feature Items */
.feature-item {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-item:nth-child(2) { transition-delay: 0.1s; }
.feature-item:nth-child(3) { transition-delay: 0.2s; }
.feature-item:nth-child(4) { transition-delay: 0.3s; }

/* Nav scroll state */
.nav-scrolled {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

/* Mobile menu animations */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
}
#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-content > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .section-label,
    .lodging-card,
    .feature-item {
        opacity: 1;
        transform: none;
    }
}
