/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* Navbar */
#navbar { background: transparent; }
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 92, 42, 0.08);
    box-shadow: 0 1px 20px rgba(26, 92, 42, 0.06);
}

/* Mobile menu */
#mobileMenu { animation: slideDown 0.25s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Service cards */
.service-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background-color 0.4s ease; }

/* Gallery */
.gallery-item { transition: box-shadow 0.3s ease; }
.gallery-item:hover { box-shadow: 0 20px 60px rgba(26, 92, 42, 0.2); }

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

/* Stagger children */
.reveal-col > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Smooth section transitions */
section { position: relative; }

/* Selection */
::selection { background: rgba(26, 92, 42, 0.15); color: #1a5c2a; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdfcfa; }
::-webkit-scrollbar-thumb { background: #aed0ad; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7fb87f; }
