/* ============================================================
   7. FOOTER
   ============================================================ */
.ft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: clamp(56px, 6vw, 80px) 0 28px;
}
.ft__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.ft__main {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) 3fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 56px;
}
.ft__brand { max-width: 320px; }
.ft__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  text-decoration: none;
  color: var(--ink);
}
.ft__logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ft__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.ft__tag strong { display: block; color: var(--ink); font-weight: 700; }
.ft__tag-accent {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ft__sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}
.ft__social {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ft__social a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s;
}
.ft__social a:hover {
  color: var(--brand-1);
  border-color: var(--brand-1);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px -4px rgba(58, 80, 191, 0.4);
}

/* Stagger reveal */
.ft__brand,
.ft__col,
.ft__bar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft.is-in .ft__brand          { opacity: 1; transform: translateY(0); }
.ft.is-in .ft__col            { opacity: 1; transform: translateY(0); }
.ft.is-in .ft__col:nth-child(1) { transition-delay: 0.10s; }
.ft.is-in .ft__col:nth-child(2) { transition-delay: 0.18s; }
.ft.is-in .ft__col:nth-child(3) { transition-delay: 0.26s; }
.ft.is-in .ft__col:nth-child(4) { transition-delay: 0.34s; }
.ft.is-in .ft__bar            { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* Footer link underline reveal + hover color */
.ft__col a {
  position: relative;
  display: inline-block;
  transition: color 0.22s ease;
}
.ft__col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft__col a:hover { color: var(--brand-1); }
.ft__col a:hover::after { transform: scaleX(1); }
.ft__col a:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 2px;
}
.ft__social a:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
}

.ft__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.ft__col-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.ft__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ft__col a {
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.ft__col a:hover { color: var(--brand-1); }

.ft__bar {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .ft__main { grid-template-columns: 1fr; gap: 40px; }
  .ft__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cta-card__actions { flex-direction: column; align-items: stretch; }
  .cta-card__btn { justify-content: center; }
}
@media (max-width: 520px) {
  .tm-card__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ft__cols { grid-template-columns: 1fr 1fr; }
  .ft__bar { flex-direction: column; align-items: flex-start; }
}
