/* =========================================
   FOOTER UNIVERSAL — colunas + barra + Nexgold
   ========================================= */

/* ── Botão flutuante de WhatsApp ── */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

/* pulso sutil para chamar atenção sem irritar */
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: whats-pulse 2.4s ease-out infinite;
  }

  @keyframes whats-pulse {
    0%   { transform: scale(1);   opacity: 0.45; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
  }
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

.footer {
  background: var(--color-surface-soft, #f0f5fd);
  font-family: var(--font-body);
}

/* ── Bloco principal ── */
.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr) auto;
  gap: 2rem;
}

/* Marca */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.footer-contact-line {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--color-body, #3f4a5f);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-line:hover { color: var(--color-accent, #f85000); }

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: var(--color-ink, #002880);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn, 8px);
  transition: background 0.2s;
}
.footer-contact-btn:hover { background: var(--color-ink-soft, #0040a0); }

/* Colunas de links */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ink, #002880);
  margin: 0 0 0.35rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--color-muted, #77839b);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-accent, #f85000); }

/* Social */
.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-social a {
  color: var(--color-ink, #002880);
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
}
.footer-social a:hover {
  color: var(--color-accent, #f85000);
  transform: translateY(-2px);
}

/* ── Barra inferior ── */
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--color-border-strong, #c6d2e8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-muted, #77839b);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--color-body, #3f4a5f);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--color-accent, #f85000); }

.footer-legal span {
  color: var(--color-border-strong, #c6d2e8);
  font-size: 0.7rem;
}

/* =========================================
   SEÇÃO DE PESQUISA COM IA
   ========================================= */
.ai-section {
  padding: 3rem 1.5rem; /* folga lateral: evita que o texto encoste na borda/barra */
  background-color: #050b14;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  text-align: center;
}

.ai-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.ai-section h2 {
  text-align: center;
  width: 100%;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.ai-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;
}

.ai-btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.ai-btn-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
  border-color: #ff8c00;
  background: rgba(255, 255, 255, 0.15);
}

.ai-btn-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

.text-accent { color: #ff8c00; }

/* Mobile: diminui a fonte do título e encaixa melhor os botões,
   evitando que a barra de rolagem lateral fique sobre as letras. */
@media (max-width: 600px) {
  .ai-section { padding: 2.25rem 1.15rem; }
  .ai-section h2 {
    font-size: 1.1rem !important;
    margin-bottom: 18px !important;
  }
  .ai-section h2 .fa-robot,
  .ai-section h2 i { margin-right: 7px !important; }
  .ai-buttons { gap: 12px; }
  .ai-btn-icon { width: 48px; height: 48px; }
  .ai-btn-icon img { width: 26px; height: 26px; }
}

@media (max-width: 360px) {
  .ai-section h2 { font-size: 1rem !important; }
  .ai-btn-icon { width: 44px; height: 44px; }
}

/* =========================================
   SUB-RODAPÉ NEXGOLD PADRÃO
   ========================================= */
.nexgold-subfooter {
  display: block;
  position: relative;
  background-color: #0050ff;
  background-image: linear-gradient(135deg, #00A3FF 0%, #0050FF 100%);
  padding: 15px 0;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
}

.nexgold-subfooter:hover {
  opacity: 0.9;
}

.nexgold-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.nexgold-text {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.nexgold-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  margin-left: 5px;
}

.nexgold-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 184, 0, 0) 0%,
    rgba(255, 184, 0, 0.7) 50%,
    rgba(255, 184, 0, 0) 100%
  );
  transform: skewX(-20deg);
  animation: nexgold-shine-anim 3s infinite linear;
  z-index: 1;
}

@keyframes nexgold-shine-anim {
  0% { left: -50%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 1.25rem 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .nexgold-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
