/* Section CTA Block (.ms-sectcta)
 * Scoped to the block wrapper for frontend + editor; body classes kept for template parity. */

/* Frontend/editor fallback: block-specific classes (no body/template scope required). */
.ms-sectcta {
	--ms-sectcta-cream: #f5f0e0;
	--ms-sectcta-medium-bg: #2d1d06;
	--ms-sectcta-small-bg: #574a38;
	--ms-sectcta-placeholder: #3d3428;
	--ms-sectcta-max: 1200px;
	box-sizing: border-box;
	margin: 0;
	width: 100%;
	color: var(--ms-sectcta-cream);
}

.ms-sectcta--large-image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 72px;
	max-height: var(--ms-rebrand-image-max-height, 300px);
	overflow: hidden;
	isolation: isolate;
}

.ms-sectcta--medium {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 72px;
	background: var(--ms-sectcta-medium-bg);
}

.ms-sectcta--small {
	padding: 48px 72px;
	background: var(--ms-sectcta-small-bg);
}

.ms-sectcta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background-color: var(--ms-sectcta-placeholder);
}

.ms-sectcta__bg-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-sectcta__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90.03deg, rgba(36, 31, 33, 0.48) 0.03%, rgba(36, 31, 33, 0.12) 99.97%);
	pointer-events: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.ms-sectcta__inner {
	position: relative;
	z-index: 1;
	max-width: var(--ms-sectcta-max);
	margin: 0 auto;
	width: 100%;
	padding: 0;
	text-align: center;
}

.wp-block-acf-section-cta-block,
body.template-block-builder .wp-block-acf-section-cta-block,
body.template-page .wp-block-acf-section-cta-block,
body.template-component-demo .wp-block-acf-section-cta-block,
.editor-styles-wrapper .wp-block-acf-section-cta-block {
	border: 0;
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta,
body.template-block-builder .ms-sectcta,
body.template-page .ms-sectcta,
body.template-component-demo .ms-sectcta,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta,
.editor-styles-wrapper .ms-sectcta {
	--ms-sectcta-cream: #f5f0e0;
	--ms-sectcta-medium-bg: #2d1d06;
	--ms-sectcta-small-bg: #574a38;
	--ms-sectcta-placeholder: #3d3428;
	--ms-sectcta-max: 1200px;
	box-sizing: border-box;
	margin: 0;
	width: 100%;
	color: var(--ms-sectcta-cream);
}

.wp-block-acf-section-cta-block .ms-sectcta--large-image,
body.template-block-builder .ms-sectcta--large-image,
body.template-page .ms-sectcta--large-image,
body.template-component-demo .ms-sectcta--large-image,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--large-image,
.editor-styles-wrapper .ms-sectcta--large-image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 72px;
	max-height: var(--ms-rebrand-image-max-height, 300px);
	overflow: hidden;
	isolation: isolate;
}

.wp-block-acf-section-cta-block .ms-sectcta--medium,
body.template-block-builder .ms-sectcta--medium,
body.template-page .ms-sectcta--medium,
body.template-component-demo .ms-sectcta--medium,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--medium,
.editor-styles-wrapper .ms-sectcta--medium {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 72px;
	background: var(--ms-sectcta-medium-bg);
}

.wp-block-acf-section-cta-block .ms-sectcta--small,
body.template-block-builder .ms-sectcta--small,
body.template-page .ms-sectcta--small,
body.template-component-demo .ms-sectcta--small,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small,
.editor-styles-wrapper .ms-sectcta--small {
	padding: 48px 72px;
	background: var(--ms-sectcta-small-bg);
}

.wp-block-acf-section-cta-block .ms-sectcta__bg,
body.template-block-builder .ms-sectcta__bg,
body.template-page .ms-sectcta__bg,
body.template-component-demo .ms-sectcta__bg,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__bg,
.editor-styles-wrapper .ms-sectcta__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background-color: var(--ms-sectcta-placeholder);
}

.wp-block-acf-section-cta-block .ms-sectcta__bg-img,
body.template-block-builder .ms-sectcta__bg-img,
body.template-page .ms-sectcta__bg-img,
body.template-component-demo .ms-sectcta__bg-img,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__bg-img,
.editor-styles-wrapper .ms-sectcta__bg-img,
.ms-sectcta__bg-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta__overlay,
body.template-block-builder .ms-sectcta__overlay,
body.template-page .ms-sectcta__overlay,
body.template-component-demo .ms-sectcta__overlay,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__overlay,
.editor-styles-wrapper .ms-sectcta__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90.03deg, rgba(36, 31, 33, 0.48) 0.03%, rgba(36, 31, 33, 0.12) 99.97%);
	pointer-events: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta__inner,
