:root {
  --locations-ink: #2c333e;
  --locations-blue: #22577a;
  --locations-green: #48a62c;
  --locations-orange: #fd6c2e;
  --locations-wash: #ecf2ea;
  --locations-pale: #fcfcfc;
  --locations-line: rgba(34, 87, 122, 0.14);
  --locations-shadow: 0 24px 48px rgba(44, 51, 62, 0.12);
}

.locations-hub {
  /*background:*/
  /*  radial-gradient(circle at top left, rgba(72, 166, 44, 0.12), transparent 30%),*/
  /*  linear-gradient(180deg, #f8fbf6 0%, #ffffff 18%, #f7fafc 100%);*/
}


.locations-hero,
.locations-jump-links,
.locations-nation,
.county-card {
  scroll-margin-top: 120px;
}

.locations-hero {
  position: relative;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(34, 87, 122, 0.1);
  border-radius: 30px;
  overflow: hidden;
  /*background:*/
  /*  radial-gradient(circle at top right, rgba(253, 108, 46, 0.18), transparent 30%),*/
  /*  linear-gradient(135deg, #ffffff 0%, #f5fbf3 46%, #eef5fb 100%);*/
  box-shadow: var(--locations-shadow);
}

.locations-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.65) 45%, transparent 100%);
  opacity: 0.65;
  pointer-events: none;
}

.locations-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background-color: rgba(44, 51, 62, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.locations-eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background-color: var(--locations-green);
  box-shadow: 0 0 0 0.3rem rgba(72, 166, 44, 0.18);
}

.locations-hero h1 {
    position: relative;
    z-index: 1;
    /* max-width: 11ch; */
    margin-bottom: 1rem;
    color: var(--locations-ink);
    font-size: clamp(2.4rem, 5vw, 2.35rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.locations-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 41rem;
  margin-bottom: 1.75rem;
  color: rgba(16, 23, 14, 0.84);
  font-size: 1.12rem;
  line-height: 1.8;
}

.locations-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.locations-btn {
  min-width: 215px;
    border-radius: 10px;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.locations-btn:hover {
  transform: translateY(-2px);
}

.locations-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--locations-green), #67bf2f);
  box-shadow: 0 18px 30px rgba(72, 166, 44, 0.25);
}

.locations-btn-primary:hover {
  color: #fff;
  box-shadow: 0 24px 36px rgba(72, 166, 44, 0.32);
}

.locations-btn-secondary {
  color: var(--locations-blue);
  border-color: rgba(34, 87, 122, 0.2);
  background-color: rgba(255, 255, 255, 0.88);
}

.locations-btn-secondary:hover {
  color: var(--locations-ink);
  border-color: rgba(34, 87, 122, 0.35);
  background-color: #fff;
}

.locations-stats {
  position: relative;
  z-index: 1;
}

.locations-stat-card {
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(34, 87, 122, 0.08);
  border-radius: 20px;
  /*background: rgba(255, 255, 255, 0.8);*/
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 20px rgba(44, 51, 62, 0.08);
}

.locations-stat-card strong,
.locations-stat-card span {
  display: block;
}

.locations-stat-card strong {
  margin-bottom: 0.35rem;
  color: var(--locations-blue);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1;
}

.locations-stat-card span {
  color: rgba(16, 23, 14, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.locations-hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 166, 44, 0.22), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(253, 108, 46, 0.22), transparent 22%),
    linear-gradient(160deg, rgba(34, 87, 122, 0.12), rgba(34, 87, 122, 0.02));
}

.locations-hero-map,
.locations-hero-car {
  position: absolute;
  max-width: none;
  transition: transform 0.8s ease;
}

.locations-hero-map {
  top: 0;
  right: 15px;
  /*width: min(84%, 360px);*/
  opacity: 0.9;
  filter: drop-shadow(0 30px 45px rgba(34, 87, 122, 0.18));
    height: 100%;
}

.locations-hero-car {
  left: -1.5rem;
  bottom: -0.25rem;
  width: min(85%, 460px);
  filter: drop-shadow(0 24px 32px rgba(44, 51, 62, 0.16));
}

.locations-hero:hover .locations-hero-map {
  transform: translateY(-8px) rotate(-1deg);
}

.locations-hero:hover .locations-hero-car {
  transform: translateY(6px) scale(1.02);
}

