/* County landing pages — subtle depth on top of tw.min.css + RLC tokens */
.rlc-county-body {
  background: linear-gradient(180deg, #f0f7ff 0%, #fafbff 35%, #ffffff 100%);
}

.rlc-county-main .rlc-county-hero-img {
  min-height: 220px;
}

@media (min-width: 640px) {
  .rlc-county-main .rlc-county-hero-img {
    min-height: 320px;
  }
}

/* Hero: blurred background + scrim (readable type; avoids missing Tailwind arbitrary utilities) */
.rlc-county-main .rlc-county-hero .rlc-county-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rlc-county-main .rlc-county-hero .rlc-county-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  -webkit-filter: blur(14px);
  transform: scale(1.14);
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .rlc-county-main .rlc-county-hero .rlc-county-hero-photo {
    filter: none;
    -webkit-filter: none;
    transform: none;
    opacity: 0.35;
  }
}

.rlc-county-main .rlc-county-hero .rlc-county-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(1, 42, 82, 0.94) 0%,
    rgba(2, 20, 40, 0.96) 42%,
    rgba(6, 48, 86, 0.93) 100%
  );
  pointer-events: none;
}

.rlc-county-main .rlc-county-hero .rlc-county-hero-inner {
  position: relative;
  z-index: 2;
}

.rlc-county-main .rlc-county-hero .rlc-county-hero-sub {
  color: #e0f2fe;
}

/* Steps: solid background + guaranteed text contrast */
.rlc-county-steps {
  background: linear-gradient(180deg, #031420 0%, #062238 40%, #0a3050 100%);
  color: #ffffff;
}

.rlc-county-steps .rlc-county-step-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.rlc-county-steps .rlc-county-step-card h3 {
  color: #ffffff;
}

/* Community pillar icon — Tailwind build omits .bg-purple-600 */
.rlc-county-icon-community {
  background-color: #7c3aed;
  color: #fff;
}

#county-contact-form {
  scroll-margin-top: 6.75rem;
}

@keyframes rlcCountyFormGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 0, 70, 0.45);
  }
  40% {
    box-shadow: 0 0 0 6px rgba(228, 0, 70, 0.2), 0 12px 40px rgba(1, 42, 82, 0.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(228, 0, 70, 0);
  }
}

#county-contact-form.rlc-county-form-highlight > div.mt-12 {
  animation: rlcCountyFormGlow 1.2s ease-out;
  border-radius: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  #county-contact-form.rlc-county-form-highlight > div.mt-12 {
    animation: none;
  }
}

.rlc-county-steps .rlc-county-step-text {
  color: #bae6fd;
  margin: 0;
}

/* County footer: never rely on unpurged Tailwind gradient tokens */
.rlc-county-footer {
  background: linear-gradient(180deg, #021a2e 0%, #012a52 50%, #021830 100%);
  color: #ffffff;
}

.rlc-county-footer .rlc-county-footer-lead {
  color: #e0f2fe;
}

.rlc-county-footer .rlc-county-footer-copy {
  color: #93c5d8;
}

.rlc-county-footer .rlc-county-footer-services span {
  color: #f0f9ff;
}

.rlc-county-footer .rlc-county-footer-link {
  color: #bae6fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rlc-county-footer .rlc-county-footer-link:hover {
  color: #ffffff;
}

.rlc-county-footer .rlc-county-footer-link-strong {
  color: #ffffff;
}

.rlc-county-footer .rlc-county-footer-link-strong:hover {
  color: #fda4af;
}

.rlc-county-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rlc-county-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(1, 42, 82, 0.12);
}

/* Leaflet: office marker wrapper */
.leaflet-div-icon.rlc-map-office-marker {
  background: transparent !important;
  border: none !important;
}

/* Form + copy block: lift off page background */
.rlc-county-main article#county-contact-form {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(1, 42, 82, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

@media (min-width: 640px) {
  .rlc-county-main article#county-contact-form {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
