/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F9FAF7;
}
::-webkit-scrollbar-thumb {
    background: #c5dfc8;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #98c69c;
}

/* Floating Animations for Hero Cards */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}
.animate-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}
.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* Stagger animation delays for floating cards */
.animate-float-slow { animation-delay: 0s; }
.animate-float-medium { animation-delay: 1s; }
.animate-float-fast { animation-delay: 0.5s; }

/* Scroll Reveal Animations - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Service Card Hover Glow */
.service-card:hover {
    box-shadow: 0 20px 60px -15px rgba(45, 110, 50, 0.15);
}

/* Navbar Scrolled State */
.nav-scrolled {
    background: rgba(249, 250, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile Menu Animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #2d6e32;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    nav, #contact, .cta-banner { display: none; }
    body { color: #000; background: #fff; }
}
