/* ==========================================================================
   Contact Page — East Dallas Primary Care
   Page header banner, contact details, map, bottom note
   ========================================================================== */

/* -----------------------------------------------------------------------
   Page Header Banner (Textured)
   Gradient banner with subtle topographic texture overlay
   ----------------------------------------------------------------------- */
.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;
}

/* -----------------------------------------------------------------------
   Contact Info + Map Section
   Two-column layout: contact details left, map right
   Stacks on mobile, side-by-side at 768px+
   ----------------------------------------------------------------------- */
.contact-info {
  background-color: var(--white);
}

.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

/* -----------------------------------------------------------------------
   Left Column: Contact Details
   ----------------------------------------------------------------------- */
.contact-info__details {
  order: 2; /* On mobile, map shows first for visual impact */
}

/* Phone number — visually dominant */
.contact-info__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-5xl); /* 36px */
  font-weight: var(--weight-semibold);
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-bottom: var(--space-6);
}

.contact-info__phone:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

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

.contact-info__phone svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary-blue);
}

/* Fax */
.contact-info__fax {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--charcoal);
  margin-bottom: var(--space-4);
}

.contact-info__fax svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gray-600);
}

/* Address */
.contact-info__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-style: normal;
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.contact-info__address svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gray-600);
  margin-top: 3px; /* Align with first line of text */
}

/* Hours heading */
.contact-info__hours-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

/* Footnote below hours table */
.contact-info__footnote {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: var(--space-3);
}

/* -----------------------------------------------------------------------
   Right Column: Google Map
   ----------------------------------------------------------------------- */
.contact-info__map {
  order: 1; /* On mobile, map shows first */
}

/* "Get Directions" button below map */
.contact-info__directions {
  margin-top: var(--space-4);
}

/* -----------------------------------------------------------------------
   Bottom Note
   ----------------------------------------------------------------------- */
.contact-note {
  background-color: var(--ice-blue-light);
}

.contact-note__text {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--navy);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-normal);
}

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

  /* Two-column layout: details left, map right */
  .contact-info__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }

  /* Reset ordering — details left, map right on desktop */
  .contact-info__details {
    order: 1;
  }

  .contact-info__map {
    order: 2;
    /* Sticky so map stays visible while scrolling hours */
    position: sticky;
    top: 100px; /* Below sticky header */
  }
}

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

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

  .contact-info__grid {
    grid-template-columns: 45fr 55fr;
    gap: var(--space-16);
  }

  .contact-note__text {
    font-size: var(--text-2xl);
  }
}
