/**
 * Contact page only.
 *
 * Mirrors https://www.heritagebuildersnj.com/contact
 */

.site-main--contact {
	padding: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.contact-hero {
	position: relative;
	height: 31.25rem; /* 500px */
	background: rgb(38, 38, 38);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
}

.contact-hero__media {
	position: absolute;
	top: 0;
	bottom: -6.25rem; /* 100px jut-out below charcoal section */
	left: 50%;
	transform: translateX(-50%);
	width: var(--heritage-max, 75rem); /* 1200px — constrained like live */
	max-width: 100%;
}

.contact-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	display: block;
}

.contact-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.40);
}

.contact-hero::after {
	content: '';
	position: absolute;
	bottom: -10.5625rem; /* line ends ~49px past image bottom (matches live y=669) */
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 6.1875rem; /* 99px — line starts halfway into jut-out, overlapping the image */
	background: rgba(0, 0, 0, 0.35);
	z-index: 2;
}

.contact-hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
}

.contact-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);
}

/* ── Form section ─────────────────────────────────────────────────── */

.contact-body {
	background: rgb(242, 240, 236);
	padding: 0;
}

.contact-form-wrap {
	max-width: 730px;
	margin: 0 auto;
	padding: 13.75rem 40px 80px; /* 220px top clears 100px jut-out + 70px line + breathing room */
}

.contact-form-col__title {
	margin: 0 0 0.75rem;
	font-family: var(--heritage-font-serif);
	font-size: clamp(2rem, 3vw, 2.75rem);
	font-weight: 400;
	color: var(--heritage-text);
	text-align: center;
}

.contact-form-col__intro {
	margin: 0 0 2rem;
	font-family: var(--heritage-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--heritage-text);
	text-align: center;
}

.contact-form__row {
	margin-bottom: 1.25rem;
}

.contact-form__row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.contact-form__label {
	font-family: var(--heritage-font);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--heritage-text);
}

.contact-form__input {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #d4d4d4;
	border-radius: 0;
	background: #fff;
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	color: var(--heritage-text);
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.contact-form__input:focus {
	outline: none;
	border-color: var(--heritage-blue);
}

.contact-form__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

.contact-form__textarea {
	resize: vertical;
	min-height: 7.5rem;
}

.contact-form__submit {
	display: block;
	width: 100%;
	height: 3.125rem; /* 50px */
	padding: 0;
	border: none;
	border-radius: 0;
	background: rgb(12, 83, 132);
	color: #fff;
	font-family: var(--heritage-font);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus {
	background: rgb(10, 65, 105);
}

/* ── Map ──────────────────────────────────────────────────────────── */

.contact-map {
	display: block;
	line-height: 0;
}

.contact-map iframe {
	display: block;
	width: 100%;
	height: 28rem;
	border: 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.contact-hero {
		height: 20rem;
	}

	.contact-form-wrap {
		padding: 9rem 20px 50px; /* smaller jut-out allowance on mobile */
	}

	.contact-form__row--2 {
		grid-template-columns: 1fr;
	}
}
