/* MT Hero Section — front-end styles */

.mt-hero {
	position: relative;
	padding: 80px 24px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	font-family: "Ubuntu", sans-serif;
	height: 450px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* for desktop .mt-hero */
@media (min-width: 992px) {
	.mt-hero { left: -367.5px;width: 1905px; }
}

.wpb-content-wrapper:has(.mt-hero) {
	margin: 0;
	max-width: none;
	width: 100%;
}

.wpb-content-wrapper:has(.mt-hero) {
	margin: 0;
	max-width: none;
	width: 100%;
}

.entry-content:has(.mt-hero) {
	padding: 0;
}

.mt-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 200px;
	display: flex;
	align-items: center;
	gap: 48px;
}

/* Dark overlay for the background-image layout */
.mt-hero--overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 0;
}

.mt-hero__content { flex: 1 1 0; min-width: 0; }
.mt-hero__media   { flex: 1 1 0; min-width: 0; }

/* Image left = reverse the flex order, keeps DOM order for screen readers */
.mt-hero--left .mt-hero__inner { flex-direction: row-reverse; }

/* Background layout: single centred column */
.mt-hero--bg .mt-hero__inner { display: block; }
.mt-hero--bg .mt-hero__content { max-width: 1500px; }

.mt-hero--align-center .mt-hero__content { text-align: center; }
.mt-hero--align-center.mt-hero--bg .mt-hero__content { margin-inline: auto; }
.mt-hero--align-center .mt-hero__buttons { justify-content: center; }

.mt-hero__heading {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.15;
	color: #0aadd6;
	font-weight: 700;
}

.mt-hero__subheading {
	margin: 0 0 1em;
	font-size: 30px;
	font-weight: 500;
	opacity: .9;
	color: #ffffff;
	line-height: 1.2;
}

.mt-hero__text { margin-bottom: 1.75em; font-size: 1.05rem; line-height: 1.6; color: #4a4a4a; }
.mt-hero__text :last-child { margin-bottom: 0; }

.mt-hero__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---- Buttons ---- */
.mt-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 2.5em;
}

.mt-hero__btn {
	display: inline-block;
	padding: 14px 32px;
	border: 2px solid transparent;
	border-radius: 25px;
	font-weight: 300;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity .2s ease, transform .2s ease;
	font-size: 16px;
}

.mt-hero__btn:hover,
.mt-hero__btn:focus { opacity: .85; transform: translateY(-1px); }

/* Visible keyboard focus — do not remove */
.mt-hero__btn:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Defaults, overridden by the client's colorpicker values via inline style */
.mt-hero__btn--filled  { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.mt-hero__btn--outline { background: transparent; color: #1a1a1a; border-color: #1a1a1a; }
.mt-hero__btn--text    { padding: 14px 0; background: none; border: 0; text-decoration: underline; color: #1a1a1a; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
	.mt-hero { padding: 56px 20px; }
	.mt-hero__inner { gap: 32px; }
}

@media (max-width: 767px) {
	.mt-hero { padding: 44px 18px;width:100vw;left:-84px; }

	/* Stack, and always put the image below the text on mobile */
	.mt-hero__inner,
	.mt-hero--left .mt-hero__inner { flex-direction: column; }

	.mt-hero__content,
	.mt-hero__media { width: 100%; }

	.mt-hero__buttons { flex-direction: column; align-items: stretch; }
	.mt-hero__btn { text-align: center; }
	.mt-hero__btn--text { text-align: inherit; }

	.mt-hero__subheading {
		font-size: 20px;
	}
	.mt-hero__heading {
		font-size: 25px;
	}

	.mt-hero__inner {
		margin: 0 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mt-hero__btn { transition: none; }
	.mt-hero__btn:hover, .mt-hero__btn:focus { transform: none; }
}
