/* ── Base & Typography ─────────────────────────────────────── */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(6, 78, 59, 0.2);
    color: #042E22;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(32px);
}

.reveal[data-reveal-state="visible"] {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger[data-reveal-state="visible"] > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-stagger[data-reveal-state="visible"] > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .reveal[data-reveal-state="hidden"],
    .reveal-stagger > *,
    .reveal-stagger[data-reveal-state="visible"] > * {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0s;
    }
}

/* ── Mobile Menu ───────────────────────────────────────────── */

.mobile-link {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(4, 46, 34, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #042E22;
}

/* ── Form Focus Styles ─────────────────────────────────────── */

input:focus,
textarea:focus {
    outline: none;
}

/* ── Utility ───────────────────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
