/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.08s; }
    .reveal:nth-child(3) { transition-delay: 0.16s; }
    .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ===== BADGE / TAG ===== */
.badge-item {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background: #f0f7f0;
    color: #166534;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #d9ead9;
}

/* ===== STAT CARDS ===== */
.stat-card {
    animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -2s; }
.stat-card:nth-child(3) { animation-delay: -4s; }

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

/* ===== AMENITY CARDS ===== */
.amenity-card {
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.amenity-card:hover {
    transform: translateY(-4px);
}

/* ===== NAV ===== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #166534;
    transition: width 0.25s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* ===== MOBILE LINKS ===== */
.mobile-link {
    display: block;
}

/* ===== HEADER SCROLLED STATE ===== */
#site-header.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #b8d9b8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fc18f;
}

/* ===== SELECTION ===== */
::selection {
    background: #d9ead9;
    color: #0f4a26;
}
