/* ==========================================================================
   KNEST Wave — the signature upward swoosh from the brand playbook.
   Used as a section divider and decorative accent.
   The SVG markup lives in partials/wave.blade.php; this styles placement.
   ========================================================================== */

.wave {
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.wave svg { width: 100%; height: auto; display: block; }

/* Wave used as a divider between two stacked sections */
.wave--divider { margin-block: calc(var(--section-y) * -0.4) 0; }

/* Decorative wave floating inside a hero (absolute) */
.wave--hero {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.9;
}

/* Small inline wave accent (e.g. under a heading) */
.wave-accent {
  width: 64px;
  height: 12px;
  margin-top: var(--sp-3);
}
.wave-accent path { fill: var(--brand-accent); }

@media (prefers-reduced-motion: no-preference) {
  .wave--animate path.wave__crest {
    animation: wave-drift 9s ease-in-out infinite alternate;
    transform-origin: center;
  }
}
@keyframes wave-drift {
  from { transform: translateX(-1.5%); }
  to   { transform: translateX(1.5%); }
}
