:root {
    --pine: #0e3f2c;
    --green: #1b6b47;
    --moss: #3f9467;
    --fern: #8cc5a2;
    --mint: #e4f0e8;
    --paper: #f5f6f2;
    --surface: #ffffff;
    --ink: #16211c;
    --muted: #66716b;
    --line: #e5e7e3;
    --radius: 10px;
    --shadow: 0 8px 28px rgba(14, 63, 44, .10);
    --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 500;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.motto {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: .2px;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 30px;
}

.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: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--pine);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 3px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 246, 242, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pine);
    font-size: 19px;
    font-weight: 550;
    letter-spacing: -.3px;
    text-decoration: none;
}

.brand-mark {
    width: 26px;
    height: 26px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
}

.site-nav > a:not(.button) {
    position: relative;
    padding: 6px 0;
    color: var(--muted);
    text-decoration: none;
}

.site-nav > a:not(.button):hover,
.site-nav > a.is-active {
    color: var(--pine);
}

.site-nav > a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--green);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--green);
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.button:hover {
    background: var(--pine);
    border-color: var(--pine);
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.button-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.button-small {
    padding: 9px 14px;
    font-size: 12px;
}

.nav-toggle {
    display: none;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--pine);
}

/* Home hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 100px) 0;
    background: var(--green);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: 50%;
    width: 380px;
    height: 380px;
    transform: translateY(-50%);
    background: url("../images/clover-dark.svg") center / contain no-repeat;
    opacity: .14;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero .eyebrow {
    margin-bottom: 14px;
    color: var(--fern);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 5vw, 3.125rem);
    font-weight: 600;
    letter-spacing: -1.8px;
    line-height: 1.05;
}

.hero h1 span {
    font-weight: 300;
}

.hero .lead {
    max-width: 600px;
    margin-bottom: 26px;
    color: #d7ebdf;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Sections */

.section {
    padding: clamp(56px, 7vw, 88px) 0;
}

.section-muted {
    background: #eaf2ed;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card {
    padding: 26px;
    background: var(--surface);
}

.card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.card-number {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--moss);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.checklist p {
    margin-bottom: 1rem;
    padding-left: 16px;
    border-left: 2px solid var(--moss);
    color: var(--muted);
}

.checklist p:last-child {
    margin-bottom: 0;
}

.checklist strong {
    color: var(--pine);
}

.cta {
    padding: clamp(48px, 7vw, 72px) 0;
    background: var(--pine);
    color: #cfe6d8;
}

.cta h2 {
    color: #fff;
}

.cta p {
    margin-bottom: 0;
    color: #cfe6d8;
}

.cta .button {
    border-color: #fff;
    background: #fff;
    color: var(--green);
}

.cta .button:hover {
    border-color: var(--mint);
    background: var(--mint);
    color: var(--pine);
}

/* Inner pages */

.page-hero {
    padding: clamp(56px, 8vw, 88px) 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero .lead {
    margin-bottom: 0;
}

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

.prose p:last-child {
    margin-bottom: 0;
}

.prose-narrow {
    max-width: 760px;
}

.prose-narrow h2 {
    margin-top: 2.2rem;
    color: var(--pine);
    font-size: 1.4rem;
    font-weight: 600;
}

.prose-narrow h2:first-child {
    margin-top: 0;
}

.prose-narrow a,
.footer-contact a,
.contact-card a {
    text-decoration-color: var(--moss);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.contact-card h2 {
    color: var(--pine);
    font-size: 1.4rem;
    overflow-wrap: anywhere;
}

.contact-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    margin-bottom: 1.25rem;
    padding-left: 52px;
    color: var(--muted);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--green);
    font-weight: 600;
}

.steps li:last-child {
    margin-bottom: 0;
}

.steps strong {
    display: block;
    color: var(--pine);
}

/* Footer */

.site-footer {
    padding: 38px 0 24px;
    background: var(--pine);
    color: #cfe6d8;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 32px;
    padding-bottom: 28px;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand-mark {
    width: 22px;
    height: 22px;
}

.footer-tagline {
    margin: 12px 0 0;
    max-width: 34ch;
}

.site-footer .motto {
    margin: 8px 0 0;
    color: var(--fern);
    font-size: 13px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a,
.footer-contact a,
.footer-bottom a {
    width: fit-content;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-style: normal;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 30px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav > a:not(.button) {
        padding: 12px 0;
    }

    .site-nav > a.is-active::after {
        display: none;
    }

    .site-nav .button {
        align-self: flex-start;
        margin-top: 8px;
    }

    .header-inner {
        position: relative;
    }
}

@media (max-width: 640px) {
    .hero::after {
        width: 260px;
        height: 260px;
        right: -90px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 20px;
    }

    .card-grid,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