.locations-hero-badge {
  position: absolute;
  z-index: 2;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--locations-ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 12px 20px rgba(44, 51, 62, 0.12);
}

.locations-hero-badge-top {
  top: 1.25rem;
  left: 1.25rem;
}

.locations-hero-badge-bottom {
  right: 1.25rem;
  bottom: 1.25rem;
}

.locations-jump-links {
  position: sticky;
  top: 90px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid rgba(34, 87, 122, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 32px rgba(44, 51, 62, 0.08);
}

.locations-jump-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(34, 87, 122, 0.12);
  border-radius: 999px;
  color: var(--locations-blue);
  background: linear-gradient(135deg, #ffffff, var(--locations-wash));
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.locations-jump-links a:hover,
.locations-jump-links a:focus {
  color: var(--locations-green);
  border-color: rgba(72, 166, 44, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(72, 166, 44, 0.14);
}

.locations-nation {
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid rgba(34, 87, 122, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 42px rgba(44, 51, 62, 0.08);
}

.locations-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.locations-section-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--locations-green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.locations-section-heading h2 {
  margin-bottom: 0.55rem;
  color: var(--locations-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.locations-section-heading p {
  max-width: 48rem;
  margin-bottom: 0;
  color: rgba(16, 23, 14, 0.78);
  line-height: 1.8;
}

.locations-section-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.locations-section-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--locations-wash);
  color: var(--locations-blue);
  font-weight: 700;
}

.locations-section-metrics strong {
  font-size: 1.1rem;
}

.county-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--locations-line);
  border-radius: 24px;
  overflow: hidden;
  /*background:*/
  /*  linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 242, 234, 0.62));*/
  box-shadow: 0 18px 34px rgba(44, 51, 62, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.county-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(72, 166, 44, 0.16), transparent 70%);
  pointer-events: none;
}

.county-card:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 166, 44, 0.22);
  box-shadow: 0 24px 42px rgba(44, 51, 62, 0.14);
}

.county-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.county-card-label,
.county-card-count {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-card-label {
  margin-bottom: 0.85rem;
  color: var(--locations-green);
  background: rgba(72, 166, 44, 0.1);
}

.county-card-count {
  color: var(--locations-blue);
  background: rgba(34, 87, 122, 0.08);
}

.county-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--locations-ink);
  font-size: 1.75rem;
  line-height: 1.05;
}

.county-card-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 1.15rem;
  color: rgba(16, 23, 14, 0.8);
  line-height: 1.75;
}

.county-city-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.county-city-list li {
  margin-bottom: 0;
}

.county-city-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(34, 87, 122, 0.12);
  border-radius: 999px;
  color: var(--locations-blue);
  background-color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.county-city-list a::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background-color: var(--locations-orange);
  box-shadow: 0 0 0 0.25rem rgba(253, 108, 46, 0.12);
}

.county-city-list a:hover,
.county-city-list a:focus {
  color: var(--locations-green);
  border-color: rgba(72, 166, 44, 0.3);
  background-color: #fff;
  transform: translateY(-2px);
}

.js-location-reveal {
  /*opacity: 0;*/
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-location-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .locations-btn,
  .locations-hero-map,
  .locations-hero-car,
  .county-card,
  .county-city-list a,
  .js-location-reveal {
    transition: none;
  }

  .js-location-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991px) {
  .locations-hero,
  .locations-nation {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .locations-hero h1 {
    max-width: none;
  }

  .locations-hero-visual {
    min-height: 360px;
  }

  .locations-jump-links {
    top: 74px;
      display: flex;
      justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .locations-hero-actions,
  .locations-section-metrics,
  .locations-jump-links {
    gap: 0.65rem;
  }

  .locations-btn,
  .locations-jump-links a {
    /*width: 100%;*/
      flex-grow: 1;
  }

  .locations-hero-visual {
    min-height: 305px;
  }

  .locations-hero-map {
    right: -0.4rem;
    width: min(80%, 290px);
  }

  .locations-hero-car {
    left: -1rem;
    width: min(92%, 360px);
  }

  .locations-hero-badge {
    max-width: 180px;
    font-size: 0.78rem;
  }

  .locations-section-heading h2 {
    font-size: 2.1rem;
  }

  .county-card h3 {
    font-size: 1.45rem;
  }
}
