/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAFAF5; }
::-webkit-scrollbar-thumb { background: #b9dfb9; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #85c485; }

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d7a2d, #85c485);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* ── Project Cards ── */
.project-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #dcefdc;
    line-height: 1;
    pointer-events: none;
}

/* ── Fade In on Scroll (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        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; }
}

/* Fallback: ensure content is visible if JS is disabled */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Mobile Menu Animation ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
}

/* ── Selection Color ── */
::selection {
    background: #b9dfb9;
    color: #0d2a0d;
}

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