/* === Base & Utilities === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background-color: #166534;
    color: #fefdf8;
}

/* === Scroll Reveal (Progressive Enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .process-step,
    .testimonial-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }

    .process-step:hover .w-16 {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(22, 101, 52, 0.08);
    }

    .process-step .w-16 {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* === Navbar Scroll State === */
.nav-scrolled {
    background-color: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08), 0 4px 20px rgba(22, 78, 59, 0.06);
}

.nav-scrolled .font-serif,
.nav-scrolled span[class*="text-emerald-900"] {
    color: #064e3b !important;
}

/* === Mobile Menu Transitions === */
#mobileMenu.menu-open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.menu-closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* === Form Focus States === */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* === Print Styles === */
@media print {
    #navbar,
    #mobileMenu,
    .cta-banner {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #064e3b;
    }
}
