/* Service rows shared by the homepage and services page. */

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  display: flex;
  gap: 1.75rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.service-marker {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--accent);
  font-size: 24px;
}

.service-card:nth-child(3n + 2) .service-marker {
  background: var(--peach);
  color: var(--charcoal);
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

@media (max-width: 400px) {
  .service-card {
    gap: 1rem;
  }

}

@media print {
  .service-card {
    break-inside: avoid;
  }
}
