/* natal-home.css — Christmas layer 2026 for walking-pad.dk, HOMEPAGE part.
   Loaded by sections/home-hero.liquid while snippets/natal-gate.liquid is open,
   after snippets/natal-top-css.liquid (which defines the --xmas-* properties, .xmas-copy, .xmas-link
   and the .xmas-tw twinkle used here) and before section-home-hero.css.

   Holds: the hero carousel and its four slides, snow, cursor sparkles, the hero
   card and gutter art, and the holly sprig on three section headings.

   Split from natal.css so the other pages do not download carousel rules they
   cannot use. 1rem = 10px. Animations are transform/opacity only and are off
   under prefers-reduced-motion.

   Ported from the owner-approved mock of 2026-12-04; values are the mock's. */

/* ---------- Hero carousel ---------- */
.xmas-btn:focus-visible,
.xmas-polaroid:focus-visible,
.xmas-carousel__btn:focus-visible,
.xmas-carousel__dot:focus-visible { outline: 2px solid var(--xmas-gold); outline-offset: 2px; }
.home-hero__media.xmas-carousel {
  position: relative;
  isolation: isolate;
  aspect-ratio: 20 / 23; /* reserved box: no layout shift */
  background: var(--xmas-pine-deep);
}
@media screen and (min-width: 750px) {
  .home-hero__media.xmas-carousel { aspect-ratio: auto; }
}
.xmas-carousel__track { position: absolute; inset: 0; touch-action: pan-y; }
.xmas-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 6.4rem;
  overflow: hidden;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s .6s;
}
.xmas-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .6s ease; }
.xmas-eyebrow {
  margin: 0 0 .8rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--xmas-gold-light);
}
.xmas-slide__title {
  margin: 0 0 1rem;
  font-family: var(--xmas-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--xmas-cream);
  text-wrap: balance;
}
.xmas-slide__text {
  margin: 0 0 1.4rem;
  font-size: 1.3rem;
  line-height: 1.5;
  letter-spacing: .02em;
  color: rgba(247, 240, 227, .9);
}
.xmas-slide__text strong { letter-spacing: .08em; }
.xmas-btn {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border: 1.5px solid var(--xmas-red);
  border-radius: 99px;
  background: var(--xmas-red);
  color: #fff;
  text-decoration: none;
  transition: opacity .15s ease;
}
.xmas-btn:hover { opacity: .88; }
.xmas-btn--gold { border-color: var(--xmas-gold-light); background: var(--xmas-gold-light); color: var(--xmas-pine-deep); }
.xmas-btn--ghost { border-color: rgba(236, 217, 173, .8); background: rgba(20, 8, 22, .35); color: var(--xmas-cream); }
/* Slide 1 — our own illustration (inline SVG; an <img> can take its place) + gift tag */
.xmas-slide--gift {
  justify-content: flex-start;
  padding: 0 0 5.2rem;
  background: var(--xmas-wood) linear-gradient(180deg, #a65c25, #8f4c1e);
}
.xmas-slide__photo { position: relative; flex: none; width: 100%; aspect-ratio: 1270 / 520; }
.xmas-carousel .xmas-slide__photo img,
.xmas-slide__photo svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.xmas-slide__photo::after {
  content: "";
  position: absolute;
  inset: 86% 0 0;
  background: linear-gradient(180deg, rgba(166, 92, 37, 0), #a65c25);
}
.xmas-tag-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin-top: -1.6rem;
  filter: drop-shadow(0 .6rem .9rem rgba(45, 18, 0, .4));
}
.xmas-tag {
  width: 88%;
  max-width: 46rem;
  padding: 3.4rem 1.6rem 1.8rem;
  background: var(--xmas-cream);
  clip-path: polygon(11% 0, 89% 0, 100% 2.6rem, 100% 100%, 0 100%, 0 2.6rem);
}
.xmas-tag-wrap .xmas-tag__bow {
  position: absolute;
  z-index: 1;
  top: -.6rem;
  left: 50%;
  width: 4.8rem;
  height: 3.4rem;
  margin-left: -2.4rem;
}
.xmas-tag .xmas-eyebrow { color: var(--xmas-red); }
.xmas-tag .xmas-slide__title { color: var(--xmas-ink); }
.xmas-tag .xmas-slide__title em { font-style: italic; color: var(--xmas-red); }
.xmas-tag .xmas-slide__text { color: #4a3d35; }
/* Slide 2 — gift guide */
.xmas-slide--guide { background: radial-gradient(120% 85% at 50% 0, #2a5e4b, var(--xmas-pine) 50%, var(--xmas-pine-deep)); }
.xmas-slide--guide::before,
.xmas-slide--coupon::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(201, 162, 90, .6);
  pointer-events: none;
}
.xmas-polaroids {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin: .4rem 0 1.8rem;
  padding: 0;
  list-style: none;
}
.xmas-polaroids li { flex: 0 1 16rem; min-width: 0; }
.xmas-polaroids li:nth-child(1) { transform: rotate(-4deg); }
.xmas-polaroids li:nth-child(2) { transform: translateY(-.6rem) rotate(1.5deg); }
.xmas-polaroids li:nth-child(3) { transform: rotate(4deg); }
.xmas-polaroid {
  display: block;
  padding: .6rem .6rem .5rem;
  background: #fff;
  box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .35);
  color: var(--xmas-ink);
  font-family: var(--xmas-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  text-decoration: none;
  transition: transform .2s ease;
}
.xmas-polaroid:hover { transform: translateY(-.4rem); }
.xmas-carousel .xmas-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: .3rem;
  background: #fff;
  object-fit: contain; /* whole product, never cropped */
}
/* Slide 3 — coupon ticket */
.xmas-slide--coupon { background: radial-gradient(120% 90% at 50% 0, #c9203c, #a71a33 55%, var(--xmas-red-deep)); }
.xmas-ticket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: 88%;
  max-width: 40rem;
  margin: .4rem 0 1.4rem;
  padding: 1.6rem 1.6rem 1.8rem;
  background:
    radial-gradient(circle at 0 50%, #a71a33 1rem, transparent 1.05rem),
    radial-gradient(circle at 100% 50%, #a71a33 1rem, transparent 1.05rem),
    var(--xmas-cream);
  box-shadow: 0 1rem 2.4rem rgba(60, 0, 12, .35);
  outline: 1px dashed rgba(201, 162, 90, .9);
  outline-offset: -.7rem;
  color: var(--xmas-ink);
}
.xmas-ticket__label { font-size: 1.1rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6b5a4e; }
.xmas-ticket__code {
  font-family: var(--font-heading-family, inherit);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .1em;
  color: var(--xmas-red);
}
/* Slide 4 — greeting */
.xmas-slide--greeting { justify-content: flex-end; background: #1c0f1f; }
.xmas-carousel .xmas-slide__tree {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: auto;
  height: 88%;
  max-width: none;
  aspect-ratio: 445 / 655;
  transform: translateX(-50%);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.xmas-slide--greeting::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 45% 0 0;
  background: linear-gradient(180deg, rgba(28, 15, 31, 0), #1c0f1f 62%);
}
.xmas-slide--greeting .xmas-slide__title { font-size: 3.4rem; font-style: italic; color: var(--xmas-gold-light); }
/* Controls */
.xmas-carousel__controls {
  position: absolute;
  z-index: 3;
  bottom: 1.2rem;
  left: 50%;
  display: none;
  align-items: center;
  gap: .2rem;
  padding: .3rem .5rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .25);
  transform: translateX(-50%);
}
.xmas-carousel.is-ready .xmas-carousel__controls { display: flex; }
.xmas-carousel__btn,
.xmas-carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--xmas-ink);
  cursor: pointer;
}
.xmas-carousel__btn { width: 3.2rem; height: 3.2rem; }
.xmas-carousel__btn:hover { background: rgba(23, 56, 45, .1); }
.xmas-carousel__btn svg { width: 1.4rem; height: 1.4rem; }
.xmas-carousel__dots { display: flex; }
.xmas-carousel__dot { width: 2.4rem; height: 2.4rem; }
.xmas-carousel__dot::before {
  content: "";
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: rgba(43, 33, 27, .3);
  transition: background-color .2s ease, transform .2s ease;
}
.xmas-carousel__dot[aria-current="true"]::before { background: var(--xmas-red); transform: scale(1.3); }
.xmas-carousel__btn .xmas-icon-play,
.xmas-carousel.is-paused .xmas-icon-pause { display: none; }
.xmas-carousel.is-paused .xmas-icon-play { display: block; }
/* Snow (≤ 18 flakes, created by natal.js, hero only) */
.xmas-snow { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.xmas-snow i {
  position: absolute;
  top: -1rem;
  border-radius: 50%;
  background: #fff;
  animation: xmas-fall linear infinite;
  will-change: transform;
}
.xmas-carousel.is-idle .xmas-snow i { animation-play-state: paused; }
@keyframes xmas-fall {
  to { transform: translate3d(var(--xmas-dx, 0), var(--xmas-h, 70rem), 0); }
}
/* Cursor sparkles (≤ 14 nodes, created by natal.js on fine pointers only) */
.xmas-sparkles { position: fixed; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.xmas-sparkles i {
  position: absolute;
  top: -.5rem;
  left: -.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--xmas-gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
}

/* ---------- Section heading sprig (three sections only) ---------- */
.section-home-facts .home-section__head h2::after,
.section-home-tiers .home-section__head h2::after,
.section-home-faq .home-section__head h2::after {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-left: .35em;
  vertical-align: -.08em;
  background: var(--xmas-holly) no-repeat 50% / contain;
}

/* ---------- Larger screens ---------- */
@media screen and (min-width: 750px) {
  .xmas-slide { padding: 3.2rem 4rem 6.4rem; }
  .xmas-slide--gift { padding: 0 0 5.6rem; }
  .xmas-eyebrow { margin-bottom: 1.2rem; font-size: 1.2rem; }
  .xmas-slide__title { margin-bottom: 1.2rem; font-size: 3.4rem; }
  .xmas-slide__text { margin-bottom: 2rem; font-size: 1.5rem; }
  .xmas-btn { padding: 1.3rem 2.8rem; font-size: 1.45rem; }
  .xmas-tag { padding: 5rem 3rem 2.8rem; }
  .xmas-tag-wrap .xmas-tag__bow { width: 6.4rem; height: 4.6rem; margin-left: -3.2rem; }
  .xmas-slide--guide::before, .xmas-slide--coupon::before { inset: 1.6rem; }
  .xmas-polaroids { gap: 1.6rem; margin: 1rem 0 2.8rem; }
  .xmas-polaroids li { flex-basis: 18rem; }
  .xmas-polaroid { padding: .9rem .9rem .7rem; font-size: 1.6rem; }
  .xmas-ticket { gap: 1rem; margin: 1rem 0 2.2rem; padding: 2.6rem 2.4rem 2.8rem; }
  .xmas-ticket__code { font-size: 4.4rem; }
  .xmas-slide--greeting .xmas-slide__title { font-size: 5rem; }
  .xmas-carousel__controls { bottom: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .xmas-slide, .xmas-slide.is-active, .xmas-polaroid { transition: none; }
  .xmas-snow, .xmas-sparkles { display: none; }
}

/* ---------- Hero: text + carousel as one centred composition ---------- */
/* The theme bleeds the media box to the viewport edge (margin-right: calc(50% - 50vw)).
   Here it stays inside the page-width container, right edge on the cart button. */
@media screen and (min-width: 750px) {
  .home-hero__media.xmas-carousel {
    align-self: center;
    min-height: 56rem;
    margin: 3.2rem 2rem 3.2rem 0;
    border-radius: 2rem;
    box-shadow: 0 1.6rem 4rem rgba(15, 39, 31, .2);
  }
}
@media screen and (min-width: 990px) {
  .home-hero__media.xmas-carousel { margin-right: 4.4rem; }
}

/* ---------- Gutter art beside the hero (wide screens only) ---------- */
/* left: tree · right: hanging baubles (top) and presents (bottom) */
.xmas-tree, .xmas-baubles, .xmas-gifts { display: none; }
@media screen and (min-width: 1600px) {
  .home-hero { position: relative; }
  .home-hero .xmas-tree {
    --xw: clamp(6rem, calc(50vw - 72rem - 4rem), 26rem);
    display: block;
    position: absolute;
    bottom: 2.4rem;
    left: calc((50% - 72rem - var(--xw)) / 2);
    width: var(--xw);
    pointer-events: none;
  }
  .home-hero .xmas-baubles,
  .home-hero .xmas-gifts {
    --xw: clamp(6rem, calc(50vw - 72rem - 4rem), 21rem);
    display: block;
    position: absolute;
    right: calc((50% - 72rem - var(--xw)) / 2);
    width: var(--xw);
    pointer-events: none;
  }
  .home-hero .xmas-baubles { top: 0; }
  .home-hero .xmas-gifts { --xw: clamp(6rem, calc(50vw - 72rem - 4rem), 24rem); bottom: 2.8rem; }
  .xmas-tree svg, .xmas-baubles svg, .xmas-gifts svg { display: block; width: 100%; height: auto; overflow: visible; }
  .xmas-baubles svg { transform-origin: 50% 0; animation: xmas-sway 5s ease-in-out infinite alternate; }
}
@keyframes xmas-sway {
  from { transform: rotate(-1.4deg); }
  to { transform: rotate(1.4deg); }
}
/* tablet: the card is narrow, so it stretches to the text column again */
@media screen and (min-width: 750px) and (max-width: 989px) {
  .home-hero__media.xmas-carousel { align-self: stretch; min-height: 62rem; }
}

/* ---------- Reduced motion (gutter art) ---------- */
@media (prefers-reduced-motion: reduce) {
  .xmas-baubles svg { animation: none; }
}
