/**
 * Window Smart Home - About Us template
 * Stats band, values grid and team grid. The "story" section reuses the
 * .wsh-about__* styles from home.css, and the CTA band / testimonials
 * sections are the exact same components used on the Homepage.
 */

/* ==========================================================================
   1. Stats band
   ========================================================================== */

.wsh-stats {
  background: var(--wsh-gradient-navy);
  padding-block: var(--wsh-space-16);
}

.wsh-stats__grid {
  display: grid;
  gap: var(--wsh-space-8);
  grid-template-columns: repeat(4, 1fr);
}

.wsh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wsh-space-2);
  text-align: center;
}

.wsh-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--wsh-space-2);
  border: 1px solid var(--wsh-hairline);
  border-radius: var(--wsh-radius-circle);
  background: rgba(255, 255, 255, 0.08);
  color: var(--wsh-green);
}

.wsh-stat__value {
  background: linear-gradient(180deg, #1ba2fa 0%, #7df27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--wsh-blue);
  font-size: var(--wsh-fs-h2);
  font-weight: var(--wsh-fw-bold);
  line-height: 1.2;
}

.wsh-stat__label {
  color: var(--wsh-on-dark-70);
  font-size: var(--wsh-fs-sm);
  font-weight: var(--wsh-fw-medium);
}

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

/* ==========================================================================
   2. Values
   ========================================================================== */

.wsh-values__grid {
  display: grid;
  gap: var(--wsh-space-8);
  grid-template-columns: repeat(3, 1fr);
}

.wsh-value-card {
  padding: var(--wsh-space-8);
  border-radius: var(--wsh-radius-xl);
  background: var(--wsh-grey-50);
  text-align: center;
  transition:
    box-shadow var(--wsh-transition),
    transform var(--wsh-transition);
}

.wsh-value-card:hover {
  box-shadow: var(--wsh-shadow-lg);
  transform: translateY(-4px);
}

.wsh-value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--wsh-space-4);
  border-radius: var(--wsh-radius-circle);
  background: var(--wsh-blue);
  color: var(--wsh-white);
  transition: background-color var(--wsh-transition);
}

.wsh-value-card:hover .wsh-value-card__icon {
  background: var(--wsh-green);
}

.wsh-value-card__title {
  margin: 0 0 var(--wsh-space-2);
  color: var(--wsh-ink);
  font-size: var(--wsh-fs-h5);
}

.wsh-value-card__text {
  margin: 0;
  color: var(--wsh-grey-500);
  font-size: var(--wsh-fs-sm);
  line-height: var(--wsh-lh-body);
}

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

@media (max-width: 560px) {
  .wsh-values__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. Team
   ========================================================================== */

.wsh-team__grid {
  display: grid;
  gap: var(--wsh-space-8);
  grid-template-columns: repeat(4, 1fr);
}

.wsh-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wsh-space-3);
  text-align: center;
}

.wsh-team-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--wsh-radius-circle);
  overflow: hidden;
  box-shadow: var(--wsh-shadow-md);
}

.wsh-team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wsh-transition-slow);
}

.wsh-team-card:hover .wsh-team-card__media img {
  transform: scale(1.06);
}

.wsh-team-card__name {
  color: var(--wsh-ink);
  font-weight: var(--wsh-fw-semibold);
}

.wsh-team-card__role {
  color: var(--wsh-blue);
  font-size: var(--wsh-fs-sm);
  font-weight: var(--wsh-fw-medium);
}

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

@media (max-width: 480px) {
  .wsh-team__grid {
    grid-template-columns: 1fr;
  }
}
