/*
 * QhtLink Suite Holiday Styling
 * Mirrors the DPL festive menu treatment.
 */

body.is-festive {
  --festive-red: #b51231;
  --festive-green: #0f6c3a;
  --festive-gold: #f3c877;
  --festive-ice: #e3f6ff;
  --festive-branch-bleed: clamp(64px, 10vw, 240px);
  background: radial-gradient(circle at 18% -12%, rgba(243, 200, 119, 0.16), transparent 48%),
    radial-gradient(circle at 82% -10%, rgba(15, 108, 58, 0.12), transparent 42%),
    linear-gradient(180deg, #032b55, #0b4c5f 32%, #0a735c 95%);
  color: #f5fbff;
  overflow-x: hidden;
}

body.is-festive .festive-snow-layer,
body.is-festive .festive-snow-layer--slow {
  display: none;
}

body.is-festive::before,
body.is-festive::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 20%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(2px 2px at 80% 10%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 60% 40%, rgba(255, 255, 255, 0.6), transparent 60%);
  animation: festive-snowfall 18s linear infinite;
  z-index: 1;
}

body.is-festive::after {
  animation-duration: 28s;
  opacity: 0.35;
  filter: blur(1px);
}

@keyframes festive-snowfall {
  from {
    transform: translate3d(0, -10%, 0);
  }
  to {
    transform: translate3d(0, 10%, 0);
  }
}

body.is-festive .menu-wrapper {
  position: relative;
  overflow: visible;
  padding-top: clamp(10px, 1.8vw, 22px);
  margin-top: clamp(4px, 1vw, 16px) !important;
}

body.is-festive .menu-wrapper > .inner {
  position: relative;
  z-index: 5;
}

body.is-festive .menu-wrapper .festive-branch,
body.is-festive .menu-wrapper .festive-accent {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

body.is-festive .menu-wrapper .festive-branch {
  left: 50%;
  top: clamp(-24px, -3vw, 2px);
  width: calc(100vw + var(--festive-branch-bleed));
  min-width: 1100px;
  max-width: none;
  transform: translateX(-50%);
}

body.is-festive .menu-wrapper .festive-branch img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: top center;
  transform: scaleY(0.5);
  filter: drop-shadow(0 16px 42px rgba(1, 16, 32, 0.45));
  opacity: 0.75;
}

body.is-festive .menu-wrapper .festive-accent {
  top: clamp(6px, 2vw, 36px);
  right: clamp(10px, 5vw, 64px);
  width: clamp(72px, 12vw, 170px);
  opacity: 0.95;
}

body.is-festive .menu-wrapper .festive-accent img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(1, 16, 32, 0.45));
}

@media (max-width: 768px) {
  body.is-festive .menu-wrapper {
    padding-top: clamp(6px, 4vw, 20px);
  }

  body.is-festive .menu-wrapper .festive-branch {
    width: calc(130vw + var(--festive-branch-bleed));
    top: clamp(-10px, -4vw, 8px);
  }

  body.is-festive .menu-wrapper .festive-accent {
    top: 10px;
    right: 10px;
    width: clamp(60px, 20vw, 128px);
  }
}

body.is-festive #home-2-menu #ed-976602424 ul.menu-level-0 > li > a {
  align-items: center;
  background: linear-gradient(135deg, rgba(10, 59, 145, 0.6), rgba(27, 107, 224, 0.6)) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(10, 59, 145, 0.25) !important;
  color: #fff !important;
  display: inline-flex !important;
  font-weight: 700;
  gap: 0.35rem;
  height: auto;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 2.75rem !important;
  margin: 0 !important;
  min-height: 2.75rem;
  padding: 0 1.35rem !important;
  text-transform: uppercase;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.is-festive #home-2-menu #ed-976602424 ul.menu-level-0 > li > a:hover,
body.is-festive #home-2-menu #ed-976602424 ul.menu-level-0 > li > a:focus-visible,
body.is-festive #home-2-menu #ed-976602424 ul.menu-level-0 > li.active > a {
  background: linear-gradient(140deg, rgba(0, 118, 78, 0.95), rgba(34, 224, 111, 0.95)) !important;
  box-shadow: 0 18px 40px rgba(0, 118, 78, 0.4) !important;
  transform: translateY(-1px);
  outline: none;
}

body.is-festive #home-2-menu::before {
  content: none;
}

body.is-festive #home-2-menu .menu-trigger .menu-trigger-box .menu-trigger-inner,
body.is-festive #home-2-menu .menu-trigger .menu-trigger-box .menu-trigger-inner::before,
body.is-festive #home-2-menu .menu-trigger .menu-trigger-box .menu-trigger-inner::after {
  background: var(--festive-red);
}

body.is-festive #ed-976602538 .inner,
body.is-festive #ed-hero-welcome-card .welcome-bubble {
  border: 2px dashed rgba(243, 200, 119, 0.6);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(1, 23, 47, 0.55), rgba(1, 14, 29, 0.42));
  box-shadow: 0 20px 45px rgba(5, 16, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f8fbff !important;
}

body.is-festive #ed-976602538 .inner h2,
body.is-festive #ed-hero-welcome-card .welcome-bubble h2,
body.is-festive #ed-hero-welcome-card .welcome-bubble p {
  color: inherit !important;
}

body.is-festive #ed-hero-welcome-card .welcome-bubble {
  padding: clamp(18px, 4vw, 28px) clamp(20px, 5vw, 36px);
}

body.is-festive #ed-976602534 .inner .ed-text.custom-theme p,
body.is-festive #ed-hero-welcome-card .ed-text.custom-theme p {
  color: rgba(227, 246, 255, 0.88) !important;
}

body.is-festive .ed-headline.custom-theme h2,
body.is-festive .ed-headline.custom-theme h3,
body.is-festive .ed-headline.custom-theme h4,
body.is-festive .ed-text.custom-theme p,
body.is-festive .ed-text.custom-theme li {
  color: rgba(240, 250, 255, 0.94) !important;
}

body.is-festive a.button,
body.is-festive .button,
body.is-festive .ed-button .button,
body.is-festive .wv-link-elm.button,
body.is-festive .wv-link-elm.button.center {
  background: linear-gradient(135deg, var(--festive-green), var(--festive-red));
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(7, 28, 52, 0.32);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.is-festive a.button:hover,
body.is-festive .button:hover,
body.is-festive .ed-button .button:hover,
body.is-festive .wv-link-elm.button:hover,
body.is-festive .wv-link-elm.button.center:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(7, 28, 52, 0.42);
}
