/*
 * Block: Diensten (.services). Green rounded container with a service tab list and a photo card.
 * Block-local custom properties (no system token exists):
 *   --svc-rule   hairline above the footer line
 *   --svc-faded  inactive numbers/names and the caption subline: 4.90:1 on green (AA), between
 *                --ink-faded-on-green (3.27:1, too low for small text) and --ink-on-green (hover)
 */

.panel--green.services {
	--svc-rule: color-mix(in srgb, var(--beige) 16%, transparent);
	--svc-faded: #88A99F;
	padding: clamp(64px, 8vw, 120px) clamp(24px, 5.6vw, 84px);
}

.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); gap: clamp(40px, 5vw, 96px); align-items: start; }

/* Tab list */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4px, 1.4vw, 22px); }
.svc-tab { all: unset; cursor: pointer; display: grid; grid-template-columns: clamp(40px, 6.2vw, 92px) auto; align-items: center; justify-content: start; padding: 4px 0; }
.svc-tab .num { font-size: var(--fs-small); color: var(--svc-faded); transition: color .25s; }
.svc-tab .word { position: relative; display: inline-block; }
.svc-tab .name { display: block; font-family: var(--serif); font-size: clamp(40px, 5.4vw, 84px); line-height: 1.14; letter-spacing: -0.02em; color: var(--svc-faded); transition: color .25s; white-space: nowrap; }
.svc-tab[aria-selected="true"] .name, .svc-tab[aria-selected="true"] .num { color: var(--beige); }
.svc-tab:hover .name { color: var(--ink-on-green); }
.svc-tab[aria-selected="true"]:hover .name { color: var(--beige); }
.svc-tab:focus-visible { outline: none; }
.svc-tab:focus-visible .name { outline: 2px solid var(--beige); outline-offset: 6px; border-radius: 6px; }

/* Tags and the small arrow, in the service colour, around the active word */
.svc-tag, .svc-tab .go { position: absolute; opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .25s, transform .25s; pointer-events: none; }
.svc-tag { font: 300 var(--fs-small)/1 var(--sans); color: var(--green); background: var(--c, var(--web)); padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.svc-tag.t1 { left: 34%; top: -0.06em; }
.svc-tag.t2 { left: -6%; bottom: 0.02em; }
.svc-tag.t3 { left: 58%; bottom: 0.02em; }
.svc-tab .go { right: -0.28em; top: 0.1em; width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--web)); color: var(--green); display: grid; place-items: center; }
.svc-tab .go svg { width: 13px; height: 13px; }
.svc-tab[aria-selected="true"] .svc-tag, .svc-tab[aria-selected="true"] .go { opacity: 1; transform: none; }
.svc-tab[aria-selected="true"] .svc-tag.t1 { transform: translateY(-58%); }

/* Right column: photo on a service-coloured card, caption, round arrow */
.svc-panel { display: grid; gap: 22px; }
.svc-media { position: relative; aspect-ratio: 496 / 384; border-radius: var(--radius); overflow: hidden; container-type: inline-size; }
.svc-scene { position: absolute; inset: 0; background: var(--sc); opacity: 0; transition: opacity .35s; }
.svc-scene.is-on { opacity: 1; }
.svc-scene > .band { --bl: 34%; --bw: 46%; }
.svc-img { position: absolute; inset: 8cqw 11cqw; width: calc(100% - 22cqw); height: calc(100% - 16cqw); object-fit: cover; border-radius: var(--radius-s); }

.svc-caps { display: grid; }
.svc-cap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.svc-cap[hidden] { display: none; }
.svc-cap .t { font-size: var(--fs-body); font-weight: 300; color: var(--beige); }
.svc-cap .s { font-size: var(--fs-body); color: var(--svc-faded); }
.svc-cap .arrow { background: var(--c, var(--web)); color: var(--green); transition: transform .2s, background .3s; flex: none; }
.svc-cap .arrow:hover { transform: translateX(3px); }

.services-foot { margin-top: clamp(56px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--svc-rule); color: var(--ink-on-green); font-size: var(--fs-small); max-width: 46em; }

@media (max-width: 1080px) {
	.services-grid { grid-template-columns: 1fr; }
	.svc-panel { max-width: 560px; }
}

/* Small screens: the tags drop into a row under the active name */
@media (max-width: 640px) {
	.svc-tab { grid-template-columns: 36px auto; align-items: start; }
	.svc-tab .num { padding-top: 0.9em; }
	.svc-tab .name { white-space: normal; font-size: clamp(40px, 11.5vw, 56px); line-height: 1.08; }
	.svc-tab .word { display: grid; gap: 12px; padding: 4px 0; }
	.svc-tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
	.svc-tag, .svc-tab[aria-selected="true"] .svc-tag, .svc-tab[aria-selected="true"] .svc-tag.t1 { position: static; transform: none; font-size: var(--fs-small); padding: 8px 13px; }
	.svc-tab:not([aria-selected="true"]) .svc-tag-row { display: none; }
	.svc-tab .go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.svc-tag, .svc-tab .go, .svc-scene { transition: none; }
}
