*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Hero card animations */
.hero-card {
    opacity: 0;
    transform: translateY(16px);
    animation: cardIn 0.6s ease forwards;
}
.hero-card:nth-child(1) { animation-delay: 0.5s; }
.hero-card:nth-child(2) { animation-delay: 0.7s; }
.hero-card:nth-child(3) { animation-delay: 0.9s; }

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lodging cards */
.lodging-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.lodging-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobileMenu.open {
    translate: 0;
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.closed {
    translate: 0;
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
.menu-line {
    width: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.active .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: color 0.3s ease;
}
.mobile-link:last-child { border-bottom: none; }

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 1px solid rgba(116, 198, 157, 0.6);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .lodging-card { opacity: 1; transform: none; }
    .hero-card { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 767px) {
    .hero-card { margin-bottom: 0; }
}
