/**
 * Elite Video Hero Carousel - Frontend Stylesheet
 *
 * Premium cinematic styling for luxury hardwood flooring & architectural eCommerce.
 * All classes strictly prefixed with `evhc-` to ensure zero collision.
 */

.evhc-wrapper {
	--evhc-gold-primary: #F5B800;
	--evhc-gold-secondary: #D99A00;
	--evhc-dark-bg: #0A0A0A;
	--evhc-text-white: #FFFFFF;
	--evhc-text-muted: rgba(255, 255, 255, 0.78);
	--evhc-font-heading: "Cinzel", "Playfair Display", "Cormorant Garamond", "Georgia", serif;
	--evhc-font-body: "Inter", "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--evhc-transition-duration: 600ms;
	--evhc-transition-smooth: var(--evhc-transition-duration, 600ms) cubic-bezier(0.25, 1, 0.5, 1);
	--evhc-transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   1. Carousel Base Wrapper
   ========================================================================== */

.evhc-wrapper {
	position: relative;
	width: 100%;
	max-width: 100vw;
	height: clamp(650px, 80vh, 900px);
	min-height: 550px;
	overflow: hidden;
	background-color: var(--evhc-dark-bg);
	color: var(--evhc-text-white);
	font-family: var(--evhc-font-body);
	box-sizing: border-box;
	user-select: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.evhc-wrapper *,
.evhc-wrapper *::before,
.evhc-wrapper *::after {
	box-sizing: border-box;
}

.evhc-wrapper:focus-visible {
	outline: 2px solid var(--evhc-gold-primary);
	outline-offset: -2px;
}

/* ==========================================================================
   2. Slides Container & Slide Architecture
   ========================================================================== */

.evhc-slides-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.evhc-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	transition: opacity var(--evhc-transition-smooth), visibility var(--evhc-transition-smooth);
}

/* Active Slide */
.evhc-slide.evhc-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

/* Slide Transition Effect Option: Slide */
.evhc-transition-slide .evhc-slide {
	transform: translate3d(100%, 0, 0);
	transition: transform var(--evhc-transition-smooth), opacity var(--evhc-transition-smooth), visibility var(--evhc-transition-smooth);
}

.evhc-transition-slide .evhc-slide.evhc-active {
	transform: translate3d(0, 0, 0);
}

.evhc-transition-slide .evhc-slide.evhc-slide-prev {
	transform: translate3d(-100%, 0, 0);
}

/* ==========================================================================
   3. Video Backdrop & Fullcover Media
   ========================================================================== */

.evhc-media-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--evhc-dark-bg);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
	z-index: 1;
}

.evhc-video-player-container {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; /* 16:9 aspect ratio */
	min-height: 100vh;
	min-width: 177.78vh; /* 16:9 aspect ratio */
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.evhc-video-player-container iframe,
.evhc-video-player-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	pointer-events: none;
}

.evhc-html5-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Video Error / Fallback State */
.evhc-slide.evhc-video-error .evhc-video-player-container {
	display: none !important;
	visibility: hidden !important;
}

.evhc-slide.evhc-video-error .evhc-media-backdrop {
	background-color: var(--evhc-dark-bg);
}

/* ==========================================================================
   4. Cinematic Dual Gradient Overlays
   ========================================================================== */

.evhc-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
	opacity: 0.88;
	/* Dual gradient: horizontal readablility gradient + bottom navigation vignette */
	background:
		linear-gradient(
			90deg,
			rgba(10, 10, 10, 0.88) 0%,
			rgba(10, 10, 10, 0.65) 35%,
			rgba(10, 10, 10, 0.22) 70%,
			rgba(10, 10, 10, 0.35) 100%
		),
		linear-gradient(
			0deg,
			rgba(10, 10, 10, 0.95) 0%,
			rgba(10, 10, 10, 0.4) 22%,
			transparent 60%
		);
}

/* ==========================================================================
   5. Content Layout & Typography
   ========================================================================== */

.evhc-content-container {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 80px 60px 140px;
	display: flex;
	align-items: center;
	z-index: 3;
}

.evhc-content-box {
	max-width: 640px;
	width: 100%;
	text-align: left;
}

