/* =====================================================================
   Home page "Why choose us" (index.php, section.why-v2)
   Dark section (like the hero) with text on the left and a 2 x 2
   checkerboard of photos and highlight cards on the right.
   Uses brand tokens from header-modern.css, .section-eyebrow from
   services.css and .hero-btn from hero.css.
   ===================================================================== */
.why-v2 {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(45% 60% at 100% 0%, rgba(232, 49, 138, 0.18), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(106, 61, 240, 0.22), transparent 70%),
    #0b0c17;
}
.why-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* dot pattern, fading out toward the edges */
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 10%, transparent 70%);
}
/* soft glowing rings behind the photo grid */
.why-v2::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -180px;
  z-index: -1;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  translate: 0 -50%;
  background:
    radial-gradient(circle, transparent 54%, rgba(232, 49, 138, 0.1) 54.3%, transparent 55%),
    radial-gradient(circle, transparent 68%, rgba(106, 61, 240, 0.12) 68.3%, transparent 69%),
    radial-gradient(circle, transparent 40%, rgba(255, 122, 61, 0.08) 40.3%, transparent 41%);
  pointer-events: none;
}
.why-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

/* ---------- Text ---------- */
.why-v2 .section-eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #f0abfc;
}
.why-v2 .why-title {
  margin: 20px 0 0;
  font-family: var(--title-font);
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
}
.why-title-grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.why-v2 .why-text {
  margin: 20px 0 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}
.why-list {
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}
.why-list li + li {
  margin-top: 12px;
}
.why-list i {
  font-size: 18px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.why-content .hero-btn {
  height: 56px;
}

/* ---------- 2 x 2 checkerboard ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 18px;
}
.why-photo {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8);
}
.why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--header-ease);
}
.why-photo:hover img {
  transform: scale(1.06);
}
.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform 450ms var(--header-ease), box-shadow 450ms var(--header-ease);
}
.why-card:hover {
  transform: translateY(-6px);
}
.why-card-grad {
  background: var(--brand-gradient);
  box-shadow: 0 30px 60px -30px rgba(232, 49, 138, 0.7);
}
/* soft light circle in the corner of the gradient card */
.why-card-grad::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.why-card-glass {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.why-card-icon {
  position: absolute;
  top: 24px;
  left: 26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 20px;
}
.why-card-grad .why-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.why-card-glass .why-card-icon {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 12px 24px -10px rgba(232, 49, 138, 0.7);
}
.why-v2 .why-card h3 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.why-v2 .why-card p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .why-container {
    gap: 48px;
  }
}
@media (max-width: 991.98px) {
  .why-v2 {
    padding: 90px 0;
  }
  .why-container {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
@media (max-width: 575.98px) {
  .why-container {
    padding: 0 20px;
  }
  .why-grid {
    gap: 12px;
    grid-auto-rows: 190px;
  }
  .why-card {
    padding: 18px;
  }
  .why-card-icon {
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
  .why-v2 .why-card h3 {
    font-size: 18px;
  }
  .why-v2 .why-card p {
    font-size: 13px;
  }
}

/* small phones: cards grow with their text, icon sits above the title (no overlap) */
@media (max-width: 575.98px) {
  .why-grid {
    grid-auto-rows: auto;
  }
  .why-photo {
    height: 200px;
  }
  .why-card {
    justify-content: flex-start;
    min-height: 200px;
  }
  .why-card-icon {
    position: static;
    margin-bottom: 14px;
  }
}

/* tablets & phones: show the photo/card grid first, then the text */
@media (max-width: 991.98px) {
  .why-grid {
    order: -1;
  }
}

/* phones: photos stretch to the same height as the card beside them */
@media (max-width: 575.98px) {
  .why-photo {
    position: relative;
    height: auto;
    min-height: 200px;
  }
  .why-photo img {
    position: absolute;
    inset: 0;
  }
}
