/**
 * PH Kleurweergave – frontend
 */

.ph-kleuren {
	display: grid;
	grid-template-columns: repeat(var(--ph-kleur-cols, 5), minmax(0, 1fr));
	gap: 24px 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ph-kleur-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.ph-kleur-card:hover,
.ph-kleur-card:focus {
	text-decoration: none;
	color: inherit;
}

.ph-kleur-card__visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 12px;
	aspect-ratio: 236 / 350;
	min-height: 350px;
	padding: 28px 14px;
	box-sizing: border-box;
	background-color: #c4b8a8;
	background-image: var(--ph-kleur-bg, none);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	text-align: center;
	overflow: hidden;
}

.ph-kleur-card__visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 100%);
	pointer-events: none;
}

.ph-kleur-card__title,
.ph-kleur-card__desc {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.ph-kleur-card__title {
	font-family: "Saira Condensed", sans-serif;
	font-size: 35px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.ph-kleur-card__desc {
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	max-width: 100%;
}

.ph-kleur-card__name {
	margin: 10px 0 10px;
	padding: 0;
	font-family: "Saira Condensed", sans-serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	color: #54595f;
}

.ph-kleur-card__button {
	display: block;
	margin-top: auto;
	padding: 15px 8px 18px;
	background: #ffd603;
	font-family: "Saira Condensed", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	text-transform: none;
	color: #191818;
	transition: background-color 0.2s ease;
}

.ph-kleur-card:hover .ph-kleur-card__button,
.ph-kleur-card:focus .ph-kleur-card__button {
	background: #f0c800;
}

.ph-kleur-card:hover .ph-kleur-card__visual {
	background-size: cover;
}

@media (max-width: 1024px) {
	.ph-kleuren {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.ph-kleuren {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.ph-kleur-card__visual {
		min-height: 280px;
	}

	.ph-kleur-card__title {
		font-size: 28px;
	}

	.ph-kleur-card__name {
		font-size: 22px;
	}
}

@media (max-width: 480px) {
	.ph-kleuren {
		grid-template-columns: 1fr;
	}

	.ph-kleur-card__visual {
		min-height: 320px;
	}
}
