/* === BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest: #2D5A3D;
    --forest-dark: #1A2E23;
    --forest-light: #6B8F71;
    --cream: #F7F5EF;
    --white: #FFFFFF;
    --text: #1A2E23;
    --text-muted: rgba(26, 46, 35, 0.6);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'DM Serif Display', serif;
}

/* === NAVBAR === */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(247, 245, 239, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 46, 35, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* === MOBILE MENU === */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    position: relative;
    display: block;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest);
    transition: width 0.3s ease;
}

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

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal[data-reveal-state="visible"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest);
}

/* === SELECTION === */
::selection {
    background: var(--forest);
    color: var(--white);
}
