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

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

body {
    overflow-x: hidden;
}

/* NAV SCROLL STATE */
#site-header.scrolled #nav-card {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #448F6E;
    border-radius: 1px;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* MOBILE MENU */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    border-radius: 0.75rem;
}

/* HERO */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #FDFBF7, transparent);
    pointer-events: none;
}

/* FEATURE CARDS */
.feature-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* GALLERY */
.gallery-item {
    overflow: hidden;
    border-radius: 1.5rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* FORM */
#reservation-form input:focus,
#reservation-form select:focus,
#reservation-form textarea:focus {
    border-color: #448F6E;
    box-shadow: 0 0 0 3px rgba(68, 143, 110, 0.15);
}

#reservation-form button[type="submit"]:active {
    transform: scale(0.98);
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* CUSTOM SELECTION */
::selection {
    background: rgba(68, 143, 110, 0.2);
    color: #1A4031;
}

/* SUBTLE ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* FOCUS VISIBLE */
*:focus-visible {
    outline: 2px solid #448F6E;
    outline-offset: 2px;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .feature-card, .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gallery-item img { transition: none; }
    img { animation: none; }
}

/* WIDE SCREENS */
@media (min-width: 1920px) {
    .max-w-7xl { max-width: 80rem; }
}
