* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: #a34f79;
}

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

.top {
    background: linear-gradient(135deg, #e0f5ed, #eef5ff);
    border-bottom: 1px solid #c9e3da;
}

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

.brand {
    color: #3d8176;
    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: #5b8e84;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 12px;
    color: #39796f;
    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: #49877c;
    font-size: 28px;
    line-height: 1.2;
}

.section h3 {
    margin: 0 0 7px;
    color: #61958b;
    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 #cfe5de;
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(73, 126, 113, .09);
}

.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: #e5f5ef;
    border: 1px solid #cae4db;
    border-radius: 999px;
    color: #4f8278;
    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: #3f7d73;
}

.county-link span {
    color: #687f79;
}

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

.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;
    }
}
