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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #315022;
    color: #FAF9F6;
}

/* ========== HEADER ========== */
#header {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#header.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    box-shadow: 0 1px 0 rgba(49, 80, 34, 0.1);
    backdrop-filter: blur(10px);
}

/* ========== NAV LINKS ========== */
.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE MENU ========== */
#mobileMenu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #548039;
    transition: width 0.3s ease;
}

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

/* ========== HAMBURGER ANIMATION ========== */
#menuBtn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 80, 34, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========== FORM STYLES ========== */
select option {
    background: #FAF9F6;
    color: #213418;
}

input:focus, textarea:focus, select:focus {
    border-color: #3d6329 !important;
}

/* ========== LOGO ICON COLOR ========== */
.logo-icon {
    color: #315022;
}

#header.scrolled .logo-icon {
    color: #315022;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 span {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
