/* ==============================================================================
   GALETO & PICANHA - COMPONENTES FLUTUANTES, MODAIS & TOAST
   Botão WhatsApp flutuante, botão voltar ao topo, lightbox de galeria e toast
   ============================================================================== */

/* ==============================================================================
   1. BOTÃO FLUTUANTE DO WHATSAPP
   ============================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.floating-whatsapp__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: pulseGlow 3s infinite ease-in-out;
}

.floating-whatsapp__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp__btn svg {
  width: 32px;
  height: 32px;
}

.floating-whatsapp__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0d0e;
}

.floating-whatsapp__tooltip {
  background: rgba(18, 19, 23, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-normal);
}

.floating-whatsapp:hover .floating-whatsapp__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==============================================================================
   2. BOTÃO VOLTAR AO TOPO
   ============================================================================== */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 980;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 24, 30, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-gold);
  color: #0d0d0e;
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(246, 227, 0, 0.4);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* ==============================================================================
   3. LIGHTBOX MODAL PARA GALERIA
   ============================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 10, 0.95);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox__close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
}

.lightbox__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--color-border);
}

.lightbox__caption {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
}

.lightbox__caption h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--color-gold);
}

.lightbox__caption p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.lightbox__nav:hover {
  background: var(--color-gold);
  color: #0d0d0e;
}

.lightbox__nav--prev {
  left: -20px;
}

.lightbox__nav--next {
  right: -20px;
}

/* ==============================================================================
   4. MODAL GENÉRICO (POLÍTICA DE PRIVACIDADE)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 36px);
  position: relative;
  transform: translateY(20px);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--color-primary);
}

.modal-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.modal-dialog p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Modal FAQ Flutuante */
.modal-dialog--faq {
  max-width: 820px;
  width: 100%;
  background: #121318;
  border: 1px solid var(--color-border-gold);
}

.modal-dialog--faq .faq-list {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-dialog--faq .faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.modal-dialog--faq .faq-item.active {
  border-color: var(--color-border-gold);
  background: rgba(255, 255, 255, 0.05);
}

.modal-dialog--faq .faq-question {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-dialog--faq .faq-question:hover {
  color: var(--color-gold);
}

.modal-dialog--faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.16, 1, 0.3, 1), padding 350ms ease;
  padding: 0 20px;
}

.modal-dialog--faq .faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 20px 20px;
}

.modal-dialog--faq .faq-answer p {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==============================================================================
   5. TOAST NOTIFICATION
   ============================================================================== */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e2027;
  border: 1px solid var(--color-gold);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-msg svg {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .floating-whatsapp__tooltip {
    display: none;
  }
  
  .lightbox__nav--prev {
    left: 10px;
  }
  
  .lightbox__nav--next {
    right: 10px;
  }
}
