/* Seasonal garland on the home hero. */
.hero-winter {
  --winter-gold: #ffe4a8;
  --winter-ice: #b7eeff;
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.hero-winter-lights {
  position: absolute;
  inset: 3px max(3%, calc((100% - 1420px) / 2)) auto;
  display: flex;
  justify-content: space-around;
  height: 24px;
  padding: 8px 0 0;
  border-bottom: 1px solid #e8c58580;
  border-radius: 0 0 50% 50%;
  box-shadow: 0 5px 12px -8px #f4c679bb;
}

.hero-winter-lights span {
  position: relative;
  top: 12px;
  width: 7px;
  height: 11px;
  border-radius: 3px 3px 55% 55%;
  background: linear-gradient(#fff5d5, #ffd17e 75%);
  box-shadow: 0 0 6px 1px #ffdb86a0, 0 0 16px 3px #ffd17e55;
}

.hero-winter-lights span::before {
  position: absolute;
  inset: -3px 1px auto;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: #d3b178;
  content: "";
}

.hero-winter-lights span:nth-child(3n) {
  height: 9px;
  background: linear-gradient(#fffbea, #ffe2aa 75%);
}

.hero-winter-lights span:nth-child(-n+2),
.hero-winter-lights span:nth-last-child(-n+2) { top: 5px; }

.hero-winter-lights span:nth-child(3),
.hero-winter-lights span:nth-last-child(3) { top: 8px; }

.hero-winter-ornaments {
  position: absolute;
  inset: 24px max(3%, calc((100% - 1420px) / 2)) auto;
  height: 48px;
}

.hero-winter-ornaments span {
  position: absolute;
  top: 15px;
}

.hero-winter-ornaments span::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 17px;
  background: linear-gradient(#d5b16b80, #edd79dc9);
  content: "";
}

.hero-winter-bauble {
  left: 12%;
  width: 19px;
  aspect-ratio: 1;
  border: 1px solid #b0f2ffbd;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, #e0fbff, #63c0e0 19%, #214a85 59%, #51388c 87%);
  box-shadow: 0 0 12px #61cfff65, inset 0 0 5px #d5faff58;
}

.hero-winter-bauble:last-child {
  right: 12%;
  left: auto;
  width: 23px;
  border-color: #e4d7ffbd;
  background: radial-gradient(circle at 31% 26%, #faf4ff, #a795ed 19%, #50398b 58%, #214a85 87%);
  box-shadow: 0 0 15px #a386ff75, inset 0 0 5px #e4d7ff58;
}

.hero-winter-star {
  left: 50%;
  color: var(--winter-gold);
  font: 30px/1 system-ui, sans-serif;
  text-shadow: 0 0 14px #ffe4a8aa;
  transform: translateX(-50%);
}

.hero-winter-snow {
  position: absolute;
  inset: 0;
}

.hero-winter-snow span {
  position: absolute;
  color: var(--winter-ice);
  font: 31px/1 system-ui, sans-serif;
  text-shadow: 0 0 11px #78d5ffa8;
}

.hero-winter-snow span:nth-child(1) { top: 13%; left: 2%; }
.hero-winter-snow span:nth-child(2) { top: 24%; right: 2%; font-size: 40px; }
.hero-winter-snow span:nth-child(3) { top: 54%; left: 2.7%; font-size: 19px; opacity: .8; }
.hero-winter-snow span:nth-child(4) { top: 62%; right: 2.4%; font-size: 22px; opacity: .78; }
.hero-winter-snow span:nth-child(5) { top: 36%; left: 1.3%; font-size: 15px; opacity: .55; }
.hero-winter-snow span:nth-child(6) { top: 43%; right: 1.3%; font-size: 15px; opacity: .55; }

@media (min-width: 801px) and (max-width: 1040px) {
  .hero-winter-snow span:nth-child(n) { font-size: 21px; }
  .hero-winter-snow span:nth-child(n+5) { display: none; }
}

@media (max-width: 800px) {
  .ndw-winter .hero:has(> .hero-winter) { padding-top: 68px; }

  .hero-winter-lights { inset: 2px 4% auto; height: 20px; }
  .hero-winter-lights span:nth-child(n) { top: 8px; width: 6px; height: 9px; }
  .hero-winter-lights span:nth-child(even) { display: none; }
  .hero-winter-lights span:first-child,
  .hero-winter-lights span:nth-last-child(2) { top: 4px; }

  .hero-winter-ornaments { inset: 20px 4% auto; }
  .hero-winter-ornaments span { top: 13px; }
  .hero-winter-ornaments span::before { height: 15px; }
  .hero-winter-bauble { left: 17%; width: 15px; }
  .hero-winter-bauble:last-child { right: 17%; width: 17px; }
  .hero-winter-star { font-size: 24px; }

  .hero-winter-snow span:nth-child(1) { top: 38px; left: 4%; font-size: 22px; }
  .hero-winter-snow span:nth-child(2) { top: 34px; right: 4%; font-size: 26px; }
  .hero-winter-snow span:nth-child(n+3) { display: none; }
}

@media (max-width: 600px) {
  .ndw-winter .hero:has(> .hero-winter) .hero-actions { margin-top: 179px; }
}

.ndw-winter {
  --winter-ice: #b7eeff;
  --winter-gold: #ffe4a8;
}

.winter-weather {
  position: fixed;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.winter-weather::before,
.winter-weather::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(60px, 7vw, 126px);
  background: url("./winter-frost.png") left top / 100% 100% no-repeat;
  opacity: .8;
  content: "";
}

.winter-weather::after {
  inset: 0 0 0 auto;
  transform: scaleX(-1);
}

.winter-snowfall {
  position: absolute;
  inset: 0;
  opacity: .73;
}

.winter-snowfall span {
  position: absolute;
  top: -24px;
  left: var(--winter-x);
  width: var(--winter-size);
  height: var(--winter-size);
  border-radius: 50%;
  background: #e5faff;
  box-shadow: 0 0 5px #8bdcff;
  opacity: var(--winter-opacity);
  animation: winter-fall var(--winter-duration) var(--winter-delay) linear infinite;
}

.winter-snowfall .winter-crystal {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  color: #baf2ff;
  font: var(--winter-size)/1 system-ui, sans-serif;
  text-shadow: 0 0 7px #62befe;
}

@keyframes winter-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  45% { transform: translate3d(var(--winter-sway), 48vh, 0) rotate(45deg); }
  100% { transform: translate3d(0, calc(100vh + 48px), 0) rotate(110deg); }
}

.ndw-winter .site-header {
  box-shadow: inset 0 -1px #acdfff40, 0 7px 25px -19px #87dbffbf;
}

.ndw-winter :is(.section-kicker, .values-title .eyebrow, .banner-intro > span) {
  color: var(--winter-gold);
}

.ndw-winter .section-kicker span {
  background-color: var(--winter-gold);
  box-shadow: 0 0 7px #f6bc6e77;
}

.ndw-winter .section-block + .section-block {
  border-top: 1px solid #a7dbff30;
}

.ndw-winter :is(.service-card, .value-card, .detail-card) {
  border-color: #9bdfff55;
  background-image: linear-gradient(145deg, #70bbff14, transparent 46%);
}

.ndw-winter .inner-hero .eyebrow {
  color: var(--winter-gold);
}

.ndw-winter .contact-banner {
  border-color: #9bdfff88;
  box-shadow: 0 14px 36px #0005, inset 0 0 25px #9bddff20, 0 0 18px #65bfff28;
}

.ndw-winter .site-footer {
  border-top-color: #a7dbff69;
  background-image: radial-gradient(ellipse at 50% 0, #9ad7ff1d, transparent 63%);
}

.ndw-winter .site-footer::before {
  position: absolute;
  top: -11px;
  left: 50%;
  padding: 0 16px;
  background: #080f1c;
  color: var(--winter-gold);
  font: 20px/1 system-ui, sans-serif;
  text-shadow: 0 0 10px #ffe4a88f;
  transform: translateX(-50%);
  pointer-events: none;
  content: "\2726";
}

.mobile-menu-open .winter-weather { visibility: hidden; }

@media (max-width: 800px) {
  .winter-weather::before,
  .winter-weather::after {
    width: clamp(26px, 8.5vw, 45px);
    background-size: auto 100%;
    -webkit-mask-image: linear-gradient(to right, #000 8%, #000c 42%, transparent);
    mask-image: linear-gradient(to right, #000 8%, #000c 42%, transparent);
    opacity: .68;
  }

  .winter-snowfall span:nth-child(even) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .winter-snowfall { display: none; }
  .winter-snowfall span { animation: none; }
}
