/* ═══════════════════════════════════════════════════════════════════════════
   Why Diako — homepage trust section (light, minimal, non-promotional)
   ═══════════════════════════════════════════════════════════════════════════ */

.why-diako {
  --wd-ink: #0f172a;
  --wd-muted: #64748b;
  --wd-line: rgba(15, 23, 42, 0.08);
  --wd-soft: #f7f8fa;
  --wd-card: #ffffff;
  --wd-accent: #ea580c;
  --wd-accent-soft: rgba(234, 88, 12, 0.08);
  background: var(--wd-soft);
  padding: 64px 0 72px;
  border-top: 1px solid var(--wd-line);
  border-bottom: 1px solid var(--wd-line);
}

/* Keep spacing when home-hero.css sets `.promo-section + section` */
.promo-section + .why-diako {
  padding-top: 64px;
}

.why-diako__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.why-diako__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.why-diako__eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wd-muted) !important;
}

.why-diako h2.why-diako__title,
.why-diako__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;
  font-weight: 750;
  line-height: 1.45;
  color: var(--wd-ink) !important;
  letter-spacing: -0.01em;
}

.why-diako p.why-diako__lead,
.why-diako__lead {
  margin: 0;
  font-size: 0.98rem !important;
  line-height: 1.8;
  color: var(--wd-muted) !important;
  font-family: inherit !important;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.why-diako__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.why-diako__card {
  background: var(--wd-card);
  border: 1px solid var(--wd-line);
  border-radius: 16px;
  padding: 22px 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.why-diako__card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.28);
}

.why-diako__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  background: #f1f5f9;
  margin-bottom: 4px;
  transition: background 0.25s ease, color 0.25s ease;
}

.why-diako__card:hover .why-diako__icon {
  background: var(--wd-accent-soft);
  color: var(--wd-accent);
}

.why-diako h3.why-diako__card-title,
.why-diako__card-title {
  margin: 0;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.5;
  color: var(--wd-ink) !important;
}

.why-diako p.why-diako__card-text,
.why-diako__card-text {
  margin: 0;
  font-size: 0.82rem !important;
  line-height: 1.75;
  color: var(--wd-muted) !important;
  font-family: inherit !important;
  max-width: 22ch;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.why-diako__cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.why-diako p.why-diako__cta-text,
.why-diako__cta-text {
  margin: 0;
  font-size: 0.95rem !important;
  color: var(--wd-ink) !important;
  font-weight: 500;
  font-family: inherit !important;
}

.why-diako__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--wd-ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.why-diako__cta-btn:hover {
  background: var(--wd-ink);
  border-color: var(--wd-ink);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .why-diako__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .why-diako__card:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .why-diako__card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .why-diako__card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 768px) {
  .why-diako {
    padding: 48px 0 56px;
  }

  .why-diako__header {
    margin-bottom: 28px;
  }

  .why-diako__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .why-diako__card,
  .why-diako__card:nth-child(-n + 3),
  .why-diako__card:nth-child(4),
  .why-diako__card:nth-child(5) {
    grid-column: auto;
  }

  .why-diako__card:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    justify-self: center;
    width: 100%;
  }

  .why-diako__card-text {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .why-diako {
    padding: 40px 0 48px;
  }

  .why-diako__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 2px 2px 10px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .why-diako__card,
  .why-diako__card:last-child {
    flex: 0 0 min(78vw, 260px);
    max-width: none;
    width: auto;
    grid-column: auto;
    scroll-snap-align: start;
    justify-self: stretch;
  }
}
