/* ─────────────────────────────────────────────────────────────
   footer.css — closing band

   Deep Forest. The CTA above it now carries the Pale Sage, so a
   pale footer would have read as one continuous block with no
   ending; the page closes on the darkest value it owns.

   The supplied lockup is a black wordmark with a green symbol on
   transparency — both invisible on this ground. Rather than
   filtering it white and losing the two-tone mark, the footer
   uses a derived reversed asset: the same shapes, alpha for
   alpha, with the wordmark mapped to Pale Sage and the symbol to
   Light Signal so it still reads as two colours. If a proper
   reversed lockup exists, swap it in for this.
   ───────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  background: var(--forest);
  color: var(--on-dark);
  border-top: 0;
  padding-block: clamp(56px, 7vw, 92px) clamp(28px, 3vw, 40px);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-6) clamp(32px, 5vw, 96px);
}

.footer__logo img {
  height: clamp(26px, 2.1vw, 32px);
  width: auto;
}

.footer__line {
  margin: var(--space-4) 0 0;
  max-width: 26em;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 21px);
  font-style: italic;
  line-height: 1.3;
  color: var(--on-dark);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(24px, 3vw, 56px);
}

/* An email address is one unbreakable token. In a 163px track at 390px it
   pushed the layout viewport to 423px and gave the whole page 33px of
   horizontal scroll — and a real address is still ~180px, so widening the
   track is not the fix. Break the word, and drop to one column where two
   tracks can no longer hold an address. */
.footer__group a {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .footer__nav { grid-template-columns: minmax(0, 1fr); }
}

.footer__group h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

/* Padding rather than gap: the links were 17px tall, under the 24px minimum,
   and a gap cannot be clicked. */
.footer__group a {
  display: inline-block;
  padding: 5px 0;
  font-size: var(--t-sm);
  color: var(--on-dark-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer__group a:hover { color: var(--signal-lit); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-meta);
  color: var(--on-dark-muted);
}

.footer__bottom p { margin: 0; }

@media (max-width: 760px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}
