/* ===== SERVICE AREAS PAGES ===== */
/* Scoped CSS for /service-areas/ hub + county pages */
/* Loaded AFTER styles.css to layer on top without conflicts */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span[aria-hidden] {
  margin: 0 6px;
  color: rgba(255,255,255,0.3);
}

/* County Grid (hub page) */
.sa-county-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.sa-county-card {
  display: block;
  padding: var(--space-md);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.sa-county-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.sa-county-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--red);
}
.sa-county-icon svg { width: 100%; height: 100%; }
.sa-county-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.sa-county-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gray-500);
  margin: 0;
}

/* County detail page content */
.sa-intro {
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--charcoal);
}
.sa-intro p { margin-bottom: var(--space-sm); }

/* Services grid on county pages */
.sa-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}
.sa-service-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.sa-service-link:hover {
  border-color: var(--red);
  color: var(--red);
}
.sa-service-link .sa-svc-arrow {
  margin-left: auto;
  color: var(--gray-300);
  transition: color var(--transition);
  flex-shrink: 0;
}
.sa-service-link:hover .sa-svc-arrow { color: var(--red); }

/* FAQ section */
.sa-faq-list { max-width: 780px; }
.sa-faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-md) 0;
}
.sa-faq-item:first-child { padding-top: 0; }
.sa-faq-item:last-child { border-bottom: none; }
.sa-faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.sa-faq-item p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gray-500);
  margin: 0;
}

/* Nearby areas links */
.sa-nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-sm);
}
.sa-nearby a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: all var(--transition);
}
.sa-nearby a:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

/* Why Choose block */
.sa-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.sa-why-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.sa-why-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin: 0;
}

/* Process section */
.sa-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
.sa-process-step {
  position: relative;
  padding-top: 40px;
}
.sa-process-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.sa-process-step h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.sa-process-step p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gray-500);
  margin: 0;
}

/* Content two-column layout */
.sa-content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.sa-content-cols h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.sa-content-cols p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}
.sa-content-cols ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm) 0;
}
.sa-content-cols ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-500);
}
.sa-content-cols ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
  .sa-county-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-services-grid { grid-template-columns: repeat(2, 1fr); }
  .sa-process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sa-county-grid { grid-template-columns: 1fr; }
  .sa-services-grid { grid-template-columns: 1fr; }
  .sa-why-grid { grid-template-columns: 1fr; }
  .sa-process-steps { grid-template-columns: 1fr; }
  .sa-content-cols { grid-template-columns: 1fr; }
}

/* No horizontal overflow guard */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* Doylestown featured card (HQ) */
.sa-county-featured {
  border: 2px solid var(--red);
  position: relative;
}
.sa-county-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
