/* Footer
   Source: Figma "Northbeam-Final", node 52:4514 (1440 x 126). Background: assets/images/footer-dark-panel.webp (3040 x 1120), covers the bar.
   Values: css/tokens.css (Footer block). Reveal: data-reveal="fade" (js/motion.js).

   The logo is the same file as the header logo (assets/images/logo-northbeam.png), turned white with a CSS filter.
   If you get a white version of the logo, save it as logo-northbeam-white.png and change the src in the footer (then the filter can go).
   Breakpoint: 901px and wider = one row (brand left, links right). 900px and below = brand on top, links under it (wrap on very small screens).
   900px is where the tagline and the links stop fitting on one line (measured), so it is higher than the site's 768px.
   If the background image is missing, the footer shows --color-contact-bg. */

.footer {
  background: var(--color-contact-bg) url("../../assets/images/footer-dark-panel.webp") center / cover no-repeat;
  color: var(--color-snow);
  padding: var(--footer-pad-y) var(--footer-pad-x);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24) var(--footer-gap);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.footer__logo {
  display: block;
  width: var(--footer-logo-width);
  height: var(--footer-logo-height);
}
.footer__logo img { display: block; width: 100%; height: 100%; filter: brightness(0) invert(1); }   /* dark logo -> white */
.footer__tagline {
  margin: 0;
  max-width: 640px;
  font: var(--type-weight-regular) var(--type-size-14)/var(--type-line-height-20) var(--type-family-body);
  letter-spacing: var(--type-tracking-03);
}
.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-8) var(--footer-gap);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__link {
  font: var(--type-weight-semibold) var(--type-size-14)/var(--type-line-height-body) var(--type-family-body);
  letter-spacing: var(--type-tracking-03);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--duration-fast) var(--ease);
}
.footer__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 900px) {
  .footer__tagline { text-wrap: balance; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--space-24); }
  .footer__links { justify-content: flex-start; gap: var(--space-8) var(--space-24); }
}
