/* ============================================================
   Footer — brand column + menu/text columns + bottom bar.
   Dark (default) and light schemes. Tokens only.
   ============================================================ */

/* No top margin — preceding sections own their bottom rhythm via padding, so
   the footer hugs content (and sits flush under the newsletter's tint band). */
.lh-footer--dark {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
}
.lh-footer--light {
  background: var(--surface-sunken);
  color: var(--text-body);
  border-top: 1px solid var(--border-subtle);
}

.lh-footer__inner {
  padding-block: var(--space-16) var(--space-8);
}

/* ---- Masthead: centered wordlogo + social row (full width) ---- */
.lh-footer__masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  padding-bottom: var(--space-10);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-on-dark);
}
.lh-footer__logo { display: inline-flex; color: inherit; }
.lh-footer__logo-img { max-height: 46px; width: auto; }
.lh-footer__logo .lh-wordlogo { font-size: var(--font-h2); color: var(--text-on-dark); }
.lh-footer--light .lh-footer__logo .lh-wordlogo { color: var(--text-heading); }
.lh-footer__logo .lh-wordlogo__em { color: var(--color-accent); }
.lh-footer--light .lh-footer__logo .lh-wordlogo__em { color: var(--color-primary); }
.lh-footer__tagline {
  margin: 0;
  max-width: 46ch;
  font-size: var(--font-body-sm);
  line-height: var(--leading-body);
  color: inherit;
  opacity: 0.78;
}
.lh-footer__social { justify-content: center; }

/* ---- Columns ---- */
.lh-footer__top { display: block; }
.lh-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}
.lh-footer__col-title {
  font-family: var(--font-body);
  /* Slightly larger than the menu links below for a clear visual hierarchy. */
  font-size: var(--font-body-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: inherit;
  opacity: 0.92;
  margin: 0 0 var(--space-4);
}
.lh-footer__col-list { margin: 0; padding: 0; list-style: none; }
.lh-footer__col-list li { margin-bottom: var(--space-3); }
.lh-footer__col-link,
.lh-footer__col-rte a {
  color: inherit;
  font-size: var(--font-body-sm);
  opacity: 0.82;
  transition: var(--transition-fast);
}
.lh-footer__col-link:hover,
.lh-footer__col-rte a:hover { opacity: 1; }
.lh-footer__col-rte {
  font-size: var(--font-body-sm);
  line-height: var(--leading-body);
  opacity: 0.82;
}
.lh-footer__col-rte p:last-child { margin-bottom: 0; }

/* ---- Bottom bar ---- */
.lh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid currentColor;
}
.lh-footer--dark .lh-footer__bottom,
.lh-footer--light .lh-footer__bottom {
  border-top-color: var(--border-subtle);
}
.lh-footer--dark .lh-footer__bottom {
  border-top-color: var(--border-on-dark);
}

.lh-footer__copyright {
  margin: 0;
  font-size: var(--font-caption);
  opacity: 0.72;
}
.lh-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lh-footer__legal-link {
  color: inherit;
  font-size: var(--font-caption);
  opacity: 0.72;
  transition: var(--transition-fast);
}
.lh-footer__legal-link:hover { opacity: 1; }

.lh-footer__payment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lh-footer__payment-icon {
  height: var(--space-6);
  width: auto;
  border-radius: var(--radius-xs);
  background: var(--lh-white);
  padding: var(--space-1);
}

/* ---- Breakpoints ---- */
/* Mobile: stack and center the bottom bar (copyright + payment + legal) */
@media (max-width: 639px) {
  .lh-footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .lh-footer__copyright { order: 3; }
  .lh-footer__legal { order: 2; justify-content: center; width: 100%; }
  .lh-footer__payment { order: 1; justify-content: center; width: 100%; }
}

@media (min-width: 640px) {
  .lh-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lh-footer__columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-8);
  }
}
