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

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

::selection {
    background: #1B4332;
    color: #FDFCF8;
}

/* ── Scroll Reveal (progressive enhancement) ───────────────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

/* ── Navbar Scroll State ───────────────────────────────────── */
.navbar-scrolled {
    background: rgba(253, 252, 248, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1B4332 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #528052 !important;
}

.navbar-scrolled .logo-text {
    color: #1B4332 !important;
}

.navbar-scrolled .logo-sub {
    color: #7a9f7a !important;
}

.navbar-scrolled .menu-btn span {
    background: #1B4332 !important;
}

/* ── Mobile Menu ───────────────────────────────────────────── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Custom Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF8F3;
}

::-webkit-scrollbar-thumb {
    background: #a8bfa8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a9f7a;
}

/* ── Image Hover Effects ───────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Focus Styles ──────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
}

/* ── Smooth anchor offset for fixed nav ────────────────────── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── Form Input Autofill ───────────────────────────────────── */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #163828 inset !important;
    -webkit-text-fill-color: #FDFCF8 !important;
    transition: background-color 5000s ease-in-out 0s;
}
