/* WestPom BHP — progressive motion enhancement v1.0
 * No external dependencies, fonts, cookies, images or network requests.
 * Animations are opt-in and disabled for prefers-reduced-motion.
 */
:root {
  --wpm-accent: #36b8b0;
  --wpm-accent-2: #4f85e5;
  --wpm-ease: cubic-bezier(.2,.72,.18,1);
}

/* Slim progress indicator at the top of the viewport */
.wpm-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 2147483640;
  pointer-events: none;
  background: linear-gradient(90deg, var(--wpm-accent), var(--wpm-accent-2));
  box-shadow: 0 0 10px rgb(54 184 176 / 30%);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* On-enter animation only. Elements are never pre-hidden without JavaScript. */
@keyframes wpm-enter {
  from { opacity: .18; transform: translate3d(0, 25px, 0); filter: blur(3px); }
  to   { opacity: 1;   transform: translate3d(0, 0, 0); filter: blur(0); }
}
@keyframes wpm-enter-left {
  from { opacity: .15; transform: translate3d(-25px, 0, 0); }
  to   { opacity: 1;   transform: translate3d(0, 0, 0); }
}
@keyframes wpm-drift {
  0%, 100% { transform: translate3d(0,0,0) rotate(-.3deg); }
  50%      { transform: translate3d(0,-8px,0) rotate(.3deg); }
}
@keyframes wpm-orbit {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-16px,13px) scale(1.12); }
}
@keyframes wpm-sheen {
  from { background-position: -140% 0; }
  to   { background-position: 250% 0; }
}

.wpm-in-view {
  animation: wpm-enter 790ms var(--wpm-ease) both;
  animation-delay: var(--wpm-delay, 0ms);
}
.wpm-in-view.wpm-enter-from-left {
  animation-name: wpm-enter-left;
}

/* Subtle background motion behind the hero (decorative only). */
.wpm-hero {
  position: relative;
  isolation: isolate;
}
.wpm-hero > .wpm-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
}
.wpm-ambient .wpm-orb {
  position: absolute;
  display: block;
  width: min(31vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(25px);
  opacity: .14;
  background: radial-gradient(circle, var(--wpm-accent), transparent 66%);
  animation: wpm-orbit 17s ease-in-out infinite alternate;
}
.wpm-ambient .wpm-orb:nth-child(1) { top: -18%; right: -9%; }
.wpm-ambient .wpm-orb:nth-child(2) {
  bottom: -28%; left: -12%;
  width: min(23vw, 310px);
  background: radial-gradient(circle, var(--wpm-accent-2), transparent 68%);
  animation-delay: -8s;
  animation-duration: 23s;
}

/* Gentle float on an existing hero illustration or service panel. */
.wpm-floating {
  animation: wpm-drift 9s ease-in-out infinite;
  will-change: transform;
}

/* Hover effect without overriding existing brand colors / layout */
@media (hover: hover) and (pointer: fine) {
  .wpm-hover-card {
    transition: transform 330ms var(--wpm-ease), box-shadow 330ms var(--wpm-ease), border-color 330ms ease;
    transform: translateZ(0);
  }
  .wpm-hover-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 15px 34px rgb(12 38 54 / 11%);
  }
  .wpm-hover-button {
    transition: transform 240ms var(--wpm-ease), box-shadow 240ms ease, filter 240ms ease;
  }
  .wpm-hover-button:hover {
    transform: translate3d(0, -3px, 0);
    filter: brightness(1.055);
  }
  .wpm-hover-button:active { transform: translateY(0); }
}

@media (max-width: 640px) {
  .wpm-ambient .wpm-orb { width: 250px; opacity: .1; }
  .wpm-in-view { animation-duration: 640ms; }
}

/* WCAG: no movement when the operating system requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .wpm-in-view,
  .wpm-floating,
  .wpm-ambient .wpm-orb {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .wpm-hover-card,
  .wpm-hover-button { transition: none !important; transform: none !important; }
  .wpm-scroll-progress { display: none !important; }
}
