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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header scroll state */
header.scrolled {
    background: rgba(255, 252, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(20, 83, 45, 0.08), 0 4px 20px rgba(20, 83, 45, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #15803d;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .reveal-card-1 { transition-delay: 0.05s; }
    .reveal-card-2 { transition-delay: 0.1s; }
    .reveal-card-3 { transition-delay: 0.15s; }
    .reveal-card-4 { transition-delay: 0.2s; }
    .reveal-card-5 { transition-delay: 0.25s; }
    .reveal-card-6 { transition-delay: 0.3s; }
}

/* Card hover lift */
.card {
    will-change: transform;
}

.card:hover {
    transform: translateY(-4px);
}

/* FAQ */
.faq-item {
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(20, 83, 45, 0.06);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-content.open {
    max-height: 200px;
}

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

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #86efac; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4ade80; }
</style>
