/**
 * Aurevya Avada Child - Hero Video Component
 * Full-width hero video section with controls
 */

/* ==========================================================================
   Hero Container
   ========================================================================== */

.aurevya-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #000;
	/* Ensure hero video is below the header */
	z-index: 1;
	/* No top margin or padding - hero should be flush at top */
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* ==========================================================================
   Body/Content Wrapper Adjustments for Hero
   ========================================================================== */

/* When hero video is present, remove content wrapper margin/padding */
body.has-hero-video .content-wrapper,
body.has-hero-video #content,
body.has-hero-video main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Avada specific - remove any top spacing on main content */
body.has-hero-video #main,
body.has-hero-video .fusion-row,
body.has-hero-video .avada-page-titlebar-wrapper {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Page background should start at top */
body.has-hero-video .page-background {
	margin-top: 0;
	padding-top: 0;
}

/* Placeholder when no video is set */
.aurevya-hero--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background: var(--aurevya-navy);
	color: var(--aurevya-white);
	text-align: center;
	padding: var(--spacing-xl);
}

.aurevya-hero--placeholder p {
	color: var(--aurevya-white);
	opacity: 0.8;
}

/* ==========================================================================
   Video Element
   ========================================================================== */

.aurevya-hero__video {
	width: 100%;
	height: auto;
	display: block;
	margin: 0;
	border: 0;
	outline: 0;
	object-fit: cover;
}

/* Desktop video - show on larger screens */
.aurevya-hero__video--desktop {
	display: block;
}

/* Mobile video - hide on larger screens */
.aurevya-hero__video--mobile {
	display: none;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
	.aurevya-hero__video--desktop {
		display: none !important;
	}

	.aurevya-hero__video--mobile {
		display: block !important;
	}
}

/* ==========================================================================
   Video Controls
   ========================================================================== */

.aurevya-hero__controls {
	position: absolute;
	bottom: 40px;
	right: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	z-index: 10;
}

.aurevya-hero__control {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: var(--radius-lg);
	background-color: var(--aurevya-overlay-dark, rgba(19, 4, 41, 0.35));
	color: var(--aurevya-white);
	cursor: pointer;
	transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.aurevya-hero__control:hover {
	transform: scale(1.1);
	background-color: rgba(19, 4, 41, 0.5);
}

.aurevya-hero__control:focus-visible {
	outline: 2px solid var(--aurevya-gold);
	outline-offset: 2px;
}

.aurevya-hero__control i {
	font-size: 14px;
	line-height: 1;
}

/* Mute button slightly larger icon */
.aurevya-hero__control--mute i {
	font-size: 18px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
	.aurevya-hero__controls {
		bottom: 20px;
		right: 15px;
		gap: 15px;
	}

	.aurevya-hero__control {
		width: 38px;
		height: 38px;
	}

	.aurevya-hero__control i {
		font-size: 12px;
	}

	.aurevya-hero__control--mute i {
		font-size: 16px;
	}
}

/* ==========================================================================
   Hero Overlay (Optional)
   ========================================================================== */

.aurevya-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		to bottom,
		rgba(19, 4, 41, 0.4) 0%,
		transparent 30%,
		transparent 70%,
		rgba(19, 4, 41, 0.3) 100%
	);
	pointer-events: none;
	z-index: 2;
}

/* ==========================================================================
   Hero Content (If overlaid text is needed)
   ========================================================================== */

.aurevya-hero__content {
	position: absolute;
	bottom: 15%;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--aurevya-white);
	z-index: 5;
	padding: 0 var(--spacing-xl);
}

.aurevya-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 600;
	color: var(--aurevya-white);
	margin-bottom: var(--spacing-md);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.aurevya-hero__subtitle {
	font-family: var(--font-light);
	font-size: clamp(1rem, 2vw, 1.5rem);
	color: var(--aurevya-white);
	opacity: 0.9;
	max-width: 600px;
	margin: 0 auto;
}



