.site-footer {
  background-color: var(--navy-950);
  border-top: 1px solid var(--border-white);
}

/* ---- CTA superior ---- */
.footer-cta {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  position: relative;
  background-color: var(--text-soft);
}

.footer-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.footer-cta__icon-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-cta__icon-line .line {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.footer-cta__icon-line .line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-cta__icon {
  color: var(--gold);
  display: inline-flex;
}

.footer-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy-950);
  margin-bottom: var(--space-xs);
}

.footer-cta__subtitle {
  font-family: var(--font-body);
  color: #5a5648;
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body-alt);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-cta__btn:hover {
  background-color: var(--gold);
  color: var(--navy-950);
}

.footer-cta__btn .arrow {
  transition: transform 0.2s ease;
}

.footer-cta__btn:hover .arrow {
  transform: translateX(3px);
}

/* ---- Bloco principal ---- */
.footer-main {
  padding: var(--space-lg) 0;
}

.footer-main__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-main__about {
  flex: 1;
}

.footer-main__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.footer-main__tags-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.footer-main__tags {
  color: var(--text-soft-light);
  font-size: 1.05rem;
  margin: 0;
}

.footer-main__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0;
}

.footer-main__divider {
  width: 1px;
  align-self: stretch;
  background-color: var(--border-white);
}

/* ---- Ícones sociais (linha do meio do rodapé) ---- */
.footer-main__social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-icon {
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  color: var(--gold-hover);
  transform: translateY(-2px);
}

/* ---- Barra inferior ---- */
.footer-bottom {
  border-top: 1px solid var(--border-white);
  padding: var(--space-sm) 0;
}

.footer-bottom__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.footer-bottom__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.85rem;
}

.footer-bottom__links a {
  color: var(--text-soft-light);
}

.footer-bottom__links a:hover {
  color: var(--gold);
}

.footer-bottom__links .sep {
  color: var(--border-white);
}

/* ---- Responsivo ---- */

/* Faixa intermediária: o container ainda não tem margem lateral
   suficiente (isso só acontece em telas muito largas, quando
   --container-max entra em ação) nem o layout já empilhou
   (isso só ocorre abaixo de 768px). Nessa faixa, os ícones sociais
   do rodapé chegavam perto o bastante da borda direita para ficar
   por baixo dos botões flutuantes fixos (WhatsApp / voltar ao topo).
   Reservamos espaço à direita só aqui para evitar a sobreposição. */
@media (min-width: 769px) and (max-width: 1500px) {
  .footer-main__social {
    margin-right: 100px;
  }
}

@media (max-width: 768px) {
  .footer-main__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-md);
  }

  .footer-main__divider {
    display: none;
  }

  .footer-main__social {
    align-self: flex-start;
    flex-wrap: wrap;
    margin-right: 0;
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   BOTÃO FLUTUANTE DE WHATSAPP
   Fixo no canto inferior direito, visível em todas as
   páginas (o HTML dele fica no footer.php, fora da
   <footer>, então não é afetado pelos estilos acima).
========================================================= */

.social-float {
  position: fixed;
  right: 20px;
  bottom: 60px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---- item base (círculo do ícone) ---- */

.social-float__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  border-radius: 50%;

  color: #fff;
  text-decoration: none;
  outline: none;

  /* remove o retângulo cinza/quadrado que o Chrome/Safari mobile
     desenham automaticamente ao tocar em um link */
  -webkit-tap-highlight-color: transparent;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);

  /* IMPORTANTE: usamos propriedades separadas para não conflitar
     com a transição de entrada (opacity/translate) do loader.css.
     "scale" cuida só do hover (rápido); "translate"/"opacity" cuidam
     só da entrada (lenta). Como são propriedades distintas, não há
     mais disputa por quem definiu "transition" por último. */
  transition: box-shadow 0.3s ease, filter 0.3s ease,
    scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    translate 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-float__item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.social-float__item:active {
  scale: 0.96;
}

.social-float__item svg {
  position: relative;
  z-index: 2;
}

/* ---- hover elegante: escala sutil e sombra realçada (sem lift, evita
   conflito de propriedade com a animação de entrada) ---- */
.social-float__item:hover {
  scale: 1.08;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  filter: brightness(1.08);
  color: #fff;
}

/* ---- whatsapp: maior que os demais itens (destaque) ---- */

.social-float__item--whatsapp {
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #2bd366 0%, #22b355 100%);
}

.social-float__item--whatsapp svg {
  width: 30px;
  height: 30px;
}

/* brilho verde suave no hover do whatsapp */
.social-float__item--whatsapp:hover {
  box-shadow: 0 8px 24px rgba(43, 211, 102, 0.5);
}

/* ---- whatsapp: wrapper (mantido para posicionamento/estrutura,
   mesmo sem o rótulo "Fale comigo") ---- */

.social-float__whatsapp-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- whatsapp: ondas de pulso (bem visíveis, saindo das extremidades) ---- */

.social-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 232, 122, 0.75);
  background: radial-gradient(circle, rgba(56, 232, 122, 0.25) 0%, rgba(56, 232, 122, 0) 70%);
  z-index: 1;
  pointer-events: none;
  animation: social-float-pulse 2.2s ease-out infinite;
}

.social-float__ring--delay1 {
  animation-delay: 0.8s;
}

.social-float__ring--delay2 {
  animation-delay: 1.6s;
}

@keyframes social-float-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-float__ring {
    display: none;
  }
  .social-float__item:hover {
    scale: 1;
  }
}

/* ---- mobile: reduz tamanho e distância das bordas ---- */

@media (max-width: 480px) {
  .social-float {
    right: 14px;
    bottom: 48px;
    gap: 12px;
  }

  .social-float__item {
    width: 32px;
    height: 32px;
  }

  .social-float__item svg {
    width: 14px;
    height: 14px;
  }

  .social-float__item--whatsapp {
    width: 46px;
    height: 46px;
  }

  .social-float__item--whatsapp svg {
    width: 26px;
    height: 26px;
  }
}