/* ===== Process page (Process.html) styles ===== */

/* ---------- Heading band ---------- */
.process-head {
  padding: 34px 16px 50px;
  border-bottom: 1px solid #ccc;
  background: #f7f7f7;
  text-align: center;
}

.process-head h1 {
  margin: 0;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  color: #111;
}

/* ---------- Steps ---------- */
.process-steps {
  max-width: 1150px;
  margin: 0 auto;
  padding: 52px 16px 0;
  list-style: none;
  overflow-x: clip; /* hides the slide-in offset so the page never scrolls sideways */
}

.step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 80px;
}

.step + .step {
  margin-top: 20px;
}

/* Even steps: text on the left, image on the right */
.step--reverse .step__media {
  order: 2;
  justify-self: end;
}

/* Screenshot with the dark number panel */
.step__media {
  display: flex;
  width: 494px;
  max-width: 100%;
  aspect-ratio: 494 / 279;
  box-sizing: border-box;
  border: 2px solid #00a8f3;
  background: #fff;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25%;
  background: #333;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: clamp(60px, 8vw, 96px);
  font-weight: 300;
  line-height: 1;
  color: #fff;
}

.step__media img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: fill; /* the live site stretches the screenshots to the box */
}

.step__text h2 {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 400;
  color: #555;
}

.step__text p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: #555;
}

/* Text sits a little lower next to the image, like the live page */
.step:not(.step--reverse) .step__text {
  margin-bottom: 60px;
}

.step--reverse .step__text {
  margin-top: 40px;
}

/* ---------- Slide-in animation (classes set by js/Process.js) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.js-reveal .reveal[data-from="left"]  { transform: translateX(-80px); }
.js-reveal .reveal[data-from="right"] { transform: translateX(80px); }

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Call to action ---------- */
.process-cta {
  padding: 40px 16px 30px;
  text-align: center;
}

.process-cta__btn {
  display: inline-block;
  width: 575px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 16px;
  border-radius: 3px;
  background: #00a8f3;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.process-cta__btn:hover,
.process-cta__btn:focus-visible {
  background: #0088c4;
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .step {
    gap: 40px;
  }
}

/* One column: image on top, text below */
@media (max-width: 760px) {
  .process-steps {
    padding-top: 30px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .step + .step {
    margin-top: 40px;
  }

  .step--reverse .step__media {
    order: 0;
    justify-self: stretch;
  }

  .step__media {
    width: 100%;
  }

  .step:not(.step--reverse) .step__text,
  .step--reverse .step__text {
    margin: 0;
  }

  .step__text h2 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .step__text p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* Shorter slide distance so nothing pokes out on small screens */
  .js-reveal .reveal[data-from="left"],
  .js-reveal .reveal[data-from="right"] {
    transform: translateY(30px);
  }
}
