/* Natige — product category section: heading + grid.
   Hover zooms the shot and fills the title pill with logo blue; the rest of
   the grid recedes so the target stands out. */

/* The promise, then what's inside it. The ingredients stay a list rather than a
   sentence, with milk carried in blue because everything else is added to it. */
.cat-head {
	--cat-blue: #0064b0;
	--cat-lime: #8dc331;
	text-align: center;
	padding-bottom: 64px;
}

.cat-head__title {
	margin: 0 0 22px;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--cat-blue);
}

.cat-head__mix {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 24px;
	/* Wide enough to hold all six on one line at desktop widths; any narrower
	   and the last ingredient wraps alone. */
	max-width: 940px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.cat-head__ingredient {
	position: relative;
	font-size: 17px;
	line-height: 1.45;
	color: #6c757d;
}

.cat-head__ingredient + .cat-head__ingredient::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -14px;
	width: 5px;
	height: 5px;
	margin-top: -3px;
	border-radius: 50%;
	background-color: var(--cat-lime);
}

.cat-head__ingredient--base {
	font-weight: 600;
	color: var(--cat-blue);
}

/* Below 992px the rail no longer fits on one line and leaves the last
   ingredient stranded, so it becomes a real bulleted list — centred as a block
   but ragged-right inside, since centring each line separately stacks the six
   unequal names into a pyramid. */
@media (max-width: 991.98px) {
	.cat-head__mix {
		flex-direction: column;
		align-items: flex-start;
		width: fit-content;
		gap: 10px;
	}
	.cat-head__ingredient {
		padding-left: 16px;
		text-align: left;
	}
	.cat-head__ingredient::before,
	.cat-head__ingredient + .cat-head__ingredient::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 0;
		width: 5px;
		height: 5px;
		margin-top: -3px;
		border-radius: 50%;
		background-color: var(--cat-lime);
	}
}

@media (max-width: 767.98px) {
	.cat-head {
		padding-bottom: 40px;
	}
	.cat-head__title {
		font-size: 27px;
	}
	.cat-head__ingredient {
		font-size: 16px;
	}
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	--cat-ease: cubic-bezier(0.35, 0, 0.14, 1);
}

.cat-grid__item {
	display: block;
	min-width: 0;
}

/* Kept white: the catalogue shots carry their own white backdrop, so any tint
   here would show up as a pale rectangle floating inside the card. */
.cat-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 16px;
	background-color: #ffffff;
	border: 1px solid rgba(0, 100, 176, 0.22);
	text-decoration: none;
	transition: transform 0.7s var(--cat-ease), box-shadow 0.7s var(--cat-ease),
		border-color 0.7s var(--cat-ease), opacity 0.5s ease;
}

.cat-card__media {
	position: relative;
	display: block;
	/* The shots are square, so a square frame crops nothing */
	padding-top: 100%;
	overflow: hidden;
}

.cat-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1);
	transition: transform 0.9s var(--cat-ease);
}

.cat-card__caption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	justify-content: center;
	pointer-events: none;
	z-index: 2;
}

.cat-card__title {
	display: inline-block;
	max-width: 100%;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(0, 100, 176, 0.28);
	box-shadow: 0 8px 20px rgba(0, 100, 176, 0.12);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	color: #0064b0;
	transition: background-color 0.45s var(--cat-ease),
		border-color 0.45s var(--cat-ease), color 0.45s var(--cat-ease);
}

.cat-card:hover,
.cat-card:focus-visible {
	transform: translateY(-6px);
	border-color: #0064b0;
	box-shadow: 0 24px 60px rgba(0, 100, 176, 0.18);
}
.cat-card:hover .cat-card__img,
.cat-card:focus-visible .cat-card__img {
	transform: scale(1.08);
}
.cat-card:hover .cat-card__title,
.cat-card:focus-visible .cat-card__title {
	background: #0064b0;
	border-color: #0064b0;
	color: #ffffff;
}

.cat-card:focus-visible {
	outline: 2px solid #0064b0;
	outline-offset: 4px;
}

/* Everything except the hovered card steps back */
.cat-grid:hover .cat-grid__item:not(:hover) .cat-card {
	opacity: 0.5;
	transform: scale(0.97);
}

@media (max-width: 1199.98px) {
	.cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 767.98px) {
	.cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
	.cat-card__title {
		font-size: 15px;
	}
}

/* Only the narrowest phones drop to one column; two keeps the eleven
   categories scannable without an endless scroll. */
@media (max-width: 359.98px) {
	.cat-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Title is always visible as a pill over the shot. */
@media (hover: none), (max-width: 767.98px) {
	.cat-grid:hover .cat-grid__item:not(:hover) .cat-card {
		opacity: 1;
		transform: none;
	}
	.cat-card:hover .cat-card__title,
	.cat-card:focus-visible .cat-card__title {
		background: rgba(255, 255, 255, 0.94);
		border-color: rgba(0, 100, 176, 0.28);
		color: #0064b0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cat-card,
	.cat-card__img,
	.cat-card__title {
		transition: none;
	}
}
