/*
 * Homepage Services section.
 * Typography-led editorial index; no cards, icons, imagery, or JavaScript.
 */

.osm-services {
  background:
    linear-gradient(180deg, var(--osm-color-bg) 0%, var(--osm-color-surface) 100%);
  color: var(--osm-color-text-primary);
  padding-block: var(--osm-section-space);
}

.osm-services__header {
  display: grid;
  gap: var(--osm-space-4);
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 0.65fr);
}

.osm-services__title {
  color: var(--osm-color-text-primary);
  font-size: var(--osm-text-h2);
  max-width: 12ch;
}

.osm-services__intro {
  align-self: end;
  color: var(--osm-color-text-secondary);
  max-width: var(--osm-measure-narrow);
}

.osm-services__list {
  border-top: 1px solid var(--osm-color-border);
  display: grid;
  list-style: none;
  margin: var(--osm-space-8) 0 0;
  padding: 0;
}

.osm-service-item {
  border-bottom: 1px solid var(--osm-color-border);
}

.osm-service {
  display: grid;
  gap: var(--osm-space-4);
  grid-template-columns: 5rem minmax(12rem, 0.55fr) minmax(18rem, 1fr);
  padding-block: var(--osm-space-5);
}

.osm-service__number {
  color: var(--osm-color-accent);
  font-size: var(--osm-text-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--osm-line-caption);
}

.osm-service__title {
  color: var(--osm-color-text-primary);
  font-family: var(--osm-font-display);
  font-size: var(--osm-text-h4);
  font-weight: 400;
  line-height: var(--osm-line-heading);
  margin: 0;
}

.osm-service__description {
  color: var(--osm-color-text-secondary);
  max-width: var(--osm-measure-narrow);
}

.osm-services__footer {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-block-start: var(--osm-space-6);
}

@media (max-width: 980px) {
  .osm-services__header,
  .osm-service {
    grid-template-columns: 1fr;
  }

  .osm-services__title {
    max-width: 14ch;
  }

  .osm-service {
    gap: var(--osm-space-2);
  }
}

@media (max-width: 781px) {
  .osm-services {
    padding-block: var(--osm-section-space-sm);
  }

  .osm-services__list {
    margin-block-start: var(--osm-space-6);
  }

  .osm-service {
    padding-block: var(--osm-space-4);
  }

  .osm-service__number {
    font-size: var(--osm-text-body);
  }

  .osm-services__footer {
    align-items: stretch;
    justify-content: stretch;
  }
}
