/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Navbar ── */
.nav-brand {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-brand,
#navbar.scrolled .nav-link,
#navbar.scrolled .nav-link::after {
    color: #111c0c;
}

#navbar.scrolled .line {
    background: #111c0c;
}

/* ── Mobile Menu ── */
.mobile-link {
    position: relative;
    text-decoration: none;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #111c0c 0%,
        #22371a 20%,
        #28421e 35%,
        #3d652a 55%,
        #528037 70%,
        #74a052 85%,
        #9dbf82 100%
    );
    background-size: 300% 300%;
    animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Hero Animations ── */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-sub {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-scroll {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0%   { transform: translateY(-16px); }
    100% { transform: translateY(48px); }
}

.hero-scroll-line {
    animation: scrollLine 1.4s ease-in-out infinite;
}

/* ── Hero Buttons ── */
.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.35s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.hero-btn-primary {
    background: #fff;
    color: #111c0c;
}

.hero-btn-primary:hover {
    background: #f2f7f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: #f2f7f0;
    border: 1px solid rgba(242,247,240,0.3);
}

.hero-btn-secondary:hover {
    border-color: rgba(242,247,240,0.7);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Divider ── */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5dbb3, transparent);
    margin: 0;
}

/* ── Eyebrow ── */
.eyebrow {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
}

/* ── CTA Buttons ── */
.cta-btn-primary,
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.35s ease;
    cursor: pointer;
    border: none;
    background: none;
}

.cta-btn-primary {
    background: #111c0c;
    color: #f5f3ed;
}

.cta-btn-primary:hover {
    background: #22371a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-btn-secondary {
    background: transparent;
    color: #111c0c;
    border: 1px solid #28421e;
}

.cta-btn-secondary:hover {
    background: #111c0c;
    color: #f5f3ed;
    transform: translateY(-2px);
}

/* ── Menu Items ── */
#menu ul li {
    border-bottom: 1px solid rgba(197, 219, 179, 0.4);
    padding-bottom: 12px;
}

#menu ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

/* ── 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;
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    #menu {
        gap: 8px;
    }

    #menu ul li {
        padding-bottom: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4rem;
    }
}
