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

body {
    overflow-x: hidden;
}

::selection {
    background: #dce8dc;
    color: #213621;
}

/* ── Scroll Indicator Animation ── */
.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #93bf93);
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ── Reveal Animations (progressive enhancement) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* ── Navbar ── */
#navbar {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(189, 216, 189, 0.4);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(45, 82, 45, 0.08);
}

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

.mobile-link {
    transition: opacity 0.2s ease;
}

/* ── Form Focus States ── */
input:focus,
textarea:focus {
    border-bottom-color: #4a7c4a !important;
}

/* ── Subtle hover lift on service cards ── */
/* Handled via Tailwind hover:bg-forest-800 */

/* ── Map container ── */
iframe {
    border-radius: 0;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #bdd8bd;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #93bf93;
}
