/* Projetos Disruptivos: ajustes finos compartilhados */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-tap-highlight-color: transparent;
  /* Rede de segurança contra rolagem horizontal em telas pequenas */
  overflow-x: hidden;
}

section[id],
div[id="top"] {
  scroll-margin-top: 5.75rem;
}

/* Nas demos existe também a faixa fixa de 40px no topo */
.demo-page section[id],
.demo-page div[id="top"] {
  scroll-margin-top: 7.75rem;
}

/* Revelação suave: só aplica quando o JS está ativo (conteúdo nunca fica invisível).
   Usa animação para não conflitar com os efeitos hover 2.5D do Tailwind. */
.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: revealUp 0.6s ease both;
}

@keyframes revealUp {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Flutuação discreta na primeira dobra */
.float-panel { animation: floatSoft 7s ease-in-out infinite; }
.float-chip  { animation: floatSoft 5.5s ease-in-out infinite; animation-delay: -2s; }

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Anel discreto do botão flutuante do WhatsApp */
.wa-ring {
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(0.9);  opacity: 0.55; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

.demo-map {
  filter: grayscale(0.35) contrast(1.02);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; animation: none !important; translate: 0 0 !important; }
  .float-panel, .float-chip, .wa-ring { animation: none !important; }
}
