/* CSS for UWI Feature Area Widget */

.uwi-feature-area {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	height: 600px; /* Default height overridden by Elementor controls */
	overflow: hidden;
	background-color: #000000;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	
	/* Bulletproof Safari/Chrome border-radius clipping fix */
	-webkit-mask-image: -webkit-radial-gradient(white, black);
	mask-image: radial-gradient(white, black);
	
	/* Stacking contexts */
	transform: translateZ(0);
	isolation: isolate;
}

/* Force Elementor wrappers to be full-width and transparent background */
.elementor-widget-uwi_feature_area,
.elementor-widget-uwi_feature_area .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	background: transparent !important;
	background-color: transparent !important;
}

/* Ensure child box-sizing is correct */
.uwi-feature-area *,
.uwi-feature-area *::before,
.uwi-feature-area *::after {
	box-sizing: border-box;
}

/* Video Containers and Elements */
.uwi-video-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.uwi-video-element {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

/* YouTube Covering Layer */
.uwi-youtube-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.uwi-youtube-element {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transform-origin: center center;
	border: none;
	pointer-events: none;
}

/* Dark transparent overlay to make text pop */
.uwi-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.25);
	pointer-events: none;
	transition: background-color 0.3s ease;
}

/* Sound Toggle Button */
.uwi-sound-toggle {
	position: absolute !important;
	top: 24px !important;
	right: 24px !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	background: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border: none !important;
	color: #ffffff !important;
	fill: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	z-index: 10 !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.uwi-sound-toggle:hover {
	background: transparent !important;
	transform: scale(1.15) !important;
	border-color: transparent !important;
}

.uwi-sound-toggle svg {
	width: 20px !important;
	height: 20px !important;
	stroke: #ffffff !important;
	stroke-width: 2.5px !important;
	fill: none !important;
	transition: transform 0.2s ease !important;
}

.uwi-sound-toggle svg polygon,
.uwi-sound-toggle svg line,
.uwi-sound-toggle svg path {
	stroke: #ffffff !important;
	stroke-width: 2.5px !important;
	fill: none !important;
}

.uwi-sound-toggle:active svg {
	transform: scale(0.9) !important;
}

/* Bottom Bar Grid Layout */
.uwi-bottom-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 5;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	border-bottom-left-radius: inherit;
	border-bottom-right-radius: inherit;
}

/* Headline Styling */
.uwi-headline {
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff !important;
	margin: 0;
	padding: 0 0 32px 40px;
	max-width: 60%;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	z-index: 6;
}

/* Custom Cutout White Tab for CTA Button */
.uwi-button-tab {
	position: relative;
	width: 421px !important;
	height: 110px !important;
	background: url('tab-cutout.png') no-repeat right bottom !important;
	background-size: contain !important;
	z-index: 6;
}

/* Position button to overlap the left curve on desktop */
.uwi-button-tab .uwi-btn {
	position: absolute !important;
	left: 80px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}

.uwi-button-tab .uwi-btn:hover {
	transform: translateY(-54%) scale(1.03) !important;
}

.uwi-button-tab .uwi-btn:active {
	transform: translateY(-50%) !important;
}

/* Premium Pill CTA Button */
.uwi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	outline: none;
	white-space: nowrap;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.uwi-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	filter: brightness(1.05);
}

.uwi-btn:active {
	transform: translateY(0);
}

/* Responsive Scaling for Tablets and Mobile */
@media (max-width: 991px) {
	.uwi-headline {
		font-size: 34px;
		padding-left: 30px;
		padding-bottom: 24px;
	}
}

@media (max-width: 767px) {
	.uwi-feature-area {
		height: 380px !important; /* Stacked layouts require less height */
	}
	.uwi-bottom-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.uwi-headline {
		font-size: 24px;
		max-width: 100%;
		padding: 24px 24px 12px 24px;
		text-align: center;
	}
	.uwi-button-tab {
		width: 100% !important;
		height: auto !important;
		padding: 20px 24px !important;
		background: #ffffff !important;
	}
	.uwi-button-tab .uwi-btn {
		position: static !important;
		width: 100% !important;
		transform: none !important;
	}
	.uwi-sound-toggle {
		top: 16px;
		right: 16px;
		width: 38px;
		height: 38px;
	}
	.uwi-sound-toggle svg {
		width: 16px;
		height: 16px;
	}
}
