/*
 * WFP Footer Module
 * Site footer — colonial blue background, three-column grid, legal bar.
 *
 * Structure:
 *   .wfp-footer                 — outer wrapper, blue bg
 *     .wfp-footer__inner        — wfp-container, max-width 1280px
 *       .wfp-footer__grid       — three column grid
 *         .wfp-footer__col      — individual column
 *           .wfp-footer__col-label — column heading
 *           .wfp-footer__col-links — link list
 *       .wfp-footer__brand      — logo + tagline row
 *   .wfp-footer__legal          — darker bottom bar
 *     .wfp-footer__legal-inner  — wfp-container
 */

/* =============================================================================
   OUTER WRAPPER
   ============================================================================= */

.wfp-footer {
  background: var(--accent-2);
  color: var(--base-2);
  padding: var(--space-xl) 0 0;
}

/* =============================================================================
   BRAND ROW — logo + tagline above the grid
   ============================================================================= */

.wfp-footer__brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-m);
  padding-bottom: var(--space-s);
  margin-bottom: var(--space-s);
}

.wfp-footer__site-name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  font-variation-settings: 'opsz' 72;
}

.wfp-footer__site-name:hover {
  color: hsl(0 0% 100% / 0.8);
}

.wfp-footer__tagline {
  font-family: var(--font-prose);
  font-size: var(--step--1);
  font-style: italic;
  color: hsl(0 0% 100% / 0.9);
}

/* =============================================================================
   THREE COLUMN GRID
   ============================================================================= */

.wfp-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xs);
}

.wfp-footer__col-label {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.85);
  margin-bottom: var(--space-s);
}

/* Recent stories column — slightly wider, has article titles */
.wfp-footer__col--stories .wfp-footer__story-title {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  font-variation-settings: 'opsz' 24;
  transition: color var(--transition-2);
}

.wfp-footer__col--stories .wfp-footer__story-title:hover {
  color: hsl(0 0% 100% / 0.75);
}

.wfp-footer__col--stories .wfp-footer__story-meta {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: hsl(0 0% 100% / 0.45);
  margin-bottom: var(--space-s);
}

/* Link columns */
.wfp-footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.wfp-footer__col-links a {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: hsl(0 0% 100% / 0.75);
  text-decoration: none;
  transition: color var(--transition-2);
}

.wfp-footer__col-links a:hover {
  color: #fff;
}

/* =============================================================================
   PROJECT IMO / ACME ATTRIBUTION
   Sits at bottom of the links column, separated by a small rule
   ============================================================================= */

.wfp-footer__attribution {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid hsl(0 0% 100% / 0.15);
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: hsl(0 0% 100% / 0.9);
  line-height: 1.5;
}

.wfp-footer__attribution a {
  color: hsl(0 0% 100% / 0.65);
  text-decoration: none;
}

.wfp-footer__attribution a:hover {
  color: #fff;
}

/* =============================================================================
   LEGAL BAR — darker blue, copyright + policy links
   ============================================================================= */

.wfp-footer__legal {
  background: var(--accent-2-hover);
  padding: var(--space-s) 0;
}

.wfp-footer__legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  flex-wrap: wrap;
}

.wfp-footer__copyright {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: hsl(0 0% 100% / 0.9);
}

.wfp-footer__policy-links {
  display: flex;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.wfp-footer__policy-links a {
  font-family: var(--font-ui);
  font-size: var(--step--2);
  color: hsl(0 0% 100% / 0.9);
  text-decoration: none;
  transition: color var(--transition-2);
}

.wfp-footer__policy-links a:hover {
  color: #fff;
}

/* =============================================================================
   SOCIAL LINKS
   ============================================================================= */

.wfp-footer__social {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.wfp-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid hsl(0 0% 100% / 0.25);
  color: hsl(0 0% 100% / 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: background var(--transition-2), color var(--transition-2), border-color var(--transition-2);
}

.wfp-footer__social a:hover {
  background: hsl(0 0% 100% / 0.15);
  color: #fff;
  border-color: hsl(0 0% 100% / 0.4);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
  .wfp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .wfp-footer__col--stories {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .wfp-footer__grid {
    grid-template-columns: 1fr;
  }

  .wfp-footer__col--stories {
    grid-column: auto;
  }

  .wfp-footer__brand {
    flex-direction: column;
    gap: var(--space-2xs);
  }

  .wfp-footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}