/* ============================ FOOTER ============================
   Inspiração: footer da SpaceX — centralizado, muito espaço em
   branco, sem caixas/bordas pesadas.
   ================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: clamp(60px, 7.5vw, 70px);
}

.footer__glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 300px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  filter: blur(50px);
  opacity: 0.22;
  pointer-events: none;
}

/* Tudo centralizado, empilhado verticalmente */
.footer__top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

/* -------- Marca -------- */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo {
  height: clamp(90px, 14vw, 150px);
  width: auto;
}

.footer__slogan {
  margin-top: 21px;
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.footer__tagline {
  margin-top: clamp(8px, 1.5vw, 12px);
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  max-width: 30ch;
  line-height: 1.5;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 27px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-dim);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer__social-link svg {
  width: 100%;
  height: 100%;
}

.footer__social-link:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

/* -------- Grupos de navegação -------- */
.footer__groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
}

.footer__col {
  text-align: center;
}

.footer__col-title {
  font-size: 0.93rem;
  font-weight: bolder;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__col a {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__muted {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-dim);
}

/* -------- Barra inferior -------- */
.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
  padding-block: clamp(16px, 2vw, 21px);
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
}

.footer__legal span {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer__legal span a {
  color: var(--brand);
  transition: color 0.2s ease;
}

.footer__legal span a:hover {
  color: var(--text);
}

/* -------- Botão voltar ao topo -------- */
.footer__to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    visibility 0.25s ease;
}

.footer__to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer__to-top:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.footer__to-top svg {
  width: 18px;
  height: 18px;
}

/* -------- Responsivo -------- */
@media (max-width: 900px) {
  .footer__groups {
    gap: clamp(28px, 4vw, 44px);
  }
}

@media (max-width: 560px) {
  .footer__groups {
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }

  .footer__tagline,
  .footer__col a,
  .footer__muted {
    font-size: 0.95rem;
  }
}

@media (min-width: 1440px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  .footer__brand {
    align-items: flex-start;
  }
  .footer__social {
    justify-content: flex-start;
  }
  .footer__groups {
    gap: 56px;
  }
  .footer__col {
    text-align: left;
  }
  .footer__col ul {
    align-items: flex-start;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1920px) {
  .footer__top {
    max-width: 1400px;
    margin-inline: auto;
  }
  .footer__groups {
    gap: 72px;
  }
}
