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

/* ── Custom Properties ── */
:root {
    --emerald-50: #ECFDF5;
    --emerald-100: #D1FAE5;
    --emerald-500: #10B981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065F46;
    --emerald-900: #064E3B;
    --cream-50: #FDFCF8;
    --cream-100: #F9F7F0;
    --cream-200: #F3EFE3;
    --cream-300: #E8E0CC;
}

/* ── Header ── */
.header {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(243, 239, 227, 0.6);
}
.header.scrolled {
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald-500);
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--emerald-600);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* ── Label ── */
.label { letter-spacing: 0.12em; }

/* ── Hero ── */
.hero { position: relative; }
.hero-bg { position: absolute; inset: 0; }
.hero-img { opacity: 0.35; }
.hero-gradient {
    background: linear-gradient(
        160deg,
        rgba(6, 78, 59, 0.92) 0%,
        rgba(4, 120, 87, 0.85) 40%,
        rgba(5, 150, 105, 0.75) 70%,
        rgba(16, 185, 129, 0.65) 100%
    );
}
.hero-title { text-shadow: 0 2px 40px rgba(0,0,0,0.15); }
.hero-badge { animation: fadeInDown 0.8s ease both; }
.hero-title { animation: fadeInUp 0.8s 0.1s ease both; }
.hero-subtitle { animation: fadeInUp 0.8s 0.2s ease both; }
.hero-ctas { animation: fadeInUp 0.8s 0.3s ease both; }
.hero-scroll { animation: fadeInUp 0.8s 0.5s ease both; }

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

/* ── Feature Cards ── */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); }

/* ── CTA Section ── */
.cta-bg { position: relative; }
.cta-overlay {
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.90) 0%,
        rgba(4, 120, 87, 0.82) 50%,
        rgba(5, 150, 105, 0.75) 100%
    );
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Menu ── */
.mobile-menu { z-index: 40; }
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-link { transition: color 0.2s; }
.mobile-menu-link:hover { color: var(--emerald-600); }

/* ── Menu List ── */
#menu ul li:last-child { border-bottom: none; }

/* ── Smooth Focus ── */
:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
    border-radius: 4px;
}

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