/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Navigation ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.25s ease;
    border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }
.nav-link { color: #064e3b; }

/* ── Header scroll state ── */
#site-header.scrolled {
    background: rgba(254, 252, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}
#site-header.scrolled .nav-link { color: #064e3b; }
#site-header.scrolled .font-bold { color: #064e3b; }
#site-header.scrolled .text-emerald-600 { color: #059669; }

/* ── Mobile Menu ── */
.mobile-link {
    display: block;
    color: #064e3b;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d1fae5;
    transition: color 0.2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: #059669; }

/* ── Floating Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-delay {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 5s ease-in-out infinite 1s; }

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.grid > .scroll-reveal[data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.grid > .scroll-reveal[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.grid > .scroll-reveal[data-reveal]:nth-child(3) { transition-delay: 0.15s; }
.grid > .scroll-reveal[data-reveal]:nth-child(4) { transition-delay: 0.2s; }
.grid > .scroll-reveal[data-reveal]:nth-child(5) { transition-delay: 0.25s; }
.grid > .scroll-reveal[data-reveal]:nth-child(6) { transition-delay: 0.3s; }

/* ── FAQ Accordion ── */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-content.open {
    max-height: 200px;
}
.faq-icon {
    flex-shrink: 0;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animate-float, .animate-float-delay { animation: none; }
    .scroll-reveal[data-reveal] { opacity: 1; transform: none; }
    .faq-content { transition: none; }
    .nav-link::after { transition: none; }
}
</style>
