/* ========== FOOTER ========== */
/* Same navy surface as the navbar, so the same focus-ring swap. See navbar.css. */
.footer {
  background-color: var(--primary-color);
  color: var(--white-alpha-85);
  --focus-ring-color: var(--secondary-color);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-4xl);
}

/* h3, not h4: the last heading above the footer is an h2 (each section title), so
   an h4 here skipped a level — flagged by both axe and Lighthouse (heading-order).
   Visual size is unchanged; only the level moved. */
.footer-col h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-md);
}

.footer-col p {
  color: var(--white-alpha-75);
  font-size: var(--font-size-sm-alt);
}

.footer-links li {
  margin-bottom: var(--space-sm);
  color: var(--white-alpha-75);
  font-size: var(--font-size-sm-alt);
}

.footer-links a {
  color: var(--white-alpha-75);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-xl);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--white-alpha-10);
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.footer-bottom {
  border-top: var(--border-width-thin) solid var(--white-alpha-10);
  text-align: center;
  padding: var(--space-xl) 0;
  font-size: var(--font-size-xs);
  color: var(--white-alpha-60);
}

/* base.css sets `p { color: var(--text-color) }` (#333), which beat the inherited
   --white-alpha-60 above and rendered the copyright line at 1.15:1 against the
   navy footer — effectively invisible. .footer-col p already had its own colour
   so it never showed the bug; this one had nothing. Inheriting instead gives
   6.1:1 on --primary-color. Caught by the axe/Lighthouse contrast audit. */
.footer-bottom p {
  color: inherit;
}
