/* Florida Drone Experts - holiday theme (home page only)
   Light strings under the sticky header and across the top of the footer,
   plus a GPU-composited snowfall layer. 2026-11-30. */

.fdx-lights,
.fdx-snow { pointer-events: none; }

/* ============================================================
   1. LIGHT STRINGS
   ============================================================ */

.fdx-lights {
  --cell: 46px;
  --sag: 16px;
  --bw: 9px;
  --bh: 15px;
  --wire: rgba(255, 255, 255, .52);

  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: calc(var(--sag) + var(--bh) + 6px);
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  overflow: hidden;
  z-index: 3;
  contain: layout paint;
  transition: opacity .25s ease;
}

/* second string sits just inside the top edge of the dark footer */
.fdx-lights.fdx-lights--footer {
  top: 0;
  --wire: rgba(255, 255, 255, .38);
}

.fdx-lights i {
  position: relative;
  display: block;
  flex: 0 0 var(--cell);
  width: var(--cell);
  height: var(--sag);
}

/* the sagging wire between two bulbs */
.fdx-lights i::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--sag);
  border-bottom: 2px solid var(--wire);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
}

/* the bulb, hanging from the lowest point of the sag */
.fdx-lights i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--sag) - 3px);
  width: var(--bw);
  height: var(--bh);
  margin-left: calc(var(--bw) / -2);
  border-radius: 46% 46% 50% 50% / 28% 28% 72% 72%;
  background:
    linear-gradient(rgba(26, 30, 36, .92) 0 3px, rgba(26, 30, 36, 0) 3px),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 55%),
    var(--c);
  box-shadow:
    0 0 8px 1px var(--g),
    0 0 18px 5px var(--g),
    inset 0 -3px 4px rgba(0, 0, 0, .22);
  animation: fdx-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--dly, 0s);
}

.fdx-lights i.c1 { --c: #E33B32; --g: rgba(227, 59, 50, .5); }
.fdx-lights i.c2 { --c: #22A05A; --g: rgba(34, 160, 90, .5); }
.fdx-lights i.c3 { --c: #F3B63C; --g: rgba(243, 182, 60, .55); }
.fdx-lights i.c4 { --c: #EC6A16; --g: rgba(236, 106, 22, .5); }
.fdx-lights i.c5 { --c: #FFE4B2; --g: rgba(255, 228, 178, .55); }

@keyframes fdx-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* room for the footer string */
#fde-footer { padding-top: 46px; }

/* the Xpro mobile drawer opens inside the header - get out of its way */
.fdx-navopen .fdx-lights--header { opacity: 0; }

/* ============================================================
   2. SNOWFALL
   ============================================================ */

.fdx-snow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 9;
  contain: layout paint;
}

.fdx-snow i {
  position: absolute;
  top: -8vh;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%,
      #fff 0%,
      rgba(230, 242, 255, .97) 44%,
      rgba(146, 187, 234, .78) 100%);
  box-shadow: 0 0 4px rgba(118, 162, 218, .5);
  opacity: 0;
  animation: fdx-fall var(--t) linear var(--d) infinite;
  will-change: transform;
}

@keyframes fdx-fall {
  0%   { transform: translate3d(0, 0, 0);                   opacity: 0; }
  7%   {                                                    opacity: var(--o); }
  25%  { transform: translate3d(var(--dx), 30vh, 0); }
  50%  { transform: translate3d(0, 60vh, 0); }
  75%  { transform: translate3d(calc(var(--dx) * -1), 90vh, 0); }
  93%  {                                                    opacity: var(--o); }
  100% { transform: translate3d(0, 120vh, 0);               opacity: 0; }
}

/* ============================================================
   3. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .fdx-lights { --cell: 40px; --sag: 14px; --bw: 8px; --bh: 13px; }
}

@media (max-width: 781px) {
  .fdx-lights { --cell: 33px; --sag: 11px; --bw: 7px; --bh: 11px; }
  #fde-footer { padding-top: 36px; }
  .fdx-snow i { box-shadow: none; }
}

/* ============================================================
   4. MOTION, POWER AND PRINT
   ============================================================ */

.fdx-paused .fdx-snow i,
.fdx-paused .fdx-lights i::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .fdx-snow { display: none; }
  .fdx-lights i::after { animation: none; opacity: .95; }
}

@media print {
  .fdx-snow, .fdx-lights { display: none !important; }
  #fde-footer { padding-top: 0; }
}
