/* =============================
   Glo Elementor Widgets - Styles
   ============================= */

/* ---------- Scroll Reveal (shared) ---------- */
.gloew-reveal {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.gloew-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* stagger delays set via inline style --gloew-delay, fallback below */
.gloew-reveal {
	transition-delay: var(--gloew-delay, 0s);
}

/* Parallax media wrapper: media itself scales/translates, container clips */
.gloew-parallax-media {
	position: absolute;
	inset: -12% 0;
	will-change: transform;
}

.gloew-parallax-media img,
.gloew-parallax-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Hero Splash Widget ---------- */
.gloew-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
}

.gloew-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.gloew-hero-bg-layer {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation-name: gloewColorCycle;
	animation-duration: var(--gloew-speed, 12s);
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
}

@keyframes gloewColorCycle {
	0% { opacity: 0; }
	10% { opacity: 1; }
	35% { opacity: 1; }
	45% { opacity: 0; }
	100% { opacity: 0; }
}

.gloew-hero-bubbles {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.gloew-bubble {
	position: absolute;
	bottom: -160px;
	border-radius: 50%;
	background: var(--gloew-bubble-color, rgba(255,255,255,0.45));
	animation-name: gloewFloatUp;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes gloewFloatUp {
	0% {
		transform: translateY(0) translateX(0);
		opacity: 0;
	}
	10% {
		opacity: 0.9;
	}
	100% {
		transform: translateY(-120vh) translateX(30px);
		opacity: 0;
	}
}

.gloew-hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	padding: 40px 20px;
}

.gloew-hero-eyebrow {
	letter-spacing: 4px;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.gloew-hero-heading {
	font-size: clamp(36px, 6vw, 72px);
	line-height: 1.15;
	margin: 0 0 36px;
	font-weight: 400;
	font-family: Georgia, 'Times New Roman', serif;
}

.gloew-heading-italic {
	font-style: italic;
	display: inline-block;
}

.gloew-hero-btn {
	display: inline-block;
	position: relative;
	padding: 18px 46px;
	border: 1.5px solid currentColor;
	border-radius: 40px;
	text-decoration: none;
	color: inherit;
	font-size: 16px;
	letter-spacing: 0.5px;
	overflow: hidden;
	transition: background 0.3s ease, color 0.3s ease;
}

.gloew-hero-btn .gloew-btn-text {
	display: inline-block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.gloew-hero-btn:hover {
	background: rgba(0,0,0,0.05);
}

/* ---------- Fullscreen Media Banner Widget ---------- */
.gloew-banner {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

.gloew-banner-media {
	position: absolute;
	inset: -12% 0;
	z-index: 0;
	will-change: transform;
}

.gloew-banner-video,
.gloew-banner-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gloew-banner-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20,10,20,0.15);
}

.gloew-banner-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	padding: 60px 20px;
	max-width: 900px;
}

.gloew-banner-heading {
	font-size: clamp(30px, 5vw, 56px);
	font-weight: 400;
	margin: 0 0 16px;
	font-family: Georgia, 'Times New Roman', serif;
}

.gloew-banner-desc {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 auto 20px;
	max-width: 700px;
}

.gloew-scroll-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.gloew-scroll-arrow {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	animation: gloewBounce 1.6s infinite;
}

@keyframes gloewBounce {
	0%, 100% { transform: rotate(45deg) translate(0,0); }
	50% { transform: rotate(45deg) translate(6px,6px); }
}

/* ---------- Counter Widget ---------- */
.gloew-counter {
	text-align: center;
}

.gloew-counter-number {
	display: inline-block;
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 700;
	line-height: 1.1;
}

.gloew-counter-label {
	margin-top: 8px;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ---------- Banner Slider Widget ---------- */
.gloew-slider {
	position: relative;
	height: 90vh;
	overflow: hidden;
}

.gloew-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.gloew-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(0);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.8s;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.gloew-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	z-index: 2;
}

/* Incoming slide starting position (set just before is-active is applied). */
.gloew-slide.is-entering-right {
	opacity: 0;
	visibility: visible;
	transform: translateX(8%);
	z-index: 2;
}

.gloew-slide.is-entering-left {
	opacity: 0;
	visibility: visible;
	transform: translateX(-8%);
	z-index: 2;
}

/* Outgoing slide exits toward the opposite side while fading. */
.gloew-slide.is-leaving-left {
	opacity: 0;
	visibility: visible;
	transform: translateX(-8%);
	z-index: 1;
}

.gloew-slide.is-leaving-right {
	opacity: 0;
	visibility: visible;
	transform: translateX(8%);
	z-index: 1;
}

.gloew-slide-media {
	position: absolute;
	inset: -12% 0;
	z-index: 0;
	will-change: transform;
}

.gloew-slide-video,
.gloew-slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gloew-slide-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20,10,20,0.25);
}

.gloew-slide-content {
	position: relative;
	z-index: 1;
	text-align: center;
	color: #fff;
	padding: 60px 20px 90px;
	max-width: 800px;
}

.gloew-slide-eyebrow {
	letter-spacing: 3px;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 14px;
}

.gloew-slide-heading {
	font-size: clamp(28px, 4.5vw, 48px);
	font-weight: 400;
	margin: 0 0 14px;
	font-family: Georgia, 'Times New Roman', serif;
}

.gloew-slide-desc {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 auto 22px;
	max-width: 600px;
}

.gloew-slide-btn {
	display: inline-block;
	padding: 14px 36px;
	border: 1.5px solid currentColor;
	border-radius: 40px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
	letter-spacing: 0.5px;
	transition: background 0.3s ease;
}

.gloew-slide-btn:hover {
	background: rgba(255,255,255,0.15);
}

.gloew-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid #fff;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.gloew-slider-arrow:hover {
	background: rgba(255,255,255,0.15);
}

.gloew-slider-prev {
	left: 24px;
}

.gloew-slider-next {
	right: 24px;
}

.gloew-slider-dots {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 10px;
}

.gloew-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.5);
	cursor: pointer;
	padding: 0;
	transition: background 0.3s ease, transform 0.3s ease;
}

.gloew-slider-dot.is-active {
	background: #fff;
	transform: scale(1.2);
}

@media (max-width: 767px) {
	.gloew-hero-heading,
	.gloew-banner-heading {
		font-size: clamp(28px, 8vw, 44px);
	}

	.gloew-slider-arrow {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.gloew-slider-prev {
		left: 10px;
	}

	.gloew-slider-next {
		right: 10px;
	}
}
