/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(40px);
    }
}

/* ── Hero Animations ── */
@media (prefers-reduced-motion: no-preference) {
    .hero-headline {
        transform: translateY(0);
        transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .hero-tagline {
        opacity: 1;
        transition: opacity 0.8s ease 0.2s;
    }
    .hero-subtitle {
        opacity: 1;
        transition: opacity 0.8s ease 0.4s;
    }
}

/* ── Navbar ── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(45, 84, 45, 0.08);
}

/* ── Marquee ── */
.marquee-track {
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Selection ── */
::selection {
    background: #2d542d;
    color: #faf6f0;
}

/* ── Focus ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2d542d;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ── Smooth image loading ── */
img {
    background-color: #e3efe3;
}