body.template-block-builder .ms-sectcta__inner,
body.template-page .ms-sectcta__inner,
body.template-component-demo .ms-sectcta__inner,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__inner,
.editor-styles-wrapper .ms-sectcta__inner {
	position: relative;
	z-index: 1;
	max-width: var(--ms-sectcta-max);
	margin: 0 auto;
	width: 100%;
	padding: 0;
	text-align: center;
}

.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__inner,
body.template-block-builder .ms-sectcta--small .ms-sectcta__inner,
body.template-page .ms-sectcta--small .ms-sectcta__inner,
body.template-component-demo .ms-sectcta--small .ms-sectcta__inner,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__inner,
.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	text-align: left;
}

.wp-block-acf-section-cta-block .ms-sectcta__copy,
body.template-block-builder .ms-sectcta__copy,
body.template-page .ms-sectcta__copy,
body.template-component-demo .ms-sectcta__copy,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__copy,
.editor-styles-wrapper .ms-sectcta__copy {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta__eyebrow,
body.template-block-builder .ms-sectcta__eyebrow,
body.template-page .ms-sectcta__eyebrow,
body.template-component-demo .ms-sectcta__eyebrow,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__eyebrow,
.editor-styles-wrapper .ms-sectcta__eyebrow {
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 400;
	font-style: normal;
	font-size: var(--ms-sectcta-eyebrow-size, 0.875rem);
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ms-sectcta-cream);
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__eyebrow,
body.template-block-builder .ms-sectcta--small .ms-sectcta__eyebrow,
body.template-page .ms-sectcta--small .ms-sectcta__eyebrow,
body.template-component-demo .ms-sectcta--small .ms-sectcta__eyebrow,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__eyebrow,
.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__eyebrow {
	margin: 8px 0 0;
}

.wp-block-acf-section-cta-block .ms-sectcta__headline,
body.template-block-builder .ms-sectcta__headline,
body.template-page .ms-sectcta__headline,
body.template-component-demo .ms-sectcta__headline,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__headline,
.editor-styles-wrapper .ms-sectcta__headline {
	font-family: 'Lora', var(--font-heading, Georgia, serif);
	font-weight: 400;
	font-style: normal;
	font-size: clamp(2rem, 4vw + 1rem, var(--ms-sectcta-headline-size, 3rem));
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--ms-sectcta-cream);
	margin: 0 0 40px;
	padding: 0;
	border: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__headline,
body.template-block-builder .ms-sectcta--small .ms-sectcta__headline,
body.template-page .ms-sectcta--small .ms-sectcta__headline,
body.template-component-demo .ms-sectcta--small .ms-sectcta__headline,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__headline,
.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__headline {
	font-size: clamp(1.5rem, 2.5vw + 0.75rem, var(--ms-sectcta-headline-size, 2rem));
	margin: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta__actions,
body.template-block-builder .ms-sectcta__actions,
body.template-page .ms-sectcta__actions,
body.template-component-demo .ms-sectcta__actions,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__actions,
.editor-styles-wrapper .ms-sectcta__actions {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__actions,
body.template-block-builder .ms-sectcta--small .ms-sectcta__actions,
body.template-page .ms-sectcta--small .ms-sectcta__actions,
body.template-component-demo .ms-sectcta--small .ms-sectcta__actions,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__actions,
.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__actions {
	justify-content: flex-end;
}

.wp-block-acf-section-cta-block .ms-sectcta__btn,
body.template-block-builder .ms-sectcta__btn,
body.template-page .ms-sectcta__btn,
body.template-component-demo .ms-sectcta__btn,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__btn,
.editor-styles-wrapper .ms-sectcta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	min-height: 56px;
	padding: 14px 24px;
	margin: 0;
	border: 2px solid var(--ms-sectcta-cream);
	border-radius: 40px;
	background: transparent;
	font-family: 'Roboto', var(--font-body, sans-serif);
	font-weight: 400;
	font-style: normal;
	font-size: var(--ms-sectcta-btn-size, 1rem);
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ms-sectcta-cream);
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wp-block-acf-section-cta-block .ms-sectcta__btn:hover,
body.template-block-builder .ms-sectcta__btn:hover,
body.template-page .ms-sectcta__btn:hover,
body.template-component-demo .ms-sectcta__btn:hover,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__btn:hover,
.editor-styles-wrapper .ms-sectcta__btn:hover,
.wp-block-acf-section-cta-block .ms-sectcta__btn:focus-visible,
body.template-block-builder .ms-sectcta__btn:focus-visible,
body.template-page .ms-sectcta__btn:focus-visible,
body.template-component-demo .ms-sectcta__btn:focus-visible,
.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__btn:focus-visible,
.editor-styles-wrapper .ms-sectcta__btn:focus-visible {
	opacity: 0.85;
	outline: none;
}

@media (max-width: 1024px) {
	.wp-block-acf-section-cta-block .ms-sectcta--large-image,
	body.template-block-builder .ms-sectcta--large-image,
	body.template-page .ms-sectcta--large-image,
	body.template-component-demo .ms-sectcta--large-image,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--large-image,
	.editor-styles-wrapper .ms-sectcta--large-image,
	.wp-block-acf-section-cta-block .ms-sectcta--medium,
	body.template-block-builder .ms-sectcta--medium,
	body.template-page .ms-sectcta--medium,
	body.template-component-demo .ms-sectcta--medium,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--medium,
	.editor-styles-wrapper .ms-sectcta--medium,
	.wp-block-acf-section-cta-block .ms-sectcta--small,
	body.template-block-builder .ms-sectcta--small,
	body.template-page .ms-sectcta--small,
	body.template-component-demo .ms-sectcta--small,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small,
	.editor-styles-wrapper .ms-sectcta--small {
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 600px) {
	.wp-block-acf-section-cta-block .ms-sectcta--large-image,
	body.template-block-builder .ms-sectcta--large-image,
	body.template-page .ms-sectcta--large-image,
	body.template-component-demo .ms-sectcta--large-image,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--large-image,
	.editor-styles-wrapper .ms-sectcta--large-image {
		padding: 40px 24px;
	}

	.wp-block-acf-section-cta-block .ms-sectcta--medium,
	body.template-block-builder .ms-sectcta--medium,
	body.template-page .ms-sectcta--medium,
	body.template-component-demo .ms-sectcta--medium,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--medium,
	.editor-styles-wrapper .ms-sectcta--medium {
		padding: 48px 24px;
	}

	.wp-block-acf-section-cta-block .ms-sectcta--small,
	body.template-block-builder .ms-sectcta--small,
	body.template-page .ms-sectcta--small,
	body.template-component-demo .ms-sectcta--small,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small,
	.editor-styles-wrapper .ms-sectcta--small {
		padding: 40px 24px;
	}

	.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__inner,
	body.template-block-builder .ms-sectcta--small .ms-sectcta__inner,
	body.template-page .ms-sectcta--small .ms-sectcta__inner,
	body.template-component-demo .ms-sectcta--small .ms-sectcta__inner,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__inner,
	.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__actions,
	body.template-block-builder .ms-sectcta--small .ms-sectcta__actions,
	body.template-page .ms-sectcta--small .ms-sectcta__actions,
	body.template-component-demo .ms-sectcta--small .ms-sectcta__actions,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__actions,
	.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__actions {
		justify-content: flex-start;
		width: 100%;
	}

	.wp-block-acf-section-cta-block .ms-sectcta__headline,
	body.template-block-builder .ms-sectcta__headline,
	body.template-page .ms-sectcta__headline,
	body.template-component-demo .ms-sectcta__headline,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta__headline,
	.editor-styles-wrapper .ms-sectcta__headline {
		margin-bottom: 32px;
	}

	.wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__headline,
	body.template-block-builder .ms-sectcta--small .ms-sectcta__headline,
	body.template-page .ms-sectcta--small .ms-sectcta__headline,
	body.template-component-demo .ms-sectcta--small .ms-sectcta__headline,
	.editor-styles-wrapper .wp-block-acf-section-cta-block .ms-sectcta--small .ms-sectcta__headline,
	.editor-styles-wrapper .ms-sectcta--small .ms-sectcta__headline {
		margin-bottom: 0;
	}
}
