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

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

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

/* Navbar */
.navbar-scrolled #navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(2, 44, 34, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #022c22;
}

.navbar-scrolled .nav-link {
    color: #022c22;
}

.navbar-scrolled #navbar .hamburger-line {
    background: #022c22;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero animations */
.hero-badge {
    animation: fadeUp 0.8s ease-out both;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeUp 0.8s ease-out 0.45s both;
}

.hero-scroll {
    animation: fadeUp 0.8s ease-out 0.7s both;
}

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

/* Feature cards */
.feature-card {
    animation: fadeUp 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Menu */
.menu-header {
    animation: fadeUp 0.6s ease-out both;
}

.menu-card {
    animation: fadeUp 0.6s ease-out both;
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }

.menu-cta {
    animation: fadeUp 0.6s ease-out 0.5s both;
}

/* About */
.about-content {
    animation: fadeUp 0.6s ease-out both;
}

.about-img-card {
    animation: scaleIn 0.7s ease-out both;
}

.about-img-card:nth-child(1) { animation-delay: 0.15s; }
.about-img-card:nth-child(2) { animation-delay: 0.3s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Story */
.story-images {
    animation: fadeUp 0.6s ease-out both;
}

.story-img-card {
    animation: scaleIn 0.7s ease-out both;
}

.story-badge {
    animation: fadeUp 0.6s ease-out 0.4s both;
}

.story-content {
    animation: fadeUp 0.6s ease-out 0.2s both;
}

/* Visit */
.visit-header {
    animation: fadeUp 0.6s ease-out both;
}

.visit-info {
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.visit-map {
    animation: fadeUp 0.6s ease-out 0.2s both;
}

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

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

/* Selection */
::selection {
    background: #065f46;
    color: #fefdf8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}
