/* ============================================================
   Landex Nursery — temporary Christmas / "Christ is King" theme
   Added 2026-12-02. Expires automatically at midnight 2027-01-01
   (see the date gate in christmas.js).

   EVERY rule is scoped behind html[data-xmas="on"], so this file is
   completely inert unless the date gate turns it on. Nothing here
   modifies the stock stylesheet.

   To remove for good: run revert-christmas.ps1 (deletes this file,
   christmas.js, and the three lines they hook into in index.html).
   ============================================================ */

html[data-xmas="on"] {
  --xg: #e3bb62;          /* gold */
  --xg-lt: #fbeec2;       /* lit gold */
  --xred: #a81f2b;        /* holly red */
  --xnight: #0a1a2f;      /* night sky */
  --xnight-2: #123052;
}

/* ---------- the ribbon above the utility bar ---------- */
html[data-xmas="on"] .xmas-ribbon {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 180% at 50% 120%, #15395f 0%, var(--xnight) 62%, #06101f 100%);
  color: var(--xg-lt);
  text-align: center;
  padding: .62rem 1rem .68rem;
  border-bottom: 1px solid rgba(227, 187, 98, .34);
  font-family: var(--serif);
  line-height: 1.25;
}
/* a faint star field, drawn not loaded */
html[data-xmas="on"] .xmas-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 38%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 27% 68%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 24%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.1px 1.1px at 61% 72%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.6px 1.6px at 76% 32%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 89% 60%, rgba(255,255,255,.6), transparent 60%);
  pointer-events: none;
}
html[data-xmas="on"] .xmas-ribbon__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  justify-content: center;
}
html[data-xmas="on"] .xmas-ribbon__king {
  font-size: clamp(1rem, 2.5vw, 1.32rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(227, 187, 98, .75), 0 1px 0 rgba(0, 0, 0, .4);
}
html[data-xmas="on"] .xmas-ribbon__sub {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--xg);
}
html[data-xmas="on"] .xmas-ribbon__sep {
  color: rgba(227, 187, 98, .45);
  font-family: var(--sans);
}

/* the glowing cross, pure CSS */
html[data-xmas="on"] .xmas-cross {
  position: relative;
  width: 17px;
  height: 25px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 7px rgba(251, 238, 194, .95));
}
html[data-xmas="on"] .xmas-cross::before,
html[data-xmas="on"] .xmas-cross::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, var(--xg-lt), var(--xg));
  border-radius: 1px;
}
html[data-xmas="on"] .xmas-cross::before { left: 50%; top: 0; width: 4.5px; height: 100%; transform: translateX(-50%); }
html[data-xmas="on"] .xmas-cross::after  { top: 28%; left: 0; width: 100%; height: 4.5px; }

/* ---------- string lights under the header ---------- */
html[data-xmas="on"] .xmas-lights {
  position: relative;
  height: 19px;
  margin-top: -1px;
  background: linear-gradient(180deg, rgba(10, 26, 47, .07), transparent);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  overflow: hidden;
  pointer-events: none;
}
/* the wire */
html[data-xmas="on"] .xmas-lights::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 2px;
  height: 7px;
  border-bottom: 1.5px solid rgba(26, 68, 41, .5);
  border-radius: 0 0 46% 46% / 0 0 100% 100%;
}
html[data-xmas="on"] .xmas-bulb {
  width: 8px;
  height: 11px;
  margin-top: 7px;
  border-radius: 48% 48% 52% 52% / 36% 36% 64% 64%;
  background: var(--b, #c62b36);
  box-shadow: 0 0 7px 1px var(--b, #c62b36);
  animation: xmasTwinkle 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes xmasTwinkle { 0%, 100% { opacity: 1 } 50% { opacity: .42 } }

/* ---------- snow ---------- */
html[data-xmas="on"] #xmasSnow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ---------- small festive accents on the stock page ---------- */
html[data-xmas="on"] .hero__title em { color: var(--green-600); }
html[data-xmas="on"] .hero .eyebrow::after {
  content: " ✦";
  color: var(--xg);
}
html[data-xmas="on"] .footer::before {
  content: "✝  Merry Christmas & God Bless  ✝";
  display: block;
  text-align: center;
  font-family: var(--serif);
  font-size: .98rem;
  letter-spacing: .04em;
  color: var(--xg);
  padding-bottom: 1.6rem;
  margin-top: -.6rem;
}

/* ---------- the floating call button clears the snow layer ---------- */
html[data-xmas="on"] .callfab { z-index: 95; }

/* ---------- motion & small screens ---------- */
@media (max-width: 560px) {
  html[data-xmas="on"] .xmas-ribbon { padding: .55rem .8rem .6rem; }
  html[data-xmas="on"] .xmas-ribbon__inner { gap: .5rem; }
  html[data-xmas="on"] .xmas-ribbon__sep { display: none; }
  html[data-xmas="on"] .xmas-lights { height: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-xmas="on"] .xmas-bulb { animation: none; }
  html[data-xmas="on"] #xmasSnow { display: none; }
}
