* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: #8d679f;
}

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

.top {
    background: linear-gradient(135deg, #e6f5f7, #f3edf8);
    border-bottom: 1px solid #d1e5ea;
}

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

.brand {
    color: #417a88;
    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: #6e8794;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 12px;
    color: #477b88;
    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: #567f8d;
    font-size: 28px;
    line-height: 1.2;
}

.section h3 {
    margin: 0 0 7px;
    color: #6c8f9b;
    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 #d5e6eb;
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(76, 125, 141, .10);
}

.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: #e9f4f6;
    border: 1px solid #d2e6ea;
    border-radius: 999px;
    color: #5d7e89;
    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: #477b87;
}

.county-link span {
    color: #71838e;
}

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

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