body.counties-page #siteFooter.ywd-footer,
.counties-page .ywd-footer {
  margin-top: 0;
}

.counties-hero {
  min-height: auto;
  padding: 2.75rem 0 3.1rem;
  background:
    radial-gradient(62% 46% at 50% 14%, rgba(255, 188, 177, 0.26), rgba(255, 188, 177, 0)),
    radial-gradient(76% 62% at 50% 42%, rgba(133, 164, 255, 0.16), rgba(133, 164, 255, 0)),
    linear-gradient(180deg, rgba(248, 236, 242, 0.9) 0%, rgba(243, 238, 249, 0.88) 58%, #f7f8fb 100%);
}

.counties-page .contact-band {
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  background:
    radial-gradient(54% 42% at 28% 34%, rgba(255, 188, 177, 0.2), rgba(255, 188, 177, 0)),
    radial-gradient(56% 44% at 72% 38%, rgba(216, 109, 151, 0.14), rgba(216, 109, 151, 0)),
    radial-gradient(64% 52% at 50% 70%, rgba(120, 167, 255, 0.12), rgba(120, 167, 255, 0));
  filter: blur(22px);
  opacity: 0.62;
}

.counties-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counties-intro {
  width: min(920px, 100%);
  margin: 0 auto 1.5rem;
}

.counties-intro .contact-intro__title {
  max-width: none;
  margin-bottom: 0.6rem;
}

.counties-intro .contact-intro__copy {
  max-width: 760px;
}

.counties-stage {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "directory";
  justify-content: stretch;
  justify-items: stretch;
  align-items: stretch;
  gap: 0;
  padding: 1.35rem;
  margin: 0 auto;
}

.counties-stage::after {
  display: none;
}

.counties-directory {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
}

.counties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.county-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 255, 0.92));
  box-shadow: 0 22px 48px rgba(31, 31, 41, 0.13);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s ease;
}

.county-card:hover,
.county-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(31, 31, 41, 0.16);
  border-color: rgba(216, 109, 151, 0.26);
}

.county-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.county-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

.county-card:hover .county-card__image img,
.county-card:focus-visible .county-card__image img {
  transform: scale(1.05);
}

.county-card__image-wash {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(17, 17, 29, 0) 0%, rgba(17, 17, 29, 0.58) 100%);
}

.county-card__eyebrow,
.county-card__count-pill {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.county-card__eyebrow {
  left: 0.9rem;
  bottom: 0.95rem;
  padding: 0.34rem 0.58rem;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  backdrop-filter: blur(8px);
}

.county-card__count-pill {
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.38rem 0.62rem;
  background: rgba(255, 255, 255, 0.88);
  color: #6759ef;
  font-size: 0.62rem;
  box-shadow: 0 10px 22px rgba(31, 31, 41, 0.12);
}

.county-card__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem 1.05rem;
}

.county-card__copy {
  min-width: 0;
}

.county-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #161724;
}

.county-card__meta {
  margin: 0.34rem 0 0;
  color: #626679;
  font-size: 0.92rem;
  line-height: 1.5;
}

.county-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(216, 109, 151, 0.18);
  color: #6759ef;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(31, 31, 41, 0.08);
}

.county-card--quiet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 246, 250, 0.88));
}

.county-card--quiet .county-card__count-pill {
  color: #7f8499;
}

.county-card--quiet .county-card__meta {
  color: #757b90;
}

@media (max-width: 991.98px) {
  .counties-hero {
    padding-bottom: 2.75rem;
  }
}

@media (max-width: 575.98px) {
  .counties-hero {
    padding-bottom: 2.35rem;
  }

  .counties-intro {
    margin-bottom: 1.2rem;
  }

  .counties-stage {
    padding: 0.55rem;
  }

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

  .county-card__body {
    padding: 0.95rem 0.95rem 1rem;
  }
}
