/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f0;
}
::-webkit-scrollbar-thumb {
    background: #1a6b34;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #115228;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
    background: rgba(251, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 55, 26, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1a6b34;
}

#navbar.scrolled .font-bold {
    color: #0a3d1e;
}

#navbar.scrolled .text-forest-600 {
    color: #2d8546;
}

/* ===== HERO ===== */
#hero {
    position: relative;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
}

/* ===== BUTTON HOVER EFFECTS ===== */
a {
    text-decoration: none;
}

/* ===== FLOATING CARDS ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.floating-card-1 { animation: float 4s ease-in-out infinite; }
.floating-card-2 { animation: float-slow 5s ease-in-out infinite 0.5s; }
.floating-card-3 { animation: float 4.5s ease-in-out infinite 1s; }
.floating-card-4 { animation: float-slow 5.5s ease-in-out infinite 1.5s; }

/* ===== FORM INPUTS ===== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 133, 70, 0.15);
}

/* ===== MAP ===== */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #2d8546;
    outline-offset: 2px;
}
