/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(251, 249, 244, 0);
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(251, 249, 244, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobileMenu.open { transform: translateX(0); }
#mobileMenu.closed { transform: translateX(100%); }
.mobile-nav-link { transition: opacity 0.3s ease, transform 0.3s ease; }

/* ===== HERO ===== */
.stat-card {
    animation: float 4s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -1.3s; }
.stat-card:nth-child(3) { animation-delay: -2.6s; }

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

/* ===== SERVICES ===== */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }

/* ===== GALLERY ===== */
.gallery-item {
    cursor: pointer;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.1);
}

/* ===== SCROLL ANIMATIONS ===== */
[data-anim="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim="fade-left"] {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim].revealed {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ===== EYEBROWS ===== */
.service-eyebrow, .about-eyebrow, .gallery-eyebrow, .testimonial-eyebrow, .contact-eyebrow {
    position: relative;
}

/* ===== FORM ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* ===== 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; }
    [data-anim] {
        opacity: 1 !important;
        transform: none !important;
    }
    .stat-card { animation: none; }
    .gallery-item:hover img { transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-card { display: none; }
}
