/**
 * Financing page only.
 *
 * Mirrors https://www.heritagebuildersnj.com/financing without affecting other pages.
 */

.site-main--financing {
	padding: 52px 0 5rem;
	background: #fff;
	position: relative;
	isolation: isolate;
}

/* Dark grey band behind hero — matches live's outer dark row, ends 100px before hero ends so hero protrudes onto white */
.site-main--financing::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 452px;
	background: #262626;
	z-index: 0;
}

@media (max-width: 768px) {
	.site-main--financing {
		padding-top: 32px;
	}
	.site-main--financing::before {
		height: 320px;
	}
}

.site-main--financing .wrap {
	max-width: 75rem;
}

.site-main--financing .financing-feature__grid {
	max-width: 90rem;
}

/* Hide the placeholder note */
.financing-note {
	display: none;
}

.financing-hero {
	position: relative;
	z-index: 1;
	max-width: 75rem;
	margin: 0 auto -6.25rem;
	padding: 0;
	min-height: 31.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.financing-hero__media {
	overflow: hidden;
}

.financing-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.financing-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	display: block;
}

.financing-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.financing-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.financing-hero__title {
	margin: 0;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 400;
	line-height: 1.1;
	color: #fff;
	text-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
}

/* Vertical connector line — placed BELOW the hero, between hero and Enhancify */
.financing-hero__line {
	display: block;
	width: 1px;
	height: 5rem;
	margin: 0 auto;
	background: #ccc;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -5rem;
}

.financing-feature {
	padding: 10rem 0 5rem;
	background: #fff;
}

.financing-feature__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
	gap: 2rem;
	align-items: center;
}

.financing-feature__image {
	border-radius: 0;
	overflow: hidden;
	line-height: 0;
}

.financing-feature__image img {
	display: block;
	width: 100%;
	max-width: 37.5rem;
	height: auto;
}

.financing-feature__content {
	padding: 2rem 0;
}

.financing-feature__title {
	margin: 0 0 1rem;
	font-family: Verdana, Geneva, sans-serif;
	font-size: clamp(2rem, 3.2vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--heritage-text);
	text-align: left;
}

.financing-feature__subtitle {
	margin: 0 0 1.5rem;
	font-family: var(--heritage-font);
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--heritage-text);
	text-align: left;
}

.financing-feature__body {
	margin: 0;
	font-family: var(--heritage-font);
	font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
	line-height: 1.5;
	color: var(--heritage-text);
}

.financing-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16.25rem;
	height: 3.4375rem;
	margin-top: 1.5rem;
	padding: 0 1.5rem;
	border: 2px solid rgb(12, 83, 132);
	border-radius: 0;
	background: rgb(12, 83, 132);
	color: #fff;
	font-family: var(--heritage-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.financing-button:hover,
.financing-button:focus {
	background: rgb(14, 105, 161);
	border-color: rgb(14, 105, 161);
	color: #fff;
	text-decoration: none;
}

/* Enhancify widget — fill in brand colors that their JS injects on the live domain but not localhost */
#fullpagewidget .header_widget {
	background: linear-gradient(90deg, rgb(28, 65, 140) 25%, rgb(104, 186, 98) 110%) !important;
}

#fullpagewidget .why_choose__wrapper--title_block h2,
#fullpagewidget .about_enhancify__wrapper--title_block h2,
#fullpagewidget .how-it-work__wrapper--title_block h2 {
	background: rgb(28, 65, 140) !important;
}

#fullpagewidget .button_block a {
	background: rgb(104, 186, 98) !important;
	color: rgb(255, 255, 255) !important;
}

#fullpagewidget .why_choose__item-list__item svg path:first-child {
	fill: rgb(28, 65, 140);
}

#fullpagewidget .why_choose__item-list__item svg path:nth-child(2) {
	fill: rgb(104, 186, 98);
}

.financing-testimonials {
	padding: 3rem 0 1rem;
	background: rgba(242, 240, 236, 1);
}

.financing-divider {
	width: 6.25rem;
	height: 6.25rem;
	margin: 0 auto 1.875rem;
	position: relative;
}

.financing-divider::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 1px;
	height: 100%;
	background: #ccc;
	transform: translateX(-50%);
}

.financing-eyebrow {
	margin: 0 0 0.5rem;
	text-align: center;
	font-family: var(--heritage-font-heading);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--heritage-text);
}

.financing-section-title {
	margin: 0 0 2rem;
	text-align: center;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2.25rem, 4vw, 3.75rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--heritage-text);
}

.financing-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.financing-testimonial-card video {
	display: block;
	width: 100%;
	border-radius: 0.25rem;
	background: #111;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
	.financing-feature__grid {
		grid-template-columns: 1fr;
	}

	.financing-feature__content {
		padding: 0;
	}
}

@media (max-width: 767px) {
	.financing-note {
		padding-top: 3rem;
	}

	.financing-hero {
		margin-bottom: -3rem;
		padding: 7rem 1.25rem 0;
		min-height: 23rem;
	}

	.financing-hero__line {
		height: 4rem;
		margin-top: 4rem;
		margin-bottom: -2rem;
	}

	.financing-feature {
		padding-top: 5rem;
	}

	.financing-testimonials {
		padding-top: 4rem;
	}

	.financing-testimonials__grid {
		grid-template-columns: 1fr;
	}
}
