/* Rodapé — fundo escuro conforme benchmark. Compactado em 2026-04-28. */
.site-footer {
  background: var(--cor-cinza-900);
  color: rgba(255,255,255,0.6);
  padding: var(--space-10) 0 0;     /* 40px topo (era 64) */
}
.footer-grid {
  display: grid;
  /* colunas de links com largura do conteúdo, agrupadas à direita (pedido 2026-09-02) */
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  gap: var(--space-8) var(--space-16);
  padding-bottom: var(--space-8);   /* 32px (era 48) */
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;               /* todas as colunas comecam no topo */
}

/* Coluna da marca — logo-footer.svg ja vem com textos brancos + vermelho preservado.
   margin-top negativo alinha visualmente o logo com o h4 das outras colunas (decisao 2026-04-28). */
.footer-logo-img {
  height: 44px;
  width: auto;
  margin-top: -12px;
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.5);
  font-size: 12px;                  /* compactado: 13 -> 12px */
  margin: 0 0 var(--space-3);
  line-height: 1.55;                /* compactado: 1.7 -> 1.55 */
  max-width: 380px;                 /* mais largo p/ caber em menos linhas (era 280px) */
  text-align: justify;
}
.footer-contact { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-contact a {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.5);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--cor-branco); }

/* Colunas de links */
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cor-branco);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); } /* gap reduzido p/ alinhar com brand mais compacta */
.footer-col ul a {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.5);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}
.footer-col ul a:hover { color: var(--cor-branco); }

/* Barra inferior — razão social centralizada com o © logo abaixo */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  text-align: center;
}
.footer-bottom-info {
  justify-self: center;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer-bottom-copyright { justify-self: center; }

/* Logo text fallback no rodapé */
.site-footer .site-logo-text { color: var(--cor-branco); }
.site-footer .site-logo-text span { color: var(--cor-vermelho); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: var(--space-3); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ═══════════════════════════════════════════════════════════════════════
   rc440 — Footer MOBILE: seções separadas + 2 colunas determinísticas
   + texto do logo JUSTIFICADO
   (movido de checkout-v2.css pra carregar em todas as páginas, não só /checkout/)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Texto descritivo abaixo do logo — JUSTIFICADO */
  .site-footer .footer-brand p {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
  }

  .site-footer .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .site-footer .footer-col {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding: 18px 0 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .site-footer .footer-col h4 {
    margin: 0 0 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }
  /* 50% 50% explícito garante 2ª coluna no MESMO X em Produtos/Empresa/Atendimento */
  .site-footer .footer-col ul {
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    grid-auto-flow: row !important;
    grid-auto-rows: min-content !important;
    align-items: start !important;
    column-gap: 0 !important;
    row-gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    position: relative !important;
  }
  /* Divisor vertical central entre as 2 colunas */
  .site-footer .footer-col ul::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 1px !important;
    background: rgba(255,255,255,0.10) !important;
    pointer-events: none !important;
  }
  .site-footer .footer-col ul li {
    margin: 0 !important;
    padding: 0 !important;
  }
  .site-footer .footer-col ul li:nth-child(odd) {
    padding-left: 0 !important;
    padding-right: 12px !important;
  }
  .site-footer .footer-col ul li:nth-child(even) {
    padding-left: 12px !important;
    padding-right: 0 !important;
  }
  .site-footer .footer-col ul li a {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    display: block !important;
  }

  /* rc442/rc443 — rodapé "Todos os direitos reservados / Razão Social..." CENTRALIZADO mobile.
     rc443: cada token ("Razão Social: ...", "CNPJ: ...", etc.) em <span class="info-token">
     com white-space:nowrap pra impedir quebra DENTRO do token. */
  .site-footer .footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 20px 12px !important;
  }
  .site-footer .footer-bottom-copyright,
  .site-footer .footer-bottom-info {
    justify-self: center !important;
    text-align: center !important;
    line-height: 1.6 !important;
  }
  .site-footer .footer-bottom-info .info-token {
    display: inline-block !important;
    white-space: nowrap !important;
  }
  .site-footer .footer-bottom-info .info-sep {
    display: inline-block !important;
    margin: 0 6px !important;
    color: rgba(255,255,255,0.3) !important;
  }
}

/* 04/10/2026 — selo RA Verificada (inc/ark-selo-reclame-aqui.php) na faixa inferior, em todas as páginas.
   Computador (>1024px): o selo fica fora do fluxo do texto, encostado à esquerda e logo abaixo da linha
   divisória do rodapé; razão social/CNPJ e © ficam colados um sob o outro, centralizados. O recuo lateral
   de 160px (selo 142px + folga) reserva o lugar do selo dos dois lados e mantém o texto no centro sem
   encostar nele. Até 1024px a faixa empilha centralizada: razão social, ©, selo. O widget do RA define o
   próprio tamanho (142x52). */
.site-footer .ark-selo-ra--rodape { justify-self: center; line-height: 0; }
@media (min-width: 1025px) {
  .site-footer .footer-bottom { position: relative; row-gap: var(--space-1); padding-left: 160px; padding-right: 160px; }
  .site-footer .ark-selo-ra--rodape { position: absolute; left: 0; top: var(--space-2); }
}
