/* ============================================================
   SERVICES — Figma 78:7582. One list (no Music / Film split: the
   services apply to both), as a grid of rows like the lists:
   NAME (18px uppercase) ........ +   / thin line under each.
   2 per row on desktop and tablet, 1 on phone.
   "+" opens the text under the name (js/services.js) with the same
   slide-open, "+" → "-" and hover as the Music / Film rows.
   ============================================================ */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 2 per row: 3 rows of 2 */
  column-gap: var(--space-stack);                 /* 16px (Figma) */
  row-gap: var(--space-stack);
  align-items: start;
}

.service { border-bottom: var(--line-thin); }

.service__head {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.75rem var(--space-stack) 0;       /* 16px text → line (Figma); 12px right of the +, like the rows */
  cursor: pointer;
}
.service__head:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.service__name {
  font-size: var(--fs-text);                      /* 18px Book */
  line-height: var(--lh-body);
  text-transform: uppercase;
}
.service__icon {
  /* no padding on the + itself: it must turn around its own centre, as in the rows */
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

/* Text: collapsed, slides open like a row detail */
.service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.service__body > div { min-height: 0; overflow: hidden; }
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__text {
  margin: 0;
  padding-bottom: var(--space-stack);
  max-width: 24.25rem;                            /* 388px, like the row texts */
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service.is-open .service__text { opacity: 1; transition-delay: 0.1s; }
.service.is-open .service__name { font-weight: var(--fw-medium); }   /* like an open row */

/* Hover (mouse only): "+" turns a quarter, text a touch bolder — as the rows */
@media (hover: hover) and (pointer: fine) {
  .service:not(.is-open) .service__head:hover .service__icon { transform: rotate(90deg); }
  .service:not(.is-open) .service__head:hover .service__name { -webkit-text-stroke: var(--hover-bold-row) currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  .service__body, .service__text, .service__icon { transition: none; }
}

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