/* ==========================================================================
   Footer — East Dallas Primary Care
   Navy-dark background, white text, three-column grid
   Stacks to single column on mobile
   ========================================================================== */

/* -----------------------------------------------------------------------
   Site Footer — Base
   ----------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--white);
}

/* -----------------------------------------------------------------------
   Footer Main Content — Three-column grid
   ----------------------------------------------------------------------- */
.footer__grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* -----------------------------------------------------------------------
   Footer Column — Shared Styles
   ----------------------------------------------------------------------- */
.footer__col {
  min-width: 0; /* prevent grid blowout */
}

/* Column headings */
.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

/* -----------------------------------------------------------------------
   Footer Column 1 — Practice Info
   ----------------------------------------------------------------------- */
.footer__practice-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.footer__tagline {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* UTSW affiliation badge in footer */
.footer__badge {
  display: block;
  max-width: 200px;
  height: auto;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer__badge:hover {
  opacity: 1;
}

/* -----------------------------------------------------------------------
   Footer Column 2 — Quick Links
   ----------------------------------------------------------------------- */
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links li:last-child {
  margin-bottom: 0;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--text-base);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------
   Footer Column 3 — Contact Info
   ----------------------------------------------------------------------- */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
}

.footer__contact-item:last-child {
  margin-bottom: 0;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__contact-item a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* Hours in footer */
.footer__hours {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
}

/* -----------------------------------------------------------------------
   Footer Bottom Bar
   ----------------------------------------------------------------------- */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* Legal links (HIPAA, Privacy) */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

.footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* Hide the separator span — use CSS gap instead */
.footer__legal-sep {
  display: none;
}

/* "Website by Arrion" credit */
.footer__credit {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__credit a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credit a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* -----------------------------------------------------------------------
   Tablet — 768px
   Two-column footer grid, bottom bar side-by-side
   ----------------------------------------------------------------------- */
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  /* First column spans full width on tablet (or stays alone) */
  .footer__col:first-child {
    grid-column: 1 / -1;
  }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
  }
}

/* -----------------------------------------------------------------------
   Desktop — 1024px
   Three-column footer grid
   ----------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-12);
  }

  /* Reset first column span */
  .footer__col:first-child {
    grid-column: auto;
  }
}
