/**
 * Call To Action Block Styles
 * Styles for the Call To Action custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.call-to-action-block {
    width: 100%;
    margin: 0 auto;
    padding: 18px 0 100px;
}

.call-to-action-container {
    display: flex;
    justify-content: space-between;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
    max-width: 1320px;
    margin: 0 auto;
    width: 97%;
}

/* Left Side: Background Image with Cover Image */
.call-to-action-left {
    flex: 0 0 35%;
    min-width: 0;
    position: relative;
    padding: 0 0 0 24px;
}

.call-to-action-background {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-size: auto;
    background-position: top left;
    background-repeat: repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 408px;
}

.call-to-action-cover {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-15deg);
	z-index: 2;
	width: 223px;
	height: 262px;
}

.call-to-action-cover img {
	width: 100%;
	height: auto;
	display: block;
}

/* Right Side: Content (inherits WP core colors) */
.call-to-action-right {
    width: 817px;
    display: flex;
    padding: 8px 32px 8px 032px;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 25px;
}
.call-to-action-text-pattern {
    color: var(--PASSATA, #B63724);
    font-family: "Google Sans Flex";
    font-size: 65px;
    font-style: normal;
    line-height: 105%;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.29rem;
    display: flex;
    text-align: justify;
    text-align-last: justify;
}

.call-to-action-content {
	width: 100%;
	max-width: 100%;
}

/* Title */
.call-to-action-title {
	letter-spacing: -0.2rem;
	margin: 0 auto;
	/* Text color inherited from WP core */
	color: var(--SMOKED, #6D240B);
	text-align: center;
	font-weight:900;
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	max-width: 600px;
}

/* Subtitle */
.call-to-action-subtitle {
    margin: 7px 0 20px;
    color: var(--SMOKED, #6D240B);
    text-align: center;
    font-family: "Perfectly Nineties";
    font-size: 36px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: 0.5px;
}

/* Body Copy */
.call-to-action-body {
	margin: 0;
	color: var(--SMOKED, #6D240B);
	text-align: center;
	font-family: "Google Sans Flex";
	font-size: 17px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%;
	letter-spacing: 0;
}

.call-to-action-body p {
	margin: 0;
	color: var(--SMOKED, #6D240B);
	text-align: center;
	font-family: "Google Sans Flex";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%;
	letter-spacing: -0.01rem;
}

.call-to-action-body p:last-child {
	margin-bottom: 0;
}

/* Button */
.call-to-action-button-wrapper {
	margin-top: 23px;
}

.call-to-action-button {
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border-radius: 50px;
    border: 1.5px solid var(--SMOKED, #6D240B);
    display: flex;
    height: 36px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-family: "Google Sans Flex";
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 130%;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    width: fit-content;
    margin: 0 auto;
}

.call-to-action-button:hover,
.call-to-action-button:focus {
	border-radius: 50px;
border: 1.5px solid var(--LEMON, #FFFB8B);
background: var(--SMOKED, #6D240B);
color:#FFFB8B;
}

.call-to-action-button:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1280px) {
	.call-to-action-right {
	width: 63%;
	}
}
@media (max-width: 1080px) {
	.call-to-action-container {
		display:block;
	}
	.call-to-action-left {
		padding:0;
		margin:0 auto;
	}
	.call-to-action-background {
		margin: 0 auto;
	}
	.call-to-action-right {
		width:100%;
		margin:30px auto 0;
		padding:30px;
	}
}

@media (max-width: 768px) {
	.call-to-action-title {
		font-size:40px;
		letter-spacing:0;
	}
	.call-to-action-block {
		    padding: 18px 0 60px;
	}
}

@media (max-width: 500px) {
	.call-to-action-background {
			width: 262px;
			min-height:300px;
	}
	.call-to-action-text-pattern {
			font-size: 43px;
	}
		.call-to-action-cover {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%) rotate(-15deg);
			z-index: 2;
			width: 149px;
			height: 178px;
		}
	.call-to-action-container {
	width:95%;
	}
	.call-to-action-block {
	padding: 5px 0 35px;
	}
}

/* Accessibility: Focus States */
.call-to-action-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

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


