/**
 * PCTechComVn — Why Choose Us CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 6)
 *
 * Why section: dark gradient background, 4-col card grid, glassmorphism cards.
 * JS: scroll-reveal.js (Sprint 0)
 */

/* ═══════════════════════════════════════════════
   1. WHY SECTION WRAPPER
   ═══════════════════════════════════════════════ */
.why {
  background: linear-gradient(180deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 80px 0;
}

/* Adjust section header text for dark background */
.why .section-title {
  color: var(--white);
}

.why .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.why .section-tag {
  background: rgba(232, 135, 10, 0.2);
  color: var(--orange);
}


/* ═══════════════════════════════════════════════
   2. WHY GRID — 4 columns
   ═══════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}


/* ═══════════════════════════════════════════════
   3. WHY CARD — Glassmorphism style
   ═══════════════════════════════════════════════ */
.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════
   4. WHY CARD CONTENT
   ═══════════════════════════════════════════════ */
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--blue-light), var(--orange-light));
  color: var(--blue-dark);
  transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(5deg);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}


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

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .why-card {
    padding: 24px 20px;
  }
  
  .why-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}
