/* ═══════════════════════════════════════════════════════════
   footer.css — Footer reutilizável em todas as páginas do site.
   JS relacionado (crescer o logo do nav ao entrar no footer) fica
   em footer.js. Variáveis CSS (--green, --text, --pad, etc.) vêm
   do :root definido no <style> de cada página.
   Referências visuais: footer/desktop.png, footer/largura-menor.png,
   footer/mobile.png.
═══════════════════════════════════════════════════════════ */

.site-footer {
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  position: relative;
}

.footer-inner {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 64px var(--pad) 80px;
}

/* ───────────────────────────────────────────────────────────
   BLOCO DE INFORMAÇÕES (topo)
   Desktop: alinhado à direita (margin-left:auto), texto left
   dentro do próprio bloco. ≤860px: bloco vai pro mesmo eixo do
   logo (esquerda) — ver footer/largura-menor.png.
─────────────────────────────────────────────────────────── */
/* Linha superior: Menu à esquerda (alinhado à margem de "Vamos conversar"),
   Informações à direita. */
.footer-top {
  display: flex;
  align-items: flex-start;
  margin-bottom: 76px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Menu: mesma linha de topo do bloco de informações (ambos começam pelo
   .footer-tag). Links em escala maior que os de contato, pra ter
   hierarquia própria; sublinhado + seta ↗ (mesma do CTA) sinalizam link. */
.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu-list li {
  display: block;
  list-style: none;
}
.footer-menu-list li::marker {
  content: "";
}
.footer-menu-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(26, 26, 26, .18);
  transition: color .15s, text-decoration-color .15s;
}
.footer-menu-list a::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  opacity: .4;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='8,7 17,7 17,16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='8,7 17,7 17,16'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease, opacity .15s;
}
.footer-menu-list a:hover,
.footer-menu-list a:focus-visible {
  color: var(--green);
  text-decoration-color: currentColor;
}
.footer-menu-list a:hover::after,
.footer-menu-list a:focus-visible::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin-left: auto;
  margin-right: 280px;
}

.footer-tag {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 230px;
  margin-bottom: 28px;
}

/* Linha legal (ano, marca, CNPJ), abaixo do "Vamos conversar" */
.footer-legal {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text2);
  margin-top: 48px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover {
  color: var(--green);
}
.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────────
   BLOCO FINAL — "Vamos conversar"
─────────────────────────────────────────────────────────── */
.footer-cta-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-cta {
  position: relative;
}
.footer-cta-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

.footer-cta-title {
  font-size: clamp(40px, 7.5vw, 88px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--text);
}

/* "Vamos" só precisa do wrapper pra dar o ponto de partida (left: 3px)
   ao traço de baixo — ver .footer-underline, que é quem de fato desenha
   o tracinho e estica no hover. */
.footer-word {
  position: relative;
  display: inline-block;
}

/* Oculto no desktop (título numa linha só); vira quebra de linha no
   breakpoint mobile abaixo — técnica: br{display:none} suprime o <br>. */
.footer-br {
  display: none;
}

/* Traço embaixo do título: posicionado relativo ao .footer-cta-row (a
   linha inteira, título + seta), não a uma palavra específica — por
   isso funciona em uma linha (desktop) ou duas (mobile, quebra em
   "Vamos"/"conversar") sem precisar de regra separada por breakpoint:
   o bottom:-16px sempre cai na última linha do título. Repouso: tracinho
   curto embaixo de "Vamos". Hover: estica até o fim da seta. */
.footer-underline {
  position: absolute;
  left: 3px;
  bottom: -16px;
  width: 15%;
  min-width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--text);
  transition: width .3s ease;
}
.footer-cta-row:hover .footer-underline {
  width: calc(100% - 3px);
}

.footer-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform .2s ease;
}
.footer-arrow svg {
  width: 80px;
  height: 80px;
}
/* Só a seta sobe no hover/click — o alvo é o link inteiro (.footer-cta-row),
   que envolve título + seta (frase inteira clicável). Sobe mais que antes
   (-3px → -7px), pedido explícito do founder. */
.footer-cta-row:hover .footer-arrow,
.footer-cta-row:active .footer-arrow {
  transform: translate(4px, -7px);
}

/* ───────────────────────────────────────────────────────────
   LOGO DO NAV CRESCE AO ENTRAR NO FOOTER
   Classe .footer-in-view é ligada/desligada pelo footer.js via
   IntersectionObserver. Só transform (compositor da GPU) — cresce
   suave sem custo de reflow. .nav-logo em si é definido no <style>
   de cada página (faz parte da nav, não do footer), mas essa regra
   fica aqui porque é o footer que dispara o comportamento.
─────────────────────────────────────────────────────────── */
.nav-logo {
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  transform-origin: left center;
}
.nav-logo.footer-in-view {
  transform: scale(1.15);
}

/* ───────────────────────────────────────────────────────────
   RESPONSIVO — FOOTER
   ≤860px: bloco de info troca de direita pra esquerda.
   ≤720px: título quebra em 2 linhas, seta acompanha embaixo.
─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .footer-top {
    flex-direction: column;
    gap: 48px;
    margin-bottom: 72px;
  }
  .footer-info {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 720px) {
  /* Empurra todo o bloco (Informações + Vamos Conversar) pro final do
     footer — antes ficava centralizado verticalmente (align-items do
     .site-footer). O padding-bottom do .footer-inner logo abaixo é o
     "pouco de espaço" depois de "conversar". */
  .site-footer { align-items: flex-end; }

  .footer-inner { padding: 48px var(--pad) 56px; }
  .footer-top { margin-bottom: 56px; }
  .footer-info { order: -1; }

  .footer-br { display: block; }

  .footer-cta-row {
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
  }
  .footer-arrow svg {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 720px) and (min-height: 825px) {
  .site-footer {
    min-height: 82vh;
  }
}
