/* =============================================================
   FOOTER — Phase 3 (.site-footer)
   Always-dark 5-column footer (brand bookend in both themes). Text/
   accent tokens come from the dark-zone scope in components.css.
   ============================================================= */

.site-footer {
  background: var(--color-navy-darker);
  border-top: 1px solid rgba(147, 197, 253, 0.10);
  padding-block: var(--space-16) var(--space-8);
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr;      /* mobile: single column */
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: var(--space-6);
}

/* Brand column */
.footer__logo-img { height: 40px; width: auto; display: block; margin-bottom: var(--space-4); }
.footer__mission {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.62);
  line-height: var(--line-height-relaxed);
  max-width: 34ch;
  margin-bottom: var(--space-5);
}

/* Column headings + link lists */
.footer__heading {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: var(--space-5);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a,
.footer__col span {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__col a:hover { color: #fff; }
.footer__col a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer__todo { font-style: italic; color: rgba(255, 255, 255, 0.42); }

/* A button inside a footer column keeps its own colour. The rules above
   dim every link to 66% white, which suits the quick links and ruins a
   filled button: white at 66% over the electric gradient does not reach
   the 4.5:1 the project requires. */
.footer__col .btn,
.footer__col .btn:hover,
.footer__col .btn:focus-visible { color: var(--color-text-primary); }

/* Newsletter */
.footer__newsletter-blurb {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.62);
  line-height: var(--line-height-relaxed);
  max-width: 30ch;
  margin-bottom: var(--space-4);
}
.footer-newsletter__hp { display: none; }
.footer__consent {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--line-height-normal);
  margin-top: var(--space-3);
  max-width: 34ch;
}
.footer__consent a { color: var(--color-sky); text-decoration: underline; }
.footer__consent a:hover { color: #fff; }

/* Bottom bar */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__copy { font-size: var(--font-size-xs); color: rgba(255, 255, 255, 0.55); }
.footer__legal { display: flex; gap: var(--space-5); }
.footer__legal a,
.footer__legal button {
  font-family: inherit;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.55);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__legal a:hover,
.footer__legal button:hover { color: #fff; }
.footer__legal a:focus-visible,
.footer__legal button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Tablet: 2 columns ── */
@media (min-width: 640px) {
  .footer__main { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop: 5 columns ── */
@media (min-width: 1024px) {
  .footer__main { grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.3fr; gap: var(--space-10); }
}
