/**
 * Call to Action V3 Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Screen reader text for accessibility */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* Call to Action V3 Container */
.call-to-action-v3 {
	position: relative;
	width: 100%;
	min-height: 274px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: black;
}

/* Background Wrapper */
.cta-v3-background-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

/* Background Image */
.cta-v3-background-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.cta-v3-background-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Content Wrapper */
.cta-v3-content-wrapper {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1161px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 274px;
}

/* Text Box - Base Styles */
.cta-v3-text-box {
	width: 100%;
	padding: 0;
	position: relative;
	z-index: 2;
	/* Default background if no block color is set */
	
	/* Default text color if no block color is set */
	color: #ffffff;
}

/* Text Box Inner */
.cta-v3-text-box-inner {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

/* Text Box Positioning - Left */
.cta-v3-text-box-left {
	margin-right: auto;
	margin-left: 0;
}

/* Text Box Positioning - Right */
.cta-v3-text-box-right {
	margin-left: auto;
	margin-right: 0;
}

/* Heading */
.cta-v3-heading {
	font-size: 74px;
	line-height: 83px;
	font-weight: 100;
	margin: 0;
	/* Inherit text color from parent */
	color: inherit;
}

/* Button Wrapper */
.cta-v3-button-wrapper {
	margin-right: 61px;
	margin-top: 11px;
}

/* Button - Styled to match image with rounded corners and prominent appearance */
.cta-v3-button {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 30px;
	background-color: var(--button-bg-color, #013D36);
	color: #ffffff;
	text-decoration: none;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 100;
	transition: background-color 0.3s ease, transform 0.2s ease, outline 0.2s ease;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	height: 57px;
}

.cta-v3-button:hover,
.cta-v3-button:focus {
	background-color: #6B7861;
}

/* Button Icon Wrapper */
.cta-v3-button-icon-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Button Icon */
.cta-v3-button-icon {
	width: 1.5rem;
	height: 1.5rem;
	object-fit: contain;
	display: inline-block;
	filter: brightness(0) invert(1);
}

.cta-v3-button-icon.fa-regular,
.cta-v3-button-icon.fa-solid {
	font-size: 1.5rem;
	line-height: 1;
	width: auto;
	height: auto;
	color: #ffffff;
}

/* Button Text */
.cta-v3-button-text {
	white-space: nowrap;
}

@media (max-width:1080px) {
	.cta-v3-text-box-inner {
		padding: 0 10px;
	}
	.cta-v3-heading {
		font-size:64px;
	}
}
/* Responsive Design */
@media (max-width: 768px) {
	.call-to-action-v3 {
		min-height: 400px;
	}

	.cta-v3-content-wrapper {
		padding: 1.5rem;
		min-height: 560px;
		align-items: end;
	}

	.cta-v3-text-box {
		max-width: 100%;
		padding: 0 10px 20px;
		margin-left: 0;
		margin-right: 0;
	}

	.cta-v3-heading {
		font-size:61px;
		line-height:71px;
	}
	.cta-v3-text-box-inner {
       display:block;
       padding: 0;
    }
}

@media (max-width: 480px) {
	.call-to-action-v3 {
		min-height: 350px;
	}

	.cta-v3-content-wrapper {
		padding: 1rem;
		min-height: 350px;
	}

	.cta-v3-text-box {
		padding: 1.5rem;
	}

    .cta-v3-heading {
        font-size: 40px;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }
	.cta-v3-button-icon.fa-regular,
	.cta-v3-button-icon.fa-solid {
		font-size: 1.25rem;
	}
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	.cta-v3-background-img,
	.cta-v3-button {
		transition: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.cta-v3-text-box {
		border: 2px solid currentColor;
	}

	.cta-v3-button {
		border: 2px solid currentColor;
	}
}

/* Print Styles */
@media print {
	.cta-v3-background-wrapper {
		display: none;
	}

	.call-to-action-v3 {
		background-color: #f5f5f5;
		min-height: auto;
	}

	.cta-v3-text-box {
		background-color: #ffffff;
		color: #000000;
		border: 1px solid #000000;
	}

	.cta-v3-button {
		background-color: #000000;
		color: #ffffff;
		border: 1px solid #000000;
		page-break-inside: avoid;
	}
}

