/* Base styles & custom overrides */
html {
    scroll-behavior: smooth;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e0;
}
::-webkit-scrollbar-thumb {
    background: #a3c285;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7ea558;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e873d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-blur-lg;
    box-shadow: 0 1px 0 rgba(94, 135, 61, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Hero decorative animation */
@media (prefers-reduced-motion: no-preference) {
    #hero .absolute {
        animation: float 8s ease-in-out infinite;
    }
    #hero .absolute:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 10s;
    }
    #hero .absolute:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 12s;
    }
    #hero .absolute:nth-child(4) {
        animation-delay: -6s;
        animation-duration: 9s;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5e873d;
    outline-offset: 2px;
    border-radius: 4px;
}
