/**
 * Hero Widget — Picklemall Widgets
 */

/* ── Section ──────────────────────────────────────────────────────────────── */

.pm-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	/* height: 100dvh; */
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* ── Background image ─────────────────────────────────────────────────────── */

.pm-hero__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh !important;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	transform: scale(1.2);
	transform-origin: center;
	will-change: transform;
	-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
	mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ── Content ──────────────────────────────────────────────────────────────── */

.pm-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1400px;
	/* padding: clamp(2rem, 	5vw, 4rem) clamp(1.5rem, 5vw, 3rem); */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	/* gap: 48px; */
	text-align: center;
	bottom: 0;
}

/* ── Mask wrappers (clip translateY reveal) ───────────────────────────────── */

.pm-hero__mask {
	overflow: hidden;
}

/* ── Title ────────────────────────────────────────────────────────────────── */

.pm-hero__title {
	font-family: var(--pm-font-header, 'A Love of Thunder', serif);
	font-size: 62px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
	margin: 0;
	transform: translateY(110%);
	will-change: transform;
}

/* ── Subtitle ─────────────────────────────────────────────────────────────── */

.pm-hero__subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 32px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.3;
	margin: 0;
	transform: translateY(110%);
	will-change: transform;
}

/* ── CTA wrap ─────────────────────────────────────────────────────────────── */

.pm-hero__cta-wrap {
	display: flex;
	justify-content: center;
}

/* ── Sponsors (wraps CTA + sponsor logos as one animated unit) ────────────── */

.pm-hero__sponsors {
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0;
	transform: translateY(24px);
	will-change: transform, opacity;
	width: 100%;
}

.pm-hero__sponsor-main {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pm-hero__sponsor-main a,
.pm-hero__sponsor-item a {
	display: inline-flex;
	text-decoration: none;
}

.pm-hero__sponsor-row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
	flex: 1;
	gap: 60px;
}

.pm-hero__sponsor-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 1 1 0;
}

.pm-hero__sponsor-label {
	font-family: var(--pm-font-header, 'A Love of Thunder', serif);
	font-size: 16px;
	color: rgba(255, 255, 255, 1);
	text-align: center;
	line-height: 1.3;
	white-space: nowrap;
}

.pm-hero__sponsor-main img,
.pm-hero__sponsor-item img {
	height: 36px;
	width: auto;
	max-width: 100%;
	display: block;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */

@keyframes pm-hero-scale-down {
	from {
		transform: scale(1.2);
	}

	to {
		transform: scale(1);
	}
}

@keyframes pm-hero-slide-up {
	from {
		transform: translateY(110%);
	}

	to {
		transform: translateY(0);
	}
}

@keyframes pm-hero-cta-enter {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Animation triggers (added by JS via IntersectionObserver) ────────────── */

.pm-hero--ready .pm-hero__image {
	animation: pm-hero-scale-down 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.pm-hero--ready .pm-hero__title {
	animation: pm-hero-slide-up 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	animation-delay: 0.5s;
}

.pm-hero--ready .pm-hero__subtitle {
	animation: pm-hero-slide-up 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	animation-delay: 0.75s;
}

.pm-hero--ready .pm-hero__sponsors {
	animation: pm-hero-cta-enter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	animation-delay: 1.25s;
}

/* ── Mobile image toggle ──────────────────────────────────────────────────── */

.pm-hero__image--mobile {
	display: none;
}

@media (max-width: 768px) {
	.pm-hero__image--desktop {
		display: none;
	}

	.pm-hero__image--mobile {
		display: block;
	}
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.pm-hero {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
	}

	.pm-hero__image {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		height: 100vh !important;
	}

	.pm-hero__content {
		gap: 24px;
	}

	.pm-hero__title {
		font-size: clamp(32px, 8vw, 52px);
	}

	.pm-hero__subtitle {
		font-size: clamp(18px, 4.5vw, 26px);
	}

	/* CTA — 50% (with sponsors) */
	.pm-hero .pm-cta__image {
		width: 200px;
	}

	/* CTA — bigger and lifted when no sponsors */
	.pm-hero__sponsors--no-sponsors {
		margin-bottom: 48px;
	}

	.pm-hero__sponsors--no-sponsors .pm-cta__image {
		width: 300px;
	}

	/* Sponsors — 70% of desktop values */
	.pm-hero__sponsor-label {
		font-size: 11px;
	}

	.pm-hero__sponsor-main img,
	.pm-hero__sponsor-item img {
		height: 25px;
	}

	.pm-hero__sponsor-row {
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.pm-hero__title {
		font-size: clamp(28px, 7vw, 40px);
	}

	.pm-hero__subtitle {
		font-size: clamp(16px, 4vw, 22px);
	}

}