@use "../../../../styles/abstracts/variables" as *;

.whyChooseUs {
  background:
    radial-gradient(circle at left, rgba(247,147,26,0.14), transparent 45%),
    #0a0a0a;
  color: #fff;
  font-family: $font-onest, sans-serif;
  padding: 6rem 1.5rem;
  position: relative;

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* ===== Header ===== */
  .header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;

    .badge {
      display: inline-block;
      padding: 0.5rem 1.2rem;
      border-radius: 999px;
      background: rgba(247,147,26,0.18);
      color: #fbbf24;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    h2 {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 800;
      margin-bottom: 1rem;
      line-height: 1.2;

      span { color: #f7931a; }
    }

    p {
      font-size: 1.05rem;
      color: #cbd5e1;
      line-height: 1.6;
    }
  }

  /* ===== Content Grid ===== */
  .content {
    display: grid;
    gap: 3rem;
    align-items: start;

    @media (min-width: 1024px) {
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
    }

    /* LEFT: Intro + Stats */
    .left {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;

      h3 {
        font-size: 1.7rem;
        font-weight: 700;
      }

      p {
        color: #cbd5e1;
        line-height: 1.7;
        max-width: 480px;
      }

      .stats {
        margin-top: 2rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;

        div {
          background: rgba(255,255,255,0.04);
          border-radius: 16px;
          padding: 1rem;
          border: 1px solid rgba(255,255,255,0.08);
          backdrop-filter: blur(12px);
          text-align: center;
          animation: float 6s ease-in-out infinite;

          strong {
            display: block;
            font-size: 1.3rem;
            font-weight: 700;
            color: #fbbf24;
          }

          span {
            font-size: 0.85rem;
            color: #9ca3af;
          }

          &:nth-child(2) { animation-delay: 0.6s; }
          &:nth-child(3) { animation-delay: 1.2s; }
          &:nth-child(4) { animation-delay: 1.8s; }
        }
      }
    }

    /* RIGHT: Feature Cards */
    .right {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

      .card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px;
        padding: 1.8rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        backdrop-filter: blur(12px);
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        &:hover {
          transform: translateY(-6px);
          box-shadow: 0 16px 36px rgba(247,147,26,0.25);
        }

        .icon {
          width: 48px;
          height: 48px;
          border-radius: 14px;
          background: linear-gradient(135deg, #f7931a, #ffd86f);
          display: flex;
          align-items: center;
          justify-content: center;
          color: #0a0a0a;
          font-size: 1.5rem;
          flex-shrink: 0;
          margin-bottom: 0.5rem;
        }

        h4 {
          font-size: 1.15rem;
          font-weight: 700;
        }

        p {
          font-size: 0.9rem;
          color: #cbd5e1;
          line-height: 1.5;
        }
      }
    }
  }
}

/* FLOATING ANIMATION */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
    gap: 2.5rem;

    .left, .right {
      text-align: center;
    }
  }
}

@media (max-width: 640px) {
  .content .right {
    grid-template-columns: 1fr;
  }

  .content .right .card {
    align-items: center;
    text-align: center;

    .icon {
      margin: 0 auto 0.5rem auto;
    }
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
