/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-9) 0 var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 44px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); line-height: 1.7; max-width: 28em; }
.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.footer-social a:hover { background: var(--orange); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
}
.footer-bottom-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #fff; }
.footer-disclaimer {
  font-size: var(--fs-xs);
  opacity: 0.55;
  max-width: 760px;
  margin-top: var(--sp-4);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WHATSAPP FAB — fires only after a delay (set in JS, default 10s)
   ========================================================================== */

.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 600;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  opacity: 0; transform: scale(0.6) translateY(10px);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.wa-fab.is-visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.wa-fab::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  right: 72px; bottom: 14px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.wa-fab:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 640px) {
  .wa-fab { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .wa-tooltip { display: none; }
}

.back-to-top {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 590;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 18px; height: 18px; stroke: #fff; }
