/* ==========================================================================
   Section 12 — Footer
   Look ported from the original site's #footer: deep navy band (both
   themes), brand block + link columns, hairline above a bottom bar, quiet
   links whose underline draws in from the left on hover.
   Copy is the wireframe's; columns use the wireframe's own pages and
   sections. Anything the wireframe doesn't supply yet is marked pending
   (.ft-pending / .is-pending) so it can't be mistaken for final copy.
   Prefixed .ft- and scoped to .ft.
   ========================================================================== */

.ft {
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
}
:root[data-theme="dark"] .ft { background: #030B1C; }

.ft-inner {
  max-width: calc(var(--container) + var(--page-px) * 2);
  margin: 0 auto;
  padding: 0 var(--page-px);
}

/* ─── Brand + columns ─────────────────────────────────────────────────── */
.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-logo { display: block; margin-bottom: 8px; line-height: 0; border-radius: var(--radius-sm); }
.ft-logo img { height: 26px; width: auto; }

.ft-tagline {
  max-width: 260px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

/* Contact email (a plain mailto link that opens the visitor's mail app)
   and location (text only, no full registered address yet) */
.ft-mail,
.ft-place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease;
}
.ft-mail i, .ft-place i { font-size: 16px; color: rgba(255,255,255,0.5); transition: color 0.18s ease; }
.ft-mail:hover, .ft-mail:focus-visible { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.ft-mail:hover i, .ft-mail:focus-visible i { color: #ffffff; }

/* Placeholder copy, visibly unfinished */
.ft-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.ft-pending span {
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 999px;
}

.ft-social { display: flex; gap: 10px; margin-top: 10px; }
.ft-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ft-social-link:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.ft-social-link.is-pending { border-style: dashed; }

.ft-col-title {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.ft-col ul { display: flex; flex-direction: column; gap: 12px; }

/* Links: underline draws in from the left (original footer interaction) */
.ft-col a,
.ft-legal-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.18s ease;
}
.ft-col a::after,
.ft-legal-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-sweep);
}
.ft-col a:hover, .ft-col a:focus-visible,
.ft-legal-links a:hover, .ft-legal-links a:focus-visible { color: #ffffff; }
.ft-col a:hover::after, .ft-col a:focus-visible::after,
.ft-legal-links a:hover::after, .ft-legal-links a:focus-visible::after { transform: scaleX(1); }

/* ─── Bottom bar ──────────────────────────────────────────────────────── */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
}
.ft-legal {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.38);
}
.ft-legal-links { display: flex; gap: 24px; }
.ft-legal-links a { font-size: 12.5px; color: rgba(255,255,255,0.45); }
.ft-legal-links a.is-pending { text-decoration: underline dashed rgba(255,255,255,0.3); text-underline-offset: 4px; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-col a::after, .ft-legal-links a::after { transition: none; }
}
