:root {
    color-scheme: light;
    --primary: #0f8d44;
    --secondary: #93c13d;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-muted: rgba(147, 193, 61, 0.1);
    --heading: #102719;
    --text: #1f3328;
    --muted: #53645a;
    --border: rgba(15, 141, 68, 0.14);
    --shadow: 0 12px 34px rgba(16, 39, 25, 0.08);
}

.dark {
    color-scheme: dark;
    --bg: #0d161e;
    --surface: #162634;
    --surface-muted: #1a2e3e;
    --heading: #ffffff;
    --text: #d8dee2;
    --muted: #a5a6a7;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 70;
    transform: translateY(-140%);
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    background: rgba(15, 141, 68, 0.96);
    color: #ffffff;
    transition: box-shadow 240ms ease, background 240ms ease;
}

.dark .site-header {
    background: rgba(13, 22, 30, 0.96);
    border-bottom: 1px solid var(--border);
}

.site-header.is-sticky {
    box-shadow: 0 16px 40px rgba(15, 141, 68, 0.24);
}

.brand-mark {
    display: grid;
    height: 3rem;
    width: 3rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.brand-logo {
    transition: transform 260ms ease;
}

.site-header.is-sticky .brand-logo {
    animation: headerZoom 700ms ease both;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.mobile-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    background: rgba(15, 141, 68, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dark .mobile-menu {
    background: rgba(13, 22, 30, 0.98);
}

.icon-button {
    display: grid;
    height: 2.5rem;
    width: 2.5rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.hero-section > img {
    opacity: 0.28;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 141, 68, 0.96), rgba(15, 141, 68, 0.88) 48%, rgba(147, 193, 61, 0.86));
}

.dark .hero-overlay {
    background: linear-gradient(135deg, rgba(13, 22, 30, 0.97), rgba(13, 22, 30, 0.92) 50%, rgba(26, 46, 62, 0.9));
}

.eyebrow-pill {
    border-radius: 999px;
    background: var(--secondary);
    color: #102719;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 900;
}

.hero-card,
.material-panel,
.map-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text);
}

.hero-card {
    padding: 1rem;
}

.section-band {
    background: var(--bg);
    padding: 5rem 0;
}

.section-muted {
    background: var(--surface-muted);
}

.section-eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dark .section-eyebrow {
    color: var(--secondary);
}

.section-title {
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.08;
    margin-top: 0.75rem;
}

.text-heading {
    color: var(--heading);
}

.text-muted {
    color: var(--muted);
}

.btn {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.8rem 1.25rem;
}

.btn-light {
    background: #ffffff;
    color: var(--primary);
}

.btn-accent {
    background: var(--secondary);
    color: #102719;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 141, 68, 0.2);
}

.text-link {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    font-weight: 900;
    gap: 0.4rem;
}

.dark .text-link {
    color: var(--secondary);
}

.map-beam {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(15, 141, 68, 0.38);
    animation: mapPulse 1.8s infinite;
    pointer-events: none;
}

.map-beam::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 3px;
    height: 92px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(to top, rgba(147, 193, 61, 0.8), rgba(147, 193, 61, 0));
    animation: beamFloat 1.8s ease-in-out infinite;
}

.site-footer {
    background: var(--primary);
    color: #ffffff;
}

.dark .site-footer {
    background: #0d161e;
    border-top: 1px solid var(--border);
}

.back-to-top {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.focus-ring:focus-visible,
.btn:focus-visible,
.icon-button:focus-visible,
.text-link:focus-visible {
    outline: 3px solid rgba(147, 193, 61, 0.85);
    outline-offset: 3px;
}

@keyframes headerZoom {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1.04);
    }
}

@keyframes mapPulse {
    70% {
        box-shadow: 0 0 0 34px rgba(15, 141, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 141, 68, 0);
    }
}

@keyframes beamFloat {
    0%,
    100% {
        opacity: 0.46;
        height: 62px;
    }
    50% {
        opacity: 0.95;
        height: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
