/* Shared by Gutenberg and the public page. Query the section, not the monitor. */
/* The public header is outside page content and must not add space in Gutenberg. */
.mesco-contact-page {
	padding-top: 88px;
}

@media (max-width: 767px) {
	.mesco-contact-page {
		padding-top: 72px;
	}
}

.hero--contact,
.contact-section {
	container: mesco-contact-section / inline-size;
}

.hero--contact {
	min-height: 0;
	align-items: center;
	padding-block: 64px;
}

.hero--contact::after {
	top: 32px;
	right: clamp(20px, 5%, 72px);
	left: auto;
}

/* Container gutters are shared with all pages in editor-pages.css. */

.hero--contact h1 {
	font-size: clamp(34px, 4.1cqi, 52px);
	line-height: 1.2;
}

.contact-section .contact-layout {
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(24px, 5cqi, 68px);
}

.contact-section .contact-layout > * {
	min-width: 0;
}

.contact-section :is(.contact-details, .service-area) {
	padding: clamp(24px, 3.125cqi, 40px);
}

@container mesco-contact-section (max-width: 900px) {
	.contact-section .contact-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-section .contact-map,
	.contact-section .contact-map iframe {
		min-height: 360px;
	}
}

@container mesco-contact-section (max-width: 767px) {
	.hero--contact .hero__lead {
		font-size: 16px;
		line-height: 25px;
	}

	.hero--contact .hero__actions .wp-block-button,
	.hero--contact .hero__actions .wp-block-button__link,
	.hero--contact .hero__actions .wp-block-buttons {
		width: 100%;
	}
}
