/* ==========================================================================
   FOOTER — WBA Theme
   Off-white background, 4-column grid (desktop), bottom bar with legal links
   ========================================================================== */

/* --- Site Footer -------------------------------------------------------- */

.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Footer Top — Affiliation strip ------------------------------------ */
/* Competition/affiliation logos displayed before main footer columns */

.footer-affiliates {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
}

.footer-affiliates__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
}

.footer-affiliates__label {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-affiliates__label {
    flex-basis: auto;
    margin-bottom: 0;
    margin-right: 1rem;
  }
}

.footer-affiliates__logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.45);
  transition: filter var(--transition-base);
}

.footer-affiliates__logo:hover {
  filter: brightness(0) invert(1) opacity(0.85);
}

/* --- Footer Main — 4-column grid --------------------------------------- */

.footer-main {
  padding: 3.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.75fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

/* --- Footer Brand Column ----------------------------------------------- */

.footer-brand {
  /* Spans wider on desktop — the 1.75fr column */
}

.footer-brand__logo {
  height: 2.25rem;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand__description {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.5);
  max-width: 28ch;
  margin-bottom: 1.5rem;
}

/* Social links */
.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background-color var(--transition-fast),
              color var(--transition-fast);
  flex-shrink: 0;
}

.footer-social__link:hover {
  background-color: var(--color-red);
  color: var(--color-white);
}

.footer-social__link svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

/* --- Footer Nav Columns ------------------------------------------------- */

.footer-nav__heading {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-white);
  margin-bottom: 1.125rem;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-nav__link:hover {
  color: var(--color-white);
}

/* --- Footer Bottom Bar -------------------------------------------------- */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom__legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-bottom__legal-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom__legal-link:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Child Safety — slightly more prominent in footer */
.footer-bottom__legal-link--child-safety {
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--weight-bold);
}

.footer-bottom__legal-link--child-safety:hover {
  color: var(--color-white);
}

/* Separator dot between legal links */
.footer-bottom__legal-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-xs);
}

/* --- Footer Address ----------------------------------------------------- */

.footer-address {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
  line-height: var(--leading-relaxed);
  margin-top: 1rem;
}

/* --- WooCommerce footer nudge ------------------------------------------ */

/* Payment icons or "Powered by WooCommerce" if needed */
.footer-woo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-woo-badge__text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
}
