/* ===========================================================
   JOVIT Christmas dressing, part two
   Lights, Santa caps and a greeting. All CSS/SVG: no new photos,
   no tint or scrim over any hero or product photograph.
   Scoped to <html class="season-xmas">.
   =========================================================== */

/* ---------- 1. A string of lights across the top ---------- */
/* A garland band above the header, in normal flow: it never covers the logo,
   the cap, or a single pixel of hero photography. */
.season-xmas .xmas-lights {
  display: block;
  position: fixed;
  inset: 4px 0 auto 0;
  height: 22px;
  z-index: 9998;
  pointer-events: none;
  /* the wire */
  background-image:
    /* bulbs: red, gold, green, blue, warm white, repeated */
    radial-gradient(circle at 6px 14px, #ff4d4d 0 3.4px, transparent 3.8px),
    radial-gradient(circle at 46px 14px, #ffd166 0 3.4px, transparent 3.8px),
    radial-gradient(circle at 86px 14px, #4ade80 0 3.4px, transparent 3.8px),
    radial-gradient(circle at 126px 14px, #60a5fa 0 3.4px, transparent 3.8px),
    radial-gradient(circle at 166px 14px, #fff3d6 0 3.4px, transparent 3.8px),
    /* the wire itself */
    linear-gradient(#0b3d29, #0b3d29);
  background-size: 200px 22px, 200px 22px, 200px 22px, 200px 22px, 200px 22px, 100% 1.5px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 1px;
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, repeat-x, no-repeat;
  animation: xmas-twinkle 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 210, 120, 0.55));
}

@keyframes xmas-twinkle {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 0.62; }
}

/* ---------- 2. Santa cap on the brand mark ---------- */
/* The cap is an SVG drawn in CSS, so it scales cleanly and adds no request. */
.season-xmas .logo,
.season-xmas .logo-mark,
.season-xmas .brand-mark {
  position: relative;
}
.season-xmas .logo::after {
  content: "";
  position: absolute;
  top: -12px;
  left: -6px;
  width: 26px;
  height: 24px;
  z-index: 3;
  pointer-events: none;
  transform: rotate(-18deg);
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'>\
<path d='M8 40c2-14 12-26 26-28 10-1.4 18 3 22 9-6-1-11 1-14 5 5 1 8 4 9 8-7-2-13 0-17 5 4 1 6 4 6 7-8-3-16-1-22 4z' fill='%23b3261e'/>\
<path d='M6 40h52c2 0 3 2 3 4v3c0 2-1 3-3 3H6c-2 0-3-1-3-3v-3c0-2 1-4 3-4z' fill='%23f7f4ec'/>\
<circle cx='56' cy='34' r='7' fill='%23f7f4ec'/>\
<circle cx='6' cy='45' r='2.6' fill='%23fdfaf2'/>\
</svg>");
}

/* Store header mark */
.season-xmas header img[alt=""] {
  position: relative;
}
.season-xmas header a[href="/"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: -8px;
  width: 22px;
  height: 20px;
  pointer-events: none;
  transform: rotate(-18deg);
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'>\
<path d='M8 40c2-14 12-26 26-28 10-1.4 18 3 22 9-6-1-11 1-14 5 5 1 8 4 9 8-7-2-13 0-17 5 4 1 6 4 6 7-8-3-16-1-22 4z' fill='%23b3261e'/>\
<path d='M6 40h52c2 0 3 2 3 4v3c0 2-1 3-3 3H6c-2 0-3-1-3-3v-3c0-2 1-4 3-4z' fill='%23f7f4ec'/>\
<circle cx='56' cy='34' r='7' fill='%23f7f4ec'/>\
</svg>");
}

/* ---------- 3. A cap on each branch card, the playful touch ---------- */
.season-xmas .site-card,
.season-xmas .branch-card {
  position: relative;
}
.season-xmas .site-card::before,
.season-xmas .branch-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 12px;
  width: 30px;
  height: 28px;
  z-index: 4;
  pointer-events: none;
  transform: rotate(14deg);
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'>\
<path d='M8 40c2-14 12-26 26-28 10-1.4 18 3 22 9-6-1-11 1-14 5 5 1 8 4 9 8-7-2-13 0-17 5 4 1 6 4 6 7-8-3-16-1-22 4z' fill='%23b3261e'/>\
<path d='M6 40h52c2 0 3 2 3 4v3c0 2-1 3-3 3H6c-2 0-3-1-3-3v-3c0-2 1-4 3-4z' fill='%23f7f4ec'/>\
<circle cx='56' cy='34' r='7' fill='%23f7f4ec'/>\
</svg>");
}

/* ---------- 4. The greeting, in the footer where it belongs ---------- */
.season-xmas footer .xmas-greeting {
  display: block;
  margin: 0 0 14px;
  font: 600 15px/1.5 Georgia, "Times New Roman", serif;
  letter-spacing: 0.2px;
  color: var(--xmas-gold-soft, #e8c96b);
  text-align: center;
}
.season-xmas footer .xmas-greeting .lights {
  display: inline-block;
  margin-right: 8px;
  color: #ff6b6b;
}

/* ---------- 5. Keep the shop floor readable ---------- */
/* Nothing here touches a hero or product photo: no washes, no overlays. */
@media (prefers-reduced-motion: reduce) {
  .season-xmas .xmas-lights { animation: none; }
}
@media print {
  .season-xmas .xmas-lights,
  .season-xmas .logo::after,
  .season-xmas .site-card::before,
  .season-xmas .branch-card::before { display: none; }
}

/* ===========================================================
   Part three: a bold cap, and the greeting as a flowing strip
   =========================================================== */

/* ---------- Bolder caps ---------- */
/* Larger, thicker, and given a light edge so it reads on a dark nav too. */
.season-xmas .logo::after {
  width: 40px;
  height: 37px;
  top: -20px;
  left: -10px;
  transform: rotate(-16deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.55));
}
.season-xmas .site-card::before,
.season-xmas .branch-card::before {
  width: 42px;
  height: 39px;
  top: -18px;
  right: 14px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.season-xmas header a[href="/"]::after {
  width: 34px;
  height: 31px;
  top: -12px;
  left: -14px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

/* ---------- The greeting, flowing across the top ---------- */
.season-xmas .xmas-ticker {
  position: fixed;
  inset: 26px 0 auto 0;
  height: 30px;
  z-index: 9998;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  background: #0b3d29;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}
.season-xmas .xmas-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: xmas-flow 26s linear infinite;
}
.season-xmas .xmas-ticker-track span {
  display: inline-block;
  padding-right: 64px;
  font: 600 13px/30px -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.35px;
  color: #f6e7bd;
}
.season-xmas .xmas-ticker-track span b {
  color: #ffd166;
  font-weight: 700;
}
@keyframes xmas-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Someone who asked for less motion gets the greeting, standing still. */
@media (prefers-reduced-motion: reduce) {
  .season-xmas .xmas-ticker-track { animation: none; }
  .season-xmas .xmas-ticker { justify-content: center; }
}
@media print {
  .season-xmas .xmas-ticker { display: none; }
}