/* Content Stagger Animation on Slide Activation */
.evhc-slide .evhc-eyebrow,
.evhc-slide .evhc-heading,
.evhc-slide .evhc-description,
.evhc-slide .evhc-actions-row {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.evhc-slide.evhc-active .evhc-eyebrow {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition-delay: 0.15s;
}

.evhc-slide.evhc-active .evhc-heading {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition-delay: 0.28s;
}

.evhc-slide.evhc-active .evhc-description {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition-delay: 0.42s;
}

.evhc-slide.evhc-active .evhc-actions-row {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition-delay: 0.55s;
}

/* Eyebrow */
.evhc-eyebrow {
	font-family: var(--evhc-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--evhc-gold-primary);
	margin-bottom: 18px;
	display: inline-block;
}

/* Main Heading */
.evhc-heading {
	margin: 0 0 24px 0;
	padding: 0;
	font-family: var(--evhc-font-heading);
	font-size: clamp(40px, 4.6vw, 76px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--evhc-text-white);
}

.evhc-heading-main {
	display: block;
}

.evhc-highlight {
	display: block;
	color: var(--evhc-gold-primary);
	font-weight: 400;
	font-style: italic;
	margin-top: 4px;
}

/* Description */
.evhc-description {
	margin: 0 0 38px 0;
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.65;
	color: var(--evhc-text-muted);
	font-weight: 400;
	max-width: 580px;
}

/* Actions Row */
.evhc-actions-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.evhc-buttons-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

/* Buttons */
.evhc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 32px;
	font-family: var(--evhc-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all var(--evhc-transition-fast);
	position: relative;
	overflow: hidden;
	line-height: 1.2;
}

.evhc-btn-text {
	position: relative;
	z-index: 2;
}

.evhc-btn-arrow {
	display: inline-block;
	margin-left: 8px;
	font-size: 15px;
	line-height: 1;
	transition: transform var(--evhc-transition-fast);
	position: relative;
	z-index: 2;
}

.evhc-btn:hover .evhc-btn-arrow {
	transform: translateX(4px);
}

/* Primary Button */
.evhc-btn-primary {
	background-color: var(--evhc-gold-primary);
	color: var(--evhc-dark-bg);
	border-color: var(--evhc-gold-primary);
	box-shadow: 0 8px 24px rgba(245, 184, 0, 0.25);
}

.evhc-btn-primary:hover {
	background-color: var(--evhc-gold-secondary);
	border-color: var(--evhc-gold-secondary);
	color: #FFFFFF;
	box-shadow: 0 12px 30px rgba(245, 184, 0, 0.38);
	transform: translateY(-2px);
}

/* Secondary Button */
.evhc-btn-secondary {
	background-color: transparent;
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(4px);
}

.evhc-btn-secondary:hover {
	background-color: var(--evhc-gold-primary);
	border-color: var(--evhc-gold-primary);
	color: var(--evhc-dark-bg);
	transform: translateY(-2px);
}

/* Watch Video Action */
.evhc-watch-video {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	padding: 8px 12px;
	color: #FFFFFF;
	font-family: var(--evhc-font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: color var(--evhc-transition-fast), transform var(--evhc-transition-fast);
}

.evhc-watch-circle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--evhc-gold-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--evhc-gold-primary);
	background: rgba(10, 10, 10, 0.4);
	backdrop-filter: blur(6px);
	transition: all var(--evhc-transition-fast);
}

.evhc-watch-circle svg {
	margin-left: 2px;
	transition: transform var(--evhc-transition-fast);
}

.evhc-watch-video:hover {
	color: var(--evhc-gold-primary);
}

.evhc-watch-video:hover .evhc-watch-circle {
	background-color: var(--evhc-gold-primary);
	color: var(--evhc-dark-bg);
	box-shadow: 0 0 20px rgba(245, 184, 0, 0.5);
	transform: scale(1.08);
}

.evhc-watch-video:focus-visible {
	outline: 2px solid var(--evhc-gold-primary);
	outline-offset: 4px;
}

/* ==========================================================================
   6. Controls Bar (Counter, Progress, Thumbnails, Arrows)
   ========================================================================== */

.evhc-controls-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	padding: 0 60px 42px;
	pointer-events: none;
}

