/*
 * aiplusmarketing — de drie specialisaties op de homepage
 * (blocks/specialisaties.php).
 *
 * Drie panelen naast elkaar; het paneel waar je op staat wordt breder en zijn
 * schema gaat bewegen. Licht, zoals de rest van de site. Mobiel eerst.
 */

.apm-sp__rij {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	list-style: none;
	margin: var(--wp--preset--spacing--60) 0 0;
	padding: 0;
}

.apm-sp__paneel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: var(--apm-hairline);
	border-radius: var(--apm-radius);
	background: var(--wp--preset--color--papier-warm);
	overflow: hidden;
	transition: flex-grow 600ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 300ms ease, border-color 300ms ease;
}

.apm-sp__beeld {
	display: grid;
	place-items: center;
	aspect-ratio: 5 / 3;
	background: var(--wp--preset--color--linnen);
	transition: background-color 400ms ease;
}

.apm-sp-svg {
	display: block;
	width: 100%;
	max-width: 30rem;
	height: auto;
	font-family: var(--wp--preset--font-family--body);
}

.apm-sp__tekst {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: var(--wp--preset--spacing--60);
}

.apm-sp__nr {
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	font-size: var(--wp--preset--font-size--subkop);
	line-height: 1;
	color: var(--wp--preset--color--brons);
}

.apm-sp__naam {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 2.6vw, 2.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.apm-sp__regel {
	margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--groot);
	line-height: 1.6;
	color: var(--apm-tekst-zacht);
}

.apm-sp__diensten {
	list-style: none;
	margin: auto 0 0;
	padding: 0;
	border-top: var(--apm-hairline-sterk);
}

.apm-sp__diensten li {
	border-bottom: var(--apm-hairline-sterk);
}

.apm-sp__diensten li:last-child {
	border-bottom: 0;
}

.apm-sp__diensten a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	min-height: 48px;
	padding-block: var(--wp--preset--spacing--30);
	font-weight: 500;
	color: var(--wp--preset--color--inkt);
	text-decoration: none;
}

.apm-sp__diensten svg {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--wp--preset--color--olijf);
	transition: transform 300ms ease;
}

.apm-sp__diensten a:hover {
	color: var(--wp--preset--color--olijf);
}

.apm-sp__diensten a:hover svg {
	transform: translateX(0.375rem);
}

@media (min-width: 62rem) {
	.apm-sp__rij {
		display: flex;
		align-items: stretch;
		gap: var(--wp--preset--spacing--50);
	}

	.apm-sp__paneel {
		flex: 1 1 0;
	}

	/* Het paneel waar je op staat krijgt meer ruimte. */
	.apm-sp__paneel.is-actief {
		flex-grow: 1.55;
		border-color: rgba(74, 82, 64, 0.45);
		box-shadow: 0 1px 2px rgba(26, 26, 24, 0.05), 0 20px 40px rgba(26, 26, 24, 0.1);
	}

	.apm-sp__paneel.is-actief .apm-sp__beeld {
		background: color-mix(in srgb, var(--wp--preset--color--linnen) 86%, var(--wp--preset--color--olijf));
	}

	.apm-sp__beeld {
		aspect-ratio: auto;
		height: clamp(15rem, 22vw, 22rem);
	}
}

/* -------------------------------------------------------------- schema's */

.sp-vlak {
	fill: var(--wp--preset--color--papier);
	stroke: rgba(26, 26, 24, 0.16);
	stroke-width: 1;
}

.sp-olijf {
	fill: var(--wp--preset--color--olijf);
}

.sp-licht {
	fill: rgba(247, 245, 240, 0.85);
}

.sp-lijn-vol {
	fill: rgba(26, 26, 24, 0.12);
}

.sp-tekst {
	font-size: 12px;
	font-weight: 500;
	fill: var(--wp--preset--color--inkt);
}

.sp-tekst--klein {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	fill: rgba(26, 26, 24, 0.64);
}

.sp-tekst--licht {
	fill: var(--wp--preset--color--papier);
}

/* Alles staat stil tot het paneel aan de beurt is. */
.apm-sp-svg * {
	animation-play-state: paused;
}

.apm-sp__paneel.is-actief .apm-sp-svg *,
.apm-sp__paneel.is-inbeeld .apm-sp-svg * {
	animation-play-state: running;
}

/* Social: een feed die doorloopt, een advertentie die groeit. */
.sp-toestel {
	fill: var(--wp--preset--color--inkt);
}

.sp-rand {
	fill: none;
	stroke: var(--wp--preset--color--inkt);
	stroke-width: 6;
}

.sp-scherm {
	fill: var(--wp--preset--color--papier);
}

.sp-feed {
	animation: sp-feed 7s linear infinite;
}

.sp-post--0 { fill: var(--wp--preset--color--olijf); }
.sp-post--1 { fill: var(--wp--preset--color--brons); }
.sp-post--2 { fill: color-mix(in srgb, var(--wp--preset--color--olijf) 45%, var(--wp--preset--color--linnen)); }

@keyframes sp-feed {
	from { transform: translateY(0); }
	to { transform: translateY(-276px); }
}

.sp-hart {
	fill: var(--wp--preset--color--brons);
	transform-box: fill-box;
	transform-origin: center;
	animation: sp-pop 3.5s ease-in-out infinite;
}

