/* Christmas preview — homepage banner, corner trees, and light snowfall */

.xmas-banner{
  position:relative;
  isolation:isolate;
  overflow:visible;
  color:#fff;
  text-align:center;
  padding:70px 20px 42px;
  border-top:3px solid #c9a227;
  border-bottom:3px solid #c9a227;
  background-color:#081220;
  background-image:
    linear-gradient(180deg, rgba(6,16,38,.18), rgba(6,16,38,.32)),
    url("assets/christmas/christmas.jpg");
  background-image:
    linear-gradient(180deg, rgba(6,16,38,.18), rgba(6,16,38,.32)),
    image-set(
      url("assets/christmas/christmas.webp") type("image/webp"),
      url("assets/christmas/christmas.jpg") type("image/jpeg")
    );
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
}
.xmas-inner{
  position:relative;
  z-index:2;
  overflow:visible;
  max-width:1040px;
  margin:0 auto;
  border:2px solid rgba(232,192,74,.88);
  padding:30px 56px 32px;
  background:rgba(6,14,28,.28);
  box-shadow:0 12px 36px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,236,180,.12);
}
.xmas-break{display:none}
.xmas-title{
  margin:4px 0 12px;
  line-height:1.12;
  text-align:center;
}
.xmas-title span{
  font-family:"Great Vibes",Georgia,cursive;
  font-weight:400;
  font-size:clamp(50px, 7.4vw, 88px);
  letter-spacing:.01em;
  background:linear-gradient(180deg,#fff8d4 0%,#f6e7a3 16%,#e8c04a 42%,#c9a227 60%,#f0d78c 80%,#a67c22 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:#e8c04a;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.75)) drop-shadow(0 0 18px rgba(232,192,74,.55));
}
.xmas-sub{
  margin:0 0 12px;
  color:#fff;
  font-family:Inter,system-ui,sans-serif;
  font-weight:500;
  font-size:clamp(15px, 2.1vw, 22px);
  letter-spacing:.06em;
  line-height:1.45;
  text-shadow:0 2px 10px rgba(0,0,0,.75);
}
.xmas-rule{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:0 auto;
  max-width:460px;
}
.xmas-rule span{
  flex:1;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(232,192,74,.15), rgba(232,192,74,.95), rgba(232,192,74,.15), transparent);
}
.xmas-rule-star{
  flex:0 0 auto;
  width:10px;
  height:10px;
  background:linear-gradient(180deg,#fff4c2,#e8c04a 45%,#a67c22);
  transform:rotate(45deg);
  box-shadow:0 0 8px rgba(232,192,74,.55);
}

/* Tighten the hero the same way the Thanksgiving / Mardi Gras banners do.
   Replaced by the frozen-hero rules at the bottom (clamp + xmas-photo). */

/* Fixed corner trees — stay on screen while scrolling, never capture clicks.
   Hidden until JS shows them, so they don't sit on the hero headline or Get a Quote buttons. */
.xmas-tree{
  position:fixed;
  bottom:8px;
  height:128px;
  width:auto;
  z-index:20;
  pointer-events:none;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.4));
  opacity:0;
  visibility:hidden;
  transition:opacity .45s ease, visibility .45s ease;
}
.xmas-tree-left{left:2px}
.xmas-tree-right{right:2px;transform:scaleX(-1)}
html.xmas-trees-visible .xmas-tree{
  opacity:1;
  visibility:visible;
}

.xmas-light{
  animation:xmas-twinkle 1.8s ease-in-out infinite;
  transform-box:fill-box;
  transform-origin:center;
}
.xmas-light-1{animation-delay:0s}
.xmas-light-2{animation-delay:.55s}
.xmas-light-3{animation-delay:1.1s}

@keyframes xmas-twinkle{
  0%,100%{opacity:.45;filter:drop-shadow(0 0 1px rgba(255,242,176,.4))}
  50%{opacity:1;filter:drop-shadow(0 0 4px rgba(255,242,176,.95))}
}

/* Full-viewport snowfall (canvas, starts on load) */
.xmas-snow{
  position:fixed;
  inset:0;
  z-index:21;
  pointer-events:none;
  width:100%;
  height:100%;
  display:block;
}

@media (prefers-reduced-motion:reduce){
  .xmas-snow{display:none}
  .xmas-light{animation:none;opacity:.9}
  .xmas-tree{transition:none}
}

@media (max-width:960px){
  .xmas-banner{padding:56px 16px 40px}
  .xmas-elf{width:68px}
  .xmas-inner{padding:22px 22px 24px}
  .xmas-logo-hat{width:16.5%}
  .xmas-title span{font-size:clamp(42px, 11vw, 64px)}
  .xmas-tree{height:100px;bottom:6px}
  .xmas-tree-left{left:-4px}
  .xmas-tree-right{right:-4px}
  .hero-shell #primary-nav{
    background:#0A2A5E !important;
    box-shadow:0 18px 32px rgba(0,0,0,.4);
  }
}

@media (max-width:600px){
  .xmas-banner{padding:48px 12px 34px;background-position:center 46%}
  .xmas-elf{width:46px}
  .xmas-elf-left{left:-2px}
  .xmas-elf-right{right:-2px}
  .xmas-inner{padding:18px 16px 22px}
  .xmas-logo-hat{width:17%}
  .xmas-title{margin:2px 0 10px}
  .xmas-title span{font-size:clamp(44px, 13vw, 56px)}
  .xmas-break{display:block}
  .xmas-sub{font-size:15px;letter-spacing:.03em;margin:0 0 14px;padding:0 6px}
  .xmas-rule{max-width:220px;gap:10px}
  .xmas-tree{height:72px;bottom:-2px}
  .xmas-tree-left{left:-16px}
  .xmas-tree-right{right:-16px}
}

