/* ── Base & Animations ── */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* ── Scroll-triggered reveals ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Navbar scroll state ── */
nav.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

nav.scrolled .font-serif,
nav.scrolled a:not(.bg-forest-800) {
    color: #1a3c2a;
}

/* ── Service card hover lift ── */
.service-card {
    box-shadow: 0 4px 24px rgba(26, 60, 42, 0.06);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 12px 48px rgba(26, 60, 42, 0.15);
    transform: translateY(-4px);
}

/* ── Testimonial card hover ── */
.testimonial-card {
    box-shadow: 0 2px 16px rgba(26, 60, 42, 0.05);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

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

/* ── Smooth scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Selection color ── */
::selection {
    background: #1a3c2a;
    color: #faf8f4;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a7a4a;
}

/* ── Mobile menu transition ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
}
