/* ═══════════════════════════════════════
   DARK SITE FOOTER — Theology Matters ME
   ═══════════════════════════════════════ */

.site-footer {
  background: var(--tmme-footer-bg);
  padding: 56px clamp(20px, 4vw, 48px) 0;
  margin-top: 0;
}

/* ── Main grid ── */
.footer__main {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; /* brand, Shop, Browse, Services, Support */
  gap: 32px 48px;
  padding-bottom: 52px;
}

/* ── Brand column ── */
.footer__logo {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 18px;
  object-fit: contain;
}

.footer__tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--tmme-footer-text);
  line-height: 1.7;
  max-width: 240px;
}

/* ── Nav columns ── */
.footer__nav-label {
  font-family: var(--tmme-font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tmme-footer-label);
  margin-bottom: 20px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .footer__nav-text: a service with no page yet (plain words, same look as the links) */
.footer__nav-list a,
.footer__nav-text {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--tmme-footer-text);
  text-decoration: none;
  display: inline-block;
  transition: color 0.18s ease;
}

.footer__nav-list a:hover {
  color: #cccccc;
}

.footer__nav-list a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Copyright bar ── */
.footer__bar {
  max-width: 1120px; /* same as .footer__main, so the line spans the columns */
  margin: 0 auto;
  border-top: 1px solid var(--tmme-footer-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--tmme-footer-copy);
}

.footer__legal-links {
  display: flex;
  gap: 24px;
}

.footer__legal-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--tmme-footer-copy);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer__legal-link:hover {
  color: #999999;
}

.footer__legal-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Responsive ── */
/* Narrow computers and tablets held sideways: five columns are too tight ("Book Launch Event" wrapped at
   801-810px), so the logo and line take their own row above the four link columns. */
@media (min-width: 801px) and (max-width: 1000px) {
  .footer__main { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Phones and tablets: everything centred (owner, 17 Nov 2026) — logo and line on their own row, then the four
   link columns two by two. The homepage does the same in responsive.css (loads last there). */
@media (max-width: 800px) {
  .site-footer { padding: 48px 20px 0; }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    max-width: 440px;
    text-align: center;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__logo { margin: 0 auto 16px; }
  .footer__tagline { max-width: 260px; margin: 0 auto; text-wrap: balance; }
  .footer__nav-list { align-items: center; }

  .footer__bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__nav-list a { transition: none; }
}
