/**
 * SiteEngine GP Child CSS.
 *
 * Keep this file lean.
 * Use GenerateBlocks Global Styles for the actual design system.
 */

.siteengine-build {
	--se-transition-fast: 150ms ease;
	--se-transition-base: 250ms ease;
}

/**
 * Utility class for visually hidden accessible text.
 */
.se-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/**
 * SiteEngine Video Hero
 */
.se-video-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: clamp(520px, 72vh, 780px);
    
	/* --- THE FLEX BOX FIXES --- */
	display: flex;
	flex-direction: column;     /* Stacks the heading and button vertically */
	justify-content: center;    /* Centers the entire text group vertically in the hero */
	align-items: flex-start;    /* Keeps the text and button aligned to the left */
    
	background-size: cover;
	background-position: center;
}

/* Dark color overlay layer sitting directly above the video background */
.se-video-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(0 0 0 / 45%);
	pointer-events: none;
}

/* Force the shortcode's video tag to stretch and act as a true background layer */
.se-video-hero video,
.se-video-hero__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

/* Lift headings, text, and buttons safely above the video and color overlay */
.se-video-hero > *:not(video):not(.se-video-hero__video):not(.wp-block-shortcode) {
	position: relative;
	z-index: 1;
}

/* Mobile Performance: Hide the video asset on mobile screens */
@media (max-width: 767px) {
	.se-video-hero video,
	.se-video-hero__video {
		display: none;
	}
}


/**
 * SiteEngine Primary CTA Button (Master Constant)
 * To skin for a new site, only edit the hex codes in the 4 variables below.
 */
.se-primary-cta {
	/* Brand Color Tokens */
	--se-btn-start: #215bc2;       /* Gradient Start (Primary Color) */
	--se-btn-end: #144499;         /* Gradient End (Darker shade for depth) */
	--se-btn-hover-start: #1a4a9b; /* Hover Start */
	--se-btn-hover-end: #0f3273;   /* Hover End */

	/* Layout & Sizing */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;                   /* Shrinks/grows to wrap text perfectly */
	
	/* Spacing & Architecture */
	padding: 1rem 2.25rem;
	border-radius: 6px;            /* Clean, modern edge */
	border: none;
	
	/* Typography */
	color: #ffffff !important;     /* Guaranteed white lettering */
	text-decoration: none !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1;
	
	/* Visuals & Gradient */
	background: linear-gradient(135deg, var(--se-btn-start), var(--se-btn-end));
	box-shadow: 0 4px 6px rgba(33, 91, 194, 0.15);
	
	/* Smooth Performance Transitions */
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
	            box-shadow 0.2s ease, 
	            background 0.3s ease;
	cursor: pointer;
}

/* Hover & Focus Interactions */
.se-primary-cta:hover,
.se-primary-cta:focus {
	background: linear-gradient(135deg, var(--se-btn-hover-start), var(--se-btn-hover-end));
	transform: translateY(-2px);   /* Subtle premium lift effect */
	box-shadow: 0 6px 15px rgba(33, 91, 194, 0.25);
	color: #ffffff !important;
}

/* Click / Tap Interaction */
.se-primary-cta:active {
	transform: translateY(1px);    /* Simulates a physical button press */
	box-shadow: 0 2px 4px rgba(33, 91, 194, 0.15);
}