/* Scroll confortável até o CPF (header fixo) */
#HomeCelular,
.hero__vitrine-box[data-vitrine-panel="login"] {
  scroll-margin-top: calc(var(--hero-stack-h) + 1.25rem);
  scroll-margin-bottom: 1.5rem;
}

@keyframes cpf-neon-pulse {
  0%, 100% {
    border-color: rgba(0, 131, 133, 0.45);
    box-shadow:
      0 0 0 0 rgba(0, 131, 133, 0),
      0 0 10px rgba(0, 131, 133, 0.28);
  }
  50% {
    border-color: rgba(0, 131, 133, 0.9);
    box-shadow:
      0 0 0 2px rgba(0, 131, 133, 0.35),
      0 0 18px rgba(0, 131, 133, 0.55),
      0 0 28px rgba(0, 131, 133, 0.28);
  }
}

#HomeCelular.cpf-neon-pulse {
  animation: cpf-neon-pulse 1.75s ease-in-out infinite;
}

#HomeCelular.cpf-neon-pulse:focus {
  animation: cpf-neon-pulse 1.75s ease-in-out infinite;
  outline: none;
}

/* Header CTA segue padrão 99 Food (sem pisca) */
.site-nav a.nav-cta {
  animation: none;
  box-shadow: none;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible {
  animation: none;
  box-shadow: none;
}

/* CTA do formulário de CPF na home */
.hero__cpf-cta {
  animation: none;
  box-shadow: none;
}

.hero__cpf-cta:hover,
.hero__cpf-cta:focus-visible {
  animation: none;
  box-shadow: none;
}

@keyframes nav-cta-blink {
  0%,
  49.999% {
    background: #3483fa;
    box-shadow: none;
  }
  50%,
  100% {
    background: #2968c8;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a.nav-cta,
  .hero__cpf-cta {
    animation: none;
  }
}

/* ---------- [Entrar] no menu — destaque do box de login (2s) ---------- */

/* Página desfocada; o box fica nítido (classe aplicada aos irmãos de cada ancestral) */
body.food99-spotlight .food99-spot-target {
  transition: filter 0.4s ease;
}

body.food99-spotlight.is-spotlight-active .food99-spot-target {
  filter: blur(6px) brightness(0.94);
}

/* Fundo da hero pertence a um ancestral do box: desfoca por trás do conteúdo */
body.food99-spotlight .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px) brightness(0.94);
  backdrop-filter: blur(6px) brightness(0.94);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.food99-spotlight.is-spotlight-active .hero::before {
  opacity: 1;
}

.hero__vitrine-box[data-vitrine-panel="login"].is-spotlight {
  position: relative;
}

/* Halo branco/amarelo pulsando ao redor */
.hero__vitrine-box[data-vitrine-panel="login"].is-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  animation: food99-spotlight-halo 1s ease-in-out 2;
}

/* Faixa dourada atravessando o card */
.hero__vitrine-box[data-vitrine-panel="login"].is-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 213, 0, 0) 42%,
    rgba(255, 213, 0, 0.32) 47%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 213, 0, 0.32) 53%,
    rgba(255, 213, 0, 0) 58%
  );
  background-size: 260% 100%;
  background-repeat: no-repeat;
  animation: food99-spotlight-shine 1s ease-in-out 2;
}

@keyframes food99-spotlight-halo {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 213, 0, 0),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow:
      0 0 0 4px #ffd500,
      0 0 0 9px rgba(255, 255, 255, 0.95),
      0 0 48px 18px rgba(255, 255, 255, 0.85);
  }
}

@keyframes food99-spotlight-shine {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.food99-spotlight .food99-spot-target,
  body.food99-spotlight .hero::before {
    transition: none;
  }

  .hero__vitrine-box[data-vitrine-panel="login"].is-spotlight::before {
    animation: none;
    box-shadow:
      0 0 0 4px #ffd500,
      0 0 0 9px rgba(255, 255, 255, 0.95);
  }

  .hero__vitrine-box[data-vitrine-panel="login"].is-spotlight::after {
    display: none;
  }
}
