/* =========================================================
   Halloween — seasonal layer for index.html
   Comment out the include after Halloween to restore original.
   ========================================================= */

body.halloween-vibe {
  --hw-bg: #f3ebe2;
  --hw-cream: #f7f1ea;
  --hw-cream-top: #fff8f1;
  --hw-glow: rgba(255, 170, 90, 0.22);
  --hw-glow-soft: rgba(255, 170, 90, 0.16);
  --hw-accent: rgba(255, 150, 70, 0.22);
  --hw-ink-warm: rgba(60, 30, 10, 0.1);

  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--hw-glow), transparent 55%),
    var(--hw-bg) !important;
}

body.halloween-vibe .landing-navbar {
  background: rgba(255, 250, 244, 0.92) !important;
  border-bottom: 1px solid rgba(196, 120, 50, 0.12);
  backdrop-filter: blur(8px);
}

body.halloween-vibe > main > section.bg-white {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(ellipse 80% 50% at 18% 0%, var(--hw-glow-soft), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 30%, rgba(255, 140, 70, 0.1), transparent 50%),
    linear-gradient(180deg, var(--hw-cream-top) 0%, var(--hw-cream) 100%) !important;
}

body.halloween-vibe .cta-card {
  position: relative;
  overflow: visible !important;
  background: rgba(255, 252, 248, 0.96) !important;
  border: 1px solid var(--hw-accent) !important;
  box-shadow:
    0 22px 55px var(--hw-ink-warm),
    0 0 0 1px rgba(255, 190, 120, 0.12),
    0 0 50px rgba(255, 150, 60, 0.08) !important;
}

body.halloween-vibe .cta-card .card-body {
  position: relative;
  z-index: 2;
}

body.halloween-vibe .cta-card .bg-holder {
  opacity: 0.18;
  filter: sepia(0.35) saturate(1.1);
}

/* Shared web layer base */
.hw-float-web,
.hw-card-web {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.hw-float-web {
  z-index: 1;
  opacity: 0.55;
}

.hw-float-web--a {
  top: -30px;
  left: -40px;
  width: clamp(220px, 34vw, 420px);
  height: clamp(180px, 28vw, 340px);
  opacity: 0.5;
  transform: rotate(-4deg);
}

.hw-float-web--b {
  top: 40px;
  right: -60px;
  width: clamp(180px, 26vw, 340px);
  height: clamp(220px, 32vw, 420px);
  opacity: 0.42;
  transform: rotate(12deg) scaleX(-1.05);
}

.hw-float-web--c {
  bottom: -20px;
  left: 8%;
  width: clamp(160px, 20vw, 280px);
  height: clamp(160px, 20vw, 280px);
  opacity: 0.28;
  transform: rotate(18deg);
}

.hw-card-web {
  z-index: 3;
}

.hw-card-web--main {
  top: -28px;
  left: -36px;
  width: clamp(150px, 22vw, 240px);
  height: clamp(120px, 18vw, 200px);
  opacity: 0.62;
  transform: rotate(-2deg);
}

.hw-hang-spider {
  position: absolute;
  top: 72px;
  left: 48px;
  width: 18px;
  z-index: 4;
  transform-origin: top center;
  animation: hw-sway 4.8s ease-in-out infinite;
  pointer-events: none;
}

.hw-hang-spider::before {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 0 auto;
  background: rgba(50, 40, 30, 0.35);
}

.hw-hang-spider__body {
  width: 14px;
  height: 16px;
  margin: 0 auto;
  background: radial-gradient(circle at 35% 35%, #3a3028, #1a1410 70%);
  border-radius: 50% 50% 45% 45%;
  box-shadow:
    -6px 4px 0 -5px #1a1410,
    6px 4px 0 -5px #1a1410,
    -8px 8px 0 -6px #1a1410,
    8px 8px 0 -6px #1a1410;
}

@keyframes hw-sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

.hw-hero-stage {
  position: relative;
  width: min(260px, 68vw);
  height: 200px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
}

.hw-hero-stage__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 60, 0.5) 0%, rgba(255, 120, 30, 0.18) 42%, transparent 70%);
  animation: hw-breathe 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hw-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hw-hero-stage__pumpkin {
  position: relative;
  z-index: 2;
  width: 148px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(255, 120, 20, 0.32));
  border-radius: 12px;
}

.hw-ember {
  position: absolute;
  bottom: 30%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb347;
  box-shadow: 0 0 8px rgba(255, 170, 50, 0.85);
  pointer-events: none;
  z-index: 3;
  animation: hw-ember-rise linear infinite;
  opacity: 0;
}

@keyframes hw-ember-rise {
  0% { transform: translateY(8px) scale(0.5); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateY(-110px) scale(0.2); opacity: 0; }
}

.hw-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hw-bat {
  position: absolute;
  width: 28px;
  height: 13px;
  color: rgba(55, 40, 28, 0.35);
  fill: currentColor;
  animation: hw-bat-path linear infinite;
}

.hw-bat svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes hw-bat-path {
  0% { transform: translate3d(-6vw, 0, 0); }
  50% { transform: translate3d(50vw, -14px, 0); }
  100% { transform: translate3d(108vw, 4px, 0); }
}

body.halloween-vibe .cta-card .btn-phoenix-primary {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.halloween-vibe .cta-card .btn-phoenix-primary:hover {
  box-shadow: 0 8px 22px rgba(255, 140, 40, 0.22);
  transform: translateY(-1px);
}

body.halloween-vibe .position-relative > svg.text-white {
  color: var(--hw-cream) !important;
}

@media (max-width: 991.98px) {
  .hw-float-web--b {
    right: -40px;
    width: 200px;
    height: 240px;
  }
  .hw-float-web--c { display: none; }
  .hw-hero-stage { height: 180px; }
  .hw-hero-stage__pumpkin { width: 128px; }
}

@media (max-width: 575.98px) {
  .hw-float-web--a {
    top: -10px;
    left: -24px;
    width: 160px;
    height: 130px;
    opacity: 0.4;
  }
  .hw-float-web--b { display: none; }
  .hw-card-web--main {
    width: 120px;
    height: 100px;
    top: -16px;
    left: -18px;
  }
  .hw-hang-spider {
    top: 48px;
    left: 28px;
  }
  .hw-hero-stage {
    height: 160px;
    margin-bottom: 0.6rem;
  }
  .hw-hero-stage__pumpkin { width: 112px; }
  body.halloween-vibe > main > section.bg-white {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-hang-spider,
  .hw-hero-stage__glow,
  .hw-ember,
  .hw-bat {
    animation: none !important;
  }
}
