/* services.html (generated by servicesIndexPage() in build/pages.js): one
   section per service category, each opened by a round icon medallion
   beside its eyebrow and H2. The cards are the shared service grid
   (components/service-grid/). */

/* Consecutive category sections share one gap instead of doubling it */
.category-section + .category-section {
  padding-top: 0;
}

/* Category heading: the medallion spans the eyebrow and H2 rows */
.section-head.category-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 0;
  align-items: center;
  max-width: none;
  text-align: left;
}

/* The medallion: a brass-tinted face inside a white ring with a hairline
   edge, like the face of a lock cylinder */
.category-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 7px solid var(--color-bg-alt);
  border-radius: 50%;
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 1px var(--color-line);
  color: var(--color-accent-deep);
}

.category-icon .icon {
  width: 32px;
  height: 32px;
}

/* Eyebrow and H2 stack in the second column, meeting at the medallion's
   middle */
.section-head.category-head .eyebrow {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  margin: 0;
}

.section-head.category-head h2 {
  grid-column: 2;
  align-self: start;
  margin-top: 12px;
}

/* Phone: a smaller medallion beside the eyebrow, and the H2 below them at
   full width, so a long category name isn't squeezed into a narrow column */
@media (max-width: 760px) {
  .section-head.category-head {
    column-gap: 14px;
  }

  .category-icon {
    grid-row: auto;
    width: 60px;
    height: 60px;
    border-width: 5px;
  }

  .category-icon .icon {
    width: 24px;
    height: 24px;
  }

  .section-head.category-head .eyebrow {
    align-self: center;
  }

  .section-head.category-head h2 {
    grid-column: 1 / -1;
    margin-top: 18px;
  }
}
