/*
 * Home — Partners section ("[D] Partners — Option A" in Figma).
 * 1rem = 10px of the layout (theme rem scale: 1440px design on desktop, 395px on mobile).
 */

.home-partners {
	position: relative;
	z-index: 3;
	background: #fff;
	color: #000;
}

.home-partners__inner {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	padding: 8rem 2.6rem;
}

/* Header: title block left, text right (bottom-aligned) */

.home-partners__header {
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
}

.home-partners__titles {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.home-partners__eyebrow {
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.1em;
}

.home-partners__title {
	font-family: "Reckless Neue", Georgia, serif;
	font-size: 3.2rem;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.05em;
	text-wrap: balance;
}

.home-partners__text {
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.5;
	color: #5c5c5c;
}

/* Logo tiles */

.home-partners__logos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem;
	list-style: none;
}

.home-partners__item {
	display: block;
}

/* Odd number of logos on mobile: last tile spans both columns */
.home-partners__item:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.home-partners__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 12rem;
	padding: 1.6rem;
	border-radius: 0.4rem;
	background: #f4f4f2;
	transition: background-color 0.3s;
}

.home-partners__logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 9rem;
	max-height: 3.2rem;
	object-fit: contain;
}

.home-partners__tile--link {
	cursor: pointer;
}

.home-partners__tile--link:focus-visible {
	outline: 2px solid #0038ff;
	outline-offset: 2px;
}

@media (hover: hover) {
	.home-partners__tile--link:hover {
		background: #e9e9e6;
	}
}

@media (min-width: 768px) {
	.home-partners__inner {
		gap: 8.5rem;
		padding: 17rem 8rem;
	}

	.home-partners__header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 4rem;
	}

	.home-partners__titles {
		gap: 2.8rem;
		max-width: 68rem;
	}

	.home-partners__eyebrow {
		font-size: max(1.2rem, 11px);
	}

	.home-partners__title {
		font-size: 5.6rem;
	}

	.home-partners__text {
		flex: 0 0 46rem;
		width: 46rem;
		font-size: max(1.8rem, 14px);
	}

	.home-partners__logos {
		grid-template-columns: none;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
	}

	.home-partners__item:last-child:nth-child(odd) {
		grid-column: auto;
	}

	.home-partners__tile {
		height: 22rem;
		padding: 2.4rem;
	}

	.home-partners__logo {
		max-width: 12.4rem;
		max-height: 4.4rem;
	}
}
