/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ── Nav ── */
.nav-scrolled {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 209, 190, 0.5);
    transition: box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
    box-shadow: 0 1px 12px rgba(26, 58, 42, 0.08);
}

/* ── Mobile Menu ── */
.mobile-link {
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-link:hover {
    background-color: rgba(220, 233, 224, 0.6);
    color: #1a3a2a;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
    /* Stagger children */
    .service-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Always visible — no JS required */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .service-card {
        opacity: 1;
        transform: none;
    }
}

/* ── Button Focus States ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #427a4e;
    outline-offset: 2px;
}

/* ── Selection ── */
::selection {
    background-color: rgba(66, 122, 78, 0.2);
    color: #1a3a2a;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #b8d1be;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb896;
}
