/* ============================================================================
 * Global Footer — multi-column enterprise structure with dark surface variant.
 *
 *   .wb-site-footer                → outer contentinfo, dark surface
 *   .wb-site-footer__top           → primary multi-column area
 *   .wb-site-footer__brand         → logo + descriptor + collaboration line
 *   .wb-site-footer__group         → nav column (heading + list)
 *   .wb-site-footer__bottom        → copyright + legal nav + locale
 *
 * Designed to be wide, whitespace-heavy, and operationally serious.
 * ========================================================================== */

.wb-site-footer {
  background-color: var(--wb-color-ink);
  color: var(--wb-color-text-soft);
  margin-top: var(--wb-space-12);
}

.wb-site-footer a {
  color: var(--wb-color-text-soft);
  text-decoration: none;
  transition: color var(--wb-duration-base) var(--wb-ease);
}
.wb-site-footer a:hover { color: var(--wb-color-white); }

.wb-site-footer__top {
  display: grid;
  gap: var(--wb-space-7);
  padding-block: var(--wb-section-y);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .wb-site-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--wb-space-8);
  }
}

.wb-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-3);
  max-width: 360px;
}
.wb-site-footer__brand img,
.wb-site-footer__brand svg {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Text-fallback brand mark (matches the header fallback) */
.wb-site-footer__name {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.125rem;
  font-weight: var(--wb-fw-bold);
  letter-spacing: -0.015em;
  color: var(--wb-color-white);
}
.wb-site-footer__name::before {
  content: "W";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--wb-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--wb-color-white);
  font-size: 15px;
  font-weight: var(--wb-fw-bold);
  line-height: 1;
}
.wb-site-footer__tagline {
  font-size: var(--wb-text-sm);
  line-height: var(--wb-lh-relaxed);
  color: var(--wb-color-text-soft);
  margin: 0;
}
.wb-site-footer__locales {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-3);
  margin-top: var(--wb-space-3);
  font-size: var(--wb-text-xs);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
}

.wb-site-footer__group { min-width: 0; }
.wb-site-footer__heading {
  font-size: var(--wb-text-sm);
  font-weight: var(--wb-fw-semibold);
  letter-spacing: var(--wb-ls-wide);
  text-transform: uppercase;
  color: var(--wb-color-white);
  margin: 0 0 var(--wb-space-4);
}
.wb-site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-2);
}
.wb-site-footer__list .wb-nav__link,
.wb-site-footer__list a {
  font-size: var(--wb-text-sm);
  color: var(--wb-color-text-soft);
}

.wb-site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-3);
  font-size: var(--wb-text-sm);
  line-height: var(--wb-lh-relaxed);
}

/* Bottom row ---------------------------------------------------------------- */
.wb-site-footer__bottom {
  border-top: var(--wb-border-width) solid rgba(255, 255, 255, 0.08);
  padding-block: var(--wb-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--wb-space-3);
  align-items: flex-start;
  justify-content: space-between;
  font-size: var(--wb-text-xs);
  color: var(--wb-color-text-soft);
}
@media (min-width: 768px) {
  .wb-site-footer__bottom {
    flex-direction: row;
    align-items: center;
  }
}
.wb-site-footer__legal .wb-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--wb-space-4);
}
.wb-site-footer__legal .wb-nav__link {
  font-size: var(--wb-text-xs);
}

.wb-site-footer__copy { margin: 0; }

/* Resources strip — links to sitemap, robots.txt, llms.txt + Academy.
 * Lives between the main grid and the legal/copyright row so it stays
 * findable for both human visitors and crawlers. */
.wb-site-footer__resources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wb-space-4);
  padding-block: var(--wb-space-5);
  border-top: var(--wb-border-width) solid rgba(255, 255, 255, 0.06);
  font-size: var(--wb-text-xs);
}
.wb-site-footer__resources-label {
  font-weight: var(--wb-fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wb-color-text-soft);
}
.wb-site-footer__resources a {
  color: var(--wb-color-text-soft);
  font-size: var(--wb-text-xs);
  letter-spacing: 0.01em;
  transition: color var(--wb-duration-base) var(--wb-ease);
}
.wb-site-footer__resources a:hover {
  color: var(--wb-color-white);
}
