/* ===== Shared footer (all pages) ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(44px, 5vw, 64px) 0 28px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer__logo img { height: 40px; width: auto; filter: invert(1); transition: opacity 0.3s; }
.footer__logo:hover img { opacity: 0.75; }

.footer-nav { display: flex; gap: 32px; list-style: none; }
.footer-nav a { position: relative; font-size: 15px; color: rgba(255, 255, 255, 0.8); transition: color 0.3s; }
.footer-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 15px; transition: color 0.3s, border-color 0.3s, gap 0.4s var(--ease);
}
.footer__cta svg { width: 18px; height: 18px; }
.footer__cta:hover { color: var(--green); border-color: var(--green); gap: 22px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color 0.3s; }
.to-top svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.to-top:hover { color: var(--green); }
.to-top:hover svg { transform: translateY(-4px); }

/* reveal */
.footer__top > * { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.footer.is-visible .footer__top > * { opacity: 1; transform: none; }
.footer.is-visible .footer__top > *:nth-child(2) { transition-delay: 0.1s; }
.footer.is-visible .footer__top > *:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 760px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 22px; flex-wrap: wrap; }
}
