/* ==========================================================================
   Paulista Documentação — footer.css
   Rodapé institucional.
   ========================================================================== */

.site-footer {
  position: relative;
  border-top: 1px solid var(--border-sub);
  background: var(--bg-surface);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer-brand .footer-logo { height: 42px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p {
  color: var(--text-mid);
  font-size: .94rem;
  max-width: 38ch;
}
.footer-socials {
  display: flex;
  gap: .7rem;
  margin-top: 1.5rem;
}
.footer-socials a {
  width: 42px; height: 42px;
  display: grid; place-content: center;
  border-radius: var(--r-tile);
  border: 1px solid var(--border-sub);
  color: var(--text-mid);
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out), transform .25s var(--ease-spring);
}
.footer-socials a:hover {
  color: var(--gold);
  border-color: var(--border);
  background: var(--gold-glow-s);
  transform: translateY(-3px);
}
.footer-socials svg { width: 20px; height: 20px; }

.footer-col h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-lo);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: .75rem; }
.footer-col a,
.footer-col li {
  color: var(--text-mid);
  font-size: .94rem;
  transition: color .2s var(--ease-out);
}
.footer-col a:hover { color: var(--gold); }
.footer-col li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-col li svg { flex-shrink: 0; color: var(--gold); margin-top: .2rem; width: 16px; height: 16px; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.7rem;
  border-top: 1px solid var(--border-sub);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { color: var(--text-lo); font-size: .84rem; }
.footer-bottom .cnpj { color: var(--text-lo); font-size: .84rem; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-lo); font-size: .84rem; }
.footer-legal a:hover { color: var(--gold); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
