/* ==========================================================================
   SL Plastik — toque de Halloween
   O site continua vermelho e branco. Só dois detalhes + o popup:
   - fantasminhas no hero (um deles espia por trás dos lacres);
   - olhos que piscam no escuro em "Nosso propósito" e no Contato;
   - popup "Doces ou travessuras?".
   Animações em assets/js/halloween.js (GSAP do próprio site).
   ========================================================================== */

:root {
  --hw-vermelho: #AE0012;
  --hw-grafite: #17171C;
  --hw-texto: #3D3D45;
  --hw-borda: #E2D8DA;
  --hw-osso: #f6f2ea;
}

/* --------------------------------------------------------------------------
   Fantasminhas no hero
   -------------------------------------------------------------------------- */
.hw-fantasmas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hw-fantasma {
  position: absolute;
  width: 64px;
  height: 77px;
  color: var(--hw-osso);
  opacity: 0;              /* o GSAP faz a aparição */
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, .28));
}
.hw-fantasma:nth-child(1) { left: 11%; top: 52%; }
.hw-fantasma:nth-child(2) { right: 12%; top: 26%; width: 44px; height: 53px; }
/* o terceiro fica atrás dos lacres do hero e "espia" por cima deles */
.hw-fantasma:nth-child(3) { left: calc(50% + 120px); bottom: 14%; width: 56px; height: 67px; }
@media (max-width: 767px) {
  .hw-fantasma:nth-child(1) { left: 4%; top: 64%; width: 44px; height: 53px; }
  .hw-fantasma:nth-child(2) { display: none; }
  .hw-fantasma:nth-child(3) { left: auto; right: 9%; bottom: 22%; width: 42px; height: 50px; }
}

/* --------------------------------------------------------------------------
   Olhos no escuro
   -------------------------------------------------------------------------- */
.hw-olhos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.proposito > .container,
.contato > .container { position: relative; z-index: 2; }
.hw-par {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  gap: calc(9px * var(--s));
  opacity: 0;              /* aparecem quando a seção entra na tela */
}
.hw-par i {
  display: block;
  width: calc(12px * var(--s));
  height: calc(15px * var(--s));
  border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, #fff7c8 0 16%, #ffd23f 42%, #ff8a00 78%);
  box-shadow: 0 0 10px 2px rgba(255, 186, 40, .5);
}
.hw-par i:first-child { transform: rotate(14deg); }
.hw-par i:last-child { transform: rotate(-14deg); }
@media (max-width: 767px) {
  .hw-par:nth-child(3) { display: none; }
}

/* --------------------------------------------------------------------------
   Popup de Halloween — linguagem da marca: card branco com borda grafite,
   faixa vermelha na borda esquerda, título bicolor, CTA em pílula. Os lacres
   "saem" do card pelo topo e um fantasminha espia por trás deles.
   -------------------------------------------------------------------------- */
.hw-pop {
  width: min(500px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  margin: auto;            /* o reset do site (* { margin: 0 }) tirava a centralização do <dialog> */
  font-family: var(--font-p);
}
.hw-pop::backdrop { background: rgba(23, 23, 28, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.hw-pop__card {
  position: relative;
  outline: none;
  margin-top: 96px;
  padding: 0 38px 34px 46px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--hw-grafite);
  border-radius: 24px;
  box-shadow: -18px 15px 12px rgba(0, 0, 0, .4);
}
.hw-pop__faixa {
  position: absolute;
  left: -2px;
  top: 30%;
  width: 12px;
  height: 46%;
  background: var(--hw-vermelho);
}

.hw-pop__cena {
  position: relative;
  width: 250px;
  height: 180px;
  margin: -96px auto 14px;
}
.hw-pop__produto {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(-10px 12px 10px rgba(0, 0, 0, .28));
}
.hw-pop__fantasma {
  position: absolute;
  right: -46px;            /* espia pela lateral direita dos lacres */
  top: 26px;
  z-index: 1;
  width: 74px;
  height: 89px;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
}

.hw-pop__fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hw-grafite);
}
.hw-pop__fechar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hw-pop__fechar:hover { color: var(--hw-vermelho); }

.hw-pop__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--hw-vermelho);
  margin-bottom: 12px;
}
.hw-pop__titulo {
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--hw-grafite);
  margin-bottom: 12px;
}
.hw-pop__titulo em { display: block; font-style: normal; color: var(--hw-vermelho); }
.hw-pop__texto { font-size: 16px; line-height: 1.5; color: var(--hw-texto); margin-bottom: 24px; }

.hw-pop__acoes { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hw-pop__cta {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--hw-vermelho);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .25s, transform .25s;
}
.hw-pop__cta:hover { background: #8a000e; transform: translateY(-2px); }
.hw-pop__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--hw-grafite);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.hw-pop__link:hover { color: var(--hw-vermelho); }

.hw-pop :focus-visible { outline: 2px solid var(--hw-vermelho); outline-offset: 3px; }
.hw-pop__fechar:focus:not(:focus-visible) { outline: none; }

@media (max-width: 480px) {
  .hw-pop__card { padding: 0 22px 28px 30px; margin-top: 84px; }
  .hw-pop__cena { width: 210px; height: 152px; margin-top: -84px; }
  .hw-pop__fantasma { width: 62px; height: 75px; right: -36px; top: 20px; }
}

/* --------------------------------------------------------------------------
   Sem animação (movimento reduzido, ?qa ou sem GSAP): tudo parado e visível
   -------------------------------------------------------------------------- */
.hw-estatico .hw-fantasma { opacity: .85; }
.hw-estatico .hw-par { opacity: 1; }
