/* ===== styles/footer.css — logo + texto + redes sociais + links remissivos ===== */
#footer {
  background: var(--cor-terciaria);
  color: #fff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* faixa de cor no topo */
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cor-amarelo) 0 33%, var(--cor-primaria) 33% 66%, #0CB09F 66%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: 64px;
  padding-bottom: 56px;
}

/* ── Marca ── */
.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img { height: 120px; width: auto; }

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 340px;
}

.footer-social { display: flex; gap: 12px; margin-top: 24px; }

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.footer-social-link img { width: 22px; height: 22px; object-fit: contain; }
.footer-social-link:hover { background: var(--cor-amarelo); border-color: var(--cor-amarelo); transform: translateY(-3px); }

/* letra exibida só enquanto o ícone não existir em images/icons */
.footer-social-fallback { display: none; font-weight: 700; font-size: 0.9rem; color: #fff; }
.footer-social-link.sem-imagem img { display: none; }
.footer-social-link.sem-imagem .footer-social-fallback { display: block; }
.footer-social-link.sem-imagem:hover .footer-social-fallback { color: var(--cor-bordo-escuro); }

/* ── Links remissivos ── */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cor-amarelo);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 2px;
  background: var(--cor-amarelo);
  transition: width 0.2s;
}
.footer-col ul li a:hover { color: #fff; padding-left: 16px; }
.footer-col ul li a:hover::before { width: 10px; }

/* ── Barra inferior ── */
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--cor-amarelo); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  #footer { padding-top: 60px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
