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

/* ── Hero Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ── */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(250, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(46, 77, 35, 0.08);
}
.nav-logo {
    transition: color 0.3s ease;
}
#navbar:not(.scrolled) .nav-logo {
    color: #faf9f5;
}
#navbar.scrolled .nav-logo {
    color: #1e3317;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ── Hamburger ── */
#menuBtn .block:nth-child(1) {
    transform-origin: center;
}
#menuBtn .block:nth-child(3) {
    width: 1.5rem;
    transform-origin: center;
}
#menuBtn.active .block:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}
#menuBtn.active .block:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .block:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Selection ── */
::selection {
    background: rgba(74, 124, 56, 0.2);
    color: #1e3317;
}
</style>
