/*
Theme Name: Ellevate-AI Corporate Matrix Theme
Theme URI: https://ellevate-ai.com
Author: Custom Cyber Minimalist Build
Description: An ultra-premium, high-end corporate data technology theme custom built for Ellevate-AI. Inspired by Palantir's aesthetic.
Version: 3.3.18
Text Domain: ellevate-ai
*/

/* -------------------------------------------------------------------------
   Hero background video — always visible on front-page.php
   ------------------------------------------------------------------------- */
#ellevate-hero-video-container,
#ellevate-hero-video-container video {
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

#ellevate-hero-video-container {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100vh !important;
	z-index: 0 !important;
}

#ellevate-hero-video-container video {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100vh !important;
	max-width: none !important;
	object-fit: cover !important;
}

/* Mobile: full-width 16:9, no crop */
@media (max-width: 767px) {
	#ellevate-cinematic-front {
		overflow-x: hidden;
	}

	#ellevate-hero-section {
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 16 / 9;
		overflow-x: hidden !important;
	}

	#ellevate-hero-video-container {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
	}

	#ellevate-hero-video-container video {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
		max-width: 100% !important;
		object-fit: contain !important;
	}
}

/* -------------------------------------------------------------------------
   Middle Elementor island — transparent shell wrappers only.
   No rules on .e-con / .elementor-element / Atomic children: native Post CSS owns layout.
   ------------------------------------------------------------------------- */

#ellevate-elementor-middle-section,
#ellevate-elementor-middle-section .ellevate-isolated-middle-page__inner,
#ellevate-elementor-middle-section .ellevate-middle-section-content {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	float: none;
	clear: both;
	box-sizing: border-box;
}

/* Technical briefing Elementor embed — full-bleed shell, never collapse containers */
#ellevate-technical-briefing-section,
#ellevate-technical-briefing-section .ellevate-technical-briefing-page__inner {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	min-height: 0;
	height: auto;
	overflow: visible;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	float: none;
	clear: both;
	box-sizing: border-box;
}

#ellevate-technical-briefing-section .elementor,
#ellevate-technical-briefing-section .e-con,
#ellevate-technical-briefing-section .elementor-section {
	max-width: none;
}

/* Embedded Elementor / WP videos — responsive on small screens */
@media (max-width: 767px) {
	#ellevate-elementor-middle-section,
	#ellevate-technical-briefing-section {
		overflow-x: hidden;
	}

	#ellevate-elementor-middle-section .elementor-video,
	#ellevate-elementor-middle-section .elementor-widget-video,
	#ellevate-elementor-middle-section .elementor-wrapper,
	#ellevate-technical-briefing-section .elementor-video,
	#ellevate-technical-briefing-section .elementor-widget-video,
	#ellevate-technical-briefing-section .elementor-wrapper {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 16 / 9;
	}

	#ellevate-elementor-middle-section video,
	#ellevate-elementor-middle-section iframe,
	#ellevate-technical-briefing-section video,
	#ellevate-technical-briefing-section iframe {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 16 / 9;
		object-fit: contain !important;
	}
}

/* -------------------------------------------------------------------------
   Elementor isolation — undo Tailwind preflight / theme base inside builder
   output. :where() keeps specificity at (0, 1, 0) so kit + widget CSS still
   win. Do not use !important on these resets.
   ------------------------------------------------------------------------- */

.ellevate-elementor-document .site-main,
.site-main.ellevate-elementor-document,
.ellevate-elementor-entry,
.ellevate-elementor-entry .entry-content,
.elementor-location-single,
.elementor-location-archive {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	clear: both;
	box-sizing: border-box;
}

.elementor :where(h1, h2, h3, h4, h5, h6) {
	font-size: revert;
	font-weight: revert;
	margin: revert;
	line-height: revert;
	letter-spacing: revert;
}

.elementor :where(p, blockquote, figure, pre, dl, dd, hr) {
	margin: revert;
}

.elementor :where(ul, ol, menu) {
	list-style: revert;
	margin: revert;
	padding: revert;
}

.elementor :where(img, video) {
	max-width: revert;
	height: revert;
	display: revert;
	vertical-align: revert;
}

.elementor :where(.container) {
	width: 100%;
	max-width: none;
}

.ellevate-prose .elementor,
.ellevate-prose .elementor-section,
.ellevate-prose .e-con,
.elementor .ellevate-prose {
	max-width: none;
	width: 100%;
}

/* Theme dark canvas must not cover Elementor page/template backgrounds. */
body.ellevate-elementor-document .site-main,
body.ellevate-elementor-document .ellevate-elementor-entry,
body.ellevate-elementor-document .entry-content,
body.elementor-page .site-main,
body.elementor-page .entry-content {
	background-color: transparent;
	background-image: none;
}

body.ellevate-elementor-document .elementor,
body.elementor-page .elementor {
	min-height: 100%;
}
