/* =============================================================
   ITI Design System — Footer
   Loaded site-wide; replaces css/footer.css.
   Same content as before: contact block (phone, email, address), the
   three social links, the three partner organisations, and the
   copyright line.
   ============================================================= */

.iti-foot {
  position: relative;
  overflow: hidden;
  background: var(--iti-ink-900);
  color: var(--iti-on-dark);
  font-size: var(--iti-fs-sm);
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

/* Same circuit grid as the page sections, raked from the bottom here so
   it reads as the closing bookend to the hero. */
.iti-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--iti-grid-line) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--iti-grid-line) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(120% 90% at 50% 100%, #000 0%, transparent 78%);
}
.iti-foot > * { position: relative; }

.iti-foot__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
}

.iti-foot__title {
  display: flex;
  align-items: center;
  gap: var(--iti-s-3);
  margin: 0 0 var(--iti-s-5);
  font-size: var(--iti-fs-xs);
  font-weight: 600;
  letter-spacing: var(--iti-track-label);
  text-transform: uppercase;
  color: var(--iti-electric);
}
.iti-foot__title::before {
  content: "";
  width: 26px; height: 1px;
  flex: none;
  background: var(--iti-electric);
  box-shadow: 0 0 8px rgba(var(--iti-electric-rgb), .7);
}

.iti-foot ul { margin: 0; padding: 0; list-style: none; }
.iti-foot a {
  color: var(--iti-on-dark);
  text-decoration: none;
  transition: color var(--iti-dur) var(--iti-ease);
}
.iti-foot a:hover { color: var(--iti-electric); }

/* ---- Contact ---- */
.iti-foot__contact li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--iti-s-3);
  align-items: start;
  margin-bottom: var(--iti-s-4);
  line-height: 1.55;
}
.iti-foot__contact svg { margin-top: 4px; color: var(--iti-blue-300); }

/* ---- Partner organisations ---- */
.iti-foot__orgs li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: var(--iti-s-3);
  align-items: start;
  margin-bottom: var(--iti-s-4);
  line-height: 1.5;
}
.iti-foot__orgs svg {
  margin-top: 5px;
  color: var(--iti-electric);
  transition: transform var(--iti-dur) var(--iti-ease);
}
.iti-foot__orgs li:hover svg { transform: translateX(3px); }

/* ---- Social ---- */
.iti-foot__social {
  display: flex;
  gap: var(--iti-s-2);
  margin-top: var(--iti-s-5);
}
.iti-foot__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--iti-line-dark);
  clip-path: var(--iti-clip-sm);
  transition: background var(--iti-dur) var(--iti-ease),
              border-color var(--iti-dur) var(--iti-ease),
              color var(--iti-dur) var(--iti-ease);
}
.iti-foot__social a:hover {
  background: var(--iti-electric);
  box-shadow: var(--iti-electric-glow);
  border-color: var(--iti-electric);
  color: var(--iti-ink-900);
}

/* ---- Bottom bar ---- */
.iti-foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--iti-s-4);
  flex-wrap: wrap;
  padding-block: var(--iti-s-4);
  border-top: 1px solid var(--iti-line-dark);
  font-size: var(--iti-fs-xs);
  color: var(--iti-on-dark-muted);
}
.iti-foot__bottom p { margin: 0; }

@media (max-width: 820px) {
  .iti-foot__grid { grid-template-columns: 1fr; }
}
