/* service-areas-directory-v2 — featured cities + chip directory, motion */

.cms-service-areas-section {
  position: relative;
  overflow: hidden;
}

.cms-service-areas-section .container {
  position: relative;
  z-index: 1;
}

.cms-service-areas-section::before {
  content: "";
  position: absolute;
  inset: -15% 10% auto;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 72%);
  pointer-events: none;
  animation: sa-glow 8s ease-in-out infinite alternate;
}

.cms-service-areas-section .section-label,
.cms-service-areas-section h2 {
  text-align: center;
}

.cms-service-areas-section .section-lead {
  max-width: 52ch;
  margin: 0.45rem auto 0;
  line-height: 1.65;
  text-align: center;
}

.sa-home-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (max-width: 900px) {
  .sa-home-featured {
    grid-template-columns: 1fr;
  }
}

.sa-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.45rem 1.45rem 1.3rem;
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  animation: sa-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--sa-i, 0) * 90ms);
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.sa-feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(40, 40, 40, 0.35), transparent);
  opacity: 0.55;
}

.sa-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
}

.sa-feature-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a6a6a !important;
}

.sa-feature-card h3 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.25;
  color: #121212 !important;
}

.sa-feature-card p {
  margin: 0 !important;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555 !important;
  flex: 1;
}

.sa-feature-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1a1a1a !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.sa-feature-card:hover .sa-feature-link {
  gap: 0.55rem;
}

.sa-home-more {
  margin-top: 2rem;
}

.sa-home-more-label {
  text-align: center;
  margin: 0 0 1rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a6a6a !important;
}

.sa-home-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.sa-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1a1a1a !important;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  animation: sa-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--sa-i, 0) * 32ms);
}

.sa-city-chip:hover {
  transform: translateY(-2px) scale(1.02);
  background: #1c1c1c !important;
  border-color: #1c1c1c !important;
  color: #ececec !important;
}

.sa-city-chip span {
  opacity: 0.5;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sa-city-chip:hover span {
  opacity: 1;
  transform: translateX(2px);
}

.sa-home-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.85rem;
  animation: sa-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.sa-home-actions .btn {
  min-width: 220px;
}

/* Hub directory */
.sa-directory {
  padding-top: 0.5rem;
  overflow: hidden;
}

.sa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 2rem;
}

.sa-tab {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: #5c5c5c;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sa-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
  color: #1a1a1a;
}

.sa-tab.is-active {
  background: #1c1c1c;
  color: #f0f0f0;
  border-color: #1c1c1c;
}

.sa-county-block {
  margin-bottom: 2.25rem;
  animation: sa-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sa-county-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a6a6a !important;
}

.sa-county-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.sa-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.sa-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: sa-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--sa-i, 0) * 35ms);
  min-height: 100%;
  color: #2e2e2e;
}

.sa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.16) !important;
}

.sa-card-city {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  color: #121212 !important;
  line-height: 1.25;
}

.sa-card-meta {
  margin: 0 !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a6a !important;
}

.sa-card-excerpt {
  margin: 0 !important;
  color: #555 !important;
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
}

.sa-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.sa-directory-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sa-directory-footer p {
  color: #5c5c5c !important;
  margin-bottom: 1rem !important;
}

@keyframes sa-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sa-glow {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-feature-card,
  .sa-city-chip,
  .sa-card,
  .sa-county-block,
  .sa-home-actions,
  .cms-service-areas-section::before {
    animation: none !important;
  }
}
