/* Footer on every page: the end-of-shift gate. A running belt on top, the call to clock off,
 * three cards for contact, stations and extras, and the giant wordmark rising behind the legal bar. */

.footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  padding: 0;
  overflow: hidden;
  border-top: 3px solid #111111;
  background: #111111;
  color: #f3f0ea;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* The homepage pads the body; the footer still runs edge to edge. */
body:not(.fb-page) > .footer { margin-inline: calc(var(--pad, 16px) * -1); }
.footer a { color: inherit; }
.footer :focus-visible { outline: 3px solid #c8955f; outline-offset: 3px; }

.footer-belt {
  height: 34px;
  border-bottom: 3px solid #000000;
  background: radial-gradient(circle, #111111 0 6px, #c8955f 6.5px 9px, transparent 9.5px) 0 50% / 46px 30px repeat-x, #e6dccb;
  animation: footer-belt 3.2s linear infinite;
}
@keyframes footer-belt { to { background-position: 46px 50%, 0 0; } }
@media (prefers-reduced-motion: reduce) { .footer-belt { animation: none; } }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(52px, 6vw, 92px) var(--pad, 16px) clamp(28px, 3vw, 44px);
}
.footer-sign {
  display: inline-block;
  margin: 0;
  padding: 7px 10px;
  border: 2px solid #f3f0ea;
  font: 700 12px/1 "Archivo", "Arial Black", sans-serif;
  font-stretch: 115%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-head {
  margin: 18px 0 14px;
  font: 800 clamp(2.2rem, 4.6vw, 3.9rem)/0.98 "Archivo", "Arial Black", sans-serif;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}
.footer-head span { color: #c8955f; }
.footer-desc { max-width: 38ch; margin: 0 0 26px; color: rgba(243, 240, 234, 0.78); }
.footer .footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 3px solid #e6dccb;
  background: #e6dccb;
  color: #111111;
  font: 700 15px/1 "Archivo", "Arial Black", sans-serif;
  font-stretch: 110%;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #8a5a35;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.footer .footer-cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #8a5a35; }

.footer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.footer-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 50px 18px 20px;
  border: 3px solid #f3f0ea;
  background: #000000;
  box-shadow: 6px 6px 0 #8a5a35;
}
.footer-card:nth-child(2) { transform: rotate(-1.2deg); }
.footer-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 5px 8px;
  background: #e6dccb;
  color: #111111;
  font: 700 11px/1 "Archivo", "Arial Black", sans-serif;
  font-stretch: 115%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer address { font-style: normal; line-height: 1.75; }
.footer-card a { width: fit-content; font-weight: 600; text-decoration: underline 2px rgba(200, 149, 95, 0); text-underline-offset: 5px; transition: text-decoration-color 150ms ease; }
.footer-card a:hover { text-decoration-color: #c8955f; }
.footer-portal { display: inline-flex; gap: 6px; align-items: center; }
.footer-portal svg { width: 16px; height: 16px; }

/* The wordmark stands like a factory sign; the legal bar cuts off its feet. */
.footer .wordmark.wordmark--mast {
  position: relative;
  display: block;
  margin: 0 0 -0.2em;
  overflow: hidden;
  color: #f3f0ea;
  font: 600 clamp(4.6rem, 21vw, 19rem)/0.95 "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.footer .wordmark.wordmark--mast .wm-frei { color: #c8955f; }
.footer .wordmark.wordmark--mast .wm-strike::after { background: #f3f0ea; }
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad, 16px);
  border-top: 3px solid #e6dccb;
  background: #e6dccb;
  color: #111111;
  font: 700 13px/1.2 "Archivo", "Arial Black", sans-serif;
  font-stretch: 105%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline 2px #111111; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-card:nth-child(2) { transform: rotate(-0.8deg); }
  .footer .wordmark.wordmark--mast { font-size: 21.5vw; }
  .footer-bottom { padding-bottom: 18px; }
}

[dir="rtl"] .footer-tag { left: auto; right: 12px; }
[dir="rtl"] .footer-card { box-shadow: -6px 6px 0 #8a5a35; }
[dir="rtl"] .footer .footer-cta { box-shadow: -5px 5px 0 #8a5a35; }
