/* ==========================================================================
   Site footer.
   ========================================================================== */

.site-footer {
  margin-top: var(--section-gap);
  padding-block: var(--space-6);
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.site-footer a {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Stacked on small screens, one row once there is room. */
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
}

.site-footer__address {
  margin: 0;
  font-style: normal;
}

.legal-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Social links (footer + mobile nav) */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgb(255 255 255 / 0.1);
  color: var(--color-text-inverse);
  transition: background var(--transition-fast), color var(--transition-fast);
}

/* Scoped with the list class so it outranks `.site-footer a:hover`, which would
   otherwise recolour the icon yellow on the yellow pill. */
.social-links .social-links__link:hover,
.social-links .social-links__link:focus-visible {
  background: var(--color-accent);
  color: var(--color-navy);
  text-decoration: none;
}

.social-links__link .icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  stroke: none;
}

/* The CTA band already provides the navy lead-in; no gap before the footer.
   The band is the last section inside <main>, not a sibling of the footer. */
.site-main:has(> .cta-band:last-child) + .site-footer {
  margin-top: 0;
}
