/**
 * Home page — two-column collection promotion banners.
 */

.hm-collection-promos {
	padding: 0 0 clamp(64px, 6vw, 104px);
	background: #fff;
	color: #fff;
}

.hm-collection-promos__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	width: min(1800px, calc(100% - 48px));
	margin-inline: auto;
}

.hm-collection-promos__inner.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.hm-collection-promo {
	position: relative;
	overflow: hidden;
	min-width: 0;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	background: #252525;
	isolation: isolate;
}

.hm-collection-promos__inner.is-single .hm-collection-promo {
	max-height: 760px;
}

.hm-collection-promo__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.hm-collection-promo:hover .hm-collection-promo__image,
.hm-collection-promo:focus-within .hm-collection-promo__image {
	transform: scale(1.035);
}

.hm-collection-promo__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(0, 0, 0, .54), transparent 52%);
	transition: background .35s ease;
}

.hm-collection-promo:hover .hm-collection-promo__shade,
.hm-collection-promo:focus-within .hm-collection-promo__shade {
	background: linear-gradient(0deg, rgba(0, 0, 0, .64), rgba(0, 0, 0, .03) 66%);
}

.hm-collection-promo__content {
	position: absolute;
	right: clamp(24px, 3vw, 38px);
	bottom: clamp(28px, 3vw, 46px);
	left: clamp(24px, 3vw, 38px);
}

.hm-collection-promo__title {
	margin: 0 0 22px;
	color: #fff;
	font-size: clamp(26px, 2.1vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.025em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.hm-collection-promo__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	min-height: 54px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: #353535;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .22);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hm-collection-promo__button:hover,
.hm-collection-promo__button:focus-visible {
	background: #fff;
	box-shadow: 0 7px 20px rgba(0, 0, 0, .28);
	color: #111;
	outline: none;
	transform: translateY(-2px);
}

.hm-collection-promos--empty .hm-collection-promos__inner {
	display: block;
	padding: 24px;
	border: 1px dashed #b6b6b6;
	border-radius: 10px;
	background: #f8f8f8;
	color: #111;
	text-align: center;
}

.hm-collection-promos--empty p {
	margin: 0;
}

@media (max-width: 767px) {
	.hm-collection-promos {
		padding-bottom: 58px;
	}

	.hm-collection-promos__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		width: min(100% - 24px, 1800px);
	}

	.hm-collection-promo {
		aspect-ratio: 4 / 3;
		border-radius: 10px;
	}

	.hm-collection-promo__content {
		right: 20px;
		bottom: 22px;
		left: 20px;
	}

	.hm-collection-promo__title {
		margin-bottom: 14px;
		font-size: clamp(21px, 6vw, 28px);
	}

	.hm-collection-promo__button {
		min-width: 150px;
		min-height: 42px;
		padding: 10px 20px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-collection-promo__image,
	.hm-collection-promo__shade,
	.hm-collection-promo__button {
		transition: none;
	}
}
