* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #eefbf7;
    color: #527a78;
    font-size: 16px;
    line-height: 1.62;
}

a {
    color: #248a83;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: #3d82aa;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.top {
    background: linear-gradient(135deg, #dff8ef, #e5f4ff);
    border-bottom: 1px solid #c1e5dc;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    color: #2d8c83;
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
}

.navlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.navlinks a {
    font-weight: 700;
    text-decoration: none;
}

.hero {
    padding: 42px 0 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #648983;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 12px;
    color: #2f8d84;
    font-size: 40px;
    line-height: 1.12;
}

.hero p {
    max-width: 900px;
    margin: 0;
}

.main {
    padding: 4px 0 34px;
}

.section {
    margin: 18px 0;
}

.section h2 {
    margin: 0 0 10px;
    color: #3f8792;
    font-size: 28px;
    line-height: 1.2;
}

.section h3 {
    margin: 0 0 7px;
    color: #5a8b8c;
    font-size: 19px;
    line-height: 1.25;
}

.grid,
.service-grid,
.county-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.card,
.service,
.county-link {
    background: #ffffff;
    border: 1px solid #c7e8df;
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(74, 143, 129, .13);
}

.card,
.service {
    padding: 15px;
}

.card p,
.service p {
    margin: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 11px;
    background: #e1f7f1;
    border: 1px solid #c3e9df;
    border-radius: 999px;
    color: #4f8882;
    font-weight: 700;
}

.county-link {
    display: block;
    padding: 14px;
    text-decoration: none;
}

.county-link strong,
.county-link span {
    display: block;
}

.county-link strong {
    margin-bottom: 4px;
    color: #2d8a82;
}

.county-link span {
    color: #628682;
}

.footer {
    padding: 22px 0 30px;
    border-top: 1px solid #c5e5dc;
    color: #688985;
}

.footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .grid,
    .service-grid,
    .county-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding-top: 30px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section h2 {
        font-size: 25px;
    }

    .grid,
    .service-grid,
    .county-links {
        grid-template-columns: 1fr;
    }
}
