/*
 * Product showcase (home-3 "Comfortable"): two independent column stacks. Left: wide cream tile, then the icon circle
 * with title and text. Right: two cream tiles. Product photos have white backgrounds; `darken` blends them into the
 * cream tile, so any white-background product shot fits. Spacing uses padding/gap (wp-bridge.css resets margins).
 */
.rt-product-showcase {
	display: grid;
	grid-template-columns: minmax(0, 687fr) minmax(0, 417fr);
	column-gap: 6.3125rem;
	align-items: start;
}

.rt-product-showcase__main,
.rt-product-showcase__aside {
	display: flex;
	flex-direction: column;
}

.rt-product-showcase__aside {
	gap: 5.75rem;
}

.rt-product-showcase .rt-product-showcase__tile {
	isolation: isolate;
	/* clip, not hidden: the photo's motion follows the page scroll (view()) */
	overflow: clip;
	margin: 0;
	background-color: var(--rt-product-showcase-surface);
}

/* Tile ratios from the design: 687×555, 417×418, 420×489 */
.rt-product-showcase__tile--wide {
	aspect-ratio: 687 / 555;
}

.rt-product-showcase__tile--square {
	aspect-ratio: 417 / 418;
}

.rt-product-showcase__tile--tall {
	aspect-ratio: 420 / 489;
}

.rt-product-showcase .rt-product-showcase__tile a {
	display: block;
	height: 100%;
}

.rt-product-showcase .rt-product-showcase__tile img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	mix-blend-mode: darken;
}

/* Linked tile: the photo grows slightly inside the tile; the focus ring sits around the tile. */
@media (prefers-reduced-motion: no-preference) {
	.rt-product-showcase .rt-product-showcase__tile a img {
		transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
}

.rt-product-showcase .rt-product-showcase__tile a:hover img {
	scale: 1.04;
}

.rt-product-showcase .rt-product-showcase__tile a:focus-visible img {
	scale: 1.04;
}

.rt-product-showcase .rt-product-showcase__tile a:focus-visible {
	outline: none;
}

.rt-product-showcase .rt-product-showcase__tile:has(a:focus-visible) {
	outline: 2px solid var(--rt-color-contrast);
	outline-offset: 3px;
}

/* Icon circle Ø194, 53px gap, then title and text */
.rt-product-showcase__info {
	display: flex;
	gap: 3.3125rem;
	align-items: flex-start;
	padding-top: 5.6875rem;
}

.rt-product-showcase__info .rt-product-showcase__badge {
	flex: none;
}

.rt-product-showcase__content {
	flex: 1 1 0;
	min-width: 0;
	padding-top: 3.3125rem;
}

.rt-product-showcase__title {
	margin: 0;
	color: var(--rt-color-contrast);
	font-size: var(--rt-font-size-x-large);
	font-weight: var(--rt-font-weight-semibold);
	line-height: var(--rt-font-line-height-heading);
}

.rt-product-showcase__text {
	max-width: 27.4375rem;
	margin: 0;
	padding-top: 2.875rem;
	color: var(--rt-color-body);
	font-size: var(--rt-font-size-base);
	line-height: var(--rt-font-line-height-body);
}

/* Tablet: narrower gaps; the icon sits above the title */
@media (max-width: 64rem) {
	.rt-product-showcase {
		column-gap: var(--rt-spacing-50);
	}

	.rt-product-showcase__aside {
		gap: var(--rt-spacing-50);
	}

	.rt-product-showcase__info {
		flex-direction: column;
		gap: var(--rt-spacing-40);
		padding-top: var(--rt-spacing-50);
	}

	.rt-product-showcase__content {
		flex: none;
		padding-top: 0;
	}

	.rt-product-showcase__text {
		padding-top: var(--rt-spacing-30);
	}
}

/* Mobile: wide tile, the two small tiles side by side, then icon, title and text */
@media (max-width: 37.5rem) {
	.rt-product-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--rt-spacing-30);
	}

	.rt-product-showcase__main,
	.rt-product-showcase__aside {
		display: contents;
	}

	.rt-product-showcase__tile--wide {
		grid-column: 1 / -1;
	}

	.rt-product-showcase__tile--square,
	.rt-product-showcase__tile--tall {
		order: 1;
		aspect-ratio: 420 / 489;
	}

	.rt-product-showcase__info {
		order: 2;
		grid-column: 1 / -1;
		padding-top: var(--rt-spacing-30);
	}
}
