/* 
 * FOOTER - Agência Precisão
 * Estilos para o rodapé do site
 */

.footer {
  position: relative;
  width: 100%;
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(10, 27, 42, 0.95) 0%, rgba(5, 15, 25, 0.98) 100%);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cor-primaria), transparent);
  opacity: 0.2;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6rem;
  font-weight: 300;
}

.footer-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.footer-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cor-primaria);
  transition: width 0.3s ease;
  box-shadow: 0 0 5px var(--cor-primaria);
}

.footer-content a:hover {
  color: var(--cor-primaria);
  text-shadow: 0 0 5px rgba(0, 209, 255, 0.5);
}

.footer-content a:hover::after {
  width: 100%;
}

.footer-content a:focus {
  outline: none;
  color: var(--cor-primaria);
}

.footer-content a:focus::after {
  width: 100%;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  
  .footer {
    padding: 5vw;
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .footer-content a::after {
    transition: none;
  }
  
  .footer-content a:hover {
    text-shadow: none;
  }
}

/* Garantindo o rodapé no fim da página, mesmo com pouco conteúdo */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* O conteúdo principal deve crescer para empurrar o footer para baixo */
main, section:not(.footer) {
  flex: 1 0 auto;
}

/* O footer não deve crescer, apenas ficar no final */
.footer {
  flex-shrink: 0;
}
