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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2f7f0;
}
::-webkit-scrollbar-thumb {
    background: #9cc59a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74ab72;
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Navbar transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .text-white,
#navbar.scrolled a.text-white {
    color: #28472b !important;
}

#navbar.scrolled .text-white\/80,
#navbar.scrolled a.text-white\/80 {
    color: #3d7240 !important;
}

#navbar.scrolled .text-white\/90,
#navbar.scrolled a.text-white\/90 {
    color: #28472b !important;
}

#navbar.scrolled .border-white\/20,
#navbar.scrolled .border-white\/25 {
    border-color: rgba(45, 71, 43, 0.15) !important;
}

#navbar.scrolled .bg-white\/20 {
    background: rgba(227, 239, 223, 0.6) !important;
}

#navbar.scrolled .bg-white\/10 {
    background: rgba(227, 239, 223, 0.4) !important;
}

#navbar.scrolled .text-forest-200 {
    color: #3d7240 !important;
}

/* Mobile menu link hover */
.mobile-link:hover {
    padding-left: 8px;
}

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #528f52;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f9fafb inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}
