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

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

::selection {
    background-color: rgba(82, 128, 60, 0.2);
    color: #284020;
}

/* ===== Navbar ===== */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .font-serif {
    color: #284020 !important;
}

/* ===== Hero ===== */
.hero {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #21341a 0%, #315026 40%, #52803c 100%);
}

.hero-content {
    animation: heroFadeIn 1s ease-out forwards;
}

.hero-badge {
    animation: heroFadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero h1 {
    animation: heroFadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero p {
    animation: heroFadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero > div:last-child > div:last-child {
    animation: heroFadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9dbc80;
}

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

/* ===== Image Hover ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Button Ripple ===== */
button, a {
    -webkit-tap-highlight-color: transparent;
}
