/* Christmas homepage skin (index-christmas-option1.php).
   Loads after /homepage-redesign/styles.css and only restyles; every rule is
   scoped to .hp-christmas so the live homepage is untouched.
   Colours and type follow the "Christmas at CF Brand V2" guide (2026-11-20):
   the dark evergreen social graphics for the hero, the Winter Ivory /
   champagne ones for the light band, and Muted Sage as the third look. */

.hp-christmas {
  /* brand palette */
  --xm-fir: #101F20;        /* Midnight Fir: darkest background */
  --xm-spruce: #1E3735;     /* Blue Spruce: primary evergreen */
  --xm-pine: #35544B;       /* Pine Needle: foliage, secondary fills */
  --xm-sage: #77887A;       /* Muted Sage */
  --xm-bronze: #62452F;     /* Smoked Bronze: small text on light (8.3:1 on ivory) */
  --xm-antique: #9D6A36;    /* Antique Gold */
  --xm-ribbon: #C99249;     /* Ribbon Gold: primary accent */
  --xm-candle: #ECC17A;     /* Candlelight: glows, highlights */
  --xm-taupe: #8B775F;      /* Warm Taupe: display type on ivory (large only) */
  --xm-sand: #C5B298;       /* Champagne Sand */
  --xm-linen: #E3D6C3;      /* Frosted Linen: light background */
  --xm-ivory: #F6EFE2;      /* Winter Ivory: title on dark */
  --xm-serif: "Cormorant Garamond", Georgia, serif;
}

/* Display type: tall serif capitals, like YOU'RE INVITED / CELEBRATE WITH US */
.hp-christmas .xmas-season h2,
.hp-christmas .xmas-card h3,
.hp-christmas .xmas-hero-line,
.hp-christmas .xmas-countdown {
  font-family: var(--xm-serif);
}

/* ---------- Hero: dark evergreen with candlelight ---------- */
.hp-christmas .xmas-hero { background: var(--xm-fir); isolation: isolate; text-align: center; }
.hp-christmas .xmas-hero .hero-poster,
.hp-christmas .xmas-hero .hero-video { filter: saturate(.55) brightness(.8); }

/* evergreen colour grade over the footage */
.hp-christmas .xmas-grade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 55, 53, .78), rgba(16, 31, 32, .88));
}
.hp-christmas .xmas-hero .hero-shade {
  z-index: 1;
  background: radial-gradient(ellipse at 50% 46%, rgba(16, 31, 32, .15), rgba(16, 31, 32, .7) 75%);
}

/* soft out-of-focus candlelight, as in the social graphics */
.hp-christmas .xmas-bokeh { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hp-christmas .xmas-bokeh i {
  position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 193, 122, .55) 0%, rgba(236, 193, 122, .28) 45%, rgba(236, 193, 122, 0) 70%);
  filter: blur(1px);
  animation: xmas-bokeh 11s ease-in-out infinite alternate;
}
@keyframes xmas-bokeh {
  0%   { transform: translate(0, 0) scale(.9); opacity: .35; }
  50%  { opacity: .9; }
  100% { transform: translate(14px, -22px) scale(1.08); opacity: .5; }
}

