/* =========================================================
   HOWTO PROCESS – BASE
========================================================= */

.howto-process {
  background: var(--blue-grey-50);
}

.howto-background {
  top: 0;
  position: sticky;
  height: 100vh;
  width: 100%;
  .cards-wrapper {
    height: 300vh;
    min-height: 4000px;
    max-height: 6000px;
    max-width: 1100px;
  }

  .card {
    height: 30vh;
    min-height: 300px;
    max-height: 400px;
    margin-bottom: 7rem; /*112px*/
  }
}

.howto-background img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.howto-process__header {
  max-width: 720px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.howto-process__pretitle {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--color-dark-blue);
  text-transform: uppercase;
}
.howto-process__header {
  padding: 1rem;
}
.howto-process__header h2 {
  margin-bottom: 1rem;
}

.howto-process__header p {
  opacity: 0.9;
}

/* =========================================================
   WRAPPER – STICKY CONTEXT
========================================================= */

.cards-wrapper {
  padding: 2rem;
  position: relative;
  height: 3600px;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================================================
   CARD – BASE
========================================================= */
.card {
  position: sticky;
  top: 55%;
  transform: translateY(-50%);

  height: 50vh;
  min-height: 360px;
  max-height: 450px;

  padding: 3rem;
  margin-bottom: 200px;

  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);

  display: flex;
  flex-direction: row;
  justify-content: center;

  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform, opacity;
}

/* =========================================================
   CARD TITTLE OFFSET
========================================================= */

.c1 {
  transform: translateY(calc(-100% + 20px));
}
.c2 {
  transform: translateY(calc(-100% + 20px)) translateX(+100px);
}
.c3 {
  transform: translateY(calc(-100% + 20px)) translateX(+200px);
}
.c4 {
  transform: translateY(calc(-100% + 20px)) translateX(+300px);
}
.c5 {
  transform: translateY(calc(-100% + 20px)) translateX(+400px);
}
.c6 {
  transform: translateY(calc(-100% + 20px)) translateX(+500px);
}
.c7 {
  transform: translateY(calc(-100% + 20px)) translateX(+600px);
}
.c8 {
  transform: translateY(calc(-100% + 20px)) translateX(+700px);
}

/* =========================================================
   CARD CONTENT
========================================================= */
.card__step {
  position: relative;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-dark-blue);
  background-color: #fff;
  padding: 0 10px 10px 10px;
  border-radius: 10px 10px 0 0;
}

.card_container {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card h3 {
  margin-bottom: 0.75rem;
}

.card__text {
  line-height: 1.6;
  opacity: 0.95;
}

.card__step p {
  width: 100%;
  text-align: center;
  font-weight: 300;
  margin: 0;
}

.card_image {
  flex: 2;
}

.card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* =========================================================
   ARROW
========================================================= */

.scroll-indicator {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: dotBounce 1.5s infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.arrow {
  width: 20px;
  height: 20px;
  border-bottom: 3px solid;
  border-right: 3px solid;
  transform: rotate(45deg);
}

@keyframes dotBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

@media (max-width: 1000px) {
  .card__step {
    min-width: 200px;
  }

  .c1 {
    transform: translateY(calc(-100% + 20px));
  }
  .c2 {
    transform: translateY(calc(-100% + 20px));
  }
  .c3 {
    transform: translateY(calc(-100% + 20px));
  }
  .c4 {
    transform: translateY(calc(-100% + 20px));
  }
  .c5 {
    transform: translateY(calc(-100% + 20px));
  }
  .c6 {
    transform: translateY(calc(-100% + 20px));
  }
  .c7 {
    transform: translateY(calc(-100% + 20px));
  }
  .c8 {
    transform: translateY(calc(-100% + 20px));
  }
}
@media (max-width: 768px) {
  .scroll-indicator {
    top: 30%;
  }

  .card_image {
    display: none;
  }
}
