/* =====================================================================
   HIGHLINE — Christmas mode "The Light Has Come" (Advent & Christmas 2026)
   Loaded only while Christmas mode is active (inc/christmas.php); everything is
   scoped to body.xmas-on. Palette from the key art + poster: night navy + star gold.
   ===================================================================== */
body.xmas-on {
  --x-navy:   #0c1730;
  --x-navy-2: #14223f;
  --x-gold:   #d6aa5c;
  --x-gold-2: #ebcb8f;
  --x-cream:  #f8e8d3;
  --x-serif:  'Cormorant Garamond', Georgia, serif;
  --xbar-h:   40px;

  /* Retint the dark theme's tokens: teal → night navy, green/mint → gold */
  --green:     var(--x-gold);
  --green-600: #c4964a;
  --mint:      var(--x-gold-2);
  --mint-soft: #f1dcb2;
  --mint-wash: #1a2a49;
  --teal:      #22386a;
  --teal-deep: #15264a;
  --teal-ink:  #070f20;
  --bg:        #09122a;
  --surface:   #0e1a33;
  --surface-2: #0b162d;
  --panel:     #14223f;
  --panel-2:   #1a2b4d;
  --ink-soft:  #b7bfce;
  padding-top: var(--xbar-h);
}

/* ---------- Gold accents in place of the mint/green ---------- */
body.xmas-on .btn:not(.btn-ghost-light):not(.btn-outline):not(.btn-white):not(.btn-xnavy) { --_fg: #0c1730; box-shadow: 0 10px 26px rgba(214,170,92,.28); }
body.xmas-on .btn:not(.btn-ghost-light):not(.btn-outline):not(.btn-white):not(.btn-xnavy):hover { box-shadow: 0 16px 36px rgba(214,170,92,.42); }
body.xmas-on .btn-ghost-light:hover { color: var(--x-navy); }
body.xmas-on .bg-mint { background: linear-gradient(160deg, #15264a 0%, #0b1730 100%); }
body.xmas-on .bg-teal { background: linear-gradient(160deg, #1d3361 0%, #12224a 55%, #0a1430 100%); }
body.xmas-on .card:hover,
body.xmas-on .teamcard:hover,
body.xmas-on .stepcard:hover,
body.xmas-on .evrow:hover { border-color: rgba(214,170,92,.5); }
body.xmas-on .card__icon,
body.xmas-on .steplinks__icon,
body.xmas-on .evrow__date,
body.xmas-on .bg-ink .card__icon, body.xmas-on .bg-teal .card__icon { background: rgba(214,170,92,.15); color: var(--x-gold-2); }
body.xmas-on .steplinks a:hover { background: rgba(214,170,92,.12); border-color: rgba(214,170,92,.45); }
body.xmas-on .checklist li::before { background-color: rgba(214,170,92,.2); }
body.xmas-on .field input:focus, body.xmas-on .field select:focus, body.xmas-on .field textarea:focus { box-shadow: 0 0 0 4px rgba(214,170,92,.18); }
body.xmas-on .nav.solid, body.xmas-on .nav.scrolled { background: rgba(8,15,32,.86); }
body.xmas-on.menu-open::after { background: rgba(5,10,24,.6); }
body.xmas-on .footer { background: #060d1d; border-top: 1px solid rgba(214,170,92,.18); }

/* Interior page heroes carry the key art */
body.xmas-on .pagehero {
  background:
    linear-gradient(180deg, rgba(7,13,30,.55) 0%, rgba(7,13,30,.72) 55%, rgba(7,13,30,.92) 100%),
    url("../img/christmas/light-has-come.jpg") center 62% / cover no-repeat, var(--x-navy);
}
body.xmas-on .pagehero::before { opacity: 1; background: radial-gradient(60% 55% at 50% 0%, rgba(235,203,143,.18) 0, transparent 60%); }
body.xmas-on .pagehero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.45); }

/* ---------- Top banner (every page) ---------- */
.xbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--xbar-h); z-index: 105;
  background: linear-gradient(90deg, #0a1328 0%, #1b2a4f 50%, #0a1328 100%);
  border-bottom: 1px solid rgba(214,170,92,.35);
}
body.xmas-on .nav { top: var(--xbar-h); }
.xbar__link {
  height: 100%; display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 0 16px; color: var(--x-cream); font-family: var(--font-display); font-size: .86rem;
  letter-spacing: .01em; white-space: nowrap; overflow: hidden;
}
.xbar__txt { overflow: hidden; text-overflow: ellipsis; }
.xbar__txt strong { color: var(--x-gold-2); font-weight: 600; }
.xbar__star {
  flex: 0 0 14px; width: 14px; height: 14px; background: var(--x-gold-2);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px rgba(235,203,143,.9)); animation: xtwinkle 3.2s ease-in-out infinite;
}
.xbar__cta { flex: 0 0 auto; font-weight: 600; color: var(--x-navy); background: var(--x-gold); padding: .28rem .85rem; border-radius: 100px; font-size: .8rem; transition: background .2s; }
.xbar__link:hover .xbar__cta { background: var(--x-gold-2); }
@keyframes xtwinkle { 0%,100% { transform: scale(1) rotate(0); opacity: .95; } 50% { transform: scale(.78) rotate(45deg); opacity: .7; } }
@media (max-width: 760px) {
  .xbar__lg { display: none; }
  .xbar__cta { padding: .22rem .7rem; }
}
@media (max-width: 400px) {
  .xbar__link { gap: .5rem; font-size: .8rem; padding: 0 12px; }
  .xbar__cta { font-size: 0; padding: .2rem .55rem; }
  .xbar__cta span { font-size: .85rem; }
}

/* ---------- Home hero ---------- */
.xhero { background: var(--x-navy); text-align: center; }
.xhero__media { position: absolute; inset: 0; z-index: -2; }
.xhero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.xhero__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 50% 52%, rgba(6,12,28,.62) 0%, rgba(6,12,28,.25) 70%, transparent 100%),
    linear-gradient(180deg, rgba(6,12,28,.35) 0%, rgba(6,12,28,0) 35%, rgba(6,12,28,.55) 80%, rgba(9,18,42,1) 100%); }
