/* ==========================================================================
   Services Page — East Dallas Primary Care
   Page header banner, service detail cards with left accent borders,
   checklist styling, bottom CTA
   ========================================================================== */

/* -----------------------------------------------------------------------
   Page Header Banner (Textured)
   Gradient banner with subtle topographic texture overlay, ~25vh mobile,
   ~30vh desktop. Same pattern as about page.
   ----------------------------------------------------------------------- */
.page-header--textured {
  position: relative;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-mid) 50%, var(--hero-end));
  overflow: hidden;
}

/* Content above the overlay */
.page-header--textured .container {
  position: relative;
  z-index: 2;
}

.page-header--textured h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl); /* 32px mobile */
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin: 0;
}

/* -----------------------------------------------------------------------
   Page Header Subtitle
   White text at 80% opacity, DM Sans, below the H1
   ----------------------------------------------------------------------- */
.page-header__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------------------------------
   Services Detail Section
   Stacked full-width cards with generous spacing
   ----------------------------------------------------------------------- */
.services-detail__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* -----------------------------------------------------------------------
   Service Card
   Full-width card with 4px left accent border in primary-blue,
   slight box-shadow, generous padding. Alternating white/off-white bg.
   ----------------------------------------------------------------------- */
.service-card {
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

/* Alternating backgrounds */
.service-card--white {
  background-color: var(--white);
}

.service-card--off-white {
  background-color: var(--off-white);
}

/* -----------------------------------------------------------------------
   Service Card Header
   Icon + H3 displayed as flex row, vertically centered
   ----------------------------------------------------------------------- */
.service-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.service-card__icon {
  width: 28px;
  height: 28px;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.service-card__header h2,
.service-card__header h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--navy);
  margin: 0;
  line-height: var(--leading-tight);
}

/* -----------------------------------------------------------------------
   Service Card Body Text
   ----------------------------------------------------------------------- */
.service-card__body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* -----------------------------------------------------------------------
   Service Card Checklist
   Bulleted list with green check-circle SVGs instead of standard bullets.
   Used for Diagnostic Testing services.
   ----------------------------------------------------------------------- */
.service-card__checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card__checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-normal);
}

.service-card__check {
  width: 20px;
  height: 20px;
  color: var(--success-green);
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   Bottom CTA
   Centered below all service cards
   ----------------------------------------------------------------------- */
.services-detail__cta {
  text-align: center;
  margin-top: var(--space-12);
}

.services-detail__cta-text {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   Responsive: Tablet (768px)
   ========================================================================== */
@media (min-width: 768px) {
  .page-header--textured {
    min-height: 28vh;
  }

  .service-card {
    padding: var(--space-10);
  }

  /* Checklist in 2-column grid on tablet+ */
  .service-card__checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-8);
  }
}

/* ==========================================================================
   Responsive: Desktop (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .page-header--textured {
    min-height: 30vh;
  }

  .page-header--textured h1 {
    font-size: var(--text-6xl); /* 48px */
  }

  .service-card__header h2,
  .service-card__header h3 {
    font-size: var(--text-2xl); /* 24px maintained */
  }

  .services-detail__list {
    gap: var(--space-8);
  }

  .services-detail__cta {
    margin-top: var(--space-16);
  }

  .services-detail__cta-text {
    font-size: var(--text-5xl);
  }
}
