/* ============================================================
   FOOTER — Minimalista + WhatsApp FAB
   ============================================================ */

.bt-footer {
  position: relative;
  /* Background imagem cream/seda com detalhe dourado. AVIF + PNG fallback via image-set. */
  background-image: image-set(
    url('https://bruntiano.magen.in/wp-content/uploads/2026/05/ChatGPT-Image-15-de-mai.-de-2026-12_48_09-1.avif') type('image/avif'),
    url('https://bruntiano.magen.in/wp-content/uploads/2026/05/ChatGPT-Image-15-de-mai.-de-2026-12_48_09-1.png') type('image/png')
  );
  background-color: var(--bg-cream-warm);   /* fallback enquanto imagem carrega */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 60px;
  border-top: 1px solid var(--border-light);
}
.bt-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.bt-footer__brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-navy);
  margin: 0;
}
.bt-footer__tagline {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--text-warm);
  font-size: 1.1rem;
  margin: 0;
  max-width: none;
}
.bt-footer__social {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}
.bt-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text-navy);
  transition: all var(--duration-fast) var(--ease-soft);
}
.bt-footer__social a:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold-dark);
}
.bt-footer__social svg {
  width: 18px;
  height: 18px;
}
.bt-footer__copy {
  font-size: 0.75rem;
  color: var(--text-warm-light);
  letter-spacing: 0.1em;
  margin-top: 1rem;
}
.bt-footer__copy a {
  color: var(--gold-dark);
}

/* ── Hr decorativo no topo ── */
.bt-footer__rule {
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
  border: 0;
}

/* ── Voltar ao topo (FAB) ─────────────────────────────────── */

.bt-back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;                /* acima do WhatsApp FAB (56px + 16px gap) */
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-cream);
  color: var(--text-navy);
  border: 1px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 6px 18px rgba(31, 41, 64, 0.15);
  transition: opacity var(--duration-mid) var(--ease-soft),
              visibility var(--duration-mid) var(--ease-soft),
              transform var(--duration-mid) var(--ease-soft),
              box-shadow var(--duration-mid) var(--ease-soft),
              background var(--duration-fast) var(--ease-soft),
              color var(--duration-fast) var(--ease-soft);
}
.bt-back-to-top[hidden] {
  display: inline-flex;          /* override pra controlarmos via opacity */
}
.bt-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bt-back-to-top:hover {
  background: var(--text-navy);
  color: var(--bg-cream);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 41, 64, 0.25);
}
.bt-back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 600px) {
  .bt-back-to-top {
    right: 1rem;
    bottom: 4.8rem;              /* acima do WA FAB menor no mobile */
    width: 40px;
    height: 40px;
  }
  .bt-back-to-top svg { width: 16px; height: 16px; }
}

/* ── WhatsApp FAB ────────────────────────────────────────── */

.bt-wa-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--text-navy);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.35);
  /* Animação sutil: respiração contínua (halo pulsante).
     Pseudo-element ::before cria o anel que expande/some. */
  animation: bt-wa-float 3.6s ease-in-out infinite;
  transition: transform var(--duration-mid) var(--ease-soft),
              box-shadow var(--duration-mid) var(--ease-soft),
              background var(--duration-fast) var(--ease-soft);
}
.bt-wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--text-navy);
  opacity: 0.45;
  z-index: -1;
  animation: bt-wa-pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.bt-wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--text-navy-light);
  box-shadow: 0 12px 32px rgba(26, 39, 68, 0.45);
  color: #fff;
  animation-play-state: paused;
}
.bt-wa-fab:hover::before {
  animation-play-state: paused;
  opacity: 0;
}

/* Float vertical sutil — sobe e desce 4px */
@keyframes bt-wa-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Halo expansivo que some — efeito ondinha contínua */
@keyframes bt-wa-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  80%  { transform: scale(1.6); opacity: 0;    }
  100% { transform: scale(1.6); opacity: 0;    }
}

/* Reduced motion: cancela animação */
@media (prefers-reduced-motion: reduce) {
  .bt-wa-fab,
  .bt-wa-fab::before {
    animation: none !important;
  }
}
.bt-wa-fab svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 600px) {
  .bt-wa-fab {
    right: 1rem;
    bottom: 1rem;
    width: 50px;
    height: 50px;
  }
  .bt-wa-fab svg { width: 24px; height: 24px; }
}
