/* =============================================================
   Section: Site Footer
   Maps to: template-parts/footer.php
   ============================================================= */

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--s-9) var(--s-6);
  position: relative;
  overflow: hidden;
}

.site-footer > .wrap {
  max-width: none;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../img/textures/grain.svg");
  background-size: 320px 320px;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule-dark);
}

@media (min-width: 720px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--s-6);
  }
}

.footer__brand h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin-bottom: var(--s-4);
  max-width: 14ch;
}

.footer__brand p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  max-width: 32ch;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--safety);
  margin-bottom: var(--s-4);
}

.footer__col ul { display: grid; gap: var(--s-3); }

.footer__col--sitemap .footer__list {
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s-5);
}
.footer__col a, .footer__col li {
  color: var(--bone);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--safety); }

.footer__col address {
  font-style: normal;
  color: var(--muted-dark);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---- Post-footer marquee ----
   Narrow, slow, continuous brand-pillars scroll that sits OUTSIDE and
   BELOW the <footer>. Acts as the very last visual element on the page.
   Reuses the .marquee/.marquee__track structure from proof.css so
   marquee.js auto-clones the track for a seamless loop. Override the
   proof variant's heavy type + fast roll with a thinner typographic
   treatment and a much longer animation duration. Standalone dark
   background since it no longer inherits from the footer. */
.post-footer-marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: var(--s-3);
  background: var(--ink);
  border-top: 1px solid var(--rule-dark);
  user-select: none;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.post-footer-marquee .marquee__track {
  gap: var(--s-6);
  animation-duration: 65s;
}

.post-footer-marquee .marquee__item {
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  letter-spacing: 0.08em;
  gap: var(--s-6);
  color: var(--muted-dark);
}

.post-footer-marquee .marquee__dash {
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  opacity: 0.65;
}

.post-footer-marquee .marquee__road-icon {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
}

.post-footer-marquee .marquee__item--accent {
  color: var(--safety);
  -webkit-text-stroke: 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

@media (min-width: 720px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center; }
.footer__legal a:hover { color: var(--bone); }

/* Quiet attribution to Traxx IT. Default = muted, hover = safety yellow
   with a thin underline so it reads as proud-but-restrained credit. */
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-dark);
}
.footer__credit a {
  color: var(--bone);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.footer__credit a:hover {
  color: var(--safety);
  border-bottom-color: var(--safety);
}
