:root {
    --green-950: #082d24;
    --green-900: #103e31;
    --green-800: #185442;
    --green-700: #1e6a50;
    --green-600: #2d8060;
    --green-500: #409871;
    --green-200: #b8dbc9;
    --green-100: #dcefe4;
    --green-50: #f1f8f3;
    --lime: #c9df79;
    --sand: #f1e8d3;
    --cream: #fbfaf4;
    --ink: #17332b;
    --muted: #61756f;
    --line: rgba(20, 75, 59, .14);
    --white: #fff;
    --shadow-sm: 0 10px 30px rgba(12, 57, 43, .08);
    --shadow-lg: 0 24px 70px rgba(8, 45, 36, .18);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-is-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--green-950);
    border-radius: 8px;
    transform: translateY(-160%);
}

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(251, 250, 244, .91);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 28px rgba(8, 45, 36, .06);
}

.header-inner {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
}

.brand-logos {
    height: 62px;
    display: flex;
    align-items: center;
}

.brand-logo { object-fit: contain; }
.brand-logo--app { width: 190px; height: 62px; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #49645b;
    font-size: 14px;
    font-weight: 650;
}

.primary-nav > a:not(.nav-cta) {
    position: relative;
    padding-block: 9px;
}

.primary-nav > a:not(.nav-cta)::after {
    position: absolute;
    right: 50%;
    bottom: 2px;
    left: 50%;
    height: 2px;
    content: "";
    background: var(--green-600);
    transition: right .2s ease, left .2s ease;
}

.primary-nav > a:hover,
.primary-nav > a.is-active { color: var(--green-900); }
.primary-nav > a:hover::after,
.primary-nav > a.is-active::after { right: 0; left: 0; }

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 750;
    line-height: 1;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-cta { color: var(--white); background: var(--green-900); }
.nav-cta svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.nav-cta:hover, .button:hover { transform: translateY(-2px); }
.nav-cta:hover { background: var(--green-700); box-shadow: 0 10px 24px rgba(16, 62, 49, .2); }

.button--primary { color: var(--green-950); background: var(--lime); }
.button--primary:hover { background: #d7e993; box-shadow: 0 14px 28px rgba(8, 45, 36, .18); }
.button--outline { color: var(--white); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.button--outline:hover { background: rgba(255, 255, 255, .1); }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    color: var(--green-900);
    background: var(--green-100);
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.site-footer {
    padding-top: 72px;
    color: rgba(255, 255, 255, .7);
    background: var(--green-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr .7fr 1fr;
    gap: 70px;
    padding-bottom: 58px;
}

.footer-grid h2 {
    margin: 2px 0 16px;
    color: var(--white);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-grid p { max-width: 420px; margin: 12px 0 0; font-size: 14px; }
.footer-grid > div:not(.footer-about) > a { display: block; width: max-content; margin: 8px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 700; }

.footer-government {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-government img {
    width: 42px;
    height: 50px;
    object-fit: contain;
}

.footer-government p { margin: 0; color: rgba(255, 255, 255, .72); line-height: 1.45; }

.footer-developer {
    width: max-content;
    max-width: 100%;
    margin-top: 22px;
}

.footer-developer span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-developer img {
    width: 142px;
    height: 42px;
    padding: 8px 12px;
    object-fit: contain;
    border-radius: 9px;
    background: var(--white);
}

.footer-bottom {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
}

.footer-bottom a { color: var(--green-200); }

@media (max-width: 1050px) {
    .primary-nav { gap: 18px; }
}

@media (max-width: 840px) {
    .header-inner { min-height: 74px; }
    .brand-copy { display: flex; }
    .menu-toggle { display: block; }
    .primary-nav {
        position: fixed;
        inset: 74px 0 auto;
        max-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        color: var(--ink);
        background: var(--cream);
        box-shadow: 0 24px 40px rgba(8, 45, 36, .12);
        opacity: 0;
        pointer-events: none;
        transition: max-height .3s ease, opacity .2s ease;
    }
    .primary-nav.is-open { max-height: calc(100vh - 74px); padding: 14px 20px 24px; opacity: 1; pointer-events: auto; }
    .primary-nav > a:not(.nav-cta) { padding: 13px 8px; border-bottom: 1px solid var(--line); }
    .primary-nav > a:not(.nav-cta)::after { display: none; }
    .nav-cta { margin-top: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .brand { min-width: 150px; }
    .brand-logos { height: 52px; }
    .brand-logo--app { width: 150px; height: 52px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; padding-block: 22px; }
}

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