/* Christmas pages. Brand gold/ink/white plus a deep evergreen for the festive dark bands and cranberry for baubles only.
   See design-system/four-seasons-catering/pages/christmas.md */
:root { --pine: #0f1a14; --pine-2: #1d3326; --berry: #9e2b25; }

/* ---------- hero ---------- */
.xm-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(100svh, 860px);
  padding: calc(var(--promo-h) + var(--topbar-h) + var(--nav-h) + 72px) 0 72px; background: var(--pine); }
.xm-hero__bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s ease-out both; }
.xm-hero::after { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 80% at 80% 10%, rgb(201 179 122 / .18), transparent 55%),
              linear-gradient(90deg, rgb(10 18 13 / .92), rgb(10 18 13 / .62) 55%, rgb(10 18 13 / .35)),
              linear-gradient(180deg, rgb(10 18 13 / .55), transparent 30%, rgb(10 18 13 / .85)); }
.xm-snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.xm-hero__copy { position: relative; }
.xm-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px; border: 1px solid rgb(201 179 122 / .5); border-radius: 999px;
  background: rgb(201 179 122 / .12); font: 700 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); animation: fade-up 800ms var(--ease) both; }
.xm-title { max-width: 14ch; margin-bottom: 18px; font-size: clamp(2.8rem, 1.4rem + 6vw, 6rem); line-height: 1; }
.xm-title .w { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: bottom; }
.xm-title .w > span { display: inline-block;
  background: linear-gradient(100deg, #fff 40%, var(--gold-light) 50%, #fff 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.xm-title .w > span { animation: rise 1s var(--ease) both, gilt 6s linear infinite; animation-delay: calc(200ms + var(--i) * 110ms), calc(1.6s + var(--i) * 120ms); }
@keyframes gilt { to { background-position: -300% 0; } }
.xm-hero .lead { color: #fff; max-width: 52ch; animation: fade-up 900ms var(--ease) both 600ms; }
.xm-hero .hero__ctas { animation: fade-up 900ms var(--ease) both 900ms; }

/* string of lights along the top of the hero */
.xm-lights { position: absolute; left: 0; right: 0; top: calc(var(--promo-h) + var(--topbar-h) + var(--nav-h) + 4px); height: 44px; pointer-events: none; }
.xm-lights::before { content: ""; position: absolute; inset: 0 0 auto; height: 40px;
  background: radial-gradient(60% 26px at 50% 0, transparent 92%, rgb(255 255 255 / .25) 94%, transparent 97%) 0 0 / calc(100% / 4.5) 40px repeat-x; }
.xm-lights i { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 14px; border-radius: 50% 50% 45% 45%; background: var(--c, #ffe7a3);
  box-shadow: 0 0 14px 3px var(--c, #ffe7a3); animation: twinkle 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); }
.xm-lights i::before { content: ""; position: absolute; left: 2px; top: -4px; width: 5px; height: 5px; border-radius: 1px; background: #3a3a3a; }
.xm-lights i:nth-child(3n) { --c: var(--gold-light); }
.xm-lights i:nth-child(4n) { --c: #ff8a7a; }
.xm-lights i:nth-child(5n) { --c: #fff; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: 0 0 4px 0 var(--c, #ffe7a3); } }

/* hanging baubles */
.xm-baubles { position: absolute; right: clamp(8px, 6vw, 120px); top: calc(var(--promo-h) + var(--topbar-h) + var(--nav-h)); display: flex; gap: clamp(14px, 3vw, 40px); pointer-events: none; }
.xm-baubles i { position: relative; display: block; width: 2px; height: calc(70px + var(--l) * 60px); background: rgb(201 179 122 / .6); transform-origin: top center;
  animation: swing calc(4s + var(--l) * .8s) ease-in-out infinite; animation-delay: calc(var(--l) * -1.3s); }
.xm-baubles i::after { content: ""; position: absolute; left: 50%; top: 100%; width: calc(46px + var(--l) * 10px); aspect-ratio: 1; border-radius: 50%; translate: -50% 0;
  background: radial-gradient(circle at 32% 30%, #fff 0 6%, transparent 22%), radial-gradient(circle at 50% 50%, var(--b, var(--berry)), color-mix(in srgb, var(--b, var(--berry)) 55%, #000));
  box-shadow: inset -6px -8px 16px rgb(0 0 0 / .35), 0 14px 30px -10px rgb(0 0 0 / .6); }
.xm-baubles i::before { content: ""; position: absolute; left: 50%; top: calc(100% - 6px); z-index: 1; width: 14px; height: 10px; translate: -50% 0; border-radius: 3px; background: var(--gold-grad); }
.xm-baubles i:nth-child(2) { --b: var(--gold); }
.xm-baubles i:nth-child(3) { --b: var(--pine-2); }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
@media (max-width: 760px) { .xm-baubles { opacity: .55; right: 4px; } .xm-baubles i:nth-child(n+2) { display: none; } }

/* countdown */
.xm-count { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 26px; animation: fade-up 900ms var(--ease) both 750ms; }
.xm-count > span { display: grid; place-items: center; min-width: 76px; padding: 12px 10px 10px; border: 1px solid rgb(255 255 255 / .16); border-radius: 14px;
  background: rgb(255 255 255 / .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xm-count b { font: 700 2.1rem/1 var(--head); font-variant-numeric: tabular-nums; color: #fff; }
.xm-count small { margin-top: 6px; font: 600 .72rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.xm-count em { font-style: normal; font: 600 1rem/1.3 var(--head); color: rgb(255 255 255 / .8); }
@media (max-width: 480px) { .xm-count > span { min-width: 64px; } .xm-count b { font-size: 1.7rem; } .xm-count em { width: 100%; } }

.xm-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgb(201 179 122 / .22), 0 16px 36px -10px rgb(201 179 122 / .9); } }
.xm-offer { display: inline-flex; align-items: flex-start; gap: 12px; max-width: 560px; margin: 26px 0 0; padding: 14px 18px; border-radius: 14px;
  border: 1px dashed rgb(201 179 122 / .7); background: rgb(15 26 20 / .55); font-size: .98rem; color: #fff; animation: fade-up 900ms var(--ease) both 1.1s; }
.xm-offer > svg { flex: none; margin-top: 3px; font-size: 1.3rem; color: var(--gold-light); }
.xm-offer b { color: var(--gold-light); white-space: nowrap; }

/* ---------- ribbon ---------- */
.xm-ribbon { overflow: hidden; padding: 16px 0; background: var(--gold-grad); color: var(--ink); }
.xm-ribbon__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.xm-ribbon.is-off .xm-ribbon__track { animation-play-state: paused; }
.xm-ribbon li { display: inline-flex; align-items: center; gap: 10px; padding-inline: 22px; font: 700 1rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }

/* ---------- packages ---------- */
.xm-pkgs { display: grid; gap: 24px; }
@media (min-width: 860px) { .xm-pkgs { grid-template-columns: repeat(3, 1fr); } }
.xm-pkg { --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  color: inherit; text-decoration: none; box-shadow: 0 24px 44px -30px rgb(0 0 0 / .4); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 400ms var(--ease), box-shadow 300ms; }
.xm-pkg:hover { box-shadow: 0 34px 60px -30px rgb(0 0 0 / .5); }
.xm-pkg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 900ms var(--ease); }
.xm-pkg:hover img { transform: scale(1.06); }
.xm-pkg__body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.xm-pkg h3 { margin: 0; font-size: 1.4rem; }
.xm-pkg b { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 1rem/1 var(--head); color: var(--gold-deep); }
.xm-pkg b svg { transition: transform 250ms var(--ease); }
.xm-pkg:hover b svg { transform: translateX(4px); }
.xm-pkg__tag { position: absolute; z-index: 1; top: 0; right: 22px; display: grid; place-items: center; width: 52px; height: 64px; padding-top: 10px;
  border-radius: 0 0 26px 26px; background: var(--berry); color: #fff; font-size: 1.4rem; transform-origin: top center; box-shadow: 0 10px 20px -8px rgb(0 0 0 / .5); }
.xm-pkg:hover .xm-pkg__tag { animation: swing 1.2s ease-in-out; }

/* ---------- unwrap the menu ---------- */
.xm-menu { background: var(--bg-soft); }
.xm-gifts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; }
.xm-gift { border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.xm-gift button { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 30px 18px 22px; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.xm-gift__box { position: relative; display: grid; place-items: center; width: 92px; height: 78px; margin-top: 18px; border-radius: 8px; color: #fff; font-size: 1.8rem;
  background: linear-gradient(90deg, transparent 43%, var(--gold-light) 43% 57%, transparent 57%), var(--berry); box-shadow: inset 0 -10px 18px rgb(0 0 0 / .2); }
.xm-gift:nth-child(even) .xm-gift__box { background: linear-gradient(90deg, transparent 43%, var(--gold-light) 43% 57%, transparent 57%), var(--pine-2); }
.xm-gift__box svg { opacity: 0; transform: scale(.4); transition: opacity 400ms 200ms, transform 600ms var(--ease) 200ms; }
.xm-gift__lid { position: absolute; left: -6px; right: -6px; top: -18px; height: 22px; border-radius: 6px; transform-origin: 10% 100%;
  background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), #b33a32; transition: transform 700ms var(--ease); }
.xm-gift:nth-child(even) .xm-gift__lid { background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), #284634; }
.xm-gift__lid::before, .xm-gift__lid::after { content: ""; position: absolute; bottom: 100%; left: 50%; width: 22px; height: 16px; border: 4px solid var(--gold); border-radius: 50% 50% 0 50%; }
.xm-gift__lid::before { translate: -100% 4px; rotate: -12deg; }
.xm-gift__lid::after { translate: 0 4px; rotate: 12deg; border-radius: 50% 50% 50% 0; }
.xm-gift button:hover .xm-gift__lid { transform: translateY(-4px) rotate(-4deg); }
.xm-gift.is-open .xm-gift__lid { transform: translate(-30px, -34px) rotate(-38deg); }
.xm-gift.is-open .xm-gift__box svg { opacity: 1; transform: none; }
.xm-gift__name { margin-top: 10px; font: 700 1.2rem/1.2 var(--head); color: var(--ink); }
.xm-gift__hint { font: 600 .8rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.xm-gift.is-open .xm-gift__hint { visibility: hidden; }
.xm-gift .dishes { margin: 0; padding: 0 22px 22px; grid-template-columns: 1fr; text-align: left; }
.xm-gift .dishes[hidden], .xm-facts li[hidden] { display: none; }
.xm-gift .dishes:not([hidden]) li { animation: fade-up 500ms var(--ease) both; }
.xm-gift .dishes li:nth-child(2) { animation-delay: 80ms; } .xm-gift .dishes li:nth-child(3) { animation-delay: 160ms; } .xm-gift .dishes li:nth-child(4) { animation-delay: 240ms; }

/* ---------- date checker ---------- */
.xm-dates__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .xm-dates__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.xm-facts { display: grid; gap: 14px; margin: 26px 0 0; }
.xm-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.xm-facts svg { flex: none; margin-top: 4px; color: var(--gold-deep); font-size: 1.15rem; }
.xm-facts b { color: var(--ink); }
.xm-cal { padding: clamp(18px, 3vw, 30px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgb(0 0 0 / .4); }
.xm-cal__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.xm-cal__head h3 { margin: 0; font-size: 1.4rem; }
.xm-cal__key { display: flex; gap: 14px; font-size: .82rem; color: var(--text-2); }
.xm-cal__key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--k); vertical-align: -1px; }
.xm-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.xm-cal__dow { padding: 6px 0; text-align: center; font: 700 .75rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.xm-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: 600 1rem/1 var(--head); color: var(--ink); cursor: pointer; transition: background-color 200ms, border-color 200ms, transform 200ms var(--ease); }
.xm-day:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.xm-day.is-hot { background: rgb(170 148 82 / .12); border-color: rgb(170 148 82 / .45); }
.xm-day.is-hot::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--berry); }
.xm-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.06); }
.xm-day:disabled { cursor: not-allowed; color: #b5b5b5; background: var(--bg-soft); border-color: transparent; }
.xm-day.is-booked { text-decoration: line-through; }
.xm-day.is-xmas { background: var(--berry); border-color: var(--berry); color: #fff; }
.xm-cal__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.xm-cal__out p { margin: 0; font: 600 1.05rem/1.35 var(--head); color: var(--ink); }
.xm-cal__out p small { display: block; font: 400 .9rem/1.4 var(--body); color: var(--text-2); }

/* ---------- final band + sticky pill ---------- */
.xm-final { overflow: hidden; background: radial-gradient(90% 120% at 50% 0, var(--pine-2), var(--pine)); text-align: center; }
.xm-final::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(2px 2px at 40% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, #fff, transparent), radial-gradient(1px 1px at 10% 75%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent);
  background-size: 320px 320px; animation: drift 24s linear infinite; }
@keyframes drift { to { background-position: 0 320px; } }
.xm-final__inner { position: relative; max-width: 760px; }
.xm-final h2 { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.8rem); }
.xm-final [data-days-left] { color: var(--gold-light); }
.xm-final .lead { margin-inline: auto; }
.xm-final .hero__ctas { justify-content: center; }
.xm-more { margin: 28px 0 0; color: rgb(255 255 255 / .75); }
.xm-more a { color: var(--gold-light); font-weight: 700; }
.xm-sticky { position: fixed; left: 24px; bottom: 24px; z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 999px;
  background: var(--pine); color: #fff; text-decoration: none; box-shadow: 0 18px 40px -14px rgb(0 0 0 / .55); border: 1px solid rgb(201 179 122 / .5);
  opacity: 0; transform: translateY(20px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.xm-sticky svg { color: var(--gold-light); font-size: 1.2rem; }
.xm-sticky b { color: var(--gold-light); }
.xm-sticky em { font-style: normal; padding: 8px 14px; border-radius: 999px; background: var(--gold-grad); color: var(--ink); font: 700 .9rem/1 var(--head); }
.xm-sticky.is-on { opacity: 1; transform: none; }
@media (min-width: 900px) { .xm-sticky { display: inline-flex; } }

@media (prefers-reduced-motion: reduce) {
  .xm-hero__bg, .xm-title .w > span, .xm-kicker, .xm-hero .lead, .xm-hero .hero__ctas, .xm-count, .xm-offer, .xm-lights i, .xm-baubles i,
  .xm-glow, .xm-ribbon__track, .xm-final::before, .xm-gift .dishes li, .xm-pkg:hover .xm-pkg__tag { animation: none !important; }
  .xm-title .w > span { color: #fff; background: none; }
  .xm-pkg { transform: none; }
}
.xm-gift__price, .xm-pkg__price { font: 700 .95rem/1.3 var(--head); font-style: normal; color: var(--gold-deep); }
.xm-gift__menu { padding: 0 22px 22px; text-align: left; }
.xm-gift__menu[hidden] { display: none; }
.xm-gift__menu h4 { margin: 14px 0 2px; font: 700 .95rem/1.3 var(--head); color: var(--ink); }
.xm-gift__menu .dishes { padding: 0; grid-template-columns: 1fr; }
.xm-gift__menu .dishes li { animation: fade-up 500ms var(--ease) both; }
.xm-gift__min { margin: 12px 0 0; font: 600 .85rem/1.4 var(--head); color: var(--text-2); }
