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

body {
    font-family: 'Nunito', system-ui, sans-serif;
    color: #064E3B;
    background-color: #FFFDF7;
}

.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ── Nav ── */
#site-header {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
    background: rgba(255, 253, 247, 0.97);
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.08);
    backdrop-filter: blur(8px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* ── Floating stat cards ── */
.stat-card-float {
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.5s; }
.card-3 { animation-delay: -3s; }
.card-4 { animation-delay: -4.5s; }

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

/* ── Scroll reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Progressive enhancement: if JS is off, everything is already visible */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile menu ── */
.mobile-nav-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #059669;
    padding-left: 8px;
}

/* ── Menu cards ── */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ── Button hover lift ── */
.btn-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 78, 59, 0.15);
}

/* ── Image hover ── */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* ── Focus visible ── */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #34D399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFDF7;
}
::-webkit-scrollbar-thumb {
    background: #A7F3D0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34D399;
}

/* ── Selection ── */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

/* ── Mobile menu animation ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

#mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
    padding-bottom: 0;
}

/* ── Testimonial card hover ── */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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