.sp-hart-teken {
	fill: var(--wp--preset--color--papier);
	transform-box: fill-box;
	transform-origin: center;
	animation: sp-pop 3.5s ease-in-out infinite;
}

@keyframes sp-pop {
	0%, 55%, 100% { transform: scale(0); opacity: 0; }
	65% { transform: scale(1.15); opacity: 1; }
	72%, 90% { transform: scale(1); opacity: 1; }
}

.sp-staaf {
	fill: var(--wp--preset--color--olijf);
	transform-box: fill-box;
	transform-origin: bottom;
	animation: sp-groei 4s ease-in-out infinite;
}

.sp-staaf--1 { --sp-top: 0.5; }
.sp-staaf--2 { --sp-top: 0.8; animation-delay: 0.15s; }
.sp-staaf--3 { --sp-top: 1.1; animation-delay: 0.3s; }
.sp-staaf--4 { --sp-top: 1.5; animation-delay: 0.45s; }

@keyframes sp-groei {
	0%, 100% { transform: scaleY(0.2); }
	45%, 80% { transform: scaleY(var(--sp-top)); }
}

.sp-zweef {
	animation: sp-zweef 5s ease-in-out infinite;
}

.sp-zweef--b { animation-delay: -1.6s; }
.sp-zweef--c { animation-delay: -3.2s; }

@keyframes sp-zweef {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}

/* Web: een pagina die zich opbouwt, een resultaat dat naar boven schuift. */
.sp-balk {
	fill: var(--wp--preset--color--inkt);
}

.sp-stipje {
	fill: rgba(247, 245, 240, 0.4);
}

.sp-bouw {
	transform-box: fill-box;
	transform-origin: left center;
	animation: sp-bouw 7s ease-in-out infinite;
}

.sp-bouw--1 { fill: var(--wp--preset--color--olijf); }
.sp-bouw--2 { animation-delay: 0.35s; }
.sp-bouw--3 { animation-delay: 0.55s; }
.sp-bouw--4 { animation-delay: 0.9s; transform-origin: center bottom; }
.sp-bouw--5 { animation-delay: 1.1s; transform-origin: center bottom; }
.sp-bouw--6 { animation-delay: 1.3s; transform-origin: center bottom; }

@keyframes sp-bouw {
	0% { transform: scaleX(0); opacity: 0; }
	12%, 88% { transform: scaleX(1); opacity: 1; }
	100% { transform: scaleX(1); opacity: 0; }
}

.sp-zoek {
	fill: var(--wp--preset--color--linnen);
}

.sp-zoek-oog {
	fill: none;
	stroke: rgba(26, 26, 24, 0.5);
	stroke-width: 1.5;
}

.sp-rij {
	animation: 7s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}

.sp-rij--jij { animation-name: sp-omhoog; }
.sp-rij--a { animation-name: sp-omlaag; }
.sp-rij--b { animation-name: sp-omlaag; }

@keyframes sp-omhoog {
	0%, 25% { transform: translateY(0); }
	45%, 90% { transform: translateY(-64px); }
	100% { transform: translateY(0); }
}

@keyframes sp-omlaag {
	0%, 25% { transform: translateY(0); }
	45%, 90% { transform: translateY(32px); }
	100% { transform: translateY(0); }
}

/* AI: een aanvraag die zijn weg vindt zonder dat iemand hem doorzet. */
.sp-draad {
	fill: none;
	stroke: rgba(26, 26, 24, 0.28);
	stroke-width: 1.5;
	stroke-dasharray: 4 5;
	animation: sp-stroom 1.2s linear infinite;
}

@keyframes sp-stroom {
	to { stroke-dashoffset: -18; }
}

.sp-reiziger {
	fill: var(--wp--preset--color--brons);
	offset-rotate: 0deg;
	animation: sp-reis 4.8s linear infinite;
}

.sp-reiziger--1 { offset-path: path("M104 120C150 120 150 64 196 64"); }
.sp-reiziger--2 { offset-path: path("M104 120C150 120 150 176 196 176"); animation-delay: -0.6s; }
.sp-reiziger--3 { offset-path: path("M276 64C316 64 300 120 322 120"); animation-name: sp-reis-twee; }
.sp-reiziger--4 { offset-path: path("M276 176C316 176 300 120 322 120"); animation-name: sp-reis-twee; animation-delay: -0.6s; }

@keyframes sp-reis {
	0% { offset-distance: 0%; opacity: 0; }
	6% { opacity: 1; }
	38% { offset-distance: 100%; opacity: 1; }
	44%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes sp-reis-twee {
	0%, 48% { offset-distance: 0%; opacity: 0; }
	54% { opacity: 1; }
	86% { offset-distance: 100%; opacity: 1; }
	92%, 100% { offset-distance: 100%; opacity: 0; }
}

.sp-knoop {
	transform-box: fill-box;
	transform-origin: center;
	animation: sp-tik 4.8s ease-in-out infinite;
}

.sp-knoop--1 { animation-delay: -0.3s; }
.sp-knoop--2 { animation-delay: 1.7s; }
.sp-knoop--3 { animation-delay: 1.1s; }
.sp-knoop--4 { animation-delay: 4s; }

@keyframes sp-tik {
	0%, 8%, 100% { transform: scale(1); }
	4% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	.apm-sp-svg * {
		animation: none !important;
	}

	.apm-sp__paneel {
		transition: none;
	}
}
