/* Halloween 2026 page (halloween.html). A dark aubergine variant of the Mantra
   brand: same Cormorant/Inter pairing as the rest of the site, candle-amber
   accents. Motifs are inline SVG (see the .hw-scene markup); no raster images.
   The popup/strip/ofertas card theme for this campaign lives in styles.css next
   to the other [data-offer-id] themes. */

.hw-page {
  --hw-bg: #140b19;
  --hw-bg-2: #1f1126;
  --hw-card: rgba(255, 255, 255, 0.05);
  --hw-line: rgba(240, 171, 76, 0.28);
  --hw-amber: #f0ab4c;
  --hw-amber-deep: #d98a2b;
  --hw-cream: #f7ead2;
  --hw-muted: rgba(247, 234, 210, 0.78);
  background: linear-gradient(180deg, #2b1635 0, var(--hw-bg-2) 420px, var(--hw-bg) 100%);
  color: var(--hw-cream);
  overflow-x: hidden;
}

/* ── hero ── */
.hw-hero { position: relative; }
.hw-hero-art {
  position: relative;
  height: clamp(190px, 35vw, 470px);
  overflow: hidden;
}
.hw-hero-art::after { /* fade the cropped scene into the page */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, rgba(31, 17, 38, 0), var(--hw-bg-2));
  pointer-events: none;
}
.hw-scene { display: block; width: 100%; height: 100%; }
.hw-web { stroke: rgba(247, 234, 210, 0.28); stroke-width: 1.4; fill: none; }
.hw-lamp-glow { animation: hw-flicker 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hw-lantern-small .hw-lamp-glow { animation-delay: -1.4s; }
.hw-moon-glow { animation: hw-breathe 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hw-bat { animation: hw-bob 5s ease-in-out infinite; }
.hw-bat-2 { animation-delay: -1.7s; animation-duration: 6s; }
.hw-bat-3 { animation-delay: -3s; animation-duration: 7s; }
@keyframes hw-flicker { 0%, 100% { opacity: 1; } 45% { opacity: 0.78; } 70% { opacity: 0.92; } }
@keyframes hw-breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes hw-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .hw-lamp-glow, .hw-moon-glow, .hw-bat { animation: none; }
}

.hw-hero-copy { text-align: center; max-width: 44rem; margin-top: -1.2rem; padding-bottom: 3.2rem; position: relative; }
.hw-kicker {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hw-amber);
  margin-bottom: 0.7rem;
}
html[dir="rtl"] .hw-kicker { letter-spacing: 0; }
.hw-hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6.4vw, 3.4rem);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
.hw-dates {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  color: var(--hw-amber);
  padding: 0.2rem 1.1rem;
  border-top: 1px solid var(--hw-line);
  border-bottom: 1px solid var(--hw-line);
  margin-bottom: 1.1rem;
}
.hw-lead { font-size: 1.05rem; color: var(--hw-muted); max-width: 36rem; margin: 0 auto 1.7rem; }
.hw-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem 1.6rem; }
.btn-halloween {
  display: inline-block;
  min-height: 48px;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  background: var(--hw-amber);
  color: #2a1608;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  transition: background 0.2s, transform 0.2s;
}
.btn-halloween:hover { background: #f7bd6b; transform: translateY(-1px); }
.btn-halloween:focus-visible, .hw-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hw-link { color: var(--hw-cream); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hw-line); }
.hw-link:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn-halloween { transition: none; } .btn-halloween:hover { transform: none; } }

/* ── sections ── */
.hw-container { max-width: 62rem; padding-bottom: 4.5rem; }
.hw-section { padding: 2.6rem 0; border-top: 1px solid rgba(247, 234, 210, 0.1); }
.hw-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  color: #fff;
  margin: 0 0 0.6rem;
}
.hw-section h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #fff; margin: 0 0 0.35rem; }
.hw-intro { color: var(--hw-muted); max-width: 40rem; margin: 0 0 1.6rem; }
.hw-card {
  background: var(--hw-card);
  border: 1px solid rgba(247, 234, 210, 0.14);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.hw-card p { color: var(--hw-muted); margin: 0; }

.hw-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hw-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1.5px solid var(--hw-amber);
  color: var(--hw-amber);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.8rem;
}

.hw-treats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.hw-treat { text-align: center; padding: 1.8rem 1.3rem; }
.hw-amount { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--hw-amber); margin-bottom: 0.5rem; }
.hw-or {
  align-self: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem;
  color: var(--hw-amber);
}

.hw-contest-list { list-style: none; counter-reset: hw; display: grid; gap: 0.8rem; margin-bottom: 1.8rem; max-width: 42rem; }
.hw-contest-list li {
  counter-increment: hw;
  position: relative;
  padding-inline-start: 3rem;
  min-height: 2.2rem;
  color: var(--hw-muted);
}
.hw-contest-list li::before {
  content: counter(hw);
  position: absolute; inset-inline-start: 0; top: -0.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240, 171, 76, 0.16); color: var(--hw-amber);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.hw-prize {
  max-width: 42rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--hw-amber);
  background: linear-gradient(135deg, rgba(240, 171, 76, 0.16), rgba(240, 171, 76, 0.04));
  box-shadow: 0 0 40px rgba(240, 171, 76, 0.12);
}
.hw-prize h3 { font-size: 1.6rem; }
.hw-prize p { color: var(--hw-cream); margin: 0; }

.hw-timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; position: relative; }
.hw-timeline li { position: relative; padding-top: 1.6rem; color: var(--hw-muted); font-size: 0.95rem; }
.hw-timeline li::before { /* dot */
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--hw-amber); box-shadow: 0 0 12px rgba(240, 171, 76, 0.7);
}
.hw-timeline li::after { /* line to the next dot */
  content: ""; position: absolute; top: 0.38rem; inset-inline-start: 1rem; inset-inline-end: -1rem; height: 1px;
  background: var(--hw-line);
}
.hw-timeline li:last-child::after { display: none; }
.hw-date { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 0.15rem; }
.hw-fine { margin-top: 2rem; font-size: 0.82rem; line-height: 1.55; color: rgba(247, 234, 210, 0.6); max-width: 42rem; }

.hw-closing { text-align: center; padding-top: 2.4rem; border-top: 1px solid rgba(247, 234, 210, 0.1); }
.hw-closing p { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 1.2rem; text-wrap: balance; }

/* ── phone ── */
@media (max-width: 760px) {
  .hw-steps, .hw-treats { grid-template-columns: 1fr; }
  .hw-or { justify-self: center; }
  .hw-timeline { grid-template-columns: 1fr; gap: 0; margin-inline-start: 0.4rem; }
  .hw-timeline li { padding: 0 0 1.3rem 1.8rem; padding-inline-start: 1.8rem; padding-top: 0; }
  .hw-timeline li::before { top: 0.45rem; }
  .hw-timeline li::after { top: 1.1rem; bottom: 0; height: auto; width: 1px; inset-inline-start: 0.38rem; inset-inline-end: auto; }
}

/* Instagram handle under step 3 -- language-neutral, so it lives outside the translated <p> */
.hw-ig { display: inline-block; margin-top: .6rem; font-weight: 600; color: var(--hw-amber, #f0b14a); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
