/**
 * LiberArt home hero – vanilla replacement for Revolution Slider #1
 */

.liberart-home-hero {
	--liberart-hero-h: 900px;
	--liberart-ink: #1c1a18;
	--liberart-literary: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--liberart-hero-h);
	margin: 0;
	padding: 0 1.25rem;
	box-sizing: border-box;
	overflow: hidden;
	background: transparent;
}

.liberart-home-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 3.5vw, 2.75rem);
	text-align: center;
	max-width: 36rem;
	transform: translateY(-4%);
}

.liberart-home-hero__logo {
	display: block;
	width: min(280px, 64vw);
	height: auto;
	opacity: 0;
	animation: liberart-hero-fade 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.1s;
}

.liberart-home-hero__tagline {
	margin: 0;
	padding: 0;
	max-width: 18ch;
	color: var(--liberart-ink);
	font-family: var(--liberart-literary);
	font-weight: 500;
	font-style: italic;
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	letter-spacing: 0.01em;
	line-height: 1.28;
	text-wrap: balance;
	opacity: 0;
	animation: liberart-hero-fade 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.35s;
}

/* Elementor had -15% bottom margin on the old RevSlider → arrow overlapped the claim */
.elementor-788 .elementor-element.elementor-element-75133d8 > .elementor-widget-container {
	margin-bottom: 0 !important;
}

.elementor-788 .elementor-element.elementor-element-1cc844d {
	margin-top: clamp(2.5rem, 6vh, 5rem);
	position: relative;
	z-index: 2;
}

@keyframes liberart-hero-fade {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.liberart-home-hero {
		--liberart-hero-h: 700px;
	}

	.liberart-home-hero__logo {
		width: min(230px, 52vw);
	}
}

@media (max-width: 778px) {
	.liberart-home-hero {
		--liberart-hero-h: 700px;
	}

	.liberart-home-hero__logo {
		width: min(190px, 48vw);
	}
}

@media (max-width: 767px) {
	.elementor-788 .elementor-element.elementor-element-75133d8.elementor-hidden-mobile,
	.elementor-hidden-mobile:has(.liberart-home-hero) {
		display: block !important;
	}

	.elementor-788 .elementor-element.elementor-element-75133d8 > .elementor-widget-container {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.liberart-home-hero {
		--liberart-hero-h: min(70vh, 520px);
		padding-top: 2.5rem;
		padding-bottom: 1.5rem;
	}

	.liberart-home-hero__inner {
		transform: none;
		gap: 1.35rem;
	}

	.liberart-home-hero__logo {
		width: min(170px, 46vw);
	}

	.liberart-home-hero__tagline {
		font-size: clamp(1.2rem, 5vw, 1.55rem);
		max-width: 16ch;
	}

	.elementor-788 .elementor-element.elementor-element-1cc844d {
		margin-top: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.liberart-home-hero__logo,
	.liberart-home-hero__tagline {
		opacity: 1;
		animation: none;
		transform: none;
	}
}