/* Keep snowfall above page content but below the header, topbar and nav dropdown.
   The canvas lives inside .hero-shell; a stacking context here lets header z-index
   win over the snow, while the shell stays above the rest of the page and the trees. */
.hero-shell{z-index:25}
.hero-shell .topbar,
.hero-shell .flag-stripe,
.hero-shell .site-header{z-index:50;position:relative}

/* --- Frozen Christmas hero: picture lives only below the banner.
   Photo fills the hero all the way to the bottom stripe (no empty inset).
   Cover, anchored at the bottom so the team's feet sit just above the stripe.
   The Starship is lower in the artwork so its nose stays in frame when the top is cropped.
   Specificity must beat body.opt-b .hero-shell .hslide { background-position:center center }.
   Do not hide .hero-flag — the faint flag overlay stays as on the live Thanksgiving site. --- */
.hero.xmas-photo{position:relative;isolation:isolate}
.hero.xmas-photo > .hero-slides{position:absolute;inset:0;z-index:-1}
body.opt-b .hero-shell .hero.xmas-photo .hslide,
body.opt-b .hero-shell .hero.xmas-photo .hslide:first-child,
.hero.xmas-photo .hslide{
  transform:none!important;
  animation:none!important;
  transition:none!important;
  opacity:1!important;
  background-position:center bottom!important;
  background-size:cover!important;
}
.xmas-banner + .hero.xmas-photo{
  min-height:clamp(640px, calc(100vh - 120px), 960px)!important;
  padding:56px 0 72px!important;
}
@media (max-width:700px){
  .xmas-banner + .hero.xmas-photo{min-height:640px!important;padding:40px 0 260px!important}
  body.opt-b .hero-shell .hero.xmas-photo .hslide,
  body.opt-b .hero-shell .hero.xmas-photo .hslide:first-child,
  .hero.xmas-photo .hslide{background-position:66% 100%!important}
}
/* Snow caps settling on boxes and headings */
.snowcap-layer{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:40}
.snowcap{position:absolute;pointer-events:none;transform-origin:50% 62%;transform:scaleY(0);opacity:0;animation:snowcap-settle 3.5s ease-out forwards}
.snowcap svg{display:block;overflow:visible;filter:drop-shadow(0 2px 2px rgba(10,20,50,.35))}
.snowcap path{fill:#fbfdff;stroke:rgba(180,205,235,.9);stroke-width:.8}
@keyframes snowcap-settle{0%{transform:scaleY(0);opacity:0}25%{opacity:1}100%{transform:scaleY(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.snowcap{animation:none;transform:none;opacity:1}}
.snowcap-layer.settled .snowcap{animation:none;transform:none;opacity:1}
/* String of Christmas lights hung across the hero headline */
.xmas-lights{position:absolute;pointer-events:none;z-index:41}
.xmas-lights .bulb{filter:drop-shadow(0 0 7px currentColor) drop-shadow(0 0 2px currentColor);animation:bulb-twinkle 1.6s ease-in-out infinite}
@keyframes bulb-twinkle{0%,100%{opacity:1;filter:drop-shadow(0 0 9px currentColor) drop-shadow(0 0 3px currentColor) brightness(1.25)}45%{opacity:.3;filter:none brightness(.6)}55%{opacity:.3;filter:none brightness(.6)}}
@media (prefers-reduced-motion:reduce){.xmas-lights .bulb{animation:none}}

.xmas-banner-snow{
  position:absolute;
  left:-3px;
  z-index:3;
  pointer-events:none;
  overflow:visible;
}

/* Santa hat perched on the O in the Maxsoe wordmark. Do not edit the logo files. */
.logo,
.flogo-wrap{
  position:relative;
  display:inline-block;
  overflow:visible;
}
.xmas-logo-hat{
  position:absolute;
  left:76.2%;
  top:20.3%;
  width:15.5%;
  height:auto;
  transform-origin:50% 89%;
  transform:translate(-50%,-89%) rotate(-8deg);
  pointer-events:none;
  z-index:3;
  filter:drop-shadow(0 1px 1.6px rgba(0,0,0,.45));
  user-select:none;
}
.site-footer .flogo-wrap{display:inline-block;line-height:0}
.site-footer .xmas-logo-hat{width:16%}
@media (prefers-reduced-motion:reduce){
}

/* Elves sitting on the Merry Christmas box (original art, Elf-on-the-Shelf inspired). */
.xmas-elf{
  position:absolute;
  top:0;
  width:86px;
  height:auto;
  overflow:visible;
  pointer-events:none;
  z-index:5;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.4));
  user-select:none;
}
.xmas-elf-left{
  left:4px;
  transform:translateY(-49%);
}
.xmas-elf-right{
  right:4px;
  transform-origin:50% 50%;
  transform:translateY(-49%) scaleX(-1);
}
.elf-leg{
  transform-box:fill-box;
  transform-origin:50% 0;
  animation:elf-kick 3.1s ease-in-out infinite;
}
.xmas-elf-left .elf-leg-left{animation-duration:3.2s;animation-delay:0s}
.xmas-elf-left .elf-leg-right{animation-duration:2.85s;animation-delay:-1.15s}
.xmas-elf-right .elf-leg-left{animation-duration:3.35s;animation-delay:-.7s}
.xmas-elf-right .elf-leg-right{animation-duration:2.7s;animation-delay:-1.9s}
@keyframes elf-kick{
  0%,100%{transform:rotate(-11deg)}
  50%{transform:rotate(15deg)}
}
@media (prefers-reduced-motion:reduce){
  .elf-leg{animation:none}
}
