/* ========================================================================== 
   BBH — BOTAO CTA
   Componente governado compartilhado pela HOME.
   Contexto/layout permanecem nas classes hospedeiras.
   ========================================================================== */

.bbh-cta {
  height: var(--bbh-cta-height);
  min-height: var(--bbh-cta-height);
  padding-inline: var(--bbh-cta-padding-inline);
  overflow: hidden;
  border: 1px solid var(--bbh-cta-border);
  border-radius: var(--bbh-cta-radius);
  background: var(--bbh-cta-bg);
  color: var(--bbh-cta-text);
  font-size: var(--bbh-cta-font-size);
  font-weight: 700;
  letter-spacing: var(--bbh-cta-letter-spacing);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 0 12px rgb(24 216 255 / 8%),
    0 0 12px rgb(24 216 255 / 8%);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.bbh-cta:hover,
.bbh-cta:focus,
.bbh-cta:focus-visible {
  color: var(--bbh-cta-text);
  background: var(--bbh-cta-bg-hover);
  border-color: var(--bbh-cta-bg-hover);
}

.bbh-cta:focus-visible {
  outline: 2px solid rgb(0 208 255 / 50%);
  outline-offset: 2px;
}

/* Reflection / shine / sweep canonico. */
.bbh-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bbh-cta-reflection-width);
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--bbh-cta-reflection-peak) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  animation: bbh-cta-reflection-sweep var(--bbh-cta-reflection-cycle) ease-in-out infinite;
}

/* Desativa o sweep legado das classes contextuais sem afetar outros pseudo-elementos. */
.bbh-cta::after {
  content: none;
  animation: none;
}

@keyframes bbh-cta-reflection-sweep {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bbh-cta::before {
    animation: none;
    opacity: 0;
  }
}