.xhero__inner { padding-top: calc(var(--nav-h) + clamp(16px, 4vh, 48px)); }
.xhero__title { margin: 0 auto; max-width: min(520px, 84vw, 54vh); line-height: 0; }
.xhero__title img { width: 100%; height: auto; filter: drop-shadow(0 4px 30px rgba(0,0,0,.55)); }
.xhero__eve { margin-top: clamp(1rem, 2.6vh, 2rem); }
.xhero__label { font-family: var(--x-serif); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--x-cream); }
.xhero__kicker { margin-top: .5rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.72rem, 1.3vw, .9rem); color: var(--x-gold-2); }
.xhero__times { margin-top: .3rem; font-family: var(--x-serif); font-weight: 500; font-size: clamp(2.4rem, min(5.6vw, 7.5vh), 4.2rem); line-height: 1.05; color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.5); }
.xdot { color: var(--x-gold); margin: 0 .45em; font-size: .6em; vertical-align: .2em; }
.xhero__sub { margin-top: .4rem; color: rgba(255,255,255,.9); font-size: 1.05rem; }
.xhero .btn-row { margin-top: clamp(1.2rem, 3vh, 2rem); }
.xhero__care { margin: 1.4rem auto 0; max-width: 46ch; color: rgba(248,232,211,.78); font-size: .92rem; }
@media (max-width: 600px) {
  .xhero .btn-row .btn { width: 100%; }
  .xhero__times .xdot { margin: 0 .25em; }
}

