/* ===== FOOTER 4 SEÇÕES FIXAS ===== */

/* Override do grid auto-fit para forçar 4 colunas explícitas */
.footer-content {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
  align-items: start !important;
}

/* Seções específicas do footer */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-about {
  /* Seção principal - ocupa 2fr */
  max-width: none;
}

.footer-about h3 {
  color: var(--primary-white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 1rem;
}

.footer-links,
.footer-legal {
  /* Seções secundárias - ocupam 1fr cada */
  max-width: none;
}

.footer-links h4,
.footer-legal h4 {
  color: var(--primary-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-legal ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
  color: var(--primary-gold);
  transform: translateX(3px);
}

/* Seção de redes sociais - mantém estilo existente */
.footer-social {
  /* Seção de redes sociais - ocupa 1fr */
  max-width: none;
}

.footer-social h4 {
  color: var(--primary-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets: 2 colunas */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }

  .footer-about {
    grid-column: span 2;
    text-align: center;
  }

  .footer-links,
  .footer-social,
  .footer-legal {
    text-align: center;
  }
}

/* Mobile: 1 coluna */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-social,
  .footer-legal {
    text-align: center;
    max-width: 100%;
  }

  .footer-about h3 {
    font-size: 1.3rem;
  }

  .footer-about p {
    font-size: 0.95rem;
  }

  .footer-links h4,
  .footer-social h4,
  .footer-legal h4 {
    font-size: 1rem;
  }

  .footer-links ul li a,
  .footer-legal ul li a {
    font-size: 0.9rem;
  }
}

/* Mobile pequeno: ajustes extras */
@media (max-width: 480px) {
  .footer-content {
    gap: 1.5rem !important;
  }

  .footer-about h3 {
    font-size: 1.2rem;
  }

  .footer-about p {
    font-size: 0.9rem;
  }

  .footer-links h4,
  .footer-social h4,
  .footer-legal h4 {
    font-size: 0.95rem;
  }

  .footer-links ul li a,
  .footer-legal ul li a {
    font-size: 0.85rem;
  }
}

/* ===== MANUTENÇÃO DO ESTILO EXISTENTE ===== */

/* Manter estilos existentes do footer-bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

/* Manter formatação mobile do footer-bottom */
@media (max-width: 768px) {
  .footer-bottom .footer-info {
    display: block;
    text-align: center;
    line-height: 1.6;
    margin: 0.25rem 0;
  }

  .footer-bottom .footer-info-name {
    display: block;
  }

  .footer-bottom .footer-info-sep:first-of-type {
    display: none !important;
  }

  .footer-bottom .footer-info-sep:last-of-type {
    display: inline;
  }

  .footer-info span.footer-info-sep:first-of-type {
    display: none !important;
  }

  .footer-bottom .footer-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
    margin: 0.25rem 0;
  }
}

/* ===== SOCIAL LINKS - MANTER ESTILO EXISTENTE ===== */

.social-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, background-color 0.2s ease;
  will-change: transform;
  font-size: 0.9rem;
  font-weight: 500;
}

.social-link .icon,
.social-link svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

.social-link svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.social-link svg circle,
.social-link svg polygon,
.social-link svg path {
  fill: currentColor;
  stroke: none;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--primary-gold);
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

/* Acessibilidade: reduz animações */
@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
  }
  .social-link:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Layout compacto em telas pequenas */
@media (max-width: 480px) {
  .social-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }
  .social-link .icon,
  .social-link svg {
    width: 14px;
    height: 14px;
  }
}
