/* Phase 2 — homepage product categories. Prefix: bk-phase02. Front page only. */

.home .bk-phase02 {
	background: #fff;
	padding: 36px 16px 40px;
}

.home .bk-phase02__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.home .bk-phase02__title {
	margin: 0 0 22px;
	color: #202723;
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	font-weight: 800;
	line-height: 1.5;
	text-align: right;
}

.home .bk-phase02__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.home .bk-phase02__card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 13px;
	overflow: hidden;
	background: #dfe6e1;
	text-decoration: none;
	color: #fff;
	box-shadow: 0 6px 18px rgb(22 56 42 / 8%);
	transition: box-shadow 0.24s ease;
	min-height: 44px;
}

.home .bk-phase02__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.24s ease;
}

.home .bk-phase02__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgb(16 28 22 / 78%) 0%,
		rgb(16 28 22 / 28%) 42%,
		rgb(16 28 22 / 0%) 70%
	);
	pointer-events: none;
}

.home .bk-phase02__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 16px;
	z-index: 1;
}

.home .bk-phase02__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
}

.home .bk-phase02__arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgb(255 255 255 / 16%);
	color: #fff;
	transition: transform 0.24s ease, background-color 0.24s ease;
}

.home .bk-phase02__card:hover,
.home .bk-phase02__card:focus-visible {
	box-shadow: 0 10px 26px rgb(22 56 42 / 16%);
}

.home .bk-phase02__card:hover .bk-phase02__image,
.home .bk-phase02__card:focus-visible .bk-phase02__image {
	transform: scale(1.035);
}

.home .bk-phase02__card:hover .bk-phase02__arrow,
.home .bk-phase02__card:focus-visible .bk-phase02__arrow {
	transform: translateX(-4px);
	background: rgb(255 255 255 / 26%);
}

.home .bk-phase02__card:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgb(23 109 2 / 45%), 0 10px 26px rgb(22 56 42 / 16%);
}

@media (prefers-reduced-motion: reduce) {
	.home .bk-phase02__card,
	.home .bk-phase02__image,
	.home .bk-phase02__arrow {
		transition: none;
	}

	.home .bk-phase02__card:hover .bk-phase02__image,
	.home .bk-phase02__card:focus-visible .bk-phase02__image,
	.home .bk-phase02__card:hover .bk-phase02__arrow,
	.home .bk-phase02__card:focus-visible .bk-phase02__arrow {
		transform: none;
	}
}

@media (max-width: 1024px) {
	.home .bk-phase02 {
		padding: 28px 16px 32px;
	}

	.home .bk-phase02__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.home .bk-phase02 {
		padding: 22px 16px 26px;
	}

	.home .bk-phase02__grid {
		gap: 11px;
	}

	.home .bk-phase02__caption {
		padding: 10px 12px;
	}

	.home .bk-phase02__name {
		font-size: 13px;
	}

	.home .bk-phase02__arrow {
		width: 28px;
		height: 28px;
	}
}

@media (max-width: 360px) {
	.home .bk-phase02__name {
		font-size: 12px;
	}

	.home .bk-phase02__caption {
		padding: 8px 10px;
	}
}
