/* ==========================================================================
   BCNYC — 07 How it works
   ========================================================================== */

.bcnyc.bcnyc-how {
  margin: 0;
  background: var(--bcnyc-bg);
}

.bcnyc .bcnyc-how__head {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.bcnyc .bcnyc-how__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

/* Hairline that links the three steps */
.bcnyc .bcnyc-how__steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 0;
  height: 1px;
  background: var(--bcnyc-line);
}

.bcnyc .bcnyc-how__step {
  position: relative;
  margin: 0;
  padding: 0;
}

.bcnyc .bcnyc-how__num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--bcnyc-sky);
  border-radius: 50%;
  background: #FFFFFF;
  font-family: var(--bcnyc-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--bcnyc-navy);
}

.bcnyc .bcnyc-how__title {
  margin: 28px 0 12px;
  font-size: 21px;
}

.bcnyc .bcnyc-how__text {
  max-width: 340px;
}

.bcnyc .bcnyc-how__cta {
  margin-top: clamp(40px, 5vw, 56px);
}

@media (max-width: 767px) {
  .bcnyc .bcnyc-how__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .bcnyc .bcnyc-how__steps::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .bcnyc .bcnyc-how__step {
    padding-left: 80px;
  }

  .bcnyc .bcnyc-how__num {
    position: absolute;
    left: 0;
    top: 0;
  }

  .bcnyc .bcnyc-how__title {
    margin-top: 14px;
  }

  .bcnyc .bcnyc-how__cta .bcnyc-btn {
    width: 100%;
  }
}
