/* Services hub (templates/services-hub.php). Loaded only on pages using that template. */

/* Hero pitch: this design sets the line slightly smaller than the Service page, with no width limit. */
.tpl-services-hub .hero__pitch p { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; max-width: none; }

/* Label row above the cards: "All services" on the left, the count on the right. */
.services-hub__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 20px; margin-bottom: 32px; }
.services-hub__count { font: 400 12px var(--mono); letter-spacing: .08em; color: var(--muted); }

.services-hub__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* One service: image tile on the left, title, description and link line on the right. */
.services-hub__card, .services-hub__card:visited { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; transition: transform .3s, box-shadow .3s; }
a.services-hub__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--ink); }

/* The design draws the picture as a background at 82% of the tile's width, centred. */
.services-hub__img { display: flex; align-items: center; justify-content: center; width: 120px; aspect-ratio: 1; border-radius: 14px; background: var(--paper); overflow: hidden; }
.services-hub__img img { display: block; flex: none; width: 82%; height: auto; }

.services-hub__body { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.services-hub__title { font: 400 30px/1.1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.services-hub__text { font: 300 15.5px/1.6 var(--sans); color: var(--body); text-wrap: pretty; }
.services-hub__more { margin-top: auto; padding-top: 4px; font: 500 14px var(--sans); color: var(--red); }

/* Mobile rules from the design file. */
@media (max-width: 760px) {
	.tpl-services-hub .hero__pitch { row-gap: 16px; }
	.services-hub__grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
	.services-hub__card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}
