/* ========== 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, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: #1B4332;
    color: #FDFCFA;
}

/* ========== HERO ========== */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #081510 0%,
        #0f271d 15%,
        #1B4332 35%,
        #2d4a31 55%,
        #1a3a2a 75%,
        #0d1f17 100%
    );
}

.hero-scrim {
    background: linear-gradient(
        to bottom,
        rgba(8, 21, 16, 0.35) 0%,
        rgba(27, 67, 50, 0.25) 50%,
        rgba(8, 21, 16, 0.55) 100%
    );
}

.hero-img {
    will-change: transform;
}

/* Hero entrance animations */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

.hero-subtitle {
    animation: heroFadeUp 0.9s ease forwards;
}

.hero-title {
    animation: heroFadeUp 1s ease forwards;
}

.hero-desc {
    animation: heroFadeUp 0.9s ease forwards;
}

.hero-ctas {
    animation: heroFadeUp 0.9s ease forwards;
}

.hero-img {
    animation: heroZoom 12s ease forwards;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-block;
    background: #FDFCFA;
    color: #1B4332;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    color: #FDFCFA;
    border-color: rgba(253, 252, 250, 0.5);
}

.btn-primary:focus-visible {
    outline: 2px solid #FDFCFA;
    outline-offset: 3px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #FDFCFA;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid rgba(253, 252, 250, 0.4);
    transition: all 0.35s ease;
}

.btn-secondary:hover {
    background: rgba(253, 252, 250, 0.1);
    border-color: rgba(253, 252, 250, 0.7);
}

.btn-secondary:focus-visible {
    outline: 2px solid #FDFCFA;
    outline-offset: 3px;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: 4px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: rgba(27, 67, 50, 0.04);
    border-color: rgba(27, 67, 50, 0.1);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(27, 67, 50, 0.15);
}

/* ========== REVEAL ANIMATIONS (below-fold only, progressive enhancement) ========== */
.reveal {
    opacity: 1;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ========== NAV SCROLL STATE ========== */
#site-header.scrolled {
    background: rgba(8, 21, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(253, 252, 250, 0.06);
}

/* ========== FORM STYLES ========== */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(100deg);
    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .hero-title span {
        font-size: 2.25rem !important;
    }
    .hero-title span:nth-child(3) {
        font-size: 1.5rem !important;
    }
}
