/**
 * Contact page — scoped to .jm-contact / body.jm-contact-page.
 */

html body.jm-contact-page,
html body.jm-contact-page #page-container,
html body.jm-contact-page #et-main-area,
html body.jm-contact-page #main-content,
html body.jm-contact-page article.page {
	background-color: #f4f0e8;
}

html body.jm-contact-page #main-content {
	padding: 0;
	width: 100%;
	max-width: none;
}

/* Fixed Architect CONTACT corner is redundant on this page. Overlay/footer CONTACT stay. */
html body.jm-contact-page .et_pb_section_1_tb_header {
	display: none !important;
}

/* Contact-only: keep the approved expanded glass header (#logo-menu.jm-scrolled). */
html body.jm-contact-page #logo-menu::before {
	transform: translateY(0) !important;
}

/* Same header image as HOME, darkened for ivory + glass. Overlay restores ivory. */
html body.jm-contact-page #logo-menu .et_pb_image_0_tb_header img {
	filter: brightness(0);
	opacity: 0.88;
}

html body.jm-contact-page .dsm_menu_trigger_0_tb_header .dsm_menu_trigger_icon span {
	background-color: #11100e !important;
}

html body.jm-contact-page:has(.et_slide_in_menu_container.dms_menu_active) #logo-menu .et_pb_image_0_tb_header img {
	filter: none;
	opacity: 1;
}

html body.jm-contact-page:has(.et_slide_in_menu_container.dms_menu_active) .dsm_menu_trigger_0_tb_header .dsm_menu_trigger_icon span,
html body.jm-contact-page .dsm_close_btn span,
html body.jm-contact-page .close_fullscreen_menu span {
	background-color: #f4f0e8 !important;
}

.jm-contact {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	overflow-x: clip;
	background-color: #f4f0e8;
	color: #11100e;
	font-family: Inter, "Inter Tight", sans-serif;
	padding-top: clamp(152px, 15vw, 196px);
}

html body.admin-bar.jm-contact-page .jm-contact {
	padding-top: clamp(184px, 15vw, 228px);
}

.jm-contact *,
.jm-contact *::before,
.jm-contact *::after {
	box-sizing: border-box;
}

.jm-contact__inner {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: clamp(24px, 5vw, 80px);
	padding-block: 0 clamp(64px, 6.5vw, 96px);
}

.jm-contact__intro {
	max-width: none;
	margin: 0 0 clamp(56px, 6.5vw, 88px);
}

.jm-contact__label {
	position: relative;
	display: inline-block;
	margin: 0 0 16px;
	padding: 0;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(17, 16, 14, 0.55);
}

.jm-contact__label-text {
	position: relative;
	z-index: 1;
}

/* Inverted L: 10px above CONTACT, 10px right of the final T, ~1cm drop. */
.jm-contact__label::after {
	content: "";
	position: absolute;
	top: -10px;
	right: -10px;
	width: 2.55em;
	height: 38px;
	border-top: 1px solid rgba(184, 155, 106, 0.55);
	border-right: 1px solid rgba(184, 155, 106, 0.55);
	pointer-events: none;
}

.jm-contact__title {
	margin: 0;
	font-weight: 400;
	font-size: clamp(42px, 5vw, 64px);
	line-height: 1.06;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #11100e;
}

.jm-contact__lead {
	margin: 20px 0 0;
	max-width: none;
	font-weight: 400;
	font-size: clamp(20px, 1.5vw, 23px);
	line-height: 1.5;
	letter-spacing: -0.008em;
	color: rgba(17, 16, 14, 0.78);
}

.jm-contact__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
	column-gap: clamp(40px, 6vw, 80px);
	row-gap: 48px;
	align-items: start;
}

.jm-contact__aside,
.jm-contact__main,
.jm-contact__form {
	min-width: 0;
	padding-top: 0;
	margin-top: 0;
}

.jm-contact__form {
	position: relative;
	max-width: 40rem;
}

.jm-contact__confirm {
	max-width: 34rem;
}

.jm-contact__confirm-title {
	margin: 0;
	font-size: clamp(20px, 1.4vw, 24px);
	line-height: 1.4;
	font-weight: 400;
	color: #11100e;
}

.jm-contact__confirm-note {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: rgba(17, 16, 14, 0.62);
}

.jm-contact__banner {
	margin: 0 0 28px;
	max-width: 34rem;
	font-size: 15px;
	line-height: 1.5;
	color: #6b4038;
}

