/* Routes — redesigned "Three steps" cards (home, desktop) */

.rs-steps {
  position: relative;
}

/* Dashed route line connecting the steps (desktop only) */
@media (min-width: 768px) {
  .rs-steps::before {
    content: "";
    position: absolute;
    top: 3.1rem;
    left: 6%;
    right: 6%;
    border-top: 2px dashed rgba(255, 255, 255, 0.22);
    pointer-events: none;
  }
  /* Stagger the middle card for editorial rhythm */
  .rs-steps > *:nth-child(2) {
    transform: translateY(1.75rem);
  }
}

.rs-step {
  isolation: isolate;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) {
  .rs-step {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }
}
.rs-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.65);
}

/* Readability scrim: strong at the bottom, light at the top so photos show */
.rs-step-scrim {
  background: linear-gradient(
    to top,
    rgba(8, 14, 40, 0.94) 0%,
    rgba(8, 14, 40, 0.5) 32%,
    rgba(8, 14, 40, 0.1) 58%,
    rgba(8, 14, 40, 0.22) 100%
  );
}

/* Ghost step numeral */
.rs-step-num {
  position: absolute;
  top: 1.15rem;
  left: 1.35rem;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 18px rgba(8, 14, 40, 0.35);
  transition: color 0.4s ease;
}
.rs-step:hover .rs-step-num {
  color: rgba(255, 122, 26, 0.9);
  -webkit-text-stroke-color: transparent;
}

/* Icon chip */
.rs-step-chip {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #ff8a3a 0%, #ff7a1a 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px -10px rgba(255, 122, 26, 0.65);
}

/* Orange accent line that grows on hover */
.rs-step::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #ff7a1a, #ffb27a);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rs-step:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .rs-step,
  .rs-step::after,
  .rs-step-num {
    transition: none;
  }
}
