/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1c381f;
    background: #FAFAF6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scroll reveal base — visible by default, enhanced by JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Nav */
#nav.scrolled {
    background: rgba(250, 250, 246, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(42, 85, 46, 0.08);
}
.nav-logo-text {
    color: #1c381f;
}
.nav-link {
    color: #2a552e;
}

/* Hero */
#hero {
    position: relative;
    min-height: 100vh;
}

/* Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Button focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4a8a4e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f2f7f4; }
::-webkit-scrollbar-thumb { background: #9cc59f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6da870; }

/* Selection */
::selection { background: #c6dfc9; color: #1c381f; }
</style>