.evhc-controls-inner {
	max-width: 1440px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	pointer-events: auto;
}

/* Slide Counter */
.evhc-counter {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--evhc-font-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.evhc-counter-current {
	color: var(--evhc-gold-primary);
	font-size: 18px;
}

.evhc-counter-divider {
	color: rgba(255, 255, 255, 0.35);
	font-size: 14px;
}

.evhc-counter-total {
	color: rgba(255, 255, 255, 0.65);
	font-size: 14px;
}

/* Progress Bars */
.evhc-progress-container {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	max-width: 280px;
}

.evhc-progress-track {
	position: relative;
	flex: 1;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.2);
	border: none;
	padding: 0;
	margin: 0;
	border-radius: 2px;
	overflow: hidden;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	display: block;
}

.evhc-progress-track:focus-visible {
	outline: 2px solid var(--evhc-gold-primary);
	outline-offset: 3px;
}

.evhc-progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 0%;
	background-color: var(--evhc-gold-primary);
	border-radius: 2px;
	transition: width 0.1s linear;
}

.evhc-progress-track.evhc-completed .evhc-progress-fill {
	width: 100%;
}

/* Thumbnail Navigation */
.evhc-thumbnails {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.evhc-thumb-item {
	position: relative;
	width: 110px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.18);
	background-color: #141414;
	cursor: pointer;
	opacity: 0.65;
	transform: scale(0.96);
	transition: all var(--evhc-transition-fast);
}

.evhc-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.evhc-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.4);
	background: #1a1a1a;
}

.evhc-thumb-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.35);
	transition: background var(--evhc-transition-fast);
}

.evhc-thumb-item:hover {
	opacity: 0.9;
	transform: scale(1);
	border-color: rgba(255, 255, 255, 0.5);
}

.evhc-thumb-item:hover .evhc-thumb-overlay {
	background: rgba(0, 0, 0, 0.1);
}

.evhc-thumb-item.evhc-active {
	opacity: 1;
	transform: scale(1.05);
	border-color: var(--evhc-gold-primary);
	box-shadow: 0 4px 18px rgba(245, 184, 0, 0.3);
}

.evhc-thumb-item.evhc-active .evhc-thumb-overlay {
	background: transparent;
}

.evhc-thumb-item:focus-visible {
	outline: 2px solid var(--evhc-gold-primary);
	outline-offset: 2px;
}

/* Arrows Navigation */
.evhc-arrows-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.evhc-nav-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(10, 10, 10, 0.45);
	backdrop-filter: blur(8px);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all var(--evhc-transition-fast);
}

.evhc-nav-btn:hover {
	background-color: var(--evhc-gold-primary);
	border-color: var(--evhc-gold-primary);
	color: var(--evhc-dark-bg);
	transform: scale(1.08);
	box-shadow: 0 4px 16px rgba(245, 184, 0, 0.35);
}

.evhc-nav-btn:focus-visible {
	outline: 2px solid var(--evhc-gold-primary);
	outline-offset: 3px;
}

/* Modal Background Scroll Lock */
body.evhc-modal-active {
	overflow: hidden !important;
}

.evhc-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	pointer-events: none;
}

.evhc-modal.evhc-modal-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.evhc-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(8, 8, 8, 0.88);
	backdrop-filter: blur(14px);
}

.evhc-modal-dialog {
	position: relative;
	width: 90%;
	max-width: 1080px;
	aspect-ratio: 16 / 9;
	background: #000000;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
	z-index: 2;
	overflow: hidden;
	transform: scale(0.95);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.evhc-modal.evhc-modal-open .evhc-modal-dialog {
	transform: scale(1);
}

.evhc-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #FFFFFF;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all var(--evhc-transition-fast);
}

.evhc-modal-close:hover {
	background-color: var(--evhc-gold-primary);
	border-color: var(--evhc-gold-primary);
	color: var(--evhc-dark-bg);
	transform: rotate(90deg);
}

.evhc-modal-close:focus-visible {
	outline: 2px solid var(--evhc-gold-primary);
}

.evhc-modal-media-wrapper {
	width: 100%;
	height: 100%;
}