/* ---------- Sections + calendar (echoes the poster) ---------- */
.xsection { background: linear-gradient(180deg, #09122a 0%, #0d1a36 100%); }
.xcal { max-width: 940px; margin: 0 auto; background: #f8f3ea; color: #14213d; border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 60px); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.xcal__head .eyebrow { color: #9b7028; }
.xcal__head .eyebrow::before { background: #9b7028; }
.xcal__head h2 { color: #14213d; }
.xcal__list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.xcal__row { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid #e2d6bf; }
.xcal__when { font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: #9b7028; padding-top: .15rem; }
.xcal__what strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #14213d; line-height: 1.3; }
.xcal__what span { display: block; color: #4a5468; font-size: .95rem; margin-top: .15rem; }
.xcal__row--eve { background: linear-gradient(90deg, rgba(214,170,92,.18), rgba(214,170,92,0)); margin: 0 calc(-1 * clamp(14px, 2vw, 22px)); padding-inline: clamp(14px, 2vw, 22px); border-radius: 12px; border-bottom-color: transparent; }
.xcal__foot { margin-top: 1.8rem; text-align: center; }
.xcal__foot p { font-family: var(--font-display); font-weight: 600; color: #14213d; font-size: 1.05rem; }
.xcal__foot .btn-row { justify-content: center; align-items: center; margin-top: 1rem; gap: 1rem 1.6rem; }
.xcal__foot .textlink { color: #8a6322; font-weight: 600; }
.btn-xnavy { --_bg: #14213d; --_fg: #f8e8d3; box-shadow: 0 10px 24px rgba(20,33,61,.25); }
.btn-xnavy:hover { background: #22386a; box-shadow: 0 16px 32px rgba(20,33,61,.35); }
@media (max-width: 600px) {
  .xcal__row { grid-template-columns: 1fr; gap: .25rem; }
}

/* ---------- Christmas Eve service times ---------- */
.xtimes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 940px; margin: 0 auto; }
.xtime { position: relative; text-align: center; padding: 2rem 1.4rem 1.8rem; border-radius: var(--radius); background: linear-gradient(180deg, #17274a 0%, #111e3a 100%); border: 1px solid rgba(214,170,92,.28); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.xtime::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: linear-gradient(90deg, transparent, var(--x-gold-2), transparent); }
.xtime__k { display: block; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--x-gold-2); }
.xtime__v { display: block; font-family: var(--x-serif); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.4rem); color: #fff; line-height: 1.1; margin-top: .3rem; }
.xtime__s { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .92rem; }
.xtime--care { border-color: rgba(214,170,92,.6); }
.xtime--care .xtime__s { color: var(--x-gold-2); font-weight: 600; }
.xcare { text-align: center; margin: 1.4rem auto 0; max-width: 52ch; color: var(--ink-soft); }
@media (max-width: 700px) { .xtimes { grid-template-columns: 1fr; gap: 1rem; } }

.xart img { object-position: 50% 30%; }

/* ---------- Pop-up ---------- */
.xpop {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(4,8,20,.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease;
}
.xpop[hidden] { display: none; }
.xpop.is-open { opacity: 1; }
.xpop__card {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #0e1a33; border: 1px solid rgba(214,170,92,.35); border-radius: 22px; box-shadow: 0 40px 90px rgba(0,0,0,.6);
  transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.xpop.is-open .xpop__card { transform: none; }
.xpop__art { aspect-ratio: 16 / 9; background-size: cover; background-position: 50% 30%; display: grid; place-items: center; position: relative; border-radius: 21px 21px 0 0; overflow: hidden; }
.xpop__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,28,.15), rgba(6,12,28,.35) 60%, #0e1a33 100%); }
.xpop__art img { position: relative; z-index: 1; width: 72%; height: auto; filter: drop-shadow(0 3px 18px rgba(0,0,0,.6)); }
.xpop__body { padding: .4rem clamp(22px, 5vw, 36px) 1.8rem; text-align: center; }
.xpop__kicker { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-gold-2); }
.xpop__body h2 { margin-top: .5rem; font-size: clamp(1.45rem, 4.6vw, 1.85rem); color: #fff; }
.xpop__times { margin-top: .3rem; font-family: var(--x-serif); font-weight: 600; font-size: clamp(1.9rem, 6vw, 2.4rem); color: var(--x-cream); white-space: pre; }
.xpop__note { margin: .5rem auto 0; max-width: 40ch; color: var(--ink-soft); font-size: .95rem; }
.xpop__go { margin-top: 1.3rem; width: 100%; }
.xpop__later { margin-top: .7rem; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.xpop__later:hover { color: #fff; }
.xpop__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(6,12,28,.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.xpop__x:hover { background: rgba(6,12,28,.85); }

/* =====================================================================
   MOTION LAYER (v1.6.0) — animated key art, snowfall, glints, lights.
   All of it switches off under prefers-reduced-motion (bottom of file).
   ===================================================================== */

/* Animated key art (Higgsfield loop) over the still image; fades in once playing */
.xhero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1.6s ease; }
.xhero__video.is-on { opacity: 1; }

/* Snow canvas */
.xsnow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.xhero .xsnow { z-index: -1; }
body.xmas-on .pagehero .xsnow { z-index: 0; }
.xpop__art .xsnow { z-index: 2; }

/* Gold glint sweeping across "The Light Has Come" (masked to the lettering) */
.xhero__title { position: relative; }
.xhero__title::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/christmas/light-has-come-title.svg") center / contain no-repeat;
          mask: url("../img/christmas/light-has-come-title.svg") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,250,235,.95) 50%, transparent 62%) -160% 0 / 250% 100% no-repeat;
  mix-blend-mode: screen; animation: xglint 7s ease-in-out 1.2s infinite;
}
@keyframes xglint { 0% { background-position: -160% 0; } 35%, 100% { background-position: 260% 0; } }

/* Twinkling sparkles around the title */
.xspark { position: absolute; width: 16px; height: 16px; pointer-events: none; background: #fff6df;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 6px rgba(255,236,190,.95)); opacity: 0; animation: xspark 4.6s ease-in-out infinite; }
.xspark:nth-of-type(1) { top: 6%;  left: -6%; animation-delay: .4s; }
.xspark:nth-of-type(2) { top: 30%; right: -7%; width: 11px; height: 11px; animation-delay: 1.9s; }
.xspark:nth-of-type(3) { bottom: 18%; left: 2%; width: 9px; height: 9px; animation-delay: 3.1s; }
.xspark:nth-of-type(4) { top: -4%; right: 16%; width: 12px; height: 12px; animation-delay: 2.5s; }
@keyframes xspark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.4) rotate(90deg); } }

/* Hero times + labels glide in */
.xhero__times { background: linear-gradient(90deg, #fff 0%, #fff 40%, #f6dfae 50%, #fff 60%, #fff 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: xtimesheen 9s linear 2s infinite; }
.xhero__times .xdot { -webkit-text-fill-color: var(--x-gold); animation: xdot 2.4s ease-in-out infinite; display: inline-block; }
.xhero__times .xdot + .xdot, .xhero__times .xdot:nth-of-type(2) { animation-delay: 1.2s; }
@keyframes xtimesheen { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
@keyframes xdot { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* Banner: a slow light sweep */
.xbar { overflow: hidden; }
.xbar::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(235,203,143,.16) 50%, transparent 100%) -100% 0 / 40% 100% no-repeat;
  animation: xbarsweep 8s ease-in-out infinite; }
@keyframes xbarsweep { 0% { background-position: -60% 0; } 60%, 100% { background-position: 160% 0; } }

/* Gold button shimmer (primary buttons only) */
body.xmas-on .btn:not(.btn-ghost-light):not(.btn-outline):not(.btn-white):not(.btn-xnavy) { position: relative; overflow: hidden; }
body.xmas-on .btn:not(.btn-ghost-light):not(.btn-outline):not(.btn-white):not(.btn-xnavy)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg);
  animation: xbtn 5.5s ease-in-out infinite; }
@keyframes xbtn { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Ornament divider (star between two gold rules) above Christmas section headings */
.xcal__head, .xsection .center { position: relative; }
.xcal__head::before, .xsection .center::before {
  content: ""; display: block; width: 150px; height: 18px; margin: 0 0 1rem;
  background:
    linear-gradient(var(--x-gold), var(--x-gold)) left 50% / 58px 1px no-repeat,
    linear-gradient(var(--x-gold), var(--x-gold)) right 50% / 58px 1px no-repeat,
    radial-gradient(circle, #f3d9a4 0 3px, transparent 3.5px) center / 18px 18px no-repeat;
}
.xsection .center::before { margin-inline: auto; }
.xcal__head::before { background:
    linear-gradient(#b8893a, #b8893a) left 50% / 58px 1px no-repeat,
    linear-gradient(#b8893a, #b8893a) right 50% / 58px 1px no-repeat,
    radial-gradient(circle, #b8893a 0 3px, transparent 3.5px) center / 18px 18px no-repeat; }

/* Service-time cards: lift on hover, the 4 PM (childcare) card glows */
.xtime { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.xtime:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(214,170,92,.5); }
.xtime--care { animation: xglow 3.6s ease-in-out infinite; }
@keyframes xglow { 0%, 100% { box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 rgba(214,170,92,0); } 50% { box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 34px rgba(214,170,92,.35); } }

/* Calendar Christmas Eve row: a twinkling star */
.xcal__row--eve .xcal__when::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: .45rem; vertical-align: -1px; background: #c4964a;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: xtwinkle 3.2s ease-in-out infinite; }

/* String of Christmas lights along the top of the footer */
body.xmas-on .footer { position: relative; }
.xlights { position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; justify-content: space-between; padding: 0 1vw; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 22px at 50% -6px, transparent 21px, rgba(214,170,92,.45) 22px, transparent 23px) 0 0 / calc(100% / 24) 34px repeat-x; }
.xlights i { position: relative; flex: 0 0 auto; width: 9px; height: 14px; margin-top: 12px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: #f3d9a4; box-shadow: 0 0 10px 2px rgba(243,217,164,.7); animation: xbulb 2.6s ease-in-out infinite; }
.xlights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 5px; border-radius: 1px; background: #3b4a6b; }
.xlights i:nth-child(odd) { margin-top: 15px; }
.xlights i:nth-child(4n+2) { background: #e4505a; box-shadow: 0 0 10px 2px rgba(228,80,90,.6); animation-delay: .7s; }
.xlights i:nth-child(4n+3) { background: #fff4dc; box-shadow: 0 0 10px 2px rgba(255,244,220,.7); animation-delay: 1.3s; }
.xlights i:nth-child(4n)   { background: #5fb98a; box-shadow: 0 0 10px 2px rgba(95,185,138,.6); animation-delay: 1.9s; }
.xlights i:nth-child(n+25) { display: none; }
@media (min-width: 900px) { .xlights i:nth-child(n+25) { display: block; } }
@keyframes xbulb { 0%, 100% { opacity: 1; filter: brightness(1.1); } 50% { opacity: .45; filter: brightness(.7); box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  .xbar__star { animation: none; }
  .xpop, .xpop__card { transition: none; }
  .xhero__video, .xsnow { display: none; }
  .xhero__title::after, .xspark, .xbar::before, .xtime--care, .xlights i, .xcal__row--eve .xcal__when::before,
  .xhero__times .xdot, body.xmas-on .btn::after { animation: none !important; }
  .xhero__title::after, .xspark, body.xmas-on .btn::after { display: none; }
  .xhero__times { animation: none; color: #fff; background: none; }
}
