/* Feature boxes — 3-col image-top / text-below */
.feature-boxes {
	padding-top: calc(var(--section-gap) * 0.75);
	padding-bottom: calc(var(--section-gap) * 0.75);
}

.boxes__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	width: 100%;
	margin: 0;
}

.boxes__item {
	min-width: 0;
}

.boxes__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
}

.boxes__image-link {
	display: block;
	width: 100%;
	text-decoration: none;
}

.boxes__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin-bottom: 1.25rem;
	background: var(--halbro-grey-pale);
}

.boxes__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform var(--transition);
}

.boxes__image-link:hover .boxes__image img {
	transform: scale(1.03);
}

.boxes__content {
	padding-bottom: 1rem;
	flex: 1;
}

.boxes__content h2,
.boxes__content h3 {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 0.65rem;
	color: var(--halbro-charcoal);
}

.boxes__content p {
	font-size: 0.975rem;
	line-height: 1.55;
	color: var(--halbro-grey);
	margin: 0 0 0.75rem;
}

.boxes__content p:last-child {
	margin-bottom: 0;
}

.boxes__inner > .btn {
	margin-top: 0;
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.boxes__image-link:hover .boxes__image img {
		transform: none;
	}
}

@media (max-width: 1024px) {
	.boxes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.boxes__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

	.boxes__image {
		aspect-ratio: 16 / 9;
		margin-bottom: 1rem;
	}
}