/* twinkling four-point stars */
.hp-christmas .xmas-stars { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hp-christmas .xmas-stars svg {
  position: absolute; color: var(--xm-candle);
  filter: drop-shadow(0 0 6px rgba(236, 193, 122, .85));
  animation: xmas-twinkle 4.2s ease-in-out infinite;
}
@keyframes xmas-twinkle {
  0%, 100% { opacity: .1; transform: scale(.55) rotate(0deg); }
  45%      { opacity: .9; transform: scale(1) rotate(45deg); }
  60%      { opacity: .75; transform: scale(.9) rotate(45deg); }
}

.hp-christmas .xmas-snow { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

/* The site header is fixed and 90px tall, and the hero starts under it, so
   the top padding always clears the header plus a gap. (5.5rem on phones left
   "You're invited" touching the header on a zoomed iPhone, 2026-11-20.) */
.hp-christmas .xmas-hero .hero-copy { z-index: 3; display: flex; flex-direction: column; align-items: center; padding-top: max(10vh, calc(90px + 2.5rem)); }
.hp-christmas .xmas-hero-kicker {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 0 1.4rem; color: var(--xm-candle);
  font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase;
}
.hp-christmas .xmas-hero-kicker::before,
.hp-christmas .xmas-hero-kicker::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: .6; }
.hp-christmas .xmas-hero h1.xmas-logo { max-width: none; margin: 0; line-height: 0; font-size: 1rem; }
.hp-christmas .xmas-logo img {
  width: min(760px, 60vw); height: auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .35));
}
.hp-christmas .xmas-hero-line {
  margin: 1.6rem 0 0; color: var(--xm-ivory);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-wrap: balance;
}
.hp-christmas .xmas-hero .hero-lead { max-width: 560px; margin: .8rem auto 1.8rem; color: rgba(246, 239, 226, .82); }
.hp-christmas .xmas-hero .hero-actions { justify-content: center; }

.hp-christmas .button-gold { background: var(--xm-ribbon); color: var(--xm-fir); box-shadow: 0 10px 30px rgba(201, 146, 73, .25); }
.hp-christmas a.button-gold { color: var(--xm-fir); }
.hp-christmas .button-gold:hover { background: var(--xm-candle); box-shadow: 0 14px 34px rgba(236, 193, 122, .38); }
.hp-christmas .xmas-hero .button-ghost { box-shadow: inset 0 0 0 1px rgba(246, 239, 226, .6); color: var(--xm-ivory); }
.hp-christmas .xmas-hero .button-ghost:hover { background: rgba(246, 239, 226, .1); }

/* pause control for the moving snow (WCAG 2.2.2) */
.hp-christmas .xmas-snow-toggle {
  position: absolute; z-index: 4; right: clamp(1rem, 3vw, 2rem); bottom: 4.6rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border: 1px solid rgba(246, 239, 226, .35); border-radius: 999px;
  background: rgba(16, 31, 32, .5); color: var(--xm-ivory); backdrop-filter: blur(6px);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.hp-christmas .xmas-snow-toggle:hover { background: rgba(16, 31, 32, .75); border-color: rgba(246, 239, 226, .6); }
.hp-christmas .xmas-snow-toggle:focus-visible { outline: 2px solid var(--xm-candle); outline-offset: 3px; }
.hp-christmas .xmas-snow-toggle-icon { font-size: .9rem; line-height: 1; }

/* gold fairy lights along the bottom of the hero */
.hp-christmas .xmas-lights {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='26'%3E%3Cpath d='M0 6 Q32 24 64 6' fill='none' stroke='%239D6A36' stroke-opacity='.55' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 64px 26px;
}
.hp-christmas .xmas-lights i { position: relative; flex: 0 0 64px; height: 100%; }
.hp-christmas .xmas-lights i::after {
  content: ""; position: absolute; left: 50%; top: 13px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #fff3d6;
  box-shadow: 0 0 6px 2px rgba(236, 193, 122, .95), 0 0 18px 6px rgba(236, 193, 122, .4);
  animation: xmas-bulb 3s ease-in-out infinite;
}
.hp-christmas .xmas-lights i:nth-child(3n+2)::after { animation-delay: 1s; }
.hp-christmas .xmas-lights i:nth-child(3n+3)::after { animation-delay: 2s; }
.hp-christmas .xmas-lights i:nth-child(4n)::after { animation-duration: 3.8s; }
.hp-christmas .xmas-lights i:nth-child(5n)::after { animation-duration: 2.3s; }
@keyframes xmas-bulb {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; box-shadow: 0 0 3px 1px rgba(236, 193, 122, .6); }
}

/* ---------- Action rail ---------- */
.hp-christmas .action-rail-icon { background: var(--xm-linen); color: var(--xm-spruce); }
.hp-christmas .action-rail a:hover .action-rail-icon { background: var(--xm-spruce); color: var(--xm-ivory); }
.hp-christmas .action-rail a:hover strong { color: var(--xm-pine); }

