/* ═══════════════════════════════════════════════════════
   IWTMYL Sitewide Footer — Non-Homepage
   Location: css/iw-footer.css
   Loaded on all pages except homepage via enqueue guard.
   Uses design tokens from css/iwtmyl-tokens.css.
   ═══════════════════════════════════════════════════════ */

/* ── Body override ──
   main.css sets body { padding-bottom:290px; position:relative }
   for the old absolutely-positioned footer#footer. The new footer
   flows normally, so zero that out. This file only loads on
   non-homepage pages, so the homepage is unaffected. */
body {
  padding-bottom: 0 !important;
}

/* ── Page-specific disclaimers (pages 7024, 8139) ── */
.iw-page-disclaimer {
  padding: 20px 0 0;
  text-align: center;
}
.iw-page-disclaimer p {
  font-size: 1.1em;
  line-height: 1.5;
  margin: 0 0 8px;
}
.iw-page-disclaimer__highlight {
  font-size: 1.05em !important;
  font-weight: 700;
  color: #0000FF;
}
.iw-page-disclaimer__fine {
  font-size: 0.7em !important;
  line-height: 1.5;
}

/* ── Zone A: Supporter Strip ── */
.iw-supporters {
  background: var(--iw-warm-50, #f5f5f0);
  border-top: 1px solid var(--iw-warm-100, #e8e8e0);
  padding: 20px 0;
  text-align: center;
}
.iw-supporters__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.iw-supporters__label {
  font-size: 12px;
  color: var(--iw-text-muted, #7a7a70);
  letter-spacing: 0.03em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.iw-supporters__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.iw-supporters__logos img {
  height: 24px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.2s, opacity 0.2s;
  display: block;
}
.iw-supporters__logos img[alt="Walmart"] {
  height: 20px;
}
.iw-supporters__logos a:hover img,
.iw-supporters__logos a:focus img {
  filter: grayscale(0%);
  opacity: 0.85;
}
.iw-supporters__logos a:focus-visible {
  outline: 2px solid var(--iw-green-500, #52b788);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Classic Editor stray tag suppression ── */
.iw-supporters > p,
.iw-supporters > br,
.iw-supporters__inner > p:not(.iw-supporters__label),
.iw-supporters__inner > br,
.iw-footer__inner > p:not([class]),
.iw-footer__inner > br {
  display: none !important;
}

/* ── Zone B: Main Footer ── */
.iw-footer {
  background: var(--iw-green-900, #0f2418);
  color: var(--iw-text-on-dark, #e8e8e0);
  padding: 48px 0 40px;
  text-align: center;
}
.iw-footer__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand */
.iw-footer__brand {
  margin-bottom: 28px;
}
.iw-footer__org {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.01em;
}
.iw-footer__reg {
  font-size: 11px;
  vertical-align: super;
  font-weight: 400;
  opacity: 0.5;
}
.iw-footer__mission {
  font-size: 14.5px;
  color: var(--iw-text-on-dark-muted, #b0b0a0);
  margin: 0;
  line-height: 1.5;
}

/* Primary navigation */
.iw-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.iw-footer__nav a {
  color: var(--iw-green-300, #95d5b2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.iw-footer__nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.iw-footer__nav a:focus-visible {
  outline: 2px solid var(--iw-green-400, #74c69d);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Social icons */
.iw-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0;
}
.iw-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--iw-text-on-dark-muted, #b0b0a0);
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.15s, background 0.15s, transform 0.15s;
  text-decoration: none;
}
.iw-footer__social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.iw-footer__social a:focus-visible {
  outline: 2px solid var(--iw-green-400, #74c69d);
  outline-offset: 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.iw-footer__social svg {
  display: block;
}

/* ── Zone C: Legal Bar ── */
.iw-footer__legal {
  background: rgba(0, 0, 0, 0.25);
  padding: 16px 0;
  text-align: center;
}
.iw-footer__legal-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}
.iw-footer__copyright {
  font-size: 12px;
  color: var(--iw-text-on-dark-muted, #b0b0a0);
  margin: 0 0 6px;
  line-height: 1.5;
}
.iw-footer__utility {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.iw-footer__utility a {
  font-size: 12px;
  color: var(--iw-text-on-dark-muted, #b0b0a0);
  text-decoration: none;
  transition: color 0.15s;
}
.iw-footer__utility a:hover {
  color: #fff;
  text-decoration: underline;
}
.iw-footer__utility a:focus-visible {
  outline: 2px solid var(--iw-green-400, #74c69d);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Mobile: < 768px ── */
@media (max-width: 767px) {
  .iw-supporters {
    padding: 16px 0;
  }
  .iw-supporters__inner {
    max-width: 560px;
  }
  .iw-supporters__logos {
    gap: 18px;
  }
  .iw-supporters__logos img {
    height: 18px;
  }
  .iw-supporters__logos img[alt="Walmart"] {
    height: 15px;
  }

  .iw-footer {
    padding: 36px 0 32px;
  }
  .iw-footer__org {
    font-size: 18px;
  }
  .iw-footer__nav {
    flex-direction: column;
    gap: 12px;
  }
  .iw-footer__nav a {
    font-size: 15px;
  }
  .iw-footer__social {
    gap: 12px;
  }
  .iw-footer__social a {
    width: 40px;
    height: 40px;
  }
}
