/* === Base & Utilities === */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.97);
    box-shadow: 0 1px 0 rgba(26, 77, 46, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #1a4d2e;
    transition: width 0.2s ease;
}

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

#navbar.scrolled .nav-link {
    color: #1a4d2e;
}

#navbar.scrolled .nav-link:hover {
    color: #0f2e1b;
}

/* === Mobile Menu === */
.mobile-link {
    display: block;
}

/* === Menu Tabs === */
.menu-tab {
    background: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.menu-tab.active {
    background: #1a4d2e;
    color: #faf8f5;
    box-shadow: 0 2px 8px rgba(26, 77, 46, 0.3);
}

.menu-tab:not(.active):hover {
    color: #1a4d2e;
    background: rgba(26, 77, 46, 0.06);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal img:hover {
        transform: none;
    }
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #4d9254;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Selection === */
::selection {
    background: #a5cca8;
    color: #0f2e1b;
}

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

::-webkit-scrollbar-track {
    background: #f5f0eb;
}

::-webkit-scrollbar-thumb {
    background: #a5cca8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #74b078;
}
