/* ==========================================================================
   Services — a capability index, not an icon grid. Six rows, each with a
   restrained numeral, a title, a two-line description, and a small abstract
   data mark instead of a stock icon. Stays on the paper background the
   Founder section introduced.
   ========================================================================== */

.services {
  background-color: var(--color-paper);
  color: var(--color-ink-on-paper);
  /* See founder.css — regular slate/brass fail contrast on paper. */
  --color-slate: var(--color-slate-on-paper);
  --color-brass: var(--color-brass-on-paper);
}

.services-header {
  display: grid;
  /* The text column was a bare 1fr, which stretched it across most of the
     1600px container even though the heading itself caps at 30rem (below) —
     the image ended up anchored to the far right edge of that wide column,
     400px+ away from where the actual text stopped. Bounding this column
     close to the heading's own max-width keeps the two columns hugging
     together instead of splitting apart with dead space between them. */
  grid-template-columns: minmax(20rem, 34rem) minmax(18rem, 24rem);
  gap: var(--space-8);
  align-items: stretch;
  margin-bottom: var(--space-8);
}

.services-title {
  margin-top: var(--space-2);
  max-width: 30rem;
}

.services-image-frame {
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.services-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-list {
  border-top: 1px solid var(--color-hairline-paper);
}

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
  padding-inline: var(--space-3);
  margin-inline: calc(var(--space-3) * -1);
  border-bottom: 1px solid var(--color-hairline-paper);
  border-radius: var(--radius-md);
  transition: background-color var(--duration-micro) var(--ease-response),
              transform var(--duration-micro) var(--ease-response),
              box-shadow var(--duration-micro) var(--ease-response);
}
.service-row:hover {
  background-color: rgba(20, 22, 26, 0.03);
  transform: translateY(-2px);
  /* Soft and hover-only — the row stays flat/hairline at rest, this is a
     transient lift, not a permanent card shadow. */
  box-shadow: var(--shadow-hover-light);
}

.service-index {
  font-family: var(--font-sans);
  font-size: var(--text-index);
  font-weight: 600;
  color: var(--color-slate);
  transition: color var(--duration-micro) var(--ease-response);
}
.service-row:hover .service-index {
  color: var(--color-brass);
}

.service-title {
  font-family: var(--font-sans);
  font-size: var(--text-card-title);
  font-weight: 600;
  color: var(--color-ink-on-paper);
}

.service-description {
  margin-top: var(--space-1);
  font-size: var(--text-body);
  color: var(--color-slate);
  max-width: 34rem;
}

/* Abstract bar mark — a financial/data cue, not a stock icon. Deliberately
   unlabeled: it's decoration, not a claim about any specific figure. */
.service-visual {
  display: none;
  color: var(--color-brass);
  opacity: 0.55;
  transition: opacity var(--duration-micro) var(--ease-response);
}
.service-visual svg {
  width: 56px;
  height: 36px;
}
.service-row:hover .service-visual {
  opacity: 0.9;
}

@media (min-width: 640px) {
  .service-visual {
    display: block;
  }
}

/* Stacks through tablet, not just phone — matches the Founder grid's
   breakpoint so both sections switch layout mode at the same point instead
   of drifting in and out of sync with each other while scrolling. */
@media (max-width: 1023px) {
  .services-header {
    grid-template-columns: 1fr;
  }
  .services-image-frame {
    /* Stacked layout has no heading-column height to stretch to match, so
       this is the one place the frame needs its own explicit ratio again. */
    max-width: 100%;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 767px) {
  .service-row {
    grid-template-columns: 2.5rem 1fr;
    /* The numeral should anchor to the title, not sit centered against the
       full title+description block once the description wraps to 3-4 lines
       at this width. */
    align-items: start;
  }
  .service-index {
    padding-top: 0.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-row:hover {
    transform: none;
  }
}
