/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }

/* ── Fixed Navigation ─────────────────────────────── */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-fixed.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 92, 42, 0.08);
}
.nav-fixed.scrolled .font-serif { color: #1a5c2a !important; }
.nav-fixed.scrolled .font-sans { color: #2d5c2d !important; }

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ──────────────────────────────────── */
.mobile-menu {
    border-top: 1px solid transparent;
}
.mobile-menu.open {
    border-top-color: rgba(26, 92, 42, 0.1);
    max-height: 400px !important;
}
.mobile-link {
    border-bottom: 1px solid rgba(26, 92, 42, 0.08);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-emergency {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn-emergency:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.btn-primary {
    box-shadow: 0 4px 14px rgba(26, 92, 42, 0.15);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 92, 42, 0.25);
    transform: translateY(-1px);
}

/* ── Labels / Badges ──────────────────────────────── */
.label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4em 1em;
    border-radius: 100px;
    display: inline-block;
}
.label-green {
    background: rgba(26, 92, 42, 0.1);
    color: #1a5c2a;
}
.label-light {
    background: rgba(255, 255, 255, 0.15);
    color: #d1d5db;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
    position: relative;
    background: #0f3618;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 30, 14, 0.7) 0%,
        rgba(15, 54, 24, 0.6) 50%,
        rgba(8, 30, 14, 0.85) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
    animation: heroTitleIn 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroTitleIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
    animation: heroSubIn 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroSubIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-actions {
    animation: heroActionsIn 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroActionsIn {
    to { opacity: 1; transform: translateY(0); }
}
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f0e8;
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f5f0e8;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── Emergency Banner ─────────────────────────────── */
.emergency-pulse {
    animation: emergencyPulse 1.5s ease-in-out infinite;
}
@keyframes emergencyPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ── Sections ─────────────────────────────────────── */
.section { position: relative; }

/* ── Cards ────────────────────────────────────────── */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(26, 92, 42, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 92, 42, 0.1);
    border-color: rgba(26, 92, 42, 0.15);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(26, 92, 42, 0.08);
    color: #1a5c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.card:hover .card-icon {
    background: #1a5c2a;
    color: #f5f0e8;
    transform: scale(1.05);
}
.card:hover .card-icon svg { stroke: #f5f0e8; }

/* ── CTA Cards ────────────────────────────────────── */
.card-cta {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(26, 92, 42, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}
.card-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 92, 42, 0.1);
}
.card-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #1a5c2a;
    color: #f5f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.link-arrow {
    font-size: 0.95rem;
}

/* ── Inputs ───────────────────────────────────────── */
.input {
    border: 1.5px solid rgba(26, 92, 42, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1a5c2a;
    background: #fdfcfa;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.input:focus {
    border-color: #1a5c2a;
    box-shadow: 0 0 0 3px rgba(26, 92, 42, 0.1);
    background: white;
}
.input::placeholder { color: #8fb88f; }

/* ── Map ──────────────────────────────────────────── */
.map-section {
    height: 400px;
    filter: saturate(0.7) contrast(1.05);
    transition: filter 0.4s ease;
}
.map-section:hover { filter: saturate(1) contrast(1); }

/* ── Reveal Animations ────────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s 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);
    }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
    }
    .section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important;
    }
}
