/* ==========================================================================
   footer.css — Rodapé completo e botões flutuantes (WhatsApp + voltar ao topo)
   ========================================================================== */

/* ==========================================================================
   1. Footer principal
   ========================================================================== */

.site-footer {
  background: linear-gradient(160deg, var(--azul-profundo) 0%, #0a2e44 55%, #083545 100%);
  color: rgba(255, 255, 255, 0.82);
  padding-top: clamp(3rem, 6vw, 5rem);
}

/* --- Grid de colunas ---------------------------------------------------- */

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

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

  .footer-col--brand {
    grid-column: auto;
  }
}

/* --- Heading de coluna --------------------------------------------------- */

.footer-col__titulo {
  font-family: var(--fonte-titulo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul-ceu);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   2. Coluna de marca
   ========================================================================== */

.footer-brand__logo-wrap {
  display: inline-block;
  background: var(--branco);
  border-radius: 12px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1rem;
  line-height: 0;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.footer-brand__logo-wrap:hover {
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.footer-brand__logo {
  height: 46px;
  width: auto;
  display: block;
}

.footer-brand__tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 30ch;
  margin-bottom: 1.4rem;
}

/* --- Ícones sociais ------------------------------------------------------ */

.footer-social {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 180ms ease,
    box-shadow 200ms ease;
}

.footer-social__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-social__btn:hover {
  transform: translateY(-3px);
}

.footer-social__btn--ig:hover {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--branco);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.footer-social__btn--fb:hover {
  background: #1877f2;
  color: var(--branco);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social__btn--wa:hover {
  background: var(--verde-whats);
  color: var(--branco);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   3. Coluna de navegação
   ========================================================================== */

.footer-nav__lista {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
}

.footer-nav__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  position: relative;
  padding-left: 0;
  transition: color 180ms ease, padding-left 180ms ease;
}

.footer-nav__link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--azul-ceu);
  vertical-align: middle;
  margin-right: 0;
  transition: width 180ms ease, margin-right 180ms ease;
  position: relative;
  top: -1px;
}

.footer-nav__link:hover {
  color: var(--azul-ceu);
  padding-left: 8px;
}

.footer-nav__link:hover::before {
  width: 0;
}

/* ==========================================================================
   4. Coluna de contato
   ========================================================================== */

.footer-contato__lista {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.footer-contato__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-contato__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-contato__valor {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.80);
  transition: color 180ms ease;
}

a.footer-contato__valor:hover {
  color: var(--turquesa);
}

/* ==========================================================================
   5. Footer base (barra inferior)
   ========================================================================== */

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer-base__legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  max-width: 60ch;
}

.footer-base__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.30);
  white-space: nowrap;
}

@media (max-width: 580px) {
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   6. Botão flutuante — WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--verde-whats);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.09);
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.60),
    0 4px 10px rgba(0, 0, 0, 0.14);
}

/* Anel de pulso */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.5px solid rgba(37, 211, 102, 0.8);
  opacity: 0;
  animation: whats-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before {
    animation: none;
  }
}

/* ==========================================================================
   7. Botão flutuante — Voltar ao topo
   ========================================================================== */

.btn-topo {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 1100;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--azul-profundo);
  color: var(--branco);
  border: 2px solid rgba(91, 208, 230, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 59, 90, 0.35);
  /* Oculto por padrão */
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.btn-topo svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.btn-topo:hover {
  background-color: var(--turquesa);
  border-color: var(--turquesa);
  box-shadow: 0 6px 20px rgba(22, 168, 201, 0.45);
  transform: translateY(-2px);
}

.btn-topo.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Garante que o hover translateY não conflite com o estado oculto */
.btn-topo.visivel:hover {
  transform: translateY(-2px);
}

.btn-topo:focus-visible {
  outline: 3px solid var(--turquesa);
  outline-offset: 4px;
  border-radius: 50%;
}
