/**
 * WhyF2F Section Styles
 * BEM block: .why-f2f
 */

/* ========================================
   SECTION WRAPPER
   ======================================== */

.why-f2f {
  padding: 77px 0 19px 0;
  background: url(../../img/why-f2f_bg.png) center / cover no-repeat;
}

/* ========================================
   HEADER
   ======================================== */

.why-f2f__header {
  display: flex;
  gap: 39px;
  margin-bottom: 48px;
  padding: 0 72px;
}

.why-f2f__marker {
  width: 39px;
  height: 71px;
}

.why-f2f__title {
  font-family: var(--subfont);
  font-weight: 700;
  font-size: 86px;
  line-height: 115%;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.why-f2f__subtitle {
  font-family: var(--subfont);
  font-weight: 400;
  font-size: 24px;
  line-height: 150%;
  color: #ffffff;
  opacity: 0.8;
}

/* ========================================
   CARDS GRID
   ======================================== */

.why-f2f__cards {
  display: flex;
  gap: 35px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-top: 32px;
}

.why-f2f__cards::-webkit-scrollbar {
  display: none;
}

.why-f2f-card {
  flex-grow: 1;
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  padding-bottom: 32px;
}

.why-f2f-card:first-child {
  margin-left: 72px;
}

.why-f2f-card:last-child {
  margin-right: 72px;
}

.why-f2f-card__body {
  position: relative;
  height: 100%;
  flex-grow: 1;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    transform 300ms ease-out,
    background 300ms ease-out,
    color 300ms ease-out;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(
      55.02% 61.21% at 50% 0%,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    url(../../img/why-f2f_card_bg.png) center / cover no-repeat;
  backdrop-filter: blur(100px);
  min-width: 342px;
}

/* ========================================
   CARD INDICATOR (green dot)
   ======================================== */

.why-f2f-card__indicator {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: #2cff80;
  opacity: 1;
  transition: opacity 300ms ease-out;
}

/* ========================================
   CARD NUMBER (rotated, shown on hover)
   ======================================== */

.why-f2f-card__number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--subfont2);
  font-weight: 400;
  font-size: 50.49px;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0;
  line-height: 20px;
  transform-origin: top left;
  transform: rotate(270deg) translate(-100%, 0);
  opacity: 0;
  transition: opacity 300ms ease-out;
}

/* ========================================
   CARD ICON SECTION
   ======================================== */

.why-f2f-card__icon-section {
  padding-top: 58px;
  padding-bottom: 49px;
}

.why-f2f-card__ellipse-wrap {
  display: flex;
  align-items: center;
}

.why-f2f-card__ellipse-line {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  flex: 1;
  transition: background-color 300ms ease-out;
}

.why-f2f-card__ellipse {
  width: 185px;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  position: relative;
  transition: background-color 300ms ease-out;
}

.why-f2f-card__icon {
  width: 100px;
  height: 100px;
  position: absolute;
  transition: opacity 300ms ease-out;
}

.why-f2f-card__icon--green {
  opacity: 1;
}

.why-f2f-card__icon--black {
  opacity: 0;
}

/* ========================================
   CARD BOTTOM BAR
   ======================================== */

.why-f2f-card__bottom {
  position: absolute;
  width: 100%;
  bottom: 0;
  height: 16px;
  background: #2ee67d;
  border-radius: 10px;
  opacity: 0;
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out;
}

/* ========================================
   CARD CONTENT
   ======================================== */

.why-f2f-card__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 24px;
  background-color: rgba(18, 18, 18, 1);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 4;
  height: 100%;
  transition: background-color 300ms ease-out;
}

.why-f2f-card__title {
  font-family: var(--subfont);
  font-size: 20px;
  font-weight: 700;
  line-height: 150%;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 300ms ease-out;
}

.why-f2f-card__desc {
  font-family: var(--userfont);
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  color: #ffffff;
  transition: color 300ms ease-out;
}

/* ========================================
   HOVER STATES
   ======================================== */

.why-f2f-card:hover .why-f2f-card__indicator {
  opacity: 0;
}

.why-f2f-card:hover .why-f2f-card__number {
  opacity: 1;
}

.why-f2f-card:hover .why-f2f-card__body {
  transform: translateY(-32px);
  background: #2cff80;
  color: #000;
  backdrop-filter: none;
}

.why-f2f-card:hover .why-f2f-card__bottom {
  opacity: 1;
  transform: translateY(-32px);
}

.why-f2f-card:hover .why-f2f-card__title,
.why-f2f-card:hover .why-f2f-card__desc {
  color: #000000;
}

.why-f2f-card:hover .why-f2f-card__content {
  background-color: #2cff80;
}

.why-f2f-card:hover .why-f2f-card__icon--black {
  opacity: 1;
}

.why-f2f-card:hover .why-f2f-card__icon--green {
  opacity: 0;
}

.why-f2f-card:hover .why-f2f-card__ellipse-line {
  background-color: rgba(0, 0, 0, 0.15);
}
.why-f2f-card:hover .why-f2f-card__ellipse {
  background-color: rgba(0, 0, 0, 0.05);
}
/* ========================================
   FOOTER INDICATORS
   ======================================== */

.why-f2f__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.why-f2f__footer--indicators {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 20px;
}

.why-f2f__footer__indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 300ms ease-out;
  cursor: default;
  pointer-events: none;
}

.why-f2f__footer__indicator--active {
  background-color: #2cff80;
}

/* ========================================
   MOBILE  (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
  .why-f2f {
    padding: 40px 32px 19px 32px;
    background: none;
  }

  .why-f2f__header {
    gap: 24px;
    margin-bottom: 32px;
    align-items: center;
    padding-left: 0;
  }

  .why-f2f__subtitle {
    display: none;
  }

  .why-f2f__marker {
    width: 20px;
    height: 44px;
  }

  .why-f2f__title {
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 0;
  }

  .why-f2f__cards {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-align: start;
    gap: 32px;
    width: 100%;
    padding-top: 0;
  }

  .why-f2f__cards::-webkit-scrollbar {
    display: none;
  }

  .why-f2f-card {
    padding-bottom: 0;
    scroll-snap-align: start;
    min-width: 100%;
  }

  .why-f2f-card__body {
    /*min-width: 311px;*/
    border-radius: 8px;
    min-width: unset;
  }

  .why-f2f-card__icon-section {
    padding: 37px 0;
  }

  .why-f2f-card__indicator {
    top: 20.81px;
    left: 20.81px;
    width: 10.9px;
    height: 10.9px;
    border-radius: 1.82px;
  }

  .why-f2f-card__ellipse {
    width: 168.11px;
    height: 168.11px;
  }

  .why-f2f-card__content {
    gap: 14.54px;
    padding: 43.62px 21.81px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .why-f2f-card__title {
    font-size: 18px;
  }

  .why-f2f__footer {
    margin-top: 24px;
  }

  .why-f2f__footer__indicator {
    cursor: pointer;
    pointer-events: auto;
  }
}
