/* waves.css - optional animated wave at the bottom of the hero.
   To turn it off: remove the <link> to this file AND the <div class="waves"> in the page
   (or just comment out the link - the hero falls back to the plain gradient in portal.css). */

.hero{
  --wave-blue: rgba(73,115,255,.75);   /* the blue "water" */
  --wave-fill: #eef4ff;                /* light layer - MUST equal hero background at the bottom */

  position: relative;
  overflow: hidden;
  /*padding-bottom: calc(clamp(56px,9vw,112px) + 70px); */   /* keep text clear of the wave strip */
  padding-bottom: calc(clamp(56px,9vw,112px) );
  /* Vertical gradient that ends in --wave-fill, so the wave blends into the hero with no visible seam */
  background: linear-gradient(180deg, #dce9ff 0%, #eef4ff 55%, #eef4ff 100%);  
}

.hero .container{ position: relative; z-index: 2; }

/* Wave strip */
.hero .waves{
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 150px;
  background: var(--wave-blue);   /* alpha on the colour, NOT opacity on the box, so the light layers stay solid */
  overflow: hidden;
  pointer-events: none;
  z-index: 1;  
}

.hero .waves::before,
.hero .waves::after{
  content: "";
  position: absolute;
  width: 300vw;
  height: 300vw;
  top: -65vw;
  left: 50%;
  border-radius: 44%;
  transform: translate(-50%, -75%);
}

.hero .waves::before{
  background: var(--wave-fill);
  animation: portal-waves 8s linear infinite;
}
.hero .waves::after{
  background: rgba(238,244,255,.65);
  animation: portal-waves 15s linear infinite;
}

@keyframes portal-waves{
  from{ transform: translate(-50%,-75%) rotate(0deg); }
  to  { transform: translate(-50%,-75%) rotate(360deg); }
}

@media (max-width: 767px){
  .hero .waves{ height: 100px; }
  .hero{ padding-bottom: calc(clamp(56px,9vw,112px) ); }
}

/* Respect users who prefer no motion: keep the static wave shape */
@media (prefers-reduced-motion: reduce){
  .hero .waves::before,
  .hero .waves::after{ animation: none; }
}
