/* =====================================================================
   SITE FOOTER COMPONENT — STYLE
   =====================================================================
   Ported from the static site's own css/style.css "Footer" section.
   One deliberate adaptation from the original: ".footer__grid" was a
   CSS Grid with a FIXED "1.4fr 1fr 1fr 1fr" column template, which
   assumed exactly one brand column + three nav columns. Since the real
   column count now depends on however many top-level items an admin
   puts in the "footer" WP menu (see component.php), a fixed 4-column
   grid would misalign the moment that count changes. Flexbox with wrap
   below produces the SAME default look at the same (4-column) count,
   but reflows cleanly for any other count instead of breaking.
   ===================================================================== */

.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding-block: 90px 40px; margin-top: 40px;
}
.footer__grid {
  display: flex; flex-wrap: wrap; gap: 50px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer h5 {
  color: var(--white); font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 20px;
  font-weight: 600;
}
.footer a { display: block; padding: 6px 0; color: rgba(255,255,255,0.7); font-size: 14.5px; transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--white); }
.footer .brand { color: var(--white); }
.footer__brand { flex: 1.4 1 260px; max-width: 340px; }
.footer__brand p { color: rgba(255,255,255,0.65); font-size: 15.5px; margin-top: 20px; }
.footer__col { flex: 1 1 160px; }
.footer address { font-style: normal; }
.footer__brand address { display: block; padding: 6px 0; color: rgba(255,255,255,0.7); font-size: 14.5px; }
.footer__grid address { display: block; padding: 6px 0; color: rgba(255,255,255,0.7); font-size: 14.5px; }

.footer__bottom {
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.footer__legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__legal a { display: inline; padding: 0; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .footer__grid { gap: 30px; }
  .footer__brand, .footer__col { flex-basis: calc(50% - 15px); max-width: none; }
}
@media (max-width: 560px) {
  .footer__brand, .footer__col { flex-basis: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
