/**
 * Homepage "Why Ultra3DSpace" section styles — a large-type editorial
 * list (lettered, not numbered) to stay visually distinct from the
 * numbered treatments used in Sections 2 and 3.
 */

.u3ds-why {
	position: relative;
	background-color: var(--wp--preset--color--bg-secondary);
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--4-xl);
	padding-bottom: var(--wp--preset--spacing--4-xl);
	border-top: 1px solid var(--wp--preset--color--border);
}

.u3ds-why__header {
	max-width: 640px;
	margin: 0 0 var(--wp--preset--spacing--3-xl);
}

.u3ds-why__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--xs);
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin: 0 0 var(--wp--preset--spacing--l);
}

.u3ds-why__eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--accent);
	flex-shrink: 0;
}

.u3ds-why__headline {
	margin: 0;
}

.u3ds-why__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr);
	gap: var(--wp--preset--spacing--3-xl);
	align-items: start;
}

.u3ds-why__list {
	border-top: 1px solid var(--wp--preset--color--border);
}

.u3ds-why__visual {
	aspect-ratio: 4 / 5;
	border-radius: var(--wp--custom--radius--surface);
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	background-color: var(--wp--preset--color--bg-primary);
}

.u3ds-why__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.u3ds-why__item {
	display: grid;
	grid-template-columns: minmax(0, 72px) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--l);
	align-items: baseline;
	padding-top: var(--wp--preset--spacing--l);
	padding-bottom: var(--wp--preset--spacing--l);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.u3ds-why__letter {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	line-height: 1;
	color: color-mix(in srgb, var(--wp--preset--color--accent-highlight) 55%, transparent);
}

.u3ds-why__title {
	margin: 0 0 var(--wp--preset--spacing--2-xs);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

.u3ds-why__desc {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
	max-width: 60ch;
}

@media (max-width: 781px) {
	.u3ds-why {
		padding-top: var(--wp--preset--spacing--3-xl);
		padding-bottom: var(--wp--preset--spacing--3-xl);
	}

	.u3ds-why__item {
		grid-template-columns: minmax(0, 44px) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--m);
	}

	.u3ds-why__layout {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--xl);
	}

	/* The Saint Joseph Statue photo is a 4:5 portrait. A 16:10 landscape
	   box here was mismatched enough that object-fit: contain had to
	   shrink the image to a small fraction of the box's width to preserve
	   its own proportions, leaving large empty margins on both sides.
	   Matching the box to the photo's actual ~4:5 ratio (same value
	   already used on desktop) removes almost all of that letterboxing —
	   contain still guarantees zero cropping either way. */
	.u3ds-why__visual {
		aspect-ratio: 4 / 5;
		order: -1;
	}

	.u3ds-why__visual img {
		object-fit: contain;
	}

	.u3ds-why__desc {
		font-size: var(--wp--preset--font-size--medium);
		line-height: 1.7;
	}

	.u3ds-why__title {
		margin-bottom: var(--wp--preset--spacing--xs);
	}
}
