/* ONIRION Christmas Edition — loaded only while the server-side theme is active. */
.theme-christmas {
  --christmas-red: #7b1028;
  --christmas-gold: #d9b45f;
  --christmas-ivory: #fff5df;
}

.theme-christmas .site-header {
  background: linear-gradient(180deg, rgba(18, 9, 12, .96), rgba(9, 7, 8, .9));
  border-bottom-color: rgba(217, 180, 95, .26);
}

.brand-christmas {
  display: block;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  width: 186px;
}

.theme-christmas .home-premium-hero::after {
  background: url("../images/christmas/christmas-swoosh.png") right top / min(36vw, 500px) auto no-repeat;
  content: "";
  inset: 0 0 auto auto;
  height: 250px;
  opacity: .28;
  pointer-events: none;
  position: absolute;
  width: min(36vw, 500px);
  z-index: 0;
}

.theme-christmas .home-premium-hero > * {
  position: relative;
  z-index: 1;
}

.christmas-home {
  overflow: clip;
  padding-block: clamp(2.75rem, 5vw, 5rem);
  position: relative;
}

.christmas-home-panel {
  align-items: center;
  background:
    linear-gradient(115deg, rgba(49, 7, 18, .78), rgba(16, 12, 14, .94) 55%, rgba(31, 18, 13, .88)),
    url("../images/christmas/christmas-lights-overlay-optimized.png") center / cover no-repeat;
  border: 1px solid rgba(217, 180, 95, .38);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 245, 223, .05);
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  min-height: 0;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
}

.christmas-home-panel::before,
.christmas-home-panel::after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
  position: absolute;
}

.christmas-home-panel::before {
  background-image: url("../images/christmas/christmas-corner-tr-optimized.png");
  height: min(180px, 28vw);
  right: 0;
  top: 0;
  width: min(214px, 32vw);
}

.christmas-home-panel::after {
  background-image: url("../images/christmas/christmas-corner-bl.png");
  bottom: 0;
  height: min(150px, 24vw);
  left: 0;
  opacity: .72;
  width: min(175px, 28vw);
}

.christmas-home-visual,
.christmas-home-copy {
  position: relative;
  z-index: 1;
}

.christmas-home-visual img {
  display: block;
  height: auto;
  margin-inline: auto;
  max-height: 330px;
  object-fit: contain;
  width: min(100%, 390px);
}

.christmas-home-copy {
  max-width: 42rem;
}

.christmas-home-copy h2 {
  color: var(--christmas-ivory);
  max-width: 15ch;
}

.christmas-home-copy .lead {
  max-width: 42ch;
}

.christmas-divider {
  display: block;
  height: auto;
  margin-top: 1.25rem;
  max-width: 360px;
  opacity: .8;
  width: 70%;
}

.theme-christmas main > .section:not(.christmas-home) .panel,
.theme-christmas main > .section:not(.christmas-home) .image-card {
  border-color: rgba(217, 180, 95, .26);
}

.theme-christmas .site-footer {
  border-top-color: rgba(217, 180, 95, .3);
  position: relative;
}

.theme-christmas .site-footer::before {
  background: url("../images/christmas/christmas-divider.png") center / contain no-repeat;
  content: "";
  height: 22px;
  left: 50%;
  opacity: .48;
  pointer-events: none;
  position: absolute;
  top: -11px;
  transform: translateX(-50%);
  width: min(480px, 58vw);
}

@media (max-width: 760px) {
  .brand-christmas {
    height: 62px;
    width: 150px;
  }

  .theme-christmas .brand {
    min-width: 150px;
  }

  .christmas-home-panel {
    gap: 1rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .christmas-home-visual img {
    max-height: 220px;
    width: min(78vw, 300px);
  }

  .christmas-home-copy h2,
  .christmas-home-copy .lead {
    margin-inline: auto;
  }

  .christmas-divider {
    margin-inline: auto;
  }

  .theme-christmas .home-premium-hero::after {
    opacity: .14;
    width: 58vw;
  }
}

@media (max-width: 370px) {
  .brand-christmas {
    height: 58px;
    width: 136px;
  }

  .theme-christmas .brand {
    min-width: 136px;
  }

  .christmas-home-panel::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .home-premium-hero::after,
  .theme-christmas .christmas-home-panel::before,
  .theme-christmas .christmas-home-panel::after {
    animation: none;
  }
}
