/**
 * Image & Copy V2 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;
}

/* Image & Copy V2 Container */
.image-copy-v2 {
	width: 100%;
	padding: 0;
}

.image-copy-v2-container {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	min-height: 400px;
}

/* Image Position - Left (default) */
.image-copy-v2-image-left {
	flex-direction: row;
}

/* Image Position - Right */
.image-copy-v2-image-right {
	flex-direction: row-reverse;
}

/* Image Wrapper */
.image-copy-v2-image-wrapper {
	flex: 0 0 var(--image-width, 50%);
	max-width: var(--image-width, 50%);
	width: 100%;
	height: 100%;
	display: flex;
	align-items: stretch;
}

.image-copy-v2-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

/* Mobile image display */
.image-copy-v2-image-desktop {
	display: block;
}

.image-copy-v2-image-mobile {
	display: none;
}

/* Content Wrapper */
.image-copy-v2-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 2.5rem;
}
.image-copy-v2-image-right .image-copy-v2-copy {
	max-width: 601px;
}
.with-form .image-copy-v2-image-right .image-copy-v2-copy {
	max-width: 690px;
	padding-right:40px
}
.with-form .image-copy-v2-copy h2 {
	margin-bottom: 25px;
	line-height: 81px;
}
/* Copy */
.image-copy-v2-copy {
	font-size: 17px;
	line-height: 27px;
	max-width: 420px;
	margin: 0 auto;
}

.image-copy-v2-copy p {
	margin: 0 0 1rem 0;
}
.image-copy-v2-copy p strong {
	font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}
.image-copy-v2-copy hr {
	display: block;
	margin: 40px 0 42px;
	color: white;
}
.image-copy-v2-copy p:last-child {
	margin-bottom: 0;
}

.image-copy-v2-copy h1,
.image-copy-v2-copy h2,
.image-copy-v2-copy h3,
.image-copy-v2-copy h4,
.image-copy-v2-copy h5,
.image-copy-v2-copy h6 {
	margin-top: 0;
	margin-bottom: 1rem;
	line-height: 1.2;
}
.image-copy-v2-copy h2 {
	font-size:74px;
	line-height:83px;
	margin-bottom: 40px;
}
.image-copy-v2-copy h1:last-child,
.image-copy-v2-copy h2:last-child,
.image-copy-v2-copy h3:last-child,
.image-copy-v2-copy h4:last-child,
.image-copy-v2-copy h5:last-child,
.image-copy-v2-copy h6:last-child {
	margin-bottom: 0;
}

/* Button Wrapper */
.image-copy-v2-button-wrapper {
	margin-top: 1.5rem;
}

/* Form Wrapper */
.image-copy-v2-form-wrapper {
	margin-top: 2rem;
	width: 100%;
}

.image-copy-v2-form-wrapper iframe {
	width: 100%;
	border: none;
}

/* Button */
.image-copy-v2-button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1.5rem;
	background-color: #0d9488;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.image-copy-v2-button:hover,
.image-copy-v2-button:focus {
	background-color: #0f766e;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.image-copy-v2-button:active {
	transform: translateY(0);
}

.image-copy-v2-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

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

/* Button Icon */
.image-copy-v2-button-icon {
	width: 1.25rem;
	height: 1.25rem;
	object-fit: contain;
}

.image-copy-v2-button-icon.fa-regular,
.image-copy-v2-button-icon.fa-solid {
	font-size: 1.25rem;
	line-height: 1;
}

/* Button Text */
.image-copy-v2-button-text {
	white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
	.image-copy-v2-container {
		flex-direction: column;
		gap: 0;
		min-height: auto;
	}
	.mobile-reverse .image-copy-v2-container {
		flex-direction:column-reverse;
	}

	.image-copy-v2-image-wrapper {
		flex: 1 1 100%;
		max-width: 100%;
		width: 100%;
		height: auto;
		min-height: 250px;
	}

	.image-copy-v2-image {
		height: auto;
		min-height: 250px;
	}

	/* Show mobile image, hide desktop image on mobile */
	.image-copy-v2-image-desktop {
		display: none;
	}

	.image-copy-v2-image-mobile {
		display: block;
	}

	.image-copy-v2-content {
		flex: 1 1 100%;
		width: 100%;
		padding: 30px;
	}

	.image-copy-v2-copy, .image-copy-v2-image-right .image-copy-v2-copy {
	max-width: 95%;
	padding: 30px 0 50px;
	}

	.image-copy-v2-button {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 500px) {
	.image-copy-v2-copy h2 {
	    font-size: 61px;
	    line-height: 70px;
	    margin-bottom: 40px;
	}
	.image-copy-v2-copy {
		font-size:16px;
		max-width: 100%;
		margin: 0 0;
		padding: 10px 0 30px;
	}
	.with-form .image-copy-v2-copy h2 {
	    margin-bottom: 25px;
	    line-height: 70px;
		font-size:58px;
	}
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	.image-copy-v2-button {
		transition: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.image-copy-v2-button {
		border: 2px solid currentColor;
	}
}

/* Print Styles */
@media print {
	.image-copy-v2 {
		background-color: #ffffff;
		padding: 1rem 0;
	}

	.image-copy-v2-container {
		flex-direction: column;
		gap: 1rem;
		min-height: auto;
	}

	.image-copy-v2-image-wrapper {
		max-width: 100%;
		height: auto;
	}

	.image-copy-v2-image {
		height: auto;
	}

	.image-copy-v2-content {
		padding: 1rem;
	}

	.image-copy-v2-button {
		background-color: #000000;
		color: #ffffff;
		border: 1px solid #000000;
		text-decoration: underline;
	}
}

