/**
 * GW Values Grid Widget Styles
 */

.gw-values-grid {
  padding: 3rem 0;
  background-color: hsl(var(--gw-secondary));
}

@media (min-width: 768px) {
  .gw-values-grid {
    padding: 5rem 0;
  }
}

.gw-values-grid__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .gw-values-grid__header {
    margin-bottom: 3.5rem;
  }
}

.gw-values-grid__title {
  margin-bottom: 1.25rem;
}

.gw-values-grid__description {
  font-family: var(--gw-font-sans);
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--gw-muted-foreground));
  max-width: 48rem;
  margin: 0 auto;
}

.gw-values-grid__description p {
  margin: 0 0 1em 0;
}

.gw-values-grid__description p:last-child {
  margin-bottom: 0;
}

.gw-values-grid__items {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

/* 2 columns on small screens */
@media (min-width: 480px) {
  .gw-values-grid__items--cols-2,
  .gw-values-grid__items--cols-3,
  .gw-values-grid__items--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3-4 columns on tablet */
@media (min-width: 768px) {
  .gw-values-grid__items--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gw-values-grid__items--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Full columns on desktop */
@media (min-width: 1024px) {
  .gw-values-grid__items--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gw-values-grid__items--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gw-values-grid__items--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gw-values-grid__item {
  text-align: center;
}

.gw-values-grid__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: hsl(var(--gw-burgundy-light));
  margin-bottom: 1.25rem;
}

.gw-values-grid__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--gw-primary));
}

.gw-values-grid__item-title {
  font-family: var(--gw-font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: hsl(var(--gw-foreground));
  margin: 0 0 0.75rem 0;
}

.gw-values-grid__item-description {
  font-family: var(--gw-font-sans);
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--gw-muted-foreground));
  margin: 0;
}