/* ---------- "Celebrate with us" band: the ivory / champagne look ---------- */
.hp-christmas .xmas-season {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 4.5rem) clamp(5rem, 9vw, 8rem);
  background: var(--xm-linen) url(/img/christmas-2026/christmas-bg-1920.webp) center / cover no-repeat;
  color: var(--xm-fir);
}
@media (max-width: 700px) {
  .hp-christmas .xmas-season { background-image: url(/img/christmas-2026/christmas-bg-960.webp); }
}
.hp-christmas .xmas-season-head { max-width: 820px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.hp-christmas .xmas-season-star { width: 24px; height: 24px; color: var(--xm-antique); margin: 0 auto 1rem; animation: xmas-spin 9s ease-in-out infinite; }
@keyframes xmas-spin { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.8); } }
.hp-christmas .xmas-season-kicker { margin: 0 0 .7rem; color: var(--xm-bronze); font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.hp-christmas .xmas-season h2 {
  margin: 0; color: var(--xm-bronze); font-weight: 500; letter-spacing: .04em; line-height: 1;
  text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 4.8rem);
}
.hp-christmas .xmas-countdown {
  display: inline-flex; align-items: baseline; gap: .5rem; margin: 1.5rem 0 0;
  padding: .45rem 1.3rem; border: 1px solid var(--xm-sand); border-radius: 999px;
  background: rgba(246, 239, 226, .75); color: var(--xm-fir); font-size: 1.2rem; font-style: italic; font-weight: 500;
}
.hp-christmas .xmas-countdown strong { font-style: normal; font-weight: 600; color: var(--xm-antique); font-size: 1.6rem; font-feature-settings: "lnum"; }

.hp-christmas .xmas-cards { max-width: var(--max); margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.hp-christmas .xmas-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; }
.hp-christmas .xmas-cards--1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.hp-christmas .xmas-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--xm-ivory);
  box-shadow: 0 1px 0 var(--xm-sand), 0 18px 40px rgba(98, 69, 47, .14);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease;
}
.hp-christmas .xmas-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--xm-sand), 0 28px 54px rgba(98, 69, 47, .22); }
.hp-christmas .xmas-card-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; }

