/* ==========================================================================
   Big Hero Widget
   ========================================================================== */

/* Wrapper */
.loria-big-hero-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	display: flex;
	align-items: center; /* default vertical: center */
}

/* Full viewport height mode */
.loria-big-hero-wrapper[data-height="viewport"] {
	min-height: 100vh;
}

@media (max-width: 767px) {
	.loria-big-hero-wrapper[data-height="viewport"] {
		min-height: calc(100vh - 70px);
	}
}

/* Vertical alignment is handled by the overlay's justify-content (see below) */

/* --------------------------------------------------------------------------
   Media container (image / video)
   -------------------------------------------------------------------------- */
.loria-big-hero-media-container {
	position: absolute;
	inset: 0;
	z-index: 0;
}

/* Images */
.loria-big-hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Show/hide desktop vs. mobile images */
.loria-big-hero-image-mobile {
	display: none;
}

@media (max-width: 767px) {
	.loria-big-hero-image-desktop {
		display: none;
	}
	.loria-big-hero-image-mobile {
		display: block;
	}
}

/* Videos */
.loria-big-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.loria-big-hero-video-mobile {
	display: none;
}

@media (max-width: 767px) {
	.loria-big-hero-video-desktop {
		display: none;
	}
	.loria-big-hero-video-mobile {
		display: block;
	}
}

/* --------------------------------------------------------------------------
   Content overlay — fills the full wrapper height (like the media layer)
   -------------------------------------------------------------------------- */
.loria-big-hero-content-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	padding: 60px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center; /* default: vertically centered */
	box-sizing: border-box;
}

/* Vertical position via data attribute */
.loria-big-hero-wrapper[data-vertical="top"]    .loria-big-hero-content-overlay { justify-content: flex-start; }
.loria-big-hero-wrapper[data-vertical="center"] .loria-big-hero-content-overlay { justify-content: center; }
.loria-big-hero-wrapper[data-vertical="bottom"] .loria-big-hero-content-overlay { justify-content: flex-end; }

/* Content inner — behaves like a boxed/centered container */
.loria-big-hero-content-inner {
	width: 100%;
	max-width: 700px; /* default — overridden by Elementor control */
}

/* Horizontal alignment via data attribute (like Elementor container alignment) */
.loria-big-hero-wrapper[data-content-align="left"]   .loria-big-hero-content-inner { margin-right: auto; margin-left: 0; }
.loria-big-hero-wrapper[data-content-align="center"] .loria-big-hero-content-inner { margin-left: auto; margin-right: auto; }
.loria-big-hero-wrapper[data-content-align="right"]  .loria-big-hero-content-inner { margin-left: auto; margin-right: 0; }

/* Text alignment follows content alignment */
.loria-big-hero-wrapper[data-alignment="left"]   .loria-big-hero-content-inner { text-align: left; }
.loria-big-hero-wrapper[data-alignment="center"] .loria-big-hero-content-inner { text-align: center; }
.loria-big-hero-wrapper[data-alignment="right"]  .loria-big-hero-content-inner { text-align: right; }

/* --------------------------------------------------------------------------
   Typography defaults
   -------------------------------------------------------------------------- */
.loria-big-hero-title {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 16px;
	color: #fff;
}

.loria-big-hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: 12px;
	color: #fff;
}

.loria-big-hero-body {
	margin-bottom: 28px;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.loria-big-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.loria-big-hero-button {
	display: inline-block;
	padding: 14px 32px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	cursor: pointer;
}

.loria-big-hero-button-primary {
	background-color: #fff;
	color: #222;
	border: 2px solid #fff;
}

.loria-big-hero-button-primary:hover {
	background-color: transparent;
	color: #fff;
}

.loria-big-hero-button-secondary {
	background-color: transparent;
	color: #fff;
	border: 2px solid #fff;
}

.loria-big-hero-button-secondary:hover {
	background-color: #fff;
	color: #222;
}

/* Standalone Loria header overlay behavior is defined in main.css. */

/* Ensure the wrapper itself has at least some height so the absolute overlay is visible */
.loria-big-hero-wrapper:not([data-height="viewport"]) {
	min-height: var(--loria-big-hero-min-height, 400px);
}

/* --------------------------------------------------------------------------
   Entrance animations
   -------------------------------------------------------------------------- */

/* Ken Burns — background slowly zooms over 8s, one-time */
@keyframes loriaBigHeroKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.loria-big-hero-media-container {
    animation: loriaBigHeroKenBurns 8s ease-out forwards;
}

/* Content fade-up sequence — each piece arrives after the previous */
@keyframes loriaBigHeroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.loria-big-hero-title,
.loria-big-hero-subtitle,
.loria-big-hero-body,
.loria-big-hero-buttons {
    animation-name:            loriaBigHeroFadeUp;
    animation-duration:        0.6s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode:       both; /* holds the from-state before delay, to-state after */
}

.loria-big-hero-title    { animation-delay: 0.3s;  }
.loria-big-hero-subtitle { animation-delay: 0.48s; }
.loria-big-hero-body     { animation-delay: 0.62s; }
.loria-big-hero-buttons  { animation-delay: 0.78s; }

@media (prefers-reduced-motion: reduce) {
    .loria-big-hero-media-container {
        animation: none;
    }
    .loria-big-hero-title,
    .loria-big-hero-subtitle,
    .loria-big-hero-body,
    .loria-big-hero-buttons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.loria-big-hero-title {
		font-size: 2.2rem;
	}
	.loria-big-hero-content-overlay {
		padding: 48px 28px;
	}
}

@media (max-width: 767px) {
	.loria-big-hero-title {
		font-size: 1.8rem;
	}
	.loria-big-hero-subtitle {
		font-size: 1rem;
	}
	.loria-big-hero-content-overlay {
		padding: 36px 20px;
	}
	.loria-big-hero-buttons {
		flex-direction: column;
	}
	.loria-big-hero-button {
		text-align: center;
	}
}

/* Blue header background CSS is in style.css (globally loaded). */
