/* ==========================================================
   GSAP Scroll Reveal for Elementor — Stylesheet
   ========================================================== */

/* ── Wrapper ── */
.gsr-wrapper {
	width: 100%;
	overflow: hidden;
}

/* ── Section ── */
.gsr-section {
	display: flex;
	align-items: center;
	min-height: 90vh;
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* Image-left layout */
.gsr-section.gsr-layout-left {
	flex-direction: row-reverse;
}

/* ── Panels ── */
.gsr-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 5%;
	min-height: inherit;
}

.gsr-text-panel {
	flex: 1 1 50%;
}

.gsr-image-panel {
	flex: 1 1 50%;
	padding: 0;
	overflow: hidden;
	align-self: stretch;
}

/* ── Text inner ── */
.gsr-text-inner {
	max-width: 520px;
	width: 100%;
}

/* ── Reveal mechanism ── */
.gsr-reveal-wrap {
	overflow: hidden;
	display: block;
}

.gsr-reveal-item {
	display: block;
	will-change: transform, opacity;
}

/* ── Eyebrow ── */
.gsr-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	margin: 0 0 20px;
	color: var(--gsr-accent, #e8c97a);
}

/* ── Heading ── */
.gsr-heading {
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 24px;
	color: var(--gsr-text, #ffffff);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Ensure each wrapped line preserves overflow:hidden */
.gsr-heading .gsr-reveal-wrap {
	display: block;
}

/* ── Description ── */
.gsr-description {
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	line-height: 1.7;
	margin: 0 0 36px;
	color: var(--gsr-text, #ffffff);
	opacity: 0.8;
}

/* ── Button ── */
.gsr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: 2px solid var(--gsr-accent, #e8c97a);
	color: var(--gsr-accent, #e8c97a);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background 0.3s ease, color 0.3s ease;
	cursor: pointer;
}

.gsr-btn:hover {
	background: var(--gsr-accent, #e8c97a);
	color: #1a1a1a;
}

.gsr-btn svg {
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.gsr-btn:hover svg {
	transform: translateX(4px);
}

/* ── Image wrap ── */
.gsr-image-wrap {
	width: 100%;
	height: 100%;
	overflow: hidden;
	clip-path: inset(0 100% 0 0); /* start clipped — JS will animate */
	will-change: clip-path;
}

.gsr-img {
	width: 100%;
	height: 70%;
	min-height: 400px;
	object-fit: cover;
	transform-origin: center;
	will-change: transform;
	display: block;
}

.gsr-img-placeholder {
	width: 100%;
	height: 100%;
	min-height: 400px;
	background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.gsr-section {
		flex-direction: column !important;
		min-height: auto;
	}

	.gsr-panel {
		flex: none;
		width: 100%;
		padding: 50px 6%;
	}

	.gsr-image-panel {
		min-height: 50vw;
	}

	.gsr-img {
		height: 100%;
		min-height: 300px;
	}

	.gsr-text-inner {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.gsr-panel {
		padding: 40px 5%;
	}

	.gsr-heading {
		font-size: clamp(1.8rem, 7vw, 2.5rem);
	}
}

/* ── Elementor editor: show items unstacked ── */
.elementor-editor-active .gsr-image-wrap {
	clip-path: none !important;
}

.elementor-editor-active .gsr-reveal-item {
	transform: none !important;
	opacity: 1 !important;
}
