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

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

::selection {
    background-color: rgba(212, 165, 116, 0.3);
    color: #1B4332;
}

/* ── Navigation ── */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled {
    background-color: rgba(27, 67, 50, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-link {
    color: #fdf8f0;
}

#navbar.scrolled #nav-logo-text {
    color: #fdf8f0;
}

#navbar.scrolled #nav-logo-circle {
    border-color: rgba(253, 248, 240, 0.3);
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6a916e;
}

/* ── Mobile Menu Animation ── */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Parallax Subtle ── */
#hero img {
    will-change: transform;
}

/* ── Service Card Hover ── */
.bg-forest-800\/60:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.bg-forest-800\/60 {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.4s ease,
                border-color 0.4s ease;
}

/* ── Form Input Transitions ── */
input, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Print Styles ── */
@media print {
    #navbar, #mobile-menu-btn, #mobile-menu {
        display: none !important;
    }

    body {
        color: #1a1a1a;
        background: white;
    }

    .bg-forest-700, .bg-forest-800, .bg-forest-900 {
        background: #f5f5f5 !important;
        color: #1a1a1a !important;
    }
}
