.holiday-lights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 43px;
  overflow: hidden;
  border-top: 5px solid #a92b34;
  border-image: repeating-linear-gradient(125deg, #a92b34 0 12px, #fff8ed 12px 17px, #23634b 17px 29px, #fff8ed 29px 34px) 1;
  background: linear-gradient(#f3f8f5, #fff);
}

.holiday-swag {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: start;
}

.holiday-swag::before {
  content: "";
  position: absolute;
  inset: -18px -1px auto;
  height: 35px;
  border: 2px solid #315d49;
  border-top: 0;
  border-radius: 0 0 50% 50%;
}

.holiday-swag span {
  --bulb: #d4464e;
  position: relative;
  width: 8px;
  height: 12px;
  margin-top: 20px;
  border-radius: 45% 45% 55% 55%;
  background: radial-gradient(circle at 35% 27%, #fff9 0 10%, transparent 41%), var(--bulb);
  box-shadow: 0 0 5px var(--bulb);
  transform: rotate(-12deg);
}

.holiday-swag span::before {
  content: "";
  position: absolute;
  inset: -4px 1px auto;
  height: 5px;
  border-radius: 2px 2px 0 0;
  background: #315d49;
}

.holiday-swag span:is(:first-child, :last-child) { margin-top: 13px; }
.holiday-swag span:is(:nth-child(2), :nth-child(5)) { margin-top: 18px; }
.holiday-swag span:nth-child(4n + 2) { --bulb: #31966b; }
.holiday-swag span:nth-child(4n + 3) { --bulb: #db9a2f; }
.holiday-swag span:nth-child(4n + 4) { --bulb: #4288be; }
.holiday-swag span:nth-child(even) { transform: rotate(12deg); }

.holiday-snow { display: none; }

@media (max-width: 640px) {
  .holiday-lights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-swag:nth-child(n + 3) { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .holiday-swag span { animation: holiday-glow 3.2s ease-in-out infinite; }
  .holiday-swag span:nth-child(3n) { animation-delay: -1.2s; }
  .holiday-swag span:nth-child(3n + 1) { animation-delay: -2.4s; }
  .holiday-swag:nth-child(even) span:nth-child(2n) { animation-delay: -3.2s; }

  .holiday-snow {
    display: block;
    position: fixed;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .holiday-snow span {
    position: absolute;
    top: 0;
    left: var(--flake-x);
    color: #537f92;
    text-shadow: 0 0 4px #fff;
    font-size: 17px;
    opacity: 0;
    animation: holiday-drift var(--fall-time, 16s) linear var(--fall-delay, 0s) infinite;
  }

  .holiday-snow span:nth-child(3n) { font-size: 21px; }
  .holiday-snow span:nth-child(3n + 1) { font-size: 13px; }
  .holiday-snow span:nth-child(1) { --flake-x: 3%; --fall-time: 14s; --fall-delay: -7s; }
  .holiday-snow span:nth-child(2) { --flake-x: 9%; --fall-time: 15s; --fall-delay: -1s; }
  .holiday-snow span:nth-child(3) { --flake-x: 15%; --fall-time: 16s; --fall-delay: -8s; }
  .holiday-snow span:nth-child(4) { --flake-x: 22%; --fall-time: 17s; --fall-delay: -2s; }
  .holiday-snow span:nth-child(5) { --flake-x: 29%; --fall-time: 18s; --fall-delay: -9s; }
  .holiday-snow span:nth-child(6) { --flake-x: 35%; --fall-time: 19s; --fall-delay: -3s; }
  .holiday-snow span:nth-child(7) { --flake-x: 42%; --fall-time: 13s; --fall-delay: -10s; }
  .holiday-snow span:nth-child(8) { --flake-x: 47%; --fall-time: 14s; --fall-delay: -4s; }
  .holiday-snow span:nth-child(9) { --flake-x: 52%; --fall-time: 15s; --fall-delay: -11s; }
  .holiday-snow span:nth-child(10) { --flake-x: 58%; --fall-time: 16s; --fall-delay: -5s; }
  .holiday-snow span:nth-child(11) { --flake-x: 64%; --fall-time: 17s; --fall-delay: -12s; }
  .holiday-snow span:nth-child(12) { --flake-x: 70%; --fall-time: 18s; --fall-delay: -6s; }
  .holiday-snow span:nth-child(13) { --flake-x: 77%; --fall-time: 19s; --fall-delay: -0s; }
  .holiday-snow span:nth-child(14) { --flake-x: 83%; --fall-time: 13s; --fall-delay: -7s; }
  .holiday-snow span:nth-child(15) { --flake-x: 90%; --fall-time: 14s; --fall-delay: -1s; }
  .holiday-snow span:nth-child(16) { --flake-x: 96%; --fall-time: 15s; --fall-delay: -8s; }
}

@keyframes holiday-glow {
  0%, 100% { opacity: .38; filter: brightness(.85); box-shadow: 0 0 1px var(--bulb); }
  30% { opacity: 1; filter: brightness(1.5); box-shadow: 0 0 10px 3px var(--bulb); }
  52% { opacity: .58; filter: brightness(1); box-shadow: 0 0 3px var(--bulb); }
  68% { opacity: .95; filter: brightness(1.25); box-shadow: 0 0 7px 1px var(--bulb); }
}

@keyframes holiday-drift {
  0% { opacity: 0; transform: translate3d(0, -18px, 0) rotate(0); }
  14%, 76% { opacity: .61; }
  45% { transform: translate3d(16px, 45vh, 0) rotate(65deg); }
  100% { opacity: 0; transform: translate3d(-8px, calc(100vh + 24px), 0) rotate(140deg); }
}

/* Keep the decorative wrap on the card perimeter. */
.service-summary,
.service-card {
  position: relative;
}

.service-summary::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: repeating-linear-gradient(132deg, #b42d3b 0 8px, #fff6e8 8px 11px, #20714e 11px 19px, #fff6e8 19px 22px);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@media (max-width: 600px) {
  .holiday-snow span:nth-child(2n) { display: none; }
}

.holiday-card-trim {
  position: absolute;
  z-index: 1;
  inset: 3px 4px auto;
  height: 17px;
  display: flex;
  justify-content: space-around;
  align-items: start;
  border-radius: 5px 5px 0 0;
  pointer-events: none;
}

.holiday-card-trim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, #ecfaff 0 8px, #b3dce8 14px, #f7fdff 23px);
  clip-path: polygon(0 0, 100% 0, 100% 26%, 96% 26%, 94% 84%, 92% 26%, 87% 28%, 85% 58%, 83% 25%, 77% 27%, 75% 100%, 73% 26%, 67% 25%, 65% 58%, 63% 27%, 56% 24%, 54% 83%, 52% 26%, 46% 27%, 44% 64%, 42% 24%, 37% 26%, 35% 93%, 33% 24%, 26% 27%, 24% 63%, 22% 26%, 16% 26%, 14% 83%, 12% 26%, 7% 26%, 5% 61%, 3% 26%, 0 27%);
}

.holiday-card-trim > span {
  --bulb: #c83343;
  position: relative;
  width: 5px;
  height: 7px;
  margin-top: 2px;
  border-radius: 40% 40% 55% 55%;
  background: var(--bulb);
  box-shadow: 0 0 4px var(--bulb);
}

.holiday-card-trim > span:nth-child(3n + 2) { --bulb: #16865a; }
.holiday-card-trim > span:nth-child(3n) { --bulb: #c88716; }

@media (prefers-reduced-motion: no-preference) {
  .holiday-card-trim > span { animation: holiday-glow 3.2s ease-in-out infinite; }
  .holiday-card-trim > span:nth-child(3n + 2) { animation-delay: -1.1s; }
  .holiday-card-trim > span:nth-child(3n) { animation-delay: -2.2s; }
}
