/* Christmas season header — every page, only while pl_is_xmas_season() (functions.php) is true.
   Loaded by header.php after header.css; everything is scoped to body.pl-xmas-season, so outside the season nothing changes.
   - black top bar (as normal) with light snow; its message links to the Christmas page
   - main header: pale blue snowflakes drift slowly across the white background, behind the logo and buttons
   - a Santa hat on the round logo icon
   - "Start a project" in Christmas red; a red "Christmas" link joins the menu (desktop and mobile)
   - footer: light snow, the same Santa hat on the footer logo, and a "Happy Holidays" line in the bottom bar (footer.php) */

.pl-xmas-season {
  --xmh-red: #c8102e;
  --xmh-red-dark: #9b0c23;
  --xmh-gold: #d4a838;
  --xmh-gold-soft: #f3e3b3;
  /* Santa hat, used on the header and footer logos */
  --xmh-hat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M5 25 C9 13 17 5 29 4 C35 4 38 9 36 16 C33 12 29 11 26 13 C23 16 22 20 23 25 Z' fill='%23d42a3c'/%3E%3Cpath d='M9 18 C13 11 20 7 27 6' fill='none' stroke='%23ff6b7d' stroke-width='1.6' stroke-linecap='round' opacity='.7'/%3E%3Crect x='2' y='21' width='25' height='8' rx='4' fill='%23ffffff' stroke='%23e3e3e3' stroke-width='.8'/%3E%3Ccircle cx='36' cy='17' r='4.2' fill='%23ffffff' stroke='%23e3e3e3' stroke-width='.8'/%3E%3C/svg%3E");
}

/* ---- Top bar (black, as normal): light snow ---- */
.pl-xmas-season .pl-topbar { position: relative; overflow: hidden; }
.pl-xmas-season .pl-topbar__inner { position: relative; z-index: 1; }
.pl-xmas-season .pl-topbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 20px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70px 44px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 130px 12px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 170px 52px, #fff 50%, transparent 51%);
  background-size: 200px 60px;
  animation: pl-xmh-snow 12s linear infinite;
}
@keyframes pl-xmh-snow { from { background-position: 0 0; } to { background-position: 30px 60px; } }

/* ---- Top bar message → Christmas page ---- */
.pl-topbar__xmas { color: var(--xmh-gold-soft); font-weight: 500; }
.pl-topbar__xmas::before { content: "\2744\FE0E"; margin-right: 7px; color: var(--xmh-gold); }
.pl-topbar__xmas:hover, .pl-topbar__xmas:focus, .pl-topbar__xmas:active { color: #fff; }

/* ---- Main header: pale blue snowflakes drifting behind the logo, menu and buttons ---- */
.pl-xmas-season .pl-header::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='140' viewBox='0 0 300 140'%3E%3Cpath d='M25.0 24.0L35.0 24.0M27.5 19.7L32.5 28.3M32.5 19.7L27.5 28.3' stroke='%239fc2e3' stroke-width='1.3' stroke-linecap='round' opacity='0.9'/%3E%3Cpath d='M114.5 78.0L121.5 78.0M116.3 75.0L119.8 81.0M119.8 75.0L116.3 81.0' stroke='%239fc2e3' stroke-width='1.3' stroke-linecap='round' opacity='0.7'/%3E%3Cpath d='M191.5 30.0L200.5 30.0M193.8 26.1L198.3 33.9M198.3 26.1L193.8 33.9' stroke='%239fc2e3' stroke-width='1.3' stroke-linecap='round' opacity='0.8'/%3E%3Cpath d='M256.5 104.0L267.5 104.0M259.3 99.2L264.8 108.8M264.8 99.2L259.3 108.8' stroke='%239fc2e3' stroke-width='1.3' stroke-linecap='round' opacity='0.9'/%3E%3Cpath d='M67.0 118.0L73.0 118.0M68.5 115.4L71.5 120.6M71.5 115.4L68.5 120.6' stroke='%239fc2e3' stroke-width='1.3' stroke-linecap='round' opacity='0.6'/%3E%3Cpath d='M156.0 124.0L164.0 124.0M158.0 120.5L162.0 127.5M162.0 120.5L158.0 127.5' stroke='%239fc2e3' stroke-width='1.3' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E") repeat 0 0 / 300px 140px;
  animation: pl-xmh-flakes 22s linear infinite;
}
@keyframes pl-xmh-flakes { from { background-position: 0 0; } to { background-position: 60px 140px; } }

