/* ════════════════════════════════════════════════════════════════
                            FOOTER
════════════════════════════════════════════════════════════════ */

.footer {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Grade de pontos decorativa no fundo */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(0, 198, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Brilho radial canto inferior esquerdo */
.footer::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 198, 255, 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.footer__top,
.footer__legal,
.footer__bottom {
  position: relative;
  z-index: 1;
}

.footer__top {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Grid principal */
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.8fr;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ── Coluna de marca ── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

/* Linha ciano abaixo do logo */
.footer__brand-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}

.footer__brand p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  max-width: 28ch;
}

.footer__cnpj {
  font-size: 0.68rem !important;
  color: rgba(255, 255, 255, 0.22) !important;
  letter-spacing: 0.05em;
}

/* ── Colunas de nav ── */
.footer__col h4 {
  font-family: "Space Grotesk";
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__col ul a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.38);
  transition:
    color var(--dur),
    padding-left var(--dur);
  position: relative;
}

.footer__col ul a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--dur) var(--ease);
  flex-shrink: 0;
}

.footer__col ul a:hover {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 0.3rem;
}
.footer__col ul a:hover::before {
  width: 12px;
}

/* ── Redes sociais ── */
.footer__socials {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}

.footer__socials a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  opacity: 0;
  transition: opacity var(--dur);
}

.footer__socials a:hover {
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 198, 255, 0.25);
}
.footer__socials a:hover::before {
  opacity: 1;
}

.footer__socials a i {
  position: relative;
  z-index: 1;
}

.footer__social-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.6;
}

/* ════ FAIXA LEGAL (contratos) ════ */
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.4rem 0;
}

.footer__legal-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__legal-label {
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  flex-shrink: 0;
}

.footer__legal-doc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
  transition:
    border-color var(--dur),
    color var(--dur);
}

.footer__legal-doc i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Estado hover para quando virar link real */
a.footer__legal-doc:hover {
  border-color: rgba(0, 198, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
}
a.footer__legal-doc:hover i {
  color: var(--cyan);
}

/* ════ RODAPÉ FINAL ════ */
.footer__bottom {
  padding: 1.2rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.18);
}

/* ════ RESPONSIVO ════ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
