/* =========================================================
   PROCESS
   - animated progress rail on scroll (process.js)
   ========================================================= */

.hm-process{
  background:
    /* White top + bottom caps (fade to white) */
    linear-gradient(
      180deg,
      #fff 0%,
      #fff 10%,
      rgba(255,255,255,0) 26%,
      rgba(255,255,255,0) 74%,
      #fff 92%,
      #fff 100%
    ),

    /* Your existing glow */
    radial-gradient(720px 420px at 18% 20%, rgba(31,138,91,.10), transparent 60%),
    radial-gradient(720px 420px at 82% 10%, rgba(201,162,39,.10), transparent 60%);
}

.hm-process__rail{
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 54px rgba(15,23,42,.08);

  padding: 22px;
  padding-left: 74px;

  display:grid;
  gap: 14px;
}

.hm-process__rail::before{
  content:"";
  position:absolute;
  left: 34px;
  top: 26px;
  bottom: 26px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15,23,42,.10), rgba(15,23,42,.06));
}

.hm-process__progress{
  position:absolute;
  left: 34px;
  top: 26px;
  width: 4px;
  height: calc((100% - 52px) * var(--hm-progress, 0));
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hm-gold), var(--hm-green));
  box-shadow: 0 10px 26px rgba(31,138,91,.18);
}

.hm-step{
  position: relative;
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;

  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.76);

  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hm-step::before{
  content:"";
  position:absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(31,138,91,.34);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
}

.hm-step:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 66px rgba(15,23,42,.12);
  border-color: rgba(31,138,91,.22);
}

.hm-step__num{
  font-weight: 1000;
  letter-spacing: .06em;
  font-size: 18px;
  color: rgba(15,23,42,.70);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding-top: 4px;
}

.hm-step__title{
  margin: 0;
  font-size: 18px;
}

.hm-step__text{
  margin: 6px 0 0;
  color: rgba(15,23,42,.72);
  line-height: 1.7;
}

@media (max-width: 980px){
  .hm-process__rail{
    padding-left: 64px;
  }

  .hm-step{
    grid-template-columns: 56px 1fr;
  }

  /* FIX: center dots on the vertical rail for mobile */
  .hm-step::before{
    left: -39px; /* was -50px (desktop). 64px padding needs a smaller offset */
  }
}



.hm-step.is-active::before{
  background: linear-gradient(135deg, var(--hm-gold), rgba(255,224,138,.9));
  border-color: rgba(201,162,39,.55);
}
