/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* ========== NAVBAR ========== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding-top: 0;
}

.nav-scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 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%;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(145deg, #0a1a15 0%, #1B4332 35%, #2d5e42 60%, #1B4332 85%, #0a1a15 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45, 94, 66, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(27, 67, 50, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(45, 94, 66, 0.4) 0%, transparent 60%);
}

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

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

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

.hero-title, .hero-subtitle {
    opacity: 0;
}

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

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

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

.btn-secondary:hover {
    background: rgba(253, 252, 248, 0.08);
}

/* ========== EYEBROW ========== */
.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #749f82;
    font-weight: 400;
}

/* ========== DIVIDER ========== */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d5e4db, transparent);
    margin: 0;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-eyebrow, .hero-title, .hero-subtitle {
        animation: none;
        opacity: 1;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========== MOBILE MENU ========== */
.mobile-menu-open {
    overflow: hidden;
}

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

.mobile-link {
    position: relative;
}

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

/* ========== FORM ========== */
input:focus, textarea:focus {
    border-color: #4d8060 !important;
}

input::placeholder, textarea::placeholder {
    color: #a8c4b0;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FAF8F2;
}

::-webkit-scrollbar-thumb {
    background: #d5e4db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8c4b0;
}

/* ========== UTILITY ========== */
@media (max-width: 768px) {
    .font-serif {
        word-spacing: 0.02em;
    }
}
