/* Efeitos extras da home: foguete de abertura, botão do WhatsApp e vídeo */
  /* Camada transparente por cima do site */
  #rocket-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: end center; /* foguete parte da base */
    z-index: 9999;
    pointer-events: none;     /* deixa cliques passarem para o site */
    background: transparent;  /* site visível ao fundo */
  }

  /* Contêiner do foguete */
  .rocket-wrap {
    position: relative;
    width: clamp(90px, 10vw, 140px);
    aspect-ratio: 1 / 2; /* ajuda a manter proporção */
    animation: rocket-launch 3s ease-out forwards;
    will-change: transform;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.25));
  }

  /* Pequena vibração para dar vida */
  .rocket-wrap:not(.reduce-motion) {
    animation: rocket-launch 3s cubic-bezier(.2,.7,.2,1) forwards,
               rocket-shake .5s ease-in-out infinite alternate;
  }

  /* Fumaça */
  .smoke {
    position: absolute;
    left: 50%;
    bottom: -8%;
    transform: translateX(-50%);
    width: 160%;
    height: 40%;
    pointer-events: none;
    overflow: visible;
  }

  .smoke span {
    position: absolute;
    bottom: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,.8), rgba(255,255,255,.2) 70%, transparent 72%);
    opacity: .9;
    transform: translateY(0) scale(1);
    filter: blur(0.5px);
    animation: puff 1s ease-out forwards;
  }
  /* vários puffs com atrasos */
  .smoke span:nth-child(1) { left: 45%; animation-delay: .05s; }
  .smoke span:nth-child(2) { left: 55%; animation-delay: .12s; }
  .smoke span:nth-child(3) { left: 35%; animation-delay: .18s; }
  .smoke span:nth-child(4) { left: 65%; animation-delay: .25s; }
  .smoke span:nth-child(5) { left: 25%; animation-delay: .32s; }
  .smoke span:nth-child(6) { left: 75%; animation-delay: .38s; }
  .smoke span:nth-child(7) { left: 15%; animation-delay: .45s; }
  .smoke span:nth-child(8) { left: 85%; animation-delay: .52s; }

  /* Animações */
  @keyframes rocket-launch {
    0%   { transform: translateY(0) }
    85%  { transform: translateY(-105vh) }
    100% { transform: translateY(-120vh) }
  }
  @keyframes rocket-shake {
    from { transform: translateY(0) translateX(-0.5px) rotate(-0.3deg) }
    to   { transform: translateY(0) translateX(0.5px)  rotate(0.3deg) }
  }
  @keyframes puff {
    0%   { transform: translateY(0) scale(1);   opacity: .95; filter: blur(0.5px); }
    70%  { transform: translateY(40px) scale(1.6); opacity: .4; filter: blur(1.5px); }
    100% { transform: translateY(70px) scale(2.1); opacity: 0;  filter: blur(2px); }
  }

  /* Fade-out do overlay ao final */
  .fade-out {
    animation: overlay-fade .25s ease forwards;
  }
  @keyframes overlay-fade {
    to { opacity: 0; visibility: hidden; }
  }

  /* Acessibilidade: reduzir movimentos se o usuário preferir */
  @media (prefers-reduced-motion: reduce) {
    .rocket-wrap { animation: rocket-launch 3s linear forwards !important; }
    .rocket-wrap, .smoke span { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
    .rocket-wrap { transform: translateY(-120vh); }
    .rocket-wrap { filter: none; }
  }
  /* Estilo do botão flutuante */
  #whatsapp-button {
    position: fixed;
    bottom: 60px;
    right: 40px;
    z-index: 9999;
    display: inline-block;
    background-color: #25D366;
    padding: 14px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out;
  }
  #whatsapp-button:hover {
    transform: scale(1.1);
  }
  #whatsapp-button img {
    width: 32px;
    height: 32px;
    filter: invert(1); /* deixa o ícone branco */
  }
  .video-responsivo {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
  }
