/**
 * Homestead homepage Contact section.
 */

.homestead-contact {
	--homestead-contact-radius: 0;
	--homestead-contact-panel: var(--homestead-cream, #f5f1e8);
	--homestead-contact-shadow: 0 10px 28px rgba(49, 49, 49, 0.1);
	--homestead-content-width: 1440px;
	--homestead-step-1-bg: var(--homestead-warm-linen, #e7ded1);
	--homestead-step-2-bg: var(--homestead-soft-gray, #b9b8b3);
	--homestead-step-3-bg: var(--homestead-stone, #8e9188);
	--homestead-step-badge: var(--homestead-stone-dark, #6f7566);

	position: relative;
	isolation: isolate;
	scroll-margin-top: 6rem;
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-inline: clamp(1rem, 2.5vw, 2rem);
	background-color: var(--homestead-cream, #f5f1e8);
	background-image: url("../images/section-wallpaper-27-opt2.webp");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.homestead-contact__divider {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
}

.homestead-contact__panel {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--homestead-content-width);
	margin-inline: auto;
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	border-radius: var(--homestead-contact-radius);
	background-color: var(--homestead-contact-panel);
	box-shadow: var(--homestead-contact-shadow);
}

.homestead-contact__intro {
	max-width: 42rem;
	margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}

.homestead-contact__title {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--heading, #000000);
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.homestead-contact__lede {
	margin: 0;
	color: var(--wp--preset--color--body, #313131);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--homestead-body-size, 1rem);
	font-weight: 400;
	line-height: var(--homestead-body-line, 1.6);
}

.homestead-contact__lede-phone {
	font-weight: 400;
}

.homestead-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

.homestead-contact__form,
.homestead-contact__aside {
	min-width: 0;
}

.homestead-contact__aside {
	display: grid;
	gap: 1.25rem;
}

/* —— 3-step instruction box —— */

.homestead-contact__steps {
	position: relative;
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
	border-radius: var(--homestead-contact-radius);
	box-shadow: 0 10px 28px rgba(49, 49, 49, 0.12);
}

.homestead-contact__steps::before {
	content: "";
	position: absolute;
	top: 2.85rem;
	bottom: 2.85rem;
	left: calc(1.35rem + 1.35rem);
	z-index: 0;
	width: 0;
	border-left: 2px dashed rgba(49, 49, 49, 0.35);
	transform: translateX(-50%);
	pointer-events: none;
}

.homestead-contact__step {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
	margin: 0;
	padding: 1.15rem 1.25rem 1.15rem 1.35rem;
}

.homestead-contact__step--1 {
	background-color: var(--homestead-step-1-bg);
}

.homestead-contact__step--2 {
	background-color: var(--homestead-step-2-bg);
}

.homestead-contact__step--3 {
	background-color: var(--homestead-step-3-bg);
}

.homestead-contact__step-badge {
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	width: 2.7rem;
	height: 2.7rem;
	border: 3px solid #ffffff;
	border-radius: var(--homestead-contact-radius);
	background-color: var(--homestead-step-badge);
	color: #ffffff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 4px 10px rgba(49, 49, 49, 0.18);
}

.homestead-contact__step-copy {
	min-width: 0;
}

.homestead-contact__step-title {
	margin: 0 0 0.25rem;
	color: #1a1a1a;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	font-weight: 700;
	line-height: 1.2;
}

.homestead-contact__step-text {
	margin: 0;
	color: #313131;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.45;
}

/* —— AI artwork note —— */

.homestead-contact__reassure {
	border-radius: var(--homestead-contact-radius);
	overflow: hidden;
	box-shadow: var(--homestead-contact-shadow);
}

.homestead-contact__reassure-inner {
	position: relative;
	box-sizing: border-box;
	padding: 1.15rem 1.35rem 1.35rem;
	border: 0;
	border-radius: var(--homestead-contact-radius);
	background-color: var(--homestead-sage, #a8b89a);
}

.homestead-contact__stars {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
}

.homestead-contact__star {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.homestead-contact__reassure-text {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.45;
	text-align: center;
	text-shadow: 0 1px 3px rgba(49, 49, 49, 0.45);
}

/* —— FAQ accordion —— */

.homestead-contact__faq {
	display: grid;
	gap: 0.75rem;
}

.homestead-contact__faq-heading,
.homestead-contact__info-heading {
	margin: 0;
	color: var(--wp--preset--color--heading, #000000);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.homestead-contact__faq-list {
	display: grid;
	gap: 0.65rem;
}

.homestead-contact__faq-item {
	margin: 0;
	border-radius: var(--homestead-contact-radius);
	background-color: #ffffff;
	box-shadow: 0 6px 18px rgba(49, 49, 49, 0.08);
	overflow: clip;
}

.homestead-contact__faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.95rem 1rem;
	cursor: pointer;
	list-style: none;
	color: var(--wp--preset--color--heading, #000000);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.homestead-contact__faq-question::-webkit-details-marker {
	display: none;
}

.homestead-contact__faq-question::marker {
	content: "";
}

.homestead-contact__faq-question:focus-visible {
	outline: 3px solid var(--homestead-stone-dark, #6f7566);
	outline-offset: -3px;
}

.homestead-contact__faq-question-text {
	flex: 1 1 auto;
	min-width: 0;
}

.homestead-contact__faq-toggle {
	flex: 0 0 auto;
	position: relative;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: var(--homestead-contact-radius);
	background-color: var(--homestead-sage, #a8b89a);
}

.homestead-contact__faq-toggle::before,
.homestead-contact__faq-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.65rem;
	height: 2px;
	background-color: #ffffff;
	transform: translate(-50%, -50%);
}

.homestead-contact__faq-toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.homestead-contact__faq-item[open] .homestead-contact__faq-toggle::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

.homestead-contact__faq-answer {
	padding: 0 1rem 1rem;
}

.homestead-contact__faq-answer p {
	margin: 0;
	padding-top: 0.15rem;
	border-top: 1px solid rgba(49, 49, 49, 0.12);
	color: var(--wp--preset--color--body, #313131);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
}

.homestead-contact__faq-maps {
	display: inline-block;
	margin-top: 0.55rem;
	font-weight: 700;
}

/* —— Contact info —— */

.homestead-contact__info {
	box-sizing: border-box;
	padding: 1.15rem 1.2rem 1.25rem;
	border-radius: var(--homestead-contact-radius);
	background-color: #ffffff;
	box-shadow: 0 6px 18px rgba(49, 49, 49, 0.08);
}

.homestead-contact__info-heading {
	margin-bottom: 0.85rem;
}

.homestead-contact__info-list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.homestead-contact__info-list li {
	display: grid;
	gap: 0.15rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.975rem;
	line-height: 1.45;
}

.homestead-contact__info-label {
	color: var(--wp--preset--color--heading, #000000);
	font-weight: 700;
}

.homestead-contact__info-value {
	overflow-wrap: anywhere;
}

@media (max-width: 980px) {
	.homestead-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.homestead-contact {
		scroll-margin-top: 5rem;
	}

	.homestead-contact__panel {
		padding: clamp(1.25rem, 4vw, 1.75rem);
	}
}

@media (max-width: 520px) {
	.homestead-contact__reassure-text {
		font-size: 1.0625rem;
	}

	.homestead-contact__steps::before {
		left: calc(1.1rem + 1.25rem);
		top: 2.6rem;
		bottom: 2.6rem;
	}

	.homestead-contact__step {
		padding: 1rem 1rem 1rem 1.1rem;
		gap: 0.8rem;
	}

	.homestead-contact__step-badge {
		width: 2.45rem;
		height: 2.45rem;
		font-size: 1.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.homestead-contact__faq-toggle::after {
		transition: none;
	}
}

/* WS Form dropzone / placeholder text — AA contrast on cream panel. */
.homestead-contact .wsf-form {
	--wsf-field-color-placeholder: #5c5c63;
}

.homestead-contact .wsf-form input[type="text"].wsf-field[data-file-type="dropzonejs"] ~ .dropzone .dz-message,
.homestead-contact .dz-message {
	color: #5c5c63;
}
