/* =====================================================
   WoodMart Widgets — Hero Pro v1.0
   ===================================================== */

/* ── Wrap ── */
.wdwgt-hero-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow: hidden;
	isolation: isolate; /* new stacking context */
}

/* ── Background ── */
.wdwgt-hero-bg {
	position: absolute;
	inset: -12%; /* extra room for parallax + mouse movement */
	will-change: transform;
	z-index: 0;
}

.wdwgt-hero-bg-img,
.wdwgt-hero-bg-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Overlay ── */
.wdwgt-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	/* gradient: heavy at bottom, lighter at top */
	background:
		linear-gradient(
			to top,
			rgba(0,0,0,0.6) 0%,
			transparent     60%
		),
		linear-gradient(
			to bottom,
			rgba(0,0,0,0.3) 0%,
			transparent     40%
		),
		/* Solid overlay controlled by CSS var */
		color-mix(in srgb, var(--hero-ov, #000) calc(var(--hero-op, 0.45) * 100%), transparent);
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.wdwgt-hero-overlay {
		background:
			linear-gradient(to top,  rgba(0,0,0,0.6) 0%, transparent 60%),
			linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%),
			rgba(0, 0, 0, 0.45);
	}
}

/* ── Decorative shapes (blobs) ── */
.wdwgt-hero-shapes {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}

.wdwgt-hero-shape {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0;       /* JS animates to final opacity */
	will-change: transform, opacity;
}

.wdwgt-hero-shape--1 {
	width: 520px;
	height: 520px;
	top: -120px;
	right: -80px;
	opacity: 0;
}

.wdwgt-hero-shape--2 {
	width: 380px;
	height: 380px;
	bottom: 60px;
	left: -100px;
	opacity: 0;
}

.wdwgt-hero-shape--3 {
	width: 260px;
	height: 260px;
	top: 40%;
	right: 20%;
	opacity: 0;
}

/* ── Main content ── */
.wdwgt-hero-content {
	position: relative;
	z-index: 10;
	flex: 1;
	display: flex;
	align-items: center;
	padding: 80px 40px;
}

/* Alignment variants */
.wdwgt-hero-wrap[data-align="center"] .wdwgt-hero-content  { justify-content: center; }
.wdwgt-hero-wrap[data-align="center"] .wdwgt-hero-inner    { text-align: center; }
.wdwgt-hero-wrap[data-align="center"] .wdwgt-hero-btns     { justify-content: center; }
.wdwgt-hero-wrap[data-align="center"] .wdwgt-hero-desc     { margin-inline: auto; }

.wdwgt-hero-wrap[data-align="right"]  .wdwgt-hero-content  { justify-content: flex-end; }
.wdwgt-hero-wrap[data-align="right"]  .wdwgt-hero-inner    { text-align: right; }
.wdwgt-hero-wrap[data-align="right"]  .wdwgt-hero-btns     { justify-content: flex-end; }

.wdwgt-hero-inner {
	width: 100%;
	max-width: 680px;
}

/* ── Badge ── */
.wdwgt-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 7px 18px;
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	margin-bottom: 24px;
	opacity: 0; /* animated by JS */
}

.wdwgt-hero-badge i,
.wdwgt-hero-badge svg {
	font-size: 12px;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* ── Headline ── */
.wdwgt-hero-title {
	font-size: clamp(36px, 6vw, 92px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 22px;
	/* SplitType lines — set overflow visible so masks work */
	overflow: visible;
}

/* Gradient text variant */
.wdwgt-hero-wrap[data-title-grad="yes"] .wdwgt-hero-title {
	background: linear-gradient(
		90deg,
		var(--hero-tg1, #ffffff) 0%,
		var(--hero-tg2, #a78bfa) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ── Sub-headline ── */
.wdwgt-hero-sub {
	font-size: clamp(14px, 1.6vw, 20px);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0; /* animated by JS */
}

/* ── Description ── */
.wdwgt-hero-desc {
	font-size: clamp(15px, 1.2vw, 18px);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 40px;
	max-width: 540px;
	opacity: 0; /* animated by JS */
}

/* ── Buttons ── */
.wdwgt-hero-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.wdwgt-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 32px;
	border-radius: 50px;
	text-decoration: none;
	will-change: transform;
	transition: transform 0.28s cubic-bezier(.4,0,.2,1),
	            filter  0.28s,
	            box-shadow 0.28s;
	opacity: 0; /* animated by JS */
}

.wdwgt-hero-btn:hover {
	transform: translateY(-3px);
	filter: brightness(1.1);
}

.wdwgt-hero-btn--primary {
	background: #ffffff;
	color: #1a1a1a;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.wdwgt-hero-btn--primary:hover {
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.wdwgt-hero-btn--secondary {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* ── Stats bar ── */
.wdwgt-hero-stats {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: stretch;
	padding: 0;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wdwgt-hero-stat {
	flex: 1;
	text-align: center;
	padding: 22px 16px;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}

.wdwgt-hero-stat:last-child {
	border-inline-end: none;
}

.wdwgt-hero-stat-value {
	display: block;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 800;
	color: #fff;
	line-height: 1;
	margin-bottom: 6px;
	letter-spacing: -0.01em;
}

.wdwgt-hero-stat-label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
}

/* ── Scroll indicator ── */
.wdwgt-hero-scroll {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 20px;
	display: flex;
	justify-content: center;
	padding-top: 7px;
}

.wdwgt-hero-scroll-dot {
	width: 4px;
	height: 7px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.wdwgt-hero-content {
		padding: 60px 24px;
	}

	.wdwgt-hero-btns {
		flex-direction: column;
		align-items: flex-start;
	}

	.wdwgt-hero-wrap[data-align="center"] .wdwgt-hero-btns {
		align-items: center;
	}

	.wdwgt-hero-btn {
		width: 100%;
		justify-content: center;
	}

	.wdwgt-hero-stats {
		flex-wrap: wrap;
	}

	.wdwgt-hero-stat {
		flex: 1 1 50%;
		border-inline-end: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.wdwgt-hero-stat:nth-child(odd) {
		border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
	}

	.wdwgt-hero-scroll {
		display: none;
	}

	.wdwgt-hero-shape--1 { width: 300px; height: 300px; }
	.wdwgt-hero-shape--2 { width: 220px; height: 220px; }
	.wdwgt-hero-shape--3 { width: 160px; height: 160px; }
}
