/* ============================================================
   PO ARQUITETOS — Componentes partilhados
   Adicionar ao fim de style.css e style-madeira.css
   WhatsApp · Cookie Banner · GA4/Ads gtag helpers
============================================================ */

/* ── WHATSAPP FLUTUANTE ── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
}

.wa-bubble {
  background: rgba(13,13,13,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: .7rem 1rem;
  font-family: var(--ff); font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.wa-float:hover .wa-bubble,
.wa-float.show-bubble .wa-bubble {
  opacity: 1; transform: translateX(0);
}

.wa-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  animation: waPop .5s cubic-bezier(.175,.885,.32,1.275) 1.5s both;
}
.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,.5);
}
.wa-btn svg { width: 28px; height: 28px; }

@keyframes waPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Pulso de atenção */
.wa-btn::after {
  content: '';
  position: absolute;
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.5s ease-out 2s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── COOKIE BANNER RGPD ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(18,18,24,.97);
  border-top: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  padding: 1.2rem 0;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  width: 92%; max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cookie-text {
  flex: 1; font-size: .78rem; font-weight: 300;
  color: rgba(255,255,255,.6); line-height: 1.6; min-width: 240px;
}
.cookie-text strong { color: rgba(255,255,255,.9); font-weight: 600; }
.cookie-text a { color: rgba(255,255,255,.5); text-decoration: underline; }
.cookie-text a:hover { color: var(--white); }

.cookie-actions { display: flex; gap: .7rem; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--ff); font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .6rem 1.3rem; border-radius: 6px;
  cursor: pointer; border: none;
  transition: opacity .2s, transform .2s;
}
.cookie-btn:hover { opacity: .82; transform: translateY(-1px); }
.cookie-btn--accept { background: var(--blue); color: var(--white); }
.cookie-btn--reject {
  background: transparent; color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 640px) {
  .wa-float { bottom: 1.2rem; right: 1.2rem; }
  .wa-btn   { width: 52px; height: 52px; }
  .wa-btn::after { width: 52px; height: 52px; }
  .cookie-inner { flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
