/* ── Reset & 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 { max-width: 100%; height: auto; display: block; }

/* ── Navigation ─────────────────────────────────── */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding-top: 0;
    padding-bottom: 0;
}
.nav-scrolled.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}
.nav-link { transition: background 0.2s ease, color 0.2s ease; }

/* ── Mobile Menu ────────────────────────────────── */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}
.mobile-menu.open {
    max-height: 400px;
    padding: 0.5rem 0;
}
.mobile-link { display: block; }

/* ── Hero ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.pexels.com/photos/18925018/pexels-photo-18925018.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280') center center / cover no-repeat;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 26, 18, 0.82) 0%,
        rgba(27, 67, 50, 0.72) 50%,
        rgba(45, 122, 45, 0.55) 100%
    );
    z-index: 1;
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-content { padding-bottom: 4rem; }

.hero-badge {
    animation: fadeDown 0.8s ease both;
}
.hero h1 {
    animation: fadeUp 0.8s ease 0.2s both;
}
.hero p {
    animation: fadeUp 0.8s ease 0.4s both;
}
.hero .flex {
    animation: fadeUp 0.8s ease 0.6s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: float 2.5s ease-in-out infinite;
}
.hero-scroll-dot {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    border-radius: 1px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Scroll Reveal ──────────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
}
.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ── Reduced Motion ─────────────────────────────── */
@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; }
    .reveal[data-reveal] { opacity: 1; transform: none; }
}

/* ── Focus Styles ───────────────────────────────── */
:focus-visible {
    outline: 2px solid #2d7a2d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Mobile Responsive ──────────────────────────── */
@media (max-width: 767px) {
    .hero h1 { font-size: 2.25rem; }
    .hero p   { font-size: 1rem; }
}
