/* Homepage Service Overview section — Pattern 1 (Service Cards Grid, full copy in card).
   Scoped to index.html only. Reuses the --qh-* tokens defined in css/hero.css (loaded
   first on this page) rather than redefining them, per Design System lock. */

.so-services {
  background: var(--qh-surface);
  padding: var(--qh-space-5) 0;
}

.so-services__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.so-services__head { max-width: 64ch; margin-bottom: var(--qh-space-4); }

.so-services__head h2 {
  margin: 0 0 var(--qh-space-2);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--qh-primary);
}

.so-services__head p {
  margin: 0;
  color: var(--qh-text-muted);
  line-height: 1.6;
}

.so-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--qh-space-3);
}

.so-card {
  background: var(--qh-white);
  border: 1px solid var(--qh-border);
  border-radius: var(--qh-radius-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); /* shadow-sm, per Design System */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}

.so-card:hover, .so-card:focus-within {
  box-shadow: var(--qh-shadow-md);
  transform: translateY(-2px);
}

.so-card__img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }

.so-card__body { padding: var(--qh-space-3); display: flex; flex-direction: column; gap: var(--qh-space-1); }

.so-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--qh-primary);
}

.so-card__text {
  margin: 0;
  color: var(--qh-text);
  line-height: 1.6;
  font-size: .9375rem;
}

.so-services__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qh-space-2);
  margin-top: var(--qh-space-4);
}

/* Outline button variant for use on light backgrounds — same tokens/radius/weight as the
   hero's qh-btn system, just dark-on-light instead of white-on-dark. No new button style. */
.qh-btn--outline-dark {
  background: transparent;
  color: var(--qh-primary);
  border: 2px solid var(--qh-primary);
}
.qh-btn--outline-dark:hover, .qh-btn--outline-dark:focus-visible {
  background: var(--qh-primary);
  color: var(--qh-white);
}

@media (min-width: 640px) {
  .so-services__grid { grid-template-columns: repeat(3, 1fr); }
}
