*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* NAV */
#nav {
    background: rgba(250, 250, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(157, 187, 130, 0.15);
}

#nav.scrolled {
    box-shadow: 0 1px 20px rgba(33, 52, 29, 0.06);
}

/* HERO ANIMATIONS */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll {
    animation: fadeUp 0.8s ease forwards 1.2s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* REVEAL ANIMATIONS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* SERVICE CARDS */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card svg {
    transition: transform 0.4s ease, color 0.4s ease;
}

.service-card:hover svg {
    transform: scale(1.1);
}

/* MOBILE MENU */
.mobile-link {
    transition: opacity 0.3s ease;
}

.mobile-link:active {
    opacity: 0.6;
}

/* FOCUS STYLES */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #769a58;
    outline-offset: 2px;
    border-radius: 4px;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #c6d9b3;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9dbb82;
}

/* SELECTION */
::selection {
    background: rgba(85, 125, 62, 0.15);
    color: #283f22;
}