.evhc-modal-media-wrapper iframe,
.evhc-modal-media-wrapper video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ==========================================================================
   8. Responsive Design (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
	.evhc-wrapper {
		height: 680px;
		min-height: 560px;
	}

	.evhc-content-container {
		padding: 60px 40px 130px;
	}

	.evhc-content-box {
		max-width: 560px;
	}

	.evhc-heading {
		font-size: clamp(36px, 5.5vw, 56px);
		margin-bottom: 20px;
	}

	.evhc-description {
		font-size: 16px;
		margin-bottom: 30px;
	}

	.evhc-controls-bar {
		padding: 0 40px 30px;
	}

	.evhc-controls-inner {
		gap: 20px;
	}

	.evhc-progress-container {
		max-width: 180px;
	}

	.evhc-thumb-item {
		width: 90px;
		height: 54px;
	}

	.evhc-nav-btn {
		width: 42px;
		height: 42px;
	}
}

/* Mobile (<= 767px) - Thoroughly Redesigned */
@media screen and (max-width: 767px) {
	.evhc-wrapper {
		height: clamp(640px, 88vh, 760px);
		min-height: 600px;
	}

	/* Stronger bottom overlay for mobile readability above controls */
	.evhc-overlay {
		background:
			linear-gradient(
				180deg,
				rgba(10, 10, 10, 0.6) 0%,
				rgba(10, 10, 10, 0.4) 40%,
				rgba(10, 10, 10, 0.92) 80%,
				rgba(10, 10, 10, 0.98) 100%
			);
	}

	.evhc-content-container {
		padding: 40px 24px 170px;
		align-items: flex-end; /* Lower alignment keeps text readable */
	}

	.evhc-content-box {
		max-width: 100%;
		text-align: left;
	}

	.evhc-eyebrow {
		font-size: 11px;
		letter-spacing: 0.18em;
		margin-bottom: 12px;
	}

	.evhc-heading {
		font-size: clamp(30px, 8.2vw, 42px);
		line-height: 1.15;
		margin-bottom: 16px;
	}

	.evhc-description {
		font-size: 14px;
		line-height: 1.55;
		margin-bottom: 24px;
	}

	.evhc-actions-row {
		gap: 14px;
		flex-direction: column;
		align-items: stretch;
	}

	.evhc-buttons-group {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.evhc-btn {
		width: 100%;
		padding: 14px 20px;
		font-size: 12px;
	}

	.evhc-watch-video {
		padding: 6px 0;
		justify-content: flex-start;
	}

	.evhc-watch-circle {
		width: 36px;
		height: 36px;
	}

	/* Mobile Controls Bar */
	.evhc-controls-bar {
		padding: 0 20px 20px;
	}

	.evhc-controls-inner {
		flex-wrap: wrap;
		gap: 12px;
	}

	.evhc-counter {
		font-size: 13px;
	}

	.evhc-counter-current {
		font-size: 15px;
	}

	.evhc-progress-container {
		max-width: 110px;
	}

	/* Scrollable thumbnails on mobile without breaking layout */
	.evhc-thumbnails {
		order: 3;
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 4px;
		gap: 8px;
		margin-left: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.evhc-thumbnails::-webkit-scrollbar {
		display: none;
	}

	.evhc-thumb-item {
		width: 72px;
		height: 44px;
		flex-shrink: 0;
	}

	.evhc-arrows-container {
		margin-left: auto;
	}

	.evhc-nav-btn {
		width: 36px;
		height: 36px;
	}

	.evhc-modal-dialog {
		width: 95%;
	}

	.evhc-modal-close {
		top: -44px;
		right: 0;
		width: 34px;
		height: 34px;
	}
}

/* ==========================================================================
   9. Accessibility: Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.evhc-slide,
	.evhc-slide .evhc-eyebrow,
	.evhc-slide .evhc-heading,
	.evhc-slide .evhc-description,
	.evhc-slide .evhc-actions-row,
	.evhc-btn,
	.evhc-watch-circle,
	.evhc-thumb-item,
	.evhc-nav-btn,
	.evhc-modal,
	.evhc-modal-dialog {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		transform: none !important;
	}

	.evhc-progress-fill {
		transition: none !important;
	}
}
