/* Food Delivery App — 02 Leading + Process */

@keyframes cw-food-leading-grow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes cw-food-leading-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

.cw-food-delivery-leading-process__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.cw-food-delivery-leading-process__intro.is-revealed,
.cw-food-delivery-leading-process__process.is-revealed {
  animation: cw-food-leading-reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cw-food-delivery-leading-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;
}

.cw-food-delivery-leading-process__title-em {
  color: #e0431c;
}

.cw-food-delivery-leading-process__body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: #3a332d;
  text-wrap: pretty;
}

.cw-food-delivery-leading-process__process {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cw-food-delivery-leading-process__process-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.025em;
}

.cw-food-delivery-leading-process__process-title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #e0431c;
}

.cw-food-delivery-leading-process__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cw-food-delivery-leading-process__card {
  flex: 1 1 220px;
  min-height: 280px;
  border-radius: 26px;
  background: #fff;
  color: #141210;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  border: 0;
  text-align: left;
  font: inherit;
  overflow: hidden;
  transition:
    flex-grow 0.5s cubic-bezier(0.3, 0.7, 0.2, 1),
    background 0.35s,
    color 0.35s;
}

.cw-food-delivery-leading-process__card.is-active {
  flex-grow: 2.2;
  background: #ff5527;
  color: #fff;
}

.cw-food-delivery-leading-process__card-no {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cw-food-badge-bg, #d4f53c);
  color: var(--cw-food-badge-fg, #141210);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 14px 'Inter Tight', sans-serif;
  flex: none;
  transition: background 0.35s, color 0.35s;
}

.cw-food-delivery-leading-process__card.is-active .cw-food-delivery-leading-process__card-no {
  background: #141210;
  color: #fff;
}

.cw-food-delivery-leading-process__card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cw-food-delivery-leading-process__card-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.025em;
}

.cw-food-delivery-leading-process__card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.88;
  max-width: 380px;
}

.cw-food-delivery-leading-process__card-bar {
  display: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  margin-top: 4px;
}

.cw-food-delivery-leading-process__card.is-active .cw-food-delivery-leading-process__card-bar {
  display: block;
}

.cw-food-delivery-leading-process__card-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.cw-food-delivery-leading-process__card.is-active .cw-food-delivery-leading-process__card-bar-fill.is-animating {
  animation: cw-food-leading-grow 3.2s linear both;
}

.cw-food-delivery-leading-process__card:focus-visible {
  outline: 2px solid #141210;
  outline-offset: 3px;
}

.cw-food-delivery-leading-process__card.is-active:focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .cw-food-delivery-leading-process__card {
    transition: background 0.35s, color 0.35s;
  }

  .cw-food-delivery-leading-process__card-bar-fill.is-animating {
    animation: none;
    width: 100%;
  }

  .cw-food-delivery-leading-process__intro.is-revealed,
  .cw-food-delivery-leading-process__process.is-revealed {
    animation: none;
  }
}
