/* ═══════════════════════════════════════════════════
   FabNails by Alice — NOIR CHRISTMAS (overlay for the Noir Atelier design)
   Gold fairy lights · gilded snow · velvet bows · deep pine footer.
   Active only while <html class="xmas"> (set by christmas.js within the
   season). Remove the <link>/<script> tags in index.html to roll back.
   It never redefines the site's colour variables — only adds decoration.
   ═══════════════════════════════════════════════════ */

.xmas-greeting, .xmas-toggle, .xmas-lights { display: none; }

/* ═══ Garland of fairy lights + baubles under the nav ═══ */
html.xmas .xmas-lights {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%; height: 68px;
  pointer-events: none; z-index: -1;
}
.xmas-lights svg { display: block; width: 100%; height: 100%; overflow: visible; }
.xmas-lights .glow   { animation: xmas-twinkle 2.8s ease-in-out infinite; }
.xmas-lights .bauble { animation: xmas-sway 4.4s ease-in-out infinite alternate; transition: opacity .45s; }
/* once scrolled, the baubles tuck away so the string never covers headings */
.nav.is-scrolled .xmas-lights .bauble { opacity: 0; }
@keyframes xmas-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes xmas-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* ═══ Logo: Santa hat on the "F" of the wordmark ═══ */
html.xmas .brand { position: relative; }
html.xmas .brand::before {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  left: -.55rem; top: -.95rem; width: 1.75rem; aspect-ratio: 8 / 7;
  background: url("assets/xmas/hat.svg") center/contain no-repeat;
  rotate: -14deg;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}

/* ═══ Greeting above the eyebrow (EN/PL chosen by <html lang>) ═══ */
html.xmas .xmas-greeting {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: 1.2rem;
  padding: .3rem 1.3rem .3rem .75rem;
  border: 1px solid var(--gold);
  background: rgba(201, 166, 107, .07);
  color: var(--gold2);
  font-family: var(--font-script); font-size: 1.5rem; line-height: 1.2;
  box-shadow: 0 0 36px rgba(201, 166, 107, .12);
}
.xmas-greeting .xmas-holly { width: 32px; height: 23px; background: url("assets/xmas/holly.svg") center/contain no-repeat; flex: none; }
html[lang="pl"] .xmas-greeting .en,
html:not([lang="pl"]) .xmas-greeting .pl { display: none; }
.xmas-greeting .short { display: none; }

/* ═══ Hero: deeper red + a breath of pine, velvet bow on the arch ═══ */
html.xmas .hero { padding-top: calc(clamp(7rem, 14vh, 9.5rem) + 1.8rem); }
html.xmas .hero-glow--red { background: radial-gradient(circle, rgba(194, 19, 43, .26), transparent 65%); }
html.xmas .hero-bg::after {
  content: ""; position: absolute; right: -8%; bottom: -20%; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 92, 69, .32), transparent 65%);
}
html.xmas .hero-photos::before {
  content: ""; position: absolute; z-index: 6; pointer-events: none;
  left: 57%; top: -27px; width: 96px; height: 60px; margin-left: -48px;
  background: url("assets/xmas/bow.svg") center/contain no-repeat;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .65));
}
html.xmas .hero-photo--2::before {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  left: 50%; top: -21px; width: 60px; height: 38px; margin-left: -30px;
  background: url("assets/xmas/bow.svg") center/contain no-repeat;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6));
}
html.xmas .hero-photo--2::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  right: -22px; bottom: -16px; width: 62px; height: 45px;
  background: url("assets/xmas/holly.svg") center/contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6));
  transform: scaleX(-1) rotate(-8deg);
}

/* ═══ About: bow on the arch portrait ═══ */
html.xmas .about-frame::before {
  content: ""; position: absolute; z-index: 4; pointer-events: none;
  top: -44px; left: 50%; width: 112px; height: 70px; margin-left: -56px;
  background: url("assets/xmas/bow.svg") center/contain no-repeat;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .65));
}

/* ═══ Prices: the featured item's numeral in polish red ═══ */
html.xmas .price-card--featured::before { color: var(--rouge); }

/* ═══ Footer: deep pine, snow along the top edge ═══ */
html.xmas .footer { background: linear-gradient(180deg, #16402F 0%, #0F2C20 100%); padding-top: 5.4rem; }
html.xmas .footer::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 26px; z-index: 1; pointer-events: none;
  background: url("assets/xmas/drips.svg") repeat-x top left / 120px 26px;
}
html.xmas .footer-brand span, html.xmas .footer-brand address { color: rgba(243, 235, 220, .74); }
html.xmas .footer-social strong { color: var(--gold2); }
html.xmas .footer-wordmark { -webkit-text-stroke-color: rgba(235, 214, 164, .42); }
html.xmas .footer-bottom { color: rgba(243, 235, 220, .7); border-top-color: rgba(235, 214, 164, .3); }
html.xmas .btn-backtop { border-color: var(--gold2); }

/* ═══ Falling snow (canvas) + on/off switch ═══ */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }
.xmas-toggle {
  position: fixed; left: 14px; bottom: 14px; z-index: 160;
  width: 46px; height: 46px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--bg2); color: var(--gold2); border: 1px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6); cursor: pointer;
  transition: transform .3s var(--ease-out), opacity .3s, color .3s, border-color .3s;
}
html.xmas-season .xmas-toggle { display: grid; }
.xmas-toggle:hover { transform: translateY(-3px); }
.xmas-toggle[aria-pressed="false"] { opacity: .6; color: var(--muted); border-color: var(--line); }

/* ═══ Responsive + motion safety ═══ */
@media (max-width: 860px) {
  html.xmas .hero-photos::before { left: 55%; width: 78px; height: 49px; margin-left: -39px; top: -22px; }
  html.xmas .hero-photo--2::before { width: 48px; height: 30px; margin-left: -24px; top: -17px; }
  html.xmas .about-frame::before { width: 88px; height: 55px; margin-left: -44px; top: -35px; }
}
@media (max-width: 720px) {
  html.xmas .xmas-greeting { font-size: 1.3rem; }
  .xmas-greeting .long { display: none; }
  .xmas-greeting .short { display: inline; }
  html.xmas .brand::before { width: 1.5rem; left: -.45rem; top: -.8rem; }
  html.xmas .footer { padding-top: 4.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights .glow, .xmas-lights .bauble { animation: none; }
  .xmas-lights .glow { opacity: .8; }
  .xmas-snow { display: none; }
}
