/* ========== BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f3;
}
::-webkit-scrollbar-thumb {
    background: #9bbf9b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6e9f6e;
}

/* ========== SELECTION ========== */
::selection {
    background: #3d633d;
    color: #fdfcfa;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== SCROLL REVEAL (below-fold only, progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ========== NAV SCROLLED STATE ========== */
#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(15, 26, 15, 0.08);
}

/* ========== CARD HOVER ========== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ========== FOCUS ========== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #6e9f6e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== MOBILE MENU TRANSITION ========== */
#mobile-menu {
    animation: fadeIn 0.2s ease-out;
}
