/* ─── BASE ─── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #059669;
    color: #faf9f6;
}

/* ─── REVEAL ANIMATIONS (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

/* Fallback: always visible if JS is disabled or prefers-reduced-motion is set */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── NAV ─── */
#nav {
    transition: box-shadow 0.3s ease;
}

/* ─── FORM ─── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

/* ─── BUTTONS ─── */
a, button {
    cursor: pointer;
}

/* ─── SCROLLBAR (subtle) ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}
