/* ============================================================
   footer.css — Reusable site footer component
   Uses design tokens from global.css (colors + fonts).
   Markup is rendered by js/footer.js into <footer data-footer>.
   ============================================================ */

.site-footer {
  background-color: var(--color-bg, #0d0d0d);
  color: var(--color-white, #ffffff);
  font-family: var(--font-nav, "Inter", sans-serif); /* Area Normal */
  font-weight: 300;                                   /* area-normal-light */
}

/* Same max-width + gutter as the header, so "THE PROJECT" lines up
   under the "MAP" logo (page margin stays constant). */
.site-footer__inner {
  max-width: var(--page-max-width, 72rem);
  margin: 0 auto;
  padding: 5rem var(--page-gutter, 1.5rem) 3rem;
}

/* ---- Top: heading groups laid across the row ---- */
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  /* THE PROJECT pinned left, CONNECT pinned right (aligns with the
     "Space Digital" credit below), INITIATIVES sits in between. */
  justify-content: space-between;
  gap: 3rem 4.5rem;
}

.footer-group__title {
  margin: 0 0 2rem;
  font-family: var(--font-block, "Groovezilla", sans-serif); /* Groovezilla */
  font-weight: 500;
  font-size: 25px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white, #ffffff);
}

/* Two (or more) sub-columns of links inside a group */
.footer-group__cols {
  display: flex;
  gap: 3rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-list__link {
  color: var(--color-white, #ffffff);
  font-size: 1.0625rem;   /* ~17px */
  line-height: 1.7;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.footer-list__link:hover,
.footer-list__link:focus-visible {
  opacity: 0.55;
}

/* ---- Social icons ---- */
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials__link {
  display: inline-flex;
  border-radius: 12px;
}
.footer-socials__link svg {
  width: 44px;
  height: 44px;
  display: block;
}

/* ---- Divider ---- */
.site-footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 3rem 0 1.75rem;
}

/* ---- Bottom credit bar ---- */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__credit-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}
.site-footer__credit-link:hover,
.site-footer__credit-link:focus-visible {
  opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .site-footer__top { gap: 2.5rem 3rem; }
  .footer-group__cols { gap: 2.5rem; }
}
@media (max-width: 600px) {
  .site-footer__inner { padding: 3rem 1.5rem 2rem; }
  .footer-group__cols { flex-direction: column; gap: 1.25rem; }
  .footer-group__title { margin-bottom: 1.25rem; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}