/**
 * Parallax Hero Widget Styles
 *
 * Full-screen parallax background with centered CTA box.
 * Uses existing parallax library.
 *
 * @package exat-elementor-addon
 */

/* ============================================================
   Parallax Hero Container
   ============================================================ */
.exat-parallax-hero {
	position: relative;
	width: 100%;
	min-height: var(--exat-section-height, 100vh);
	overflow: hidden;
	display: flex;
}

/* Alignment variants */
.exat-parallax-hero__container--top-left { align-items: flex-start; justify-content: flex-start; text-align: left; }
.exat-parallax-hero__container--top-center { align-items: flex-start; justify-content: center; text-align: center; }
.exat-parallax-hero__container--top-right { align-items: flex-start; justify-content: flex-end; text-align: right; }
.exat-parallax-hero__container--center-left { align-items: center; justify-content: flex-start; text-align: left; }
.exat-parallax-hero__container--center-center { align-items: center; justify-content: center; text-align: center; }
.exat-parallax-hero__container--center-right { align-items: center; justify-content: flex-end; text-align: right; }
.exat-parallax-hero__container--bottom-left { align-items: flex-end; justify-content: flex-start; text-align: left; }
.exat-parallax-hero__container--bottom-center { align-items: flex-end; justify-content: center; text-align: center; }
.exat-parallax-hero__container--bottom-right { align-items: flex-end; justify-content: flex-end; text-align: right; }


/* ============================================================
   Background Layer
   ============================================================ */
.exat-parallax-hero__background {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}

/* Background Image */
.exat-parallax-hero__image {
	position: absolute;
	inset: 0;
	width: 120%;
	height: 120% !important;
	object-fit: cover;
	object-position: center center;
	will-change: transform;
}

/* simpleParallax will handle the transform */

/* Background Video */
.exat-parallax-hero__video {
	position: absolute;
	/* inset: -10%; */
	width: 120%;
	height: 120%;
	object-fit: cover;
	z-index: 1;
	will-change: transform;
}

/* Ensure the wrapper created by simpleParallax fills the container */
.exat-parallax-hero__background .simpleParallax {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

/* ============================================================
   Overlay Layer
   ============================================================ */
.exat-parallax-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

/* ============================================================
   Content Container
   ============================================================ */
.exat-parallax-hero__container {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================================
   CTA Box
   ============================================================ */
.exat-parallax-hero__content {
	background-color: var(--exat-cta-bg, rgba(255, 255, 255, 0.95));
	padding: var(--exat-cta-padding-top, 40px) var(--exat-cta-padding-right, 40px) var(--exat-cta-padding-bottom, 40px) var(--exat-cta-padding-left, 40px);
	border-radius: var(--exat-cta-radius, 16px);
	max-width: 800px;
	width: 100%;
	text-align: center;
}

/* ============================================================
   Title
   ============================================================ */
.exat-parallax-hero__title {
	margin: 0;
	line-height: 1.2;
}

/* ============================================================
   Subtitle
   ============================================================ */
.exat-parallax-hero__subtitle {
	margin: 0;
	line-height: 1.4;
}

/* ============================================================
   Content
   ============================================================ */
.exat-parallax-hero__content-text {
	margin: 0;
	line-height: 1.6;
}

/* ============================================================
   Excerpt
   ============================================================ */
.exat-parallax-hero__excerpt {
	margin: 0;
	line-height: 1.5;
}

/* ============================================================
   Button
   ============================================================ */
.exat-parallax-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--exat-button-gap, 8px);
	padding: var(--exat-button-padding-top, 14px) var(--exat-button-padding-right, 28px) var(--exat-button-padding-bottom, 14px) var(--exat-button-padding-left, 28px);
	background-color: var(--exat-button-bg, #1d4ed8);
	color: var(--exat-button-text-color, #ffffff);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	border-radius: var(--exat-button-radius, 8px);
	transition: all 0.2s ease;
	cursor: pointer;
	border-top-width: var(--exat-button-border-top, 0);
	border-right-width: var(--exat-button-border-right, 0);
	border-bottom-width: var(--exat-button-border-bottom, 0);
	border-left-width: var(--exat-button-border-left, 0);
	border-style: var(--exat-button-border-style, solid);
	border-color: var(--exat-button-border-color, #ffffff);
}

.exat-parallax-hero__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

.exat-parallax-hero__button-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.exat-parallax-hero__button:hover {
	background-color: #1e40af;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.exat-parallax-hero__button:focus {
	outline: 2px solid #60a5fa;
	outline-offset: 2px;
}

.exat-parallax-hero__button:active {
	transform: translateY(0);
}

.exat-parallax-hero__button--full-width {
	width: 100%;
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 1024px) {
	.exat-parallax-hero {
		min-height: 80vh;
	}
}

@media (max-width: 768px) {
	.exat-parallax-hero {
		min-height: 70vh;
	}
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.exat-parallax-hero__image {
		transform: none !important;
	}

	.exat-parallax-hero__button {
		transition: none;
	}
}
