/* ==========================================================================
   Why Choose Us — centered enterprise feature cards
   ========================================================================== */

.why-section {
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(15, 76, 129, 0.12));
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 76, 129, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 188, 212, 0.4);
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.08);
}

.why-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(15, 76, 129, 0.06);
  border: 1px solid rgba(15, 76, 129, 0.08);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.why-card:hover .why-card__icon-wrap {
  background: rgba(0, 188, 212, 0.08);
  border-color: rgba(0, 188, 212, 0.15);
}

.why-card__icon {
  font-size: 1.375rem;
  line-height: 1;
}

.why-card__title {
  width: 100%;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #1a2332);
  text-align: center;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.why-card__desc {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted, #5a6578);
  text-align: center;
  margin: 0;
}

/* Dark theme */
[data-theme="dark"] .why-card,
html.dark .why-card {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(30, 41, 59, 0.9);
  box-shadow: none;
}

[data-theme="dark"] .why-card:hover,
html.dark .why-card:hover {
  border-color: rgba(0, 188, 212, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .why-card__icon-wrap,
html.dark .why-card__icon-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .why-card:hover .why-card__icon-wrap,
html.dark .why-card:hover .why-card__icon-wrap {
  background: rgba(0, 188, 212, 0.1);
  border-color: rgba(0, 188, 212, 0.2);
}

[data-theme="dark"] .why-card__title,
html.dark .why-card__title {
  color: #f1f5f9;
}

[data-theme="dark"] .why-card__desc,
html.dark .why-card__desc {
  color: #94a3b8;
}

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

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

  .why-card {
    padding: 1.5rem;
  }
}
