/* Base styles & custom properties */
:root {
    --forest-50:  #f0f5f0;
    --forest-100: #d9e6d9;
    --forest-200: #b8d1b8;
    --forest-600: #3d633d;
    --forest-700: #325032;
    --forest-800: #284128;
    --forest-900: #1f331f;
    --cream-50:  #fdfcfa;
    --cream-100: #faf7f0;
}

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(61, 99, 61, 0.2);
    color: #1f331f;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #3d633d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Scroll reveal base — content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

/* Only animate for users who prefer motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(31, 51, 31, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf7f0;
}
::-webkit-scrollbar-thumb {
    background: #b8d1b8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb88f;
}

/* Button hover micro-interaction */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #d9e6d9 0%, #b8d1b8 100%);
}

/* Print styles */
@media print {
    header, footer, #contact-form button {
        display: none;
    }
    body {
        color: #1f331f;
        background: white;
    }
}
