/* E-Commerce App — 02 Services & process */

@keyframes cw-ecom-services-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-ecommerce-services-process {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-ecommerce-services-process__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 60px);
}

.cw-ecommerce-services-process__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}

.cw-ecommerce-services-process__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cw-ecommerce-services-process__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #c8391a;
}

.cw-ecommerce-services-process__body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: #3a332d;
}

.cw-ecommerce-services-process__body-link {
  color: #141210;
  text-underline-offset: 3px;
}

.cw-ecommerce-services-process__body-link:hover {
  color: #e0431c;
}

.cw-ecommerce-services-process__panel {
  border-radius: 30px;
  background: #141210;
  color: #f3efe7;
  padding: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cw-ecommerce-services-process__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cw-ecommerce-services-process__panel-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.025em;
}

.cw-ecommerce-services-process__panel-title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #d4f53c;
}

.cw-ecommerce-services-process__panel-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(234, 231, 225, 0.5);
}

.cw-ecommerce-services-process__track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px 8px;
}

.cw-ecommerce-services-process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.cw-ecommerce-services-process__track-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 27px;
  height: 2px;
  background: rgba(234, 231, 225, 0.12);
  pointer-events: none;
}

.cw-ecommerce-services-process__track-fill {
  position: absolute;
  left: 10%;
  top: 27px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #e0431c, #d4f53c);
  transition: width 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
  pointer-events: none;
}

.cw-ecommerce-services-process__track-marker {
  position: absolute;
  top: 10px;
  left: 10%;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #d4f53c;
  color: #141210;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  transition: left 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
  z-index: 2;
  box-shadow: 0 10px 20px -8px rgba(212, 245, 60, 0.6);
  pointer-events: none;
}

.cw-ecommerce-services-process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(234, 231, 225, 0.45);
  font: inherit;
  text-align: center;
  z-index: 1;
}

.cw-ecommerce-services-process__step.is-reached {
  color: #f3efe7;
}

.cw-ecommerce-services-process__step.is-active {
  color: #f3efe7;
}

.cw-ecommerce-services-process__step-no {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #141210;
  border: 2px solid rgba(234, 231, 225, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 15px 'Inter Tight', sans-serif;
  transition: border-color 0.4s, opacity 0.3s;
  box-sizing: border-box;
}

.cw-ecommerce-services-process__step.is-reached .cw-ecommerce-services-process__step-no {
  border-color: #d4f53c;
}

.cw-ecommerce-services-process__step.is-active .cw-ecommerce-services-process__step-no {
  opacity: 0;
}

.cw-ecommerce-services-process__step-label {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
}

.cw-ecommerce-services-process__detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: #1f1b18;
  animation: cw-ecom-services-fade 0.4s ease-out both;
}

.cw-ecommerce-services-process__detail.is-animating {
  animation: cw-ecom-services-fade 0.4s ease-out both;
}

.cw-ecommerce-services-process__detail-no {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: #d4f53c;
}

.cw-ecommerce-services-process__detail-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cw-ecommerce-services-process__detail-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
}

.cw-ecommerce-services-process__detail-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(234, 231, 225, 0.78);
}

@media (max-width: 640px) {
  .cw-ecommerce-services-process__track-wrap {
    overflow-x: auto;
  }

  .cw-ecommerce-services-process__track {
    min-width: 520px;
  }

  .cw-ecommerce-services-process__step-label {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-ecommerce-services-process__track-fill,
  .cw-ecommerce-services-process__track-marker,
  .cw-ecommerce-services-process__step-no {
    transition: none;
  }

  .cw-ecommerce-services-process__track-marker {
    transform: translateX(-50%);
  }

  .cw-ecommerce-services-process__detail {
    animation: none;
  }
}
