.custom-homes-hero {
	position: relative;
	min-height: 100svh;
	padding: clamp(5.8rem, 8vw, 7.2rem) 0 1.2rem;
	overflow: clip;
	display: flex;
	align-items: stretch;
	background: #050c18;
}

.custom-homes-hero__media {
	position: absolute;
	inset: 0;
}

.custom-homes-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 10, 19, 0.42) 0%, rgba(4, 10, 19, 0.26) 34%, rgba(4, 10, 19, 0.84) 100%);
}

.custom-homes-hero__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 22%, rgba(166, 132, 74, 0.16), transparent 24%),
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 24%);
	pointer-events: none;
}

.custom-homes-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: brightness(0.58) saturate(0.9) contrast(1.04);
}

.custom-homes-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	--ldg-content-max-width: 1500px;
}

.custom-homes-hero__layout {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex: 1 1 auto;
	padding-top: clamp(0.35rem, 1.2vw, 1rem);
}

.custom-homes-hero__centerpiece {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
	text-align: center;
}

.custom-homes-hero__eyebrow {
	margin: 0 0 0.95rem;
	color: var(--ldg-brand-gold);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	text-transform: uppercase;
}

.custom-homes-hero__title {
	margin: 0 0 0 -0.04em;
	max-width: 24ch;
	font-family: var(--ldg-font-display);
	font-size: clamp(2.1rem, 4.3vw, 3.9rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 0.92;
	text-align: center;
	text-transform: uppercase;
	color: rgba(241, 242, 244, 0.72);
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
	text-wrap: balance;
}

.general-contracting-hero .custom-homes-hero__title {
	max-width: 32ch;
	font-size: clamp(2.2rem, 4.9vw, 4.15rem);
	line-height: 1.02;
}

.general-contracting-hero .custom-homes-hero__layout {
	align-items: flex-start;
	padding-top: clamp(0rem, 0.9vw, 0.85rem);
}

.custom-homes-hero__trust-line {
	margin: 1rem 0 0 -0.02em;
	max-width: none;
	align-self: stretch;
	width: 100%;
	font-family: var(--ldg-font-body);
	color: rgba(241, 242, 244, 0.88);
	font-size: clamp(1rem, 1.45vw, 1.14rem);
	font-weight: 400;
	line-height: 1.72;
	text-wrap: wrap;
}

.custom-homes-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.9rem;
	margin-top: 1.55rem;
}

.custom-homes-hero__actions .button-link {
	min-width: 14rem;
}

.custom-homes-hero__actions .button-link.is-secondary {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.16);
	color: #f3efe7;
}

.custom-homes-hero__subtle-link-wrap {
	margin: 0.9rem 0 0;
	display: none;
}

.custom-homes-hero__subtle-link {
	color: rgba(241, 242, 244, 0.72);
	font-size: 0.9rem;
	line-height: 1.5;
	text-decoration: none;
	border-bottom: 1px solid rgba(166, 132, 74, 0.26);
	transition: color 180ms ease, border-color 180ms ease;
}

.custom-homes-hero__subtle-link:hover,
.custom-homes-hero__subtle-link:focus-visible {
	color: #f1f2f4;
	border-color: rgba(166, 132, 74, 0.72);
}

.custom-homes-hero__trust-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 1.4rem 2.4rem;
	margin-top: auto;
	padding: 1rem 0 clamp(1rem, 2.2vw, 1.6rem);
}

.custom-homes-hero__trust-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 0 1 auto;
	min-width: 13rem;
	max-width: 20rem;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	text-align: center;
}

.custom-homes-hero__trust-value {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--ldg-font-display);
	font-size: clamp(1.7rem, 2.6vw, 2.8rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.05em;
	color: #f7f2ea;
	text-transform: uppercase;
}

.custom-homes-hero__trust-label {
	margin: 0;
	max-width: 20ch;
	margin-inline: auto;
	color: rgba(241, 242, 244, 0.78);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.22;
	text-transform: uppercase;
}

.custom-homes-hero__trust-card--experience {
	width: min(24vw, 18rem);
}

.custom-homes-hero__trust-card--projects {
	width: min(28vw, 20rem);
}

.custom-homes-hero__trust-card--location {
	width: min(30vw, 22rem);
}

.custom-homes-hero__trust-card--delivery {
	width: min(28vw, 20rem);
}

@media (max-width: 1280px) {
	.custom-homes-hero__trust-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		align-items: start;
		justify-items: center;
		gap: 1.4rem 1.5rem;
		width: 100%;
	}

	.custom-homes-hero__trust-card,
	.custom-homes-hero__trust-card--experience,
	.custom-homes-hero__trust-card--projects,
	.custom-homes-hero__trust-card--location,
	.custom-homes-hero__trust-card--delivery {
		width: 100%;
		min-width: 0;
		max-width: 18rem;
	}
}

@media (max-width: 860px) {
	.custom-homes-hero__trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.1rem 1.25rem;
	}

	.custom-homes-hero__trust-card,
	.custom-homes-hero__trust-card--experience,
	.custom-homes-hero__trust-card--projects,
	.custom-homes-hero__trust-card--location,
	.custom-homes-hero__trust-card--delivery {
		max-width: 100%;
	}
}

@media (max-width: 780px) {
	.custom-homes-hero {
		min-height: auto;
		padding: 6.3rem 0 1rem;
	}

	.custom-homes-hero__centerpiece {
		width: min(100%, 28rem);
	}

	.custom-homes-hero__title {
		max-width: 100%;
		font-size: clamp(2rem, 8vw, 3.2rem);
	}

	.custom-homes-hero__trust-line {
		max-width: 100%;
		width: 100%;
		font-size: 0.98rem;
	}

	.custom-homes-hero__subtle-link {
		font-size: 0.88rem;
	}

	.custom-homes-hero__trust-grid {
		gap: 1rem 1.25rem;
		margin-top: 1.4rem;
		padding-bottom: 1rem;
	}

	.general-contracting-hero .custom-homes-hero__trust-grid {
		margin-top: 1.35rem;
	}

	.custom-homes-hero__trust-card,
	.custom-homes-hero__trust-card--experience,
	.custom-homes-hero__trust-card--projects,
	.custom-homes-hero__trust-card--location,
	.custom-homes-hero__trust-card--delivery {
		width: min(100%, 15rem);
		min-width: 10rem;
	}
}
