/* =====================================================================
   TEMPORÁRIO · Faixa da Black Friday GDVet nas páginas do GDAV e do GDETIV
   Usada em gdav-formado.html, gdav-estudante.html, gdetiv-formado.html e
   gdetiv-estudante.html, sempre levando para /black-friday (25% off no
   curso da página e o CCD de presente).

   A faixa sai sozinha às 23h59 de 30/11/2026: o script logo depois dela,
   no HTML, remove o elemento a partir de 01/12 0h. Mesmo assim, em 02/12
   apague este arquivo, o <link> dele e o bloco "FAIXA BLACK FRIDAY" das
   quatro páginas, junto com black-friday.html.

   Mesmo mecanismo da .launch-bar (produto.css): barra fixa no topo, o menu
   e o topo da página descem a altura dela (--faixa-bf-h, medida pelo JS).
   Cores da faixa de urgência da black-friday.html, um tom mais escuras
   para o texto branco passar de 4,5:1.
   ===================================================================== */

.faixa-bf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: linear-gradient(100deg, #A33500 0%, #CC4600 50%, #A33500 100%);
  color: #fff;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.7);
}

.faixa-bf-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.faixa-bf-txt b { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

.faixa-bf-dot {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #FFD400;
  animation: faixa-bf-pulse 1.4s ease-in-out infinite;
}
@keyframes faixa-bf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.faixa-bf-cta {
  flex: 0 0 auto;
  padding: 4px 14px;
  border-radius: 100px;
  background: #fff;
  color: #8A2D00;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
/* a faixa inteira é clicável (o link se estende por cima dela) */
.faixa-bf-cta::after { content: ""; position: absolute; inset: 0; }
.faixa-bf:hover .faixa-bf-cta { background: #FFE9DC; }
.faixa-bf-cta:focus-visible { outline: 2px solid #FFD400; outline-offset: 2px; }

/* no celular: texto curto numa linha só e o botão vira uma seta */
.faixa-bf-curto { display: none; }
@media (max-width: 720px) {
  .faixa-bf-inner { padding: 7px 12px; font-size: 0.8125rem; gap: 8px; flex-wrap: nowrap; }
  .faixa-bf-longo { display: none; }
  .faixa-bf-curto { display: inline; }
  .faixa-bf-cta-txt { display: none; }
  .faixa-bf-cta {
    width: 26px; height: 26px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem;
  }
}
@media (max-width: 374px) {
  .faixa-bf-inner { font-size: 0.75rem; padding: 7px 10px; }
  .faixa-bf-txt b { letter-spacing: 0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  .faixa-bf-dot { animation: none; }
}

/* menu, topo e âncoras descem a altura da faixa
   (118 px e 100 px são o respiro do topo das páginas do GDAV e do GDETIV,
   em gdav.css e gdetiv.css: os mesmos valores nos dois) */
body:has(.faixa-bf) .nav-glass { top: calc(var(--faixa-bf-h, 40px) + 10px); }
body:has(.faixa-bf) .prod-hero { padding-top: calc(118px + var(--faixa-bf-h, 40px)); }
@media (max-width: 720px) {
  body:has(.faixa-bf) .prod-hero { padding-top: calc(100px + var(--faixa-bf-h, 40px)); }
}
html:has(.faixa-bf) { scroll-padding-top: var(--faixa-bf-h, 40px); }