/* Sermon series: the taupe logo on the champagne texture (the ivory look) */
.hp-christmas .xmas-card--series .xmas-card-art {
  background: var(--xm-linen) url(/img/christmas-2026/christmas-bg-960.webp) center / cover;
}
.hp-christmas .xmas-card--series .xmas-card-logo { position: relative; width: 82%; height: auto; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.hp-christmas .xmas-card--series:hover .xmas-card-logo { transform: scale(1.04); }

/* Christmas Eve: ivory wordmark on evergreen, like the "Christmas Eve" graphic */
.hp-christmas .xmas-card--christmaseve .xmas-card-art {
  background:
    radial-gradient(circle at 18% 22%, rgba(236, 193, 122, .35), transparent 22%),
    radial-gradient(circle at 84% 78%, rgba(236, 193, 122, .3), transparent 26%),
    radial-gradient(circle at 74% 16%, rgba(236, 193, 122, .18), transparent 14%),
    linear-gradient(160deg, var(--xm-spruce), var(--xm-fir));
}
.hp-christmas .xmas-card--christmaseve .xmas-card-logo { position: relative; width: 84%; height: auto; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.hp-christmas .xmas-card--christmaseve:hover .xmas-card-logo { transform: scale(1.04); }

/* Holiday Schedule: the Muted Sage look */
.hp-christmas .xmas-card--holiday .xmas-card-art {
  background:
    radial-gradient(circle at 50% 55%, rgba(246, 239, 226, .3), transparent 55%),
    linear-gradient(160deg, var(--xm-sage), var(--xm-pine));
}
.hp-christmas .xmas-card-ornament { display: block; width: 74px; color: var(--xm-ivory); transform-origin: 50% 0; animation: xmas-swing 3.6s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(16, 31, 32, .35)); }
.hp-christmas .xmas-card-ornament svg { display: block; width: 100%; height: auto; }
@keyframes xmas-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

.hp-christmas .xmas-card-copy { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.75rem; }
.hp-christmas .xmas-card-kicker { margin: 0 0 .55rem; color: var(--xm-bronze); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hp-christmas .xmas-card h3 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 2.2vw, 1.95rem); font-weight: 600; line-height: 1.05; color: var(--xm-fir); }
.hp-christmas .xmas-card h3 a:hover { color: var(--xm-pine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hp-christmas .xmas-card-copy > p:not(.xmas-card-kicker) { margin: 0 0 1.1rem; color: #3f4a46; font-size: .9rem; line-height: 1.55; }
.hp-christmas .xmas-card-times { margin: -.2rem 0 1.2rem; display: grid; gap: .35rem; }
.hp-christmas .xmas-card-times div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .35rem; border-bottom: 1px dashed var(--xm-sand); font-size: .86rem; }
.hp-christmas .xmas-card-times dt { font-weight: 600; color: var(--xm-fir); }
.hp-christmas .xmas-card-times dd { margin: 0; font-weight: 800; color: var(--xm-bronze); }
.hp-christmas .xmas-card-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: .4rem; align-items: center;
  padding: .7rem 1.2rem; border-radius: 999px; background: var(--xm-spruce); color: var(--xm-ivory) !important;
  font-size: .74rem; font-weight: 800; transition: background .25s ease, transform .25s ease;
}
.hp-christmas .xmas-card-link span { transition: transform .25s ease; }
.hp-christmas .xmas-card-link:hover { background: var(--xm-pine); transform: translateY(-2px); }
.hp-christmas .xmas-card-link:hover span { transform: translateX(3px); }

/* ---------- Locations: Midnight Fir ---------- */
.hp-christmas .locations.section-dark { background: var(--xm-fir); }
.hp-christmas .service-times-xmas { margin-top: .25rem; padding-top: .55rem !important; border-top: 1px dashed rgba(236, 193, 122, .35) !important; }
.hp-christmas .service-times-xmas dt { color: var(--xm-candle) !important; }
.hp-christmas .service-times-xmas dt small { margin-left: .35rem; font-size: .7rem; font-weight: 600; opacity: .8; }
.hp-christmas .service-times-xmas dd { color: var(--xm-candle) !important; }

/* ---------- Light sections: Winter Ivory ---------- */
.hp-christmas .section-light { background: var(--xm-ivory); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hp-christmas .xmas-cards,
  .hp-christmas .xmas-cards--2 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 767px) {
  .hp-christmas .xmas-logo img { width: 88vw; }
  .hp-christmas .xmas-hero .hero-copy { padding-top: calc(90px + 2.25rem); padding-bottom: 5rem; }
  .hp-christmas .xmas-hero-kicker { font-size: .64rem; }
  .hp-christmas .xmas-hero-line { font-size: 1.2rem; }
  /* left side on phones: the chat bubble sits bottom-right */
  .hp-christmas .xmas-snow-toggle { bottom: 3.1rem; right: auto; left: .75rem; padding: .35rem .7rem; font-size: .62rem; }
  .hp-christmas .xmas-lights { height: 36px; }
}

/* ---------- Reduced motion: keep the look, stop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .hp-christmas .xmas-bokeh i,
  .hp-christmas .xmas-stars svg,
  .hp-christmas .xmas-lights i::after,
  .hp-christmas .xmas-season-star,
  .hp-christmas .xmas-card-ornament { animation: none !important; }
  .hp-christmas .xmas-stars svg { opacity: .7; }
  .hp-christmas .xmas-bokeh i { opacity: .6; }
  .hp-christmas .xmas-snow { display: none; }
}
/* the snow toggle also pauses the other ambient motion */
.hp-christmas.is-still .xmas-bokeh i,
.hp-christmas.is-still .xmas-stars svg,
.hp-christmas.is-still .xmas-lights i::after,
.hp-christmas.is-still .xmas-card-ornament { animation-play-state: paused; }
