/* Gerechten-kaarten — Home page ("Kantan betekent…" section, dish cards). */
/* Fixed 4 / 2 columns instead of the design's auto-fit, which leaves a lonely 4th card between ~800 and 1100px. */
.kantan-gerechten {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

@media (max-width: 899px) {
	.kantan-gerechten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.kantan-gerechten__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	border-radius: var(--kantan-radius-lg);
	transform: rotate(var(--kantan-tilt, 0deg));
}

.kantan-gerechten__card--roze {
	background: var(--kantan-pink);
}

.kantan-gerechten__card--matcha {
	background: var(--kantan-matcha);
}

.kantan-gerechten__card--zand {
	background: var(--kantan-sand);
}

.kantan-gerechten .kantan-gerechten__image,
.kantan-gerechten__placeholder {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--kantan-radius-md);
	aspect-ratio: 1 / 1;
}

.kantan-gerechten .kantan-gerechten__image {
	object-fit: cover;
}

.kantan-gerechten__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: #fff;
	color: var(--kantan-green);
	font-family: var(--kantan-font-heading);
	font-size: clamp(32px, 3.6vw, 52px); /* 4 kana fit on one line at every card width */
	font-weight: 900;
	text-align: center;
}

.kantan-gerechten__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.kantan-gerechten__name {
	margin: 0;
	color: var(--kantan-green);
	font-family: var(--kantan-font-heading);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
}

.kantan-gerechten__jp {
	color: var(--kantan-green);
	font-family: var(--kantan-font-heading);
	font-size: 18px;
	font-weight: 500;
}

.kantan-gerechten__desc {
	margin: 0;
	color: var(--kantan-text);
	font-size: 15px;
	line-height: 1.55;
}

/* Phones: two small cards per row instead of one huge card. */
@media (max-width: 600px) {
	.kantan-gerechten {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.kantan-gerechten__card {
		gap: 10px;
		padding: 10px;
		border-radius: var(--kantan-radius-md);
	}

	.kantan-gerechten .kantan-gerechten__image,
	.kantan-gerechten__placeholder {
		border-radius: 16px;
	}

	.kantan-gerechten__placeholder {
		font-size: 26px;
	}

	.kantan-gerechten__head {
		flex-direction: column;
		gap: 2px;
	}

	.kantan-gerechten__name {
		font-size: 18px;
	}

	.kantan-gerechten__jp {
		font-size: 14px;
	}

	.kantan-gerechten__desc {
		font-size: 13px;
	}
}

/* Motion: a tilted card straightens and lifts on hover. */
@media (prefers-reduced-motion: no-preference) {
	.kantan-gerechten__card {
		transition: rotate 0.35s ease, translate 0.35s ease, box-shadow 0.35s ease;
	}

	.kantan-gerechten__card:hover {
		rotate: calc(-1 * var(--kantan-tilt, 0deg));
		translate: 0 -6px;
		box-shadow: 0 20px 30px -20px rgba(31, 47, 39, 0.45);
	}
}
