/* =========================================================
   CHRISTMAS STYLES
   Loaded on every page, after style.css.
   Holds everything seasonal: the orange "Christmas" item in the
   menu bar, the homepage banner and the /christmas page itself.
   ========================================================= */


/* Menu bar: make room for a fifth item on desktop
   (on mobile the menu is already one item per row) */

@media (min-width: 801px) {
  .nav-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.nav-link--christmas {
  color: var(--accent);
}

.nav-link--christmas:hover,
.nav-link--christmas:focus-visible,
.nav-link--christmas[aria-current="page"] {
  color: var(--black);
  background: var(--accent);
}


/* Homepage banner */

.christmas-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  padding: 16px 24px;
  color: var(--black);
  background: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.christmas-banner__title {
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-banner__text {
  font-size: 16px;
}

.christmas-banner__button {
  padding: 9px 16px;
  color: var(--white);
  background: var(--black);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.christmas-banner:hover .christmas-banner__button,
.christmas-banner:focus-visible .christmas-banner__button {
  color: var(--black);
  background: var(--white);
}

.christmas-banner:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -6px;
}


/* =========================================================
   CHRISTMAS PAGE  (/christmas)
   Turns the popup menu into normal, always-visible page content.
   ========================================================= */

.christmas-page {
  padding: 60px 24px 70px;
  color: var(--black);
  background-image: url("images/backgrounds/brick-background.jpg");
  background-repeat: repeat;
  background-position: top center;
}


/* Intro box */

.christmas-page__intro {
  width: min(100%, 850px);
  margin: 0 auto 45px;
  padding: 42px 34px;
  color: var(--white);
  background: var(--black);
  border: 3px solid var(--accent);
  text-align: center;
}

.christmas-page__intro h1 {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.christmas-page__intro p {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
}

.christmas-page__intro a {
  color: var(--accent);
  font-weight: 700;
}

.christmas-page__intro a:hover,
.christmas-page__intro a:focus-visible {
  color: var(--white);
  outline: none;
}


/* Show the popup content as a normal card on the page */

.christmas-page .christmas-overlay {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  padding: 0;
  background: none;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.christmas-page .christmas-popup {
  width: min(1100px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow: hidden;
  transform: none;
  opacity: 1;
  transition: none;
}

.christmas-page .christmas-popup__close {
  display: none;
}


/* Fallback message if the menu file is missing */

.christmas-page__fallback {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 30px;
  background: var(--white);
  text-align: center;
}


/* Mobile */

@media (max-width: 800px) {
  .christmas-page {
    padding: 35px 12px 45px;
  }

  .christmas-page__intro {
    margin-bottom: 30px;
    padding: 30px 20px;
  }
}
