/*
 * Christmas campaign - "Nairobi, It's Beginning to Feel Like Christmas."
 * (includes/nc/christmas.php). Loaded on /christmas and, in season, on the
 * landing page for its Christmas slide. The faint site-wide snow lives in
 * nairobicity.css so no other page has to load this file.
 *
 * Colours and type come from the campaign artwork: hot pink, holly green,
 * mustard and cream on a warm near-black with snow, and fat, bouncy display
 * letters (Bagel Fat One) used for headings only - body copy stays the
 * site's own font.
 */

:root {
  --xm-pink: #f23aa8;
  --xm-pink-deep: #c81d83;
  --xm-green: #1fbf55;
  --xm-green-deep: #0f8a3a;
  --xm-gold: #f4b324;
  --xm-cream: #fbf0e2;
  --xm-night: #201c1b;
  --xm-night-2: #2b2524;
  --xm-ink: #1a1514;
  --xm-display: "Bagel Fat One", "Titan One", "Poppins", system-ui, sans-serif;
  --xm-page: #fff8f1;
  --xm-panel: #ffffff;
  --xm-line: #f1dfcf;
  --xm-text: #2a2321;
  --xm-muted: #6f625d;
}
body.night-mode {
  --xm-page: #171312;
  --xm-panel: #221d1c;
  --xm-line: #3a3130;
  --xm-text: #f5ece4;
  --xm-muted: #bdaea6;
}

/* ------------------------------------------------------------- snow core */
.nc-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.nc-snow i {
  position: absolute; top: -12px; left: var(--x); width: var(--s); height: var(--s);
  border-radius: 50%; background: #fff; opacity: var(--o);
  box-shadow: 0 0 6px rgba(255, 255, 255, .55);
  animation: nc-snow-fall var(--d) linear var(--dl) infinite;
  will-change: transform;
}
.nc-snow--hero i { animation-name: nc-snow-fall-hero; }
.nc-snow--slide i { animation-name: nc-snow-fall-slide; }
/* the hero is up to ~900px tall on a phone; flakes leave through its overflow */
@keyframes nc-snow-fall-hero {
  0% { transform: translate3d(0, -20px, 0); }
  50% { transform: translate3d(var(--sw), 440px, 0); }
  100% { transform: translate3d(0, 920px, 0); }
}
@keyframes nc-snow-fall-slide {
  0% { transform: translate3d(0, -20px, 0); }
  50% { transform: translate3d(var(--sw), 230px, 0); }
  100% { transform: translate3d(0, 480px, 0); }
}

/* ------------------------------------------------------------- the page */
body.nc-page-christmas, .nc-xmas { background: var(--xm-page); }
.nc-xmas { color: var(--xm-text); padding-bottom: 32px; }

