/* ============================================================
   B2FPV — shared site footer
   Linked by every page. Uses each page's design tokens with
   safe fallbacks. Markup is identical on every page.
   ============================================================ */

.site-footer {
  background: var(--bg2, #111111);
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
  /* Match the nav/section band: contents held to a centered ~1280px band.
     Fallback keeps the band on pages that don't define --content-max. */
  padding-block: 3rem;
  padding-inline: max(2.5rem, calc((100% - var(--content-max, 1280px)) / 2));
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}

.site-footer__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display, sans-serif);
  font-size: 1.4rem; letter-spacing: 0.05em;
  color: var(--text, #F0EDE8);
}
.site-footer__brand span { color: var(--red, #E03A2F); }
.site-footer__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.site-footer__nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.site-footer__nav a {
  font-family: var(--font-condensed, sans-serif);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted, #888);
  padding: 0.5rem 0.75rem; border-radius: 2px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.site-footer__nav a:hover {
  color: var(--text, #F0EDE8);
  border-color: rgba(224,58,47,0.4);
  background: rgba(224,58,47,0.06);
}

.site-footer__social { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer__social-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 2px; padding: 0.5rem 1rem;
  font-family: var(--font-condensed, sans-serif);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted, #888);
  transition: color 0.2s, border-color 0.2s;
}
.site-footer__social-link:hover { color: var(--text, #F0EDE8); border-color: rgba(255,255,255,0.25); }

.site-footer__copy { font-size: 0.82rem; color: var(--muted, #888); }

.site-footer__nav a:focus-visible,
.site-footer__social-link:focus-visible {
  outline: 2px solid var(--red, #E03A2F); outline-offset: 2px;
}

@media (max-width: 768px) {
  .site-footer { padding-block: 2rem; padding-inline: 1.1rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-footer__social { gap: 0.6rem; }
  .site-footer__social-link { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer__nav a, .site-footer__social-link { transition: none; }
}
