/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #9bc58a;
    color: #111f0e;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #9bc58a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74a661;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(40, 69, 35, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #74a661;
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
}

#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

/* ===== Hero Animations ===== */
.hero-eyebrow {
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-headline {
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-subtext {
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: heroReveal 0.8s ease forwards;
    animation-delay: 0.9s;
}

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

/* ===== Section Headers ===== */
.section-eyebrow {
    animation: fadeUp 0.7s ease forwards;
}

.section-headline {
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.1s;
}

.section-subtext {
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.2s;
}

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

/* ===== Tree Cards ===== */
.tree-card {
    cursor: pointer;
}

.tree-card:hover .tag-badge {
    transform: translateY(-2px);
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3efdc;
    color: #3d6b33;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: transform 0.3s ease;
}

/* ===== Visit Info Items ===== */
.visit-info-item {
    animation: fadeUp 0.6s ease forwards;
}

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

/* ===== Scroll Reveal (below fold only) ===== */
[data-animate] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].hidden-init {
    opacity: 0;
    transform: translateY(24px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .tree-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    
    .tree-card:hover {
        transform: translateY(-4px);
    }
}

@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;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem !important;
    }
    
    .section-headline {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.75rem !important;
    }
    
    .section-headline {
        font-size: 2.5rem !important;
    }
}
