/* ══════════════════════════════════════════════════════════════
   THE SITE FOOTER — one definition for every page.

   The footer markup lives in includes/homepage-marketing-footer.php and the
   look lives here. Both are loaded everywhere, so changing the footer once
   changes it on all pages: there is no second copy to keep in sync.

   Self-contained on purpose. It carries its own colours rather than
   inheriting them, because most pages do not load the homepage stylesheet.
══════════════════════════════════════════════════════════════ */

.footer-wrap {
  /* The blue of the "Join free" button in the nav (--mn-blue-500, #2563eb),
     deepened downward so the page still has a floor. */
  --f-blue: #2563eb;
  --f-blue-deep: #1a44a8;
  --f-radius-pill: 999px;
  --f-ease: cubic-bezier(.22,.61,.36,1);

  background: linear-gradient(180deg, var(--f-blue) 0%, var(--f-blue-deep) 100%);
  color: #fff;
  margin-top: 3rem;
}

.footer-wrap a { text-decoration: none; }

.footer { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.footer-top {
  display: grid; grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}

.f-brand h3 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; margin-bottom: .6rem;
}
.f-brand p {
  font-size: .86rem; color: rgba(255,255,255,.82); line-height: 1.6;
  max-width: 36ch; margin-bottom: 1.1rem;
}

.f-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.f-chip {
  display: inline-flex; align-items: center; height: 1.85rem; padding: 0 .8rem;
  border-radius: var(--f-radius-pill); background: rgba(255,255,255,.14);
  color: #fff; font-size: .74rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22);
  transition: background .15s var(--f-ease);
}
.f-chip:hover { background: rgba(255,255,255,.26); color: #fff; }

.f-col h4 {
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.72);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: .55rem; }
.f-col a {
  font-size: .86rem; color: rgba(255,255,255,.88);
  transition: color .15s var(--f-ease);
}
.f-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.footer-bot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.35rem 0;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: .8rem; color: rgba(255,255,255,.78);
}
.footer-bot a { color: rgba(255,255,255,.88); transition: color .15s var(--f-ease); }
.footer-bot a:hover { color: #fff; }
.f-bot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.f-bot-links a { font-weight: 500; }

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem; padding: 3rem 0 2rem;
  }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0 1.5rem; }
  .footer-bot { flex-direction: column; align-items: flex-start; text-align: left; }
}
