/* ==========================================================================
   Sections — East Dallas Primary Care
   Welcome/Intro, Affiliation Badge Strip, Why Choose EDPC cards
   ========================================================================== */

/* -----------------------------------------------------------------------
   Welcome / Intro Section
   Two-column (60/40) on desktop, photo-on-top stack on mobile
   ----------------------------------------------------------------------- */
.welcome {
  background-color: var(--white);
}

.welcome__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

/* On mobile, photo column comes first visually */
.welcome__photo {
  order: -1;
  text-align: center;
}

.welcome__photo-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy);
  box-shadow: 0 4px 16px rgba(27, 58, 92, 0.12);
  display: block;
  margin: 0 auto;
}

.welcome__photo-caption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--gray-600);
  text-align: center;
  margin-top: var(--space-3);
}

.welcome__text h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.welcome__text p {
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.welcome__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  color: var(--primary-blue);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color var(--transition-fast),
              gap var(--transition-fast);
}

.welcome__cta:hover {
  color: var(--primary-blue-hover);
  gap: var(--space-3);
}

.welcome__cta:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------
   Affiliation Badge Strip
   Ice-blue background, centered logo, credibility signal
   ----------------------------------------------------------------------- */
.affiliation {
  background-color: var(--ice-blue);
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.affiliation__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-6);
  max-width: none;
}

.affiliation__logo {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* -----------------------------------------------------------------------
   Why Choose EDPC — Three Cards
   ----------------------------------------------------------------------- */
.why-choose {
  background-color: var(--white);
}

.why-choose__header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.why-choose__header h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-choose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Individual card overrides for why-choose context */
.why-choose .card {
  display: flex;
  flex-direction: column;
}

.why-choose .card__body {
  flex: 1;
}

/* -----------------------------------------------------------------------
   Ratings Bar
   Compact horizontal strip with platform badges, sits between
   Why Choose and Services Overview for social proof flow
   ----------------------------------------------------------------------- */
.ratings {
  background-color: var(--ice-blue);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.ratings__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
}

.ratings__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.ratings__badge:hover {
  background-color: rgba(27, 58, 92, 0.06);
  text-decoration: none;
}

.ratings__icon {
  flex-shrink: 0;
  margin-bottom: 2px;
}

.ratings__icon--wide {
  height: 28px;
  width: auto;
  border-radius: 3px;
}

.ratings__score {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--navy);
  letter-spacing: 0.5px;
}

.ratings__source {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ratings__divider {
  width: 1px;
  height: 40px;
  background-color: rgba(27, 58, 92, 0.15);
}

/* Hide dividers on mobile when items wrap */
@media (max-width: 479px) {
  .ratings__divider {
    display: none;
  }

  .ratings__bar {
    gap: var(--space-4) var(--space-6);
  }
}

@media (min-width: 768px) {
  .ratings__bar {
    gap: var(--space-10);
  }

  .ratings__score {
    font-size: var(--text-xl);
  }
}

/* -----------------------------------------------------------------------
   Services Overview Section
   Off-white background, 5-tile grid with Lucide icons
   ----------------------------------------------------------------------- */
.services-overview {
  background-color: var(--off-white);
}

.services-overview__heading {
  font-family: var(--font-heading);
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-10);
}

.services-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Service tile card styles */
.services-tile {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.services-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--primary-blue);
  background-color: var(--ice-blue);
  border-radius: var(--radius-md);
}

.services-tile__icon svg {
  width: 28px;
  height: 28px;
}

.services-tile__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--navy);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.services-tile__desc {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.services-overview__cta {
  text-align: center;
  margin-top: var(--space-10);
}

/* -----------------------------------------------------------------------
   New Patients CTA Band
   Primary-blue background, white text, centered content
   ----------------------------------------------------------------------- */
.new-patients-cta {
  background-color: var(--primary-blue);
  text-align: center;
}

.new-patients-cta__heading {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.new-patients-cta__text {
  color: var(--white);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.new-patients-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* -----------------------------------------------------------------------
   Location & Hours Preview
   White background, two-column layout (map + info)
   ----------------------------------------------------------------------- */
.location-hours {
  background-color: var(--white);
}

.location-hours__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* Make map fill its column on mobile */
.location-hours__map .map-container {
  width: 100%;
}

.location-hours__address-heading,
.location-hours__hours-heading {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.location-hours__hours-heading {
  margin-top: var(--space-6);
}

.location-hours__address {
  font-style: normal;
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
}

.location-hours__footnote {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.location-hours__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* ==========================================================================
   Responsive: Tablet (768px)
   ========================================================================== */
@media (min-width: 768px) {
  .welcome__grid {
    grid-template-columns: 3fr 2fr;
  }

  /* On tablet+, photo is in its natural order (right column) */
  .welcome__photo {
    order: 0;
  }

  .welcome__photo-img {
    width: 250px;
    height: 250px;
  }

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

  /* Services grid: 2 columns on tablet */
  .services-overview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* New Patients CTA: side-by-side buttons on tablet+ */
  .new-patients-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  /* Location & Hours: two-column layout */
  .location-hours__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ==========================================================================
   Responsive: Desktop (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .welcome__grid {
    gap: var(--space-16);
  }

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

  /* Services grid: 3 columns on desktop */
  .services-overview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
