.county-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(440px, 1.04fr);
  gap: 48px;
  align-items: center;
  padding: 64px 8% 58px;
  background:
    radial-gradient(circle at 92% 14%, rgba(8, 169, 168, 0.18), transparent 26%),
    linear-gradient(135deg, #eaf7fb 0%, #f7fcfe 100%);
  overflow: hidden;
}

.county-hero > *,
.county-media,
.county-proof-card,
.town-grid,
.town-grid article {
  min-width: 0;
}

.county-hero .hero-copy h1 {
  max-width: 780px;
  margin-top: 28px;
  font-size: clamp(42px, 5.1vw, 68px);
  line-height: 1.06;
}

.county-media {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.county-media > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.county-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 83, 0.08), rgba(6, 38, 83, 0.02) 48%, rgba(234, 247, 251, 0.36));
  content: "";
  pointer-events: none;
}

.county-proof-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: min(330px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 44px rgba(6, 38, 83, 0.2);
  backdrop-filter: blur(8px);
}

.county-proof-card p {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.county-proof-card strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.county-proof-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.county-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 62px 8% 22px;
}

.county-intro .eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.county-intro h2,
.county-areas h2 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.08;
}

.county-intro > p {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.county-areas {
  padding: 34px 8% 58px;
}

.county-areas .section-heading p,
.faq-section .section-heading p {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.town-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.town-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(6, 38, 83, 0.04);
}

.town-grid strong,
.town-grid span {
  display: block;
}

.town-grid strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.town-grid span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.county-map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 44px;
  align-items: center;
  margin: 0 8% 56px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(6, 38, 83, 0.06);
}

.county-map-copy .eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.county-map-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
  line-height: 1.08;
}

.county-map-copy p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.county-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.county-map-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.county-map-links a:first-child {
  border-color: transparent;
  background: var(--teal);
  color: #ffffff;
}

.county-map-card {
  margin: 0;
  border-radius: 22px;
  padding: 28px;
  background: #f1fbfd;
  text-align: center;
}

.county-map-card img {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
}

.county-map-card figcaption {
  margin-top: 16px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.county-services {
  padding-top: 18px;
}

.county-services h3 a {
  color: inherit;
}

.county-services h3 a:hover,
.county-services h3 a:focus-visible {
  color: var(--teal);
}

.county-clarity {
  padding-top: 10px;
}

.county-related {
  margin-top: 0;
}

.county-cta {
  margin-top: 12px;
}

@media (max-width: 1050px) {
  .county-hero,
  .county-intro,
  .county-map-section {
    grid-template-columns: 1fr;
  }

  .town-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-intro > p {
    margin-top: 0;
  }
}

@media (max-width: 650px) {
  html,
  body {
    overflow-x: hidden;
  }

  .county-hero,
  .county-intro,
  .county-areas {
    padding-right: 22px;
    padding-left: 22px;
  }

  .county-map-section {
    margin-right: 22px;
    margin-left: 22px;
    padding: 22px;
  }

  .county-media {
    min-height: 390px;
    border-radius: 24px;
  }

  .county-media > img {
    min-height: 390px;
    object-position: 40% center;
  }

  .county-proof-card {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 18px;
  }

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

  .county-hero .hero-copy h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 1.08;
  }

  .county-hero .service-pill {
    max-width: 100%;
    white-space: normal;
  }

  .county-hero .hero-lead {
    font-size: 18px;
  }

  .county-map-card {
    padding: 20px;
  }
}
