/*
  expertise.css
  Problem cards and industry tiles. Images are content, so they have alt text
  and are not background images (1.1.1 Non-text Content).
*/

.expertise,
.peak,
.cases,
.results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-top: calc(var(--header-offset) + 1.5rem);
  padding-bottom: 3rem;
}

.expertise-intro {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.expertise-intro h2 .quiet {
  color: var(--text-muted);
}

.block-label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
}

.problem-grid,
.industry-grid {
  display: grid;
  gap: 4px;
  background: var(--bg-muted);
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.problem-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.problem-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.problem-card div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.75rem;
}

.problem-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
}

.problem-card p {
  color: var(--text-muted);
}

.industry-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: 0.75rem;
}

.industry-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 9.3rem;
  padding: 1rem;
  background: var(--bg);
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
}

.industry-grid img {
  width: 32px;
  height: 32px;
}

.expertise .text-link,
.peak .text-link {
  align-self: flex-end;
}

@media (max-width: 980px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .problem-card img {
    height: 200px;
  }

  .problem-card h4 {
    font-size: 1.125rem;
  }
}
