/* ========== WHY US SECTION ========== */

.why-us * {
  box-sizing: border-box;
}

.why-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 100px 24px;
  background-color: #fff;
  position: relative;
}

.why-us__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1280px;
}

/* ---------- INTRO ---------- */

.why-us__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  text-align: center;
}

.why-us__border-wrapper {
  display: flex;
  justify-content: center;
}

.why-us__border {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #28e485;
}

.why-us__tag {
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 400;
  color: #188a50;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 24px;
  white-space: nowrap;
}

.why-us__title {
  margin: 0;
  font-family: "Red Hat Display", Helvetica, sans-serif;
  font-weight: 700;
  color: #333333;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.25;
}

.why-us__title em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #333333;
}

/* ---------- LIST OF SITUATIONS ---------- */

.why-us__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.why-us__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-us__item:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 45, 181, 0.25);
  box-shadow: 0 16px 32px rgba(89, 45, 181, 0.1);
}

.why-us__item-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
  font-family: "Red Hat Display", Helvetica, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fafafa;
  background: linear-gradient(
    180deg,
    rgba(89, 45, 181, 1) 25%,
    rgba(125, 64, 255, 1) 100%
  );
}

.why-us__item-text {
  margin: 0;
  font-family: "Outfit", Helvetica, sans-serif;
  font-weight: 400;
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- REMATE ---------- */

.why-us__remate {
  margin: -16px 0 0;
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
}

.why-us__remate em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    rgba(89, 45, 181, 1) 25%,
    rgba(125, 64, 255, 1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- VIDEO ---------- */

.why-us__video {
  width: 100%;
  margin-top: 16px;
}

.why-us__video-frame {
  --whyus-progress: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 620px;
  border-radius: 32px;
  overflow: hidden;
  /*background-color: #eef0f4;*/
  /*background-image: radial-gradient(rgba(10, 10, 10, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px; */
}

.why-us__video-media {
  position: relative;
  height: 100%;
  width: calc(34% + (var(--whyus-progress) * 66%));
  max-width: 100%;
  border-radius: calc(32px - (var(--whyus-progress) * 32px));
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 30px 60px rgba(10, 10, 10, calc(0.3 - (var(--whyus-progress) * 0.3)));
  transition: box-shadow 0.3s ease;
}

.why-us__video-el,
.why-us__video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-us__play {
  position: absolute;
  left: 50%;
  bottom: -55px;
  transform: translateX(-50%) scale(calc(1 - (var(--whyus-progress) * 0.35)));
  opacity: calc(1 - var(--whyus-progress));
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease;
}

.why-us__play:hover .why-us__play-ring {
  box-shadow: 0 16px 32px rgba(89, 45, 181, 0.28);
}

.why-us__play-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.14);
  transition: box-shadow 0.3s ease;
}

.why-us__play-ring-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: whyUsSpin 16s linear infinite;
}

.why-us__play-ring-text text {
  font-family: "Outfit", Helvetica, sans-serif;
  font-size: 12.5px;
  letter-spacing: 2px;
  fill: #737373;
  text-transform: uppercase;
}

.why-us__play-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(10, 10, 10, 0.1);
}

@keyframes whyUsSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- REVEAL ANIMATION ---------- */

.why-us__reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

.why-us__reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .why-us__reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .why-us__play-ring-text {
    animation: none;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .why-us {
    padding: 80px 40px;
  }

  .why-us__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us__video-frame {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .why-us {
    padding: 60px 24px;
  }

  .why-us__container {
    gap: 40px;
  }

  .why-us__list {
    grid-template-columns: 1fr;
  }

  .why-us__video-frame {
    height: 380px;
    border-radius: 24px;
  }

  .why-us__video-media {
    width: calc(55% + (var(--whyus-progress) * 45%));
  }

  .why-us__play-ring {
    width: 88px;
    height: 88px;
  }

  .why-us__play-icon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .why-us {
    padding: 48px 16px;
  }

  .why-us__item {
    padding: 22px 18px;
  }

  .why-us__video-frame {
    height: 320px;
    border-radius: 20px;
  }

  .why-us__video-media {
    width: calc(70% + (var(--whyus-progress) * 30%));
  }
}
