/* ==========================================================
   SINGLE SERVICE PAGE
   ========================================================== */

html, body.ibe-service-body { overflow-x: clip; }
body.ibe-service-body { background: #0E0E0E; }

/* Topnav sits absolute over the banner on service pages */
body.single-ibe_service .ibe-topnav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}

/* ---------- Banner ---------- */
.svc-banner {
  position: relative;
  width: 100%;
  min-height: 720px;
  height: 100vh;
  overflow: hidden;
  background: #111;
}
.svc-banner__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.svc-banner__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.15) 40%,
      rgba(0,0,0,0.45) 62%,
      rgba(0,0,0,0.75) 80%,
      rgba(14,14,14,0.96) 94%,
      #0E0E0E 100%
    );
}
.svc-banner__caption {
  position: absolute;
  left: 50%;
  bottom: 6.5rem;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #FFFAF6;
  padding: 0 1.5rem;
  max-width: 900px;
  width: 100%;
}
.svc-banner__label {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}
.svc-banner__title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: 0;
  margin: 0 0 1.25rem;
  color: #FFFAF6;
  text-transform: uppercase;
}
.svc-banner__desc {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #FFFAF6;
  max-width: 640px;
  margin: 0 auto;
  text-wrap: pretty;
}

.svc-banner__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
}
.svc-banner__scroll .ibe-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 14px;
  display: block;
  position: relative;
}
.svc-banner__scroll .ibe-mouse::after {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 2px; height: 7px;
  background: #FFFAF6;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: svcScrollDot 1.8s ease-in-out infinite;
}
@keyframes svcScrollDot {
  0%   { transform: translate(-50%, 0);  opacity: 1; }
  70%  { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0);  opacity: 0; }
}

/* ---------- Our Process ---------- */
.svc-process {
  background: #0E0E0E;
  color: #FFFAF6;
  padding: 1rem 3rem 6rem;
  position: relative;
}
.svc-process__title {
  text-align: center;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #FFFAF6;
  letter-spacing: 0;
  margin: 0 0 4rem 0;
}

.svc-process__list {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  position: relative;
  padding-bottom: 50px;
}
.svc-process__list::before { display: none; }

.svc-step::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: #FFFAF6;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.svc-step:not(.svc-step--reverse)::before {
  left: 0;
  right: -40px;
}
.svc-step--reverse::before {
  left: -40px;
  right: 0;
}

.svc-step {
  display: grid;
  grid-template-columns: 1fr 523px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}
.svc-step--reverse { grid-template-columns: 523px 1fr; }
.svc-step--reverse .svc-step__media { order: 1; }
.svc-step--reverse .svc-step__body  { order: 2; }

.svc-step__body {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0;
}
.svc-step--reverse .svc-step__body { padding-left: 0; text-align: right; }
.svc-step--reverse .svc-step__desc { margin-left: auto; }
.svc-step:not(.svc-step--reverse) .svc-step__body { padding-right: 0; text-align: left; }

.svc-step__num {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: #FFFAF6;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 1.1rem 0;
  display: block;
}
.svc-step__name {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: #FFFAF6;
  letter-spacing: 0;
  margin: 0 0 2rem 0;
}
.svc-step__desc {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #FFFAF6;
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}

.svc-step__media {
  position: relative;
  z-index: 1;
  width: 523px;
  max-width: 100%;
  aspect-ratio: 523 / 187;
  overflow: hidden;
  background: #434142;
  justify-self: center;
}
.svc-step__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-step:hover .svc-step__image { transform: scale(1.04); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .svc-banner { min-height: 440px; }
  .svc-banner__caption { bottom: 4.5rem; padding: 0 1.25rem; }

  .svc-process { padding: 0.5rem 1.25rem 3.5rem; }
  .svc-process__title { margin-bottom: 2rem; }
  .svc-process__list { gap: 2rem; }
  .svc-step, .svc-step--reverse {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .svc-step__body,
  .svc-step--reverse .svc-step__body {
    display: contents;
  }
  .svc-step__num,
  .svc-step--reverse .svc-step__num   { order: 1; text-align: left; width: 100%; }
  .svc-step__name,
  .svc-step--reverse .svc-step__name  { order: 2; margin: 0; text-align: left; width: 100%; padding-bottom: 0.75rem; border-bottom: 1px solid #FFFAF6; }
  .svc-step__desc,
  .svc-step--reverse .svc-step__desc  { order: 3; text-align: left; margin: 0; width: 100%; }
  .svc-step__media,
  .svc-step--reverse .svc-step__media { order: 4; width: 100%; height: 187px; aspect-ratio: auto; margin: 0.5rem 0 0 0; }
  .svc-step::before { display: none; }
  .svc-process__list { padding-bottom: 40px; }
}
