/* ==========================================================================
   Homepage acties naast het intro-blok (menu "Homepage acties")
   Template: template-parts/homepage-acties.php
   ========================================================================== */

/* Desktop: titel en video links, acties rechts */
@media only screen and (min-width: 1025px) {
	.includeBox--acties {
		display: grid;
		grid-template-columns: minmax(0, 41%) minmax(0, 48.2%);
		grid-template-rows: auto 1fr;
		justify-content: space-between;
	}

	.includeBox--acties > .label {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		margin-bottom: 26px;
	}

	.includeBox--acties > .right {
		grid-column: 1;
		grid-row: 2;
		width: auto;
	}

	.includeBox--acties > .hk-acties {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: start;
	}
}

/* Tablet en mobiel: acties onder titel en video, over de volle breedte */
@media only screen and (max-width: 1024px) {
	.includeBox--acties > .hk-acties { flex-basis: 100%; width: 100%; margin-top: 72px; }
}


/* Kop ------------------------------------------------------------------- */

.hk-acties__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--color-dark);
}

/* Dubbele klasse: anders wint .includeBox h2 (margin-bottom: 54px) */
.hk-acties .hk-acties__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.hk-acties__all {
	position: relative;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-dark);
	text-decoration: none;
}
.hk-acties__all::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transform-origin: left center;
	transition: transform 0.35s ease;
}
.hk-acties__all:hover::after { transform: scaleX(0.35); }
.hk-acties__all:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 2px; }


/* Acties ---------------------------------------------------------------- */

.hk-acties__list { margin: 0; padding: 0; list-style: none; }

.hk-acties__item {
	position: relative;
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr) 20px;
	gap: 24px;
	padding: 28px 0 30px;
	border-bottom: 1px solid var(--color-grey-30);
}
.hk-acties__item::before { content: none; }

.hk-acties__meta { padding-top: 5px; }

.hk-acties .hk-acties__label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.hk-acties .hk-acties__item-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.2px;
}

.hk-acties__link {
	display: inline;
	color: var(--color-dark);
	text-decoration: none;
	transition: color 0.25s ease;
}
/* Het hele item is klikbaar, met één link per item */
.hk-acties__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 6px; }
.hk-acties__link:focus-visible { outline: none; }
.hk-acties__link:focus-visible::after { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.hk-acties .hk-acties__text {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--color-grey-900);
}

.hk-acties__cta {
	position: relative;
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-dark);
}
.hk-acties__cta::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-secondary);
	transition: background-color 0.25s ease;
}

.hk-acties__arrow {
	padding-top: 6px;
	font-size: 13px;
	color: var(--color-primary);
	transition: transform 0.25s ease;
}

.hk-acties__item:hover .hk-acties__link { color: var(--color-primary); }
.hk-acties__item:hover .hk-acties__cta::after { background-color: var(--color-primary); }
.hk-acties__item:hover .hk-acties__arrow { transform: translate(2px, -2px); }

.hk-acties .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* Mobiel ---------------------------------------------------------------- */

@media only screen and (max-width: 767px) {
	.includeBox--acties > .hk-acties { margin-top: 56px; }

	.hk-acties .hk-acties__title { font-size: 28px; }

	/* Label boven de titel in plaats van ernaast */
	.hk-acties__item { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px 16px; padding: 22px 0 24px; }
	.hk-acties__meta { grid-column: 1 / -1; padding-top: 0; }
	.hk-acties__meta:empty { display: none; }
	.hk-acties .hk-acties__item-title { font-size: 20px; }
	.hk-acties__arrow { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.hk-acties__all::after,
	.hk-acties__arrow,
	.hk-acties__link { transition: none; }
}
