/**
 * Banner 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;
}

/* Banner Container */
.banner {
	position: relative;
	width: 100%;
	min-height: 659px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

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

/* Background Video */
.banner-background-video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	object-fit: cover;
	z-index: 1;
}

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

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

/* Video Fallback Images */
.banner-background-fallback,
.banner-background-fallback-mobile {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.banner-background-fallback-mobile {
	display: none;
}

/* Overlay */
.banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

/* Content Container */
.banner-content {
	position: relative;
	z-index: 3;
	width: 100%;
	padding: 0 60px 100px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.banner-content-inner {
	max-width: 650px;
	width: 100%;
}

/* Content Positioning */
.banner-content-top-left {
	align-items: flex-start;
	justify-content: flex-start;
}

.banner-content-top-right {
	align-items: flex-start;
	justify-content: flex-end;
}

.banner-content-bottom-left {
	align-items: flex-end;
	justify-content: flex-start;
}

.banner-content-bottom-right {
	align-items: flex-end;
	justify-content: flex-end;
}

.banner-content-center {
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Heading */
.banner-heading {
	font-size: 74px;
	line-height: 83px;
	font-weight: 100;
	margin: 0 0 5px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Copy */
.banner-copy {
	font-size: 17px;
	line-height: 27px;
	margin: 0 0 40px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Buttons Container */
.banner-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* Button */
.banner-button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 2rem;
	background-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;
	border: none;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	height: 58px;
}

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

.banner-button:active {
	transform: translateY(0);
}

.banner-button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
	.banner {
		min-height: 775px;
	}

	.banner-content {
		padding: 0 20px 50px;
	}

	.banner-heading {
		font-size: 61px;
		line-height: 63px;
	}

	.banner-copy {
	margin-bottom: 20px;
	}

	.banner-buttons {
		flex-direction: column;
		width: 100%;
		margin-top: 0;
	}

	.banner-button {
		justify-content: center;
		width: fit-content;
	}

	/* Show mobile fallback image on mobile */
	.banner-background-fallback-mobile {
		display: block;
	}

	.banner-background-fallback {
		display: none;
	}

	/* Adjust content positioning on mobile */
	.banner-content-top-left,
	.banner-content-top-right,
	.banner-content-bottom-left,
	.banner-content-bottom-right {
		align-items: center;
		justify-content: center;
		text-align: left;
	}
}

@media (max-width: 500px) {
	.banner {
		min-height: 680px;
	}
    .banner-content {
        padding: 0 30px 50px;
    }
	.banner-content-inner {
	    max-width: 650px;
	    width: 95%;
		margin:0;
	}
}

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

	.banner-background-video {
		display: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.banner-heading,
	.banner-copy {
		text-shadow: none;
		color: #000000;
		background-color: rgba(255, 255, 255, 0.9);
		padding: 0.5rem;
		border-radius: 4px;
	}

	.banner-button {
		border: 2px solid #000000;
	}
}

/* Print Styles */
@media print {
	.banner-background-video,
	.banner-background-image,
	.banner-overlay {
		display: none;
	}

	.banner {
		background-color: #f5f5f5;
		min-height: auto;
	}

	.banner-heading,
	.banner-copy {
		color: #000000;
		text-shadow: none;
	}

	.banner-button {
		background-color: #000000;
		color: #ffffff;
		border: 1px solid #000000;
	}
}

