/* ── Why Choose Us — premium pillar cards ── */

.why-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(132, 204, 22, 0.07) 0%, transparent 55%),
    var(--light);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 83, 45, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 83, 45, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  padding: 28px 24px 26px;
  text-align: left;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--why-accent, linear-gradient(90deg, var(--lime), var(--blue)));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(132, 204, 22, 0.25);
  box-shadow:
    0 8px 16px rgba(15, 23, 42, 0.06),
    0 20px 48px rgba(15, 23, 42, 0.1);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card__icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  background: var(--why-icon-bg);
  box-shadow: var(--why-icon-shadow);
  transition: transform 0.28s ease;
}

.why-card:hover .why-card__icon {
  transform: scale(1.06) rotate(-2deg);
}

.why-card__icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.why-card__index {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.12);
}

.why-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
  line-height: 1.3;
}

.why-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* Per-card themes */
.why-card--custom {
  --why-accent: linear-gradient(90deg, #84cc16, #65a30d);
  --why-icon-bg: linear-gradient(145deg, #14532d 0%, #166534 55%, #15803d 100%);
  --why-icon-shadow: 0 12px 28px rgba(20, 83, 45, 0.28);
}

.why-card--expertise {
  --why-accent: linear-gradient(90deg, #0ea5e9, #0284c7);
  --why-icon-bg: linear-gradient(145deg, #0c4a6e 0%, #0369a1 55%, #0284c7 100%);
  --why-icon-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
}

.why-card--tech {
  --why-accent: linear-gradient(90deg, #a3e635, #84cc16);
  --why-icon-bg: linear-gradient(145deg, #1e293b 0%, #334155 55%, #475569 100%);
  --why-icon-shadow: 0 12px 28px rgba(30, 41, 59, 0.25);
}

.why-card--design {
  --why-accent: linear-gradient(90deg, #34d399, #10b981);
  --why-icon-bg: linear-gradient(145deg, #064e3b 0%, #047857 55%, #059669 100%);
  --why-icon-shadow: 0 12px 28px rgba(4, 120, 87, 0.28);
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-card {
    padding: 24px 20px;
  }
}
