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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(45, 94, 45, 0.2);
    color: #1a3a2a;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0f2418 0%,
        #1a3a2a 25%,
        #2d5e2d 50%,
        #1a3a2a 75%,
        #0f2418 100%
    );
}

/* ── Hero Pattern ── */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

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

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

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

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

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

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ── Navbar ── */
.nav {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

.nav.scrolled {
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.08);
}

.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%;
}

.nav-logo {
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
    color: #1a3a2a;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

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

/* ── Divider Line ── */
.divider-line {
    transition: opacity 0.5s ease;
}

/* ── Buttons ── */
.btn-primary {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-submit {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    box-shadow: 0 8px 32px rgba(26, 58, 42, 0.3);
    transform: translateY(-1px);
}

/* ── Inputs ── */
.input:focus {
    border-color: #8bb88b;
    box-shadow: 0 0 0 3px rgba(139, 184, 139, 0.15);
}

/* ── Offering Cards ── */
.offering-card {
    transition: background 0.4s ease;
}

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

/* ── Reveal Animations (below-fold only, progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* ── Scroll-triggered reveals ── */
.reveal.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Mobile Menu Button ── */
.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title::after {
        content: '.';
    }
}

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

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* ── Focus styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #8bb88b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Print ── */
@media print {
    .nav, .hero-scroll, .reveal {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