.nc-xmas-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(242, 58, 168, .22), transparent 60%),
    radial-gradient(900px 380px at 0% 110%, rgba(31, 191, 85, .18), transparent 60%),
    var(--xm-night);
  color: var(--xm-cream);
  padding: 18px 0 44px;
}
/* the static speckle of the artwork's backdrop, without an image */
.nc-xmas-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 20%, #e9e1d8 50%, transparent 52%),
    radial-gradient(2px 2px at 32% 70%, #e9e1d8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 58% 34%, #e9e1d8 50%, transparent 52%),
    radial-gradient(2px 2px at 78% 82%, #e9e1d8 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90% 14%, #e9e1d8 50%, transparent 52%);
  background-size: 220px 180px;
}
.nc-xmas-hero__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.nc-xmas-crumbs { font-size: 13px; color: rgba(251, 240, 226, .7); margin-bottom: 18px; }
.nc-xmas-crumbs a { color: rgba(251, 240, 226, .85); text-decoration: none; }
.nc-xmas-crumbs a:hover { color: #fff; text-decoration: underline; }
.nc-xmas-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }

.nc-xmas-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--xm-green); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em;
  transform: rotate(-2deg); box-shadow: 0 3px 0 var(--xm-green-deep);
}
.nc-xmas-hero__h1 {
  font-family: var(--xm-display); font-weight: 400; color: var(--xm-cream);
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: .005em; margin: 18px 0 16px;
  text-shadow: 3px 3px 0 var(--xm-pink), 6px 6px 0 rgba(0, 0, 0, .25);
  text-wrap: balance;
}
.nc-xmas-hero__lede { font-size: 17px; line-height: 1.6; color: rgba(251, 240, 226, .88); max-width: 520px; margin: 0 0 24px; }
.nc-xmas-hero__lede strong { color: var(--xm-gold); }
.nc-xmas-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.nc-xmas-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.nc-xmas-btn:hover { transform: translateY(-1px); text-decoration: none; }
.nc-xmas-btn:focus-visible { outline: 3px solid var(--xm-gold); outline-offset: 2px; }
.nc-xmas-btn--pink { background: var(--xm-pink); color: #fff; box-shadow: 0 4px 0 var(--xm-pink-deep); }
.nc-xmas-btn--pink:hover { color: #fff; box-shadow: 0 5px 0 var(--xm-pink-deep); }
.nc-xmas-btn--ghost { color: var(--xm-cream); border-color: rgba(251, 240, 226, .55); background: transparent; }
.nc-xmas-btn--ghost:hover { color: #fff; border-color: #fff; }
.nc-xmas-btn--outline { color: var(--xm-pink-deep); border-color: var(--xm-pink); background: transparent; }
.nc-xmas-btn--cream { background: var(--xm-cream); color: var(--xm-ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.nc-xmas-btn--cream:hover { color: var(--xm-ink); }
.nc-xmas-btn--outline-cream { background: transparent; color: var(--xm-cream); border-color: rgba(251, 240, 226, .7); }
.nc-xmas-btn--outline-cream:hover { color: #fff; border-color: #fff; }

/* the artwork, whole (never cropped), tilted like a card pinned to a board */
.nc-xmas-hero__art { position: relative; margin: 0; transform: rotate(1.6deg); }
.nc-xmas-hero__art picture, .nc-xmas-hero__art img { display: block; width: 100%; height: auto; }
.nc-xmas-hero__art img { border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 0 4px rgba(251, 240, 226, .08); }

/* the artwork's four-point stars, drawn in CSS */
.nc-xmas-star { position: absolute; width: 34px; height: 34px; z-index: 3; pointer-events: none; background: var(--xm-green);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.nc-xmas-star--a { top: -14px; left: -12px; transform: rotate(-12deg); }
.nc-xmas-star--b { bottom: -12px; right: -10px; width: 26px; height: 26px; background: var(--xm-cream); }
.nc-xmas-star--c { top: -12px; right: 28px; width: 30px; height: 30px; background: var(--xm-gold); }

/* --------------------------------------------------------------- body */
.nc-xmas-body { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.nc-xmas-chips {
  position: relative; z-index: 3; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin: -24px 0 18px; padding: 4px 2px 8px; scroll-snap-type: x proximity;
}
.nc-xmas-chips::-webkit-scrollbar { display: none; }
.nc-xmas-chip {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.nc-xmas-chip:hover { color: #fff; text-decoration: none; filter: brightness(1.05); }
.nc-xmas-chip span { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.nc-xmas-chip--pink { background: var(--xm-pink); }
.nc-xmas-chip--green { background: var(--xm-green-deep); }
.nc-xmas-chip--gold { background: var(--xm-gold); color: var(--xm-ink); }
.nc-xmas-chip--gold:hover { color: var(--xm-ink); }
.nc-xmas-chip--gold span { background: rgba(0, 0, 0, .1); }

.nc-xmas-sec { margin: 26px 0 8px; scroll-margin-top: 80px; }
.nc-xmas-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.nc-xmas-sec__head h2 {
  position: relative; margin: 0; font-family: var(--xm-display); font-weight: 400; color: var(--xm-text);
  font-size: clamp(24px, 3vw, 32px); line-height: 1.1; padding-bottom: 8px;
}
.nc-xmas-sec__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; border-radius: 6px; background: var(--tone, var(--xm-pink)); }
.nc-xmas-sec--pink { --tone: var(--xm-pink); }
.nc-xmas-sec--green { --tone: var(--xm-green); }
.nc-xmas-sec--gold { --tone: var(--xm-gold); }
.nc-xmas-sec__head a { font-weight: 700; font-size: 14px; color: var(--xm-pink-deep); text-decoration: none; white-space: nowrap; }
body.night-mode .nc-xmas-sec__head a { color: #ff7cc8; }
.nc-xmas-sec__head a:hover { text-decoration: underline; }

.nc-xmas-empty {
  margin: 34px 0; padding: 36px 22px; text-align: center; border-radius: 22px; background: var(--xm-panel);
  border: 2px dashed var(--xm-line);
}
.nc-xmas-empty > i { font-size: 34px; color: var(--xm-pink); }
.nc-xmas-empty h2 { font-family: var(--xm-display); font-weight: 400; font-size: 26px; margin: 12px 0 8px; color: var(--xm-text); }
.nc-xmas-empty p { color: var(--xm-muted); max-width: 520px; margin: 0 auto 18px; }
.nc-xmas-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.nc-xmas-sell {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin: 40px 0 8px; padding: 26px 28px; border-radius: 22px; background: var(--xm-pink); color: #fff;
  box-shadow: 0 6px 0 var(--xm-pink-deep);
}
.nc-xmas-sell h2 { font-family: var(--xm-display); font-weight: 400; color: var(--xm-cream); font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.nc-xmas-sell p { margin: 0; max-width: 640px; line-height: 1.55; color: rgba(255, 255, 255, .95); }
.nc-xmas-sell__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 991.98px) {
  .nc-xmas-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .nc-xmas-hero__art { order: -1; max-width: 560px; margin: 0 auto; }
  .nc-xmas-hero__copy { text-align: left; }
}
@media (max-width: 575.98px) {
  .nc-xmas-hero { padding: 12px 0 40px; }
  .nc-xmas-hero__lede { font-size: 15.5px; }
  .nc-xmas-hero__actions .nc-xmas-btn { flex: 1 1 auto; }
  .nc-xmas-sell { padding: 22px 18px; }
  .nc-xmas-sell__actions, .nc-xmas-sell__actions .nc-xmas-btn { width: 100%; }
  .nc-xmas-star--a { left: -4px; }
  .nc-snow--hero i:nth-child(n+21) { display: none; }
}

/* ------------------------------------------------- homepage slide (landing) */
.nc-hb__slide.nc-hb__slide--xmas { background: var(--xm-night); }
.nc-xslide {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 28px;
  padding: 18px 40px 18px 28px; color: var(--xm-cream); text-decoration: none; isolation: isolate;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(242, 58, 168, .25), transparent 60%),
    radial-gradient(600px 260px at 0% 100%, rgba(31, 191, 85, .18), transparent 60%);
}
.nc-xslide:hover, .nc-xslide:focus { color: var(--xm-cream); text-decoration: none; }
.nc-xslide__art { position: relative; z-index: 2; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.nc-xslide__art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; transform: rotate(-1.5deg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.nc-xslide__copy { position: relative; z-index: 2; }
.nc-xslide__eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--xm-green); color: #fff; font-weight: 700; font-size: 12px; transform: rotate(-2deg); }
.nc-xslide__title { font-family: var(--xm-display); font-weight: 400; color: var(--xm-cream); font-size: clamp(24px, 3.1vw, 40px); line-height: 1.05; margin: 12px 0 16px;
  text-shadow: 2px 2px 0 var(--xm-pink); text-wrap: balance; }
.nc-xslide__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--xm-pink); color: #fff; font-weight: 700;
  box-shadow: 0 4px 0 var(--xm-pink-deep); }
.nc-xslide:hover .nc-xslide__cta { filter: brightness(1.06); }
.nc-xslide:focus-visible { outline: 3px solid var(--xm-gold); outline-offset: -3px; }

@media (max-width: 640px) {
  /* stays inside the standard phone frame (landing.css: 5:4, 300-360px) - every
     slide in the track stretches to the tallest one, so a taller slide here
     would make all the banners taller */
  .nc-xslide { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px 14px; text-align: center; }
  .nc-xslide__art { height: 100%; }
  .nc-xslide__art img { max-height: 100%; }
  .nc-xslide__eyebrow { display: none; }
  .nc-xslide__title { font-size: 20px; margin: 0 0 8px; text-shadow: 1.5px 1.5px 0 var(--xm-pink); }
  .nc-xslide__cta { min-height: 38px; padding: 0 16px; font-size: 14px; }
}

/* ------------------------------------- Christmas Market category strip */
.nc-xcat {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: center;
  margin: 0 0 14px; padding: 14px 22px 14px 14px; border-radius: 18px; text-decoration: none; color: var(--xm-cream);
  background: radial-gradient(600px 220px at 100% 0%, rgba(242, 58, 168, .28), transparent 60%), radial-gradient(500px 200px at 0% 100%, rgba(31, 191, 85, .2), transparent 60%), var(--xm-night);
}
.nc-xcat:hover, .nc-xcat:focus { color: var(--xm-cream); text-decoration: none; }
.nc-xcat:focus-visible { outline: 3px solid var(--xm-gold); outline-offset: 2px; }
.nc-xcat__art { position: relative; z-index: 2; }
.nc-xcat__art img { display: block; width: 100%; height: auto; border-radius: 10px; transform: rotate(-1.5deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.nc-xcat__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nc-xcat__title { font-family: var(--xm-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.06; color: var(--xm-cream); text-shadow: 2px 2px 0 var(--xm-pink); text-wrap: balance; }
.nc-xcat__text { font-size: 14.5px; line-height: 1.5; color: rgba(251, 240, 226, .85); }
.nc-xcat .nc-xslide__cta { margin-top: 4px; }
.nc-xcat:hover .nc-xslide__cta { filter: brightness(1.06); }
@media (max-width: 640px) {
  .nc-xcat { grid-template-columns: 1fr; gap: 12px; padding: 12px 14px 16px; text-align: center; }
  .nc-xcat__art { max-width: 300px; margin: 0 auto; }
  .nc-xcat__copy { align-items: center; }
  .nc-xcat__title { font-size: 22px; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  /* the flakes stay as a still scatter on the hero and slide; nothing moves */
  .nc-snow i { animation: none; transform: translate3d(0, calc(var(--o) * 380px), 0); }
  .nc-xmas-btn, .nc-xmas-btn:hover { transition: none; transform: none; }
}
