:root {
    --color-off-white: #f7f8f6;
    --color-forest-50: #f2f5f0;
    --color-forest-100: #e3ebe0;
    --color-forest-200: #c5d8c0;
    --color-forest-300: #9bbf96;
    --color-forest-400: #74a16e;
    --color-forest-500: #52804e;
    --color-forest-600: #3d643c;
    --color-forest-700: #315030;
    --color-forest-800: #284128;
    --color-forest-900: #223622;
    --color-forest-950: #111a10;
}

@layer base {
    html {
        scroll-behavior: smooth;
    }

    body {
        background-color: var(--color-off-white);
        color: var(--color-forest-900);
        font-family: 'Inter', sans-serif;
        font-weight: 300;
        line-height: 1.7;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .font-cormorant {
        font-family: 'Cormorant Garamond', serif;
    }

    .font-inter {
        font-family: 'Inter', sans-serif;
    }
}

/* Hero entrance animations */
.hero-element {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.1s; }
.hero-element:nth-child(2) { animation-delay: 0.2s; }
.hero-element:nth-child(3) { animation-delay: 0.3s; }
.hero-element:nth-child(4) { animation-delay: 0.4s; }
.hero-element:nth-child(5) { animation-delay: 0.5s; }

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

/* Scroll reveal - progressive enhancement, only applies when JS runs */
.reveal {
    /* Default state: fully visible for accessibility */
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Navbar transition */
.nav-scrolled {
    background-color: rgba(247, 248, 246, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(40, 65, 40, 0.08);
}

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

/* Subtle line decoration */
.divider-line {
    width: 48px;
    height: 1px;
    background-color: var(--color-forest-300);
}

/* Selection color */
::selection {
    background-color: var(--color-forest-200);
    color: var(--color-forest-900);
}

/* Focus styles */
:focus-visible {
    outline: 1px solid var(--color-forest-400);
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-off-white);
}
::-webkit-scrollbar-thumb {
    background: var(--color-forest-300);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-forest-500);
}
