/* LKN water effects layer: rolling beads, foam rinse, glass bubbles, water sheeting.
   Added on top of the built site; every effect is decorative and ignores the pointer. */

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

/* Glass bubbles sit behind a section's content */
.fx-host { position: relative; isolation: isolate; }
.fx-host > .fx-canvas { z-index: 0; }
.fx-host > .wrap { position: relative; z-index: 1; }

/* The estimate card goes static on narrow screens; keep it a box the foam canvas can pin to */
@media (max-width: 960px) {
  #quote .estimate { position: relative; }
}

/* Water sheeting on the service cards */
.fx-sheet {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.fx-sheet__band {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 0;
  height: 46%;
  transform: translateY(-105%);
  opacity: 0;
  will-change: transform, opacity;
}
.fx-sheet__band svg { display: block; width: 100%; height: 100%; }
.fx-sheet__wave { transform: translateX(-50%); }
.fx-sheet.is-run .fx-sheet__band {
  animation: fx-sheet-fall 1.9s cubic-bezier(.42, .02, .3, 1) forwards;
}
.fx-sheet.is-run .fx-sheet__wave {
  animation: fx-sheet-ripple 1.9s linear forwards;
}
@keyframes fx-sheet-fall {
  0%   { transform: translateY(-105%); opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(232%); opacity: 0; }
}
@keyframes fx-sheet-ripple {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}

/* Beads the sheet leaves behind */
.fx-drop {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.95) 0 12%, transparent 16%),
    radial-gradient(circle at 60% 70%, rgba(160,215,255,.38) 0 18%, transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.05) 0 55%, rgba(8,16,28,.38) 78%, rgba(170,220,255,.45) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.45);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .5s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.fx-drop.is-on { opacity: .9; transform: scale(1); }
.fx-drop.is-off { opacity: 0; transform: scale(.7) translateY(6px); transition: opacity 1.4s ease, transform 1.4s ease; }

@media (prefers-reduced-motion: reduce) {
  .fx-canvas, .fx-sheet { display: none !important; }
}