/* ---- Santa hat on the round logo icon (a decoration over the logo — the logo image itself is unchanged).
   Sized to the logo: 35px tall (30px on phones). ---- */
.pl-xmas-season .pl-header__logo { position: relative; }
.pl-xmas-season .pl-header__logo::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: -5px; top: 2px; width: 30px; height: 24px;
  transform: rotate(-14deg);
  background: var(--xmh-hat) no-repeat center / contain;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.25));
}

/* ---- "Start a project" in Christmas red ---- */
.pl-xmas-season .pl-header__cta { background: var(--xmh-red); }
.pl-xmas-season .pl-header__cta:hover { background: var(--xmh-red-dark); color: #fff; }

/* ---- "Christmas" menu link (desktop) ---- */
.pl-header__nav-xmas {
  display: flex; align-items: center; gap: 6px; padding: 14px 0;
  font-size: 14.5px; font-weight: 600; color: var(--xmh-red);
}
.pl-header__nav-xmas::before { content: "\2744\FE0E"; color: var(--xmh-gold); font-size: 15px; line-height: 1; }
.pl-header__nav-xmas:hover, .pl-header__nav-xmas:focus, .pl-header__nav-xmas:active { color: var(--xmh-red-dark); }

/* ---- "Christmas Greeting Cards" (mobile menu, first link) ---- */
.pl-mobile-menu__xmas { font-size: 16px; font-weight: 600; color: var(--xmh-red); }
.pl-mobile-menu__xmas::before { content: "\2744\FE0E"; margin-right: 8px; color: var(--xmh-gold); }
.pl-mobile-menu__xmas:hover, .pl-mobile-menu__xmas:focus, .pl-mobile-menu__xmas:active { color: var(--xmh-red-dark); }

/* ---- Footer: light snow behind the content ---- */
.pl-xmas-season .pl-footer { position: relative; overflow: hidden; isolation: isolate; }
.pl-xmas-season .pl-footer::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    radial-gradient(1.8px 1.8px at 30px 40px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 110px 150px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 190px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 250px 200px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 70px 230px, #fff 50%, transparent 51%);
  background-size: 280px 260px;
  animation: pl-xmh-footer-snow 26s linear infinite;
}
@keyframes pl-xmh-footer-snow { from { background-position: 0 0; } to { background-position: 50px 260px; } }

/* ---- Footer: the same Santa hat on the footer logo's round icon ---- */
.pl-xmas-season .pl-footer__logo { position: relative; }
.pl-xmas-season .pl-footer__logo::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: -5px; top: -21px; width: 30px; height: 24px;
  transform: rotate(-14deg);
  background: var(--xmh-hat) no-repeat center / contain;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35));
}

/* ---- Footer: holiday greeting in the bottom bar (footer.php) ---- */
.pl-footer__xmas { color: var(--xmh-gold-soft); }
.pl-footer__xmas::before { content: "\2744\FE0E"; margin-right: 7px; color: var(--xmh-gold); }

@media (max-width: 1024px) {
  .pl-xmas-season .pl-header__logo::before { top: -4px; }
}
@media (max-width: 640px) {
  .pl-xmas-season .pl-header__logo::before { left: -5px; top: -2px; width: 26px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-xmas-season .pl-topbar::after, .pl-xmas-season .pl-header::before, .pl-xmas-season .pl-footer::before { animation: none; }
}
