/* ==============================================
   SERVICE-AREAS.CSS — Service Areas Listing Page
   Baxter Site Works
   ============================================== */

/* ==============================================
   HERO
   ============================================== */
.sa-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sa-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sa-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.sa-hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-24);
  padding-bottom: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sa-hero-headline {
  color: #ffffff;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.sa-hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.sa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

/* ==============================================
   LISTING SECTION
   ============================================== */
.sa-listing-section {
  background: var(--color-bg);
  padding: var(--space-20) 0;
}

.sa-listing-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.sa-listing-title {
  color: var(--color-heading);
  margin: 0;
}

.sa-listing-sub {
  color: var(--color-text);
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* ==============================================
   AREA CARD GRID
   ============================================== */
.sa-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.sa-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.sa-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Wide card spans full row on desktop */
.sa-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.sa-card-wide .sa-card-img-wrap {
  width: 50%;
  flex-shrink: 0;
}

.sa-card-wide .sa-card-body {
  flex: 1;
  justify-content: center;
}

.sa-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.sa-card-wide .sa-card-img-wrap {
  height: auto;
  min-height: 240px;
}

.sa-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.sa-card:hover .sa-card-img {
  transform: scale(1.05);
}

.sa-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}

.sa-card-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  gap: var(--space-3);
}

.sa-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-card-title {
  color: var(--color-heading);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
  line-height: 1.3;
}

.sa-card-desc {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.sa-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.sa-card:hover .sa-card-link {
  gap: var(--space-3);
}

/* ==============================================
   STATS SECTION
   ============================================== */
.sa-stats-section {
  background: var(--color-dark-bg);
  padding: var(--space-16) 0;
}

.sa-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.sa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.sa-stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-heading);
}

.sa-stat-unit {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.sa-stat-label {
  font-size: 0.9rem;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--font-weight-medium);
}

/* ==============================================
   SERVICES STRIP
   ============================================== */
.sa-services-section {
  background: #f8f9fa;
  padding: var(--space-20) 0;
}

.sa-services-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.sa-services-intro h2 {
  color: var(--color-heading);
  margin: 0;
}

.sa-services-intro p {
  color: var(--color-text);
  max-width: 600px;
  margin: 0;
}

.sa-services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.sa-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-heading);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sa-service-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.sa-service-item:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==============================================
   CTA SECTION
   ============================================== */
.sa-cta-section {
  position: relative;
  padding: var(--space-24) 0;
  overflow: hidden;
}

.sa-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sa-cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sa-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(15, 23, 42, 0.82),
    rgba(15, 23, 42, 0.82)
  );
}

.sa-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}

.sa-cta-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.sa-cta-sub {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.sa-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .sa-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sa-card-wide {
    grid-column: 1 / -1;
  }

  .sa-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sa-hero {
    min-height: 60vh;
  }

  .sa-hero-content {
    padding-top: var(--space-20);
    padding-bottom: var(--space-12);
  }

  .sa-card-grid {
    grid-template-columns: 1fr;
  }

  .sa-card-wide {
    flex-direction: column;
  }

  .sa-card-wide .sa-card-img-wrap {
    width: 100%;
    height: 220px;
  }

  .sa-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sa-services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