.jm-contact__hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.jm-contact__field {
	margin: 0 0 28px;
}

.jm-contact__field label {
	display: block;
	margin: 0 0 8px;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #b89b6a;
}

.jm-contact__field input,
.jm-contact__field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid rgba(17, 16, 14, 0.22);
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: #11100e;
	appearance: none;
	-webkit-appearance: none;
}

.jm-contact__field input {
	height: 54px;
}

.jm-contact__field textarea {
	min-height: 168px;
	height: 176px;
	padding: 14px 0 12px;
	resize: vertical;
}

.jm-contact__field input:hover,
.jm-contact__field textarea:hover {
	border-bottom-color: rgba(184, 155, 106, 0.55);
}

.jm-contact__field input:focus,
.jm-contact__field textarea:focus {
	outline: none;
	border-bottom-color: #b89b6a;
}

.jm-contact__field input:focus-visible,
.jm-contact__field textarea:focus-visible {
	outline: 1px solid rgba(184, 155, 106, 0.8);
	outline-offset: 6px;
}

.jm-contact__field input[aria-invalid="true"],
.jm-contact__field textarea[aria-invalid="true"] {
	border-bottom-color: rgba(107, 64, 56, 0.7);
}

.jm-contact__error {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #6b4038;
}

.jm-contact__turnstile {
	margin: 8px 0 28px;
}

.jm-contact__actions {
	margin: 8px 0 0;
}

.jm-contact__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0 0 4px;
	border: 0;
	border-bottom: 1px solid rgba(17, 16, 14, 0.28);
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #11100e;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.jm-contact__arrow {
	display: inline-block;
	transition: transform 0.22s ease;
}

.jm-contact__submit:hover,
.jm-contact__submit:focus-visible {
	color: #b89b6a;
	border-bottom-color: #b89b6a;
}

.jm-contact__submit:hover .jm-contact__arrow,
.jm-contact__submit:focus-visible .jm-contact__arrow {
	transform: translateX(4px);
}

.jm-contact__submit:focus-visible {
	outline: 1px solid rgba(184, 155, 106, 0.8);
	outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.jm-contact__arrow,
	.jm-contact__submit:hover .jm-contact__arrow,
	.jm-contact__submit:focus-visible .jm-contact__arrow {
		transition: none;
		transform: none;
	}
}

.jm-contact__submit:disabled {
	opacity: 0.55;
	cursor: wait;
}

.jm-contact__meta-item + .jm-contact__meta-item {
	margin-top: 28px;
}

.jm-contact__meta-label {
	margin: 0 0 8px;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #b89b6a;
}

.jm-contact__meta-value {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #11100e;
}

.jm-contact__meta-value a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(17, 16, 14, 0.18);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.jm-contact__meta-value a:hover,
.jm-contact__meta-value a:focus-visible {
	color: #b89b6a;
	border-bottom-color: #b89b6a;
}

.jm-contact__meta-value a:focus-visible {
	outline: 1px solid rgba(184, 155, 106, 0.8);
	outline-offset: 4px;
}

@media (max-width: 900px) {
	.jm-contact__layout {
		grid-template-columns: 1fr;
		row-gap: 44px;
	}

	.jm-contact__form {
		max-width: none;
	}
}

@media (max-width: 767px) {
	html body.jm-contact-page .jm-contact {
		padding-top: 132px;
	}

	html body.admin-bar.jm-contact-page .jm-contact {
		padding-top: 178px;
	}

	.jm-contact__inner {
		padding-inline: 24px;
		padding-block: 0 64px;
	}

	.jm-contact__label {
		font-size: 14px;
		letter-spacing: 0.22em;
		margin: 0 0 14px;
	}

	.jm-contact__label::after {
		top: -10px;
		right: -10px;
		width: 2.35em;
		height: 24px;
		border-top-color: rgba(184, 155, 106, 0.42);
		border-right-color: rgba(184, 155, 106, 0.42);
	}

	.jm-contact__title {
		font-size: clamp(34px, 9vw, 44px);
		letter-spacing: 0.04em;
	}

	.jm-contact__lead {
		font-size: 18px;
	}

	.jm-contact__intro {
		margin-bottom: 44px;
	}

	.jm-contact__meta-item + .jm-contact__meta-item {
		margin-top: 22px;
	}

	.jm-contact__field input {
		height: 52px;
	}
}
