/**
 * TREEPLAST industrial hero
 * Official logo · factory media · cinematic green-charcoal overlay
 */

:root {
	/* Exact green sampled from TREEPLAST logo */
	--tk-hero-green: #003b26;
	--tk-hero-green-rgb: 0, 59, 38;
	--tk-hero-green-soft: #0a2d22;
	--tk-hero-green-soft-rgb: 10, 45, 34;
	--tk-hero-green-hover: #0a4a34;
	--tk-hero-ink: #081219;
	--tk-hero-white: #ffffff;
	--tk-hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--tk-hero-duration: 0.85s;
	--tk-hero-display: "General Sans", "Clash Display", var(--font-heading), sans-serif;
	--tk-hero-ui: "General Sans", "Satoshi", var(--font-ui), sans-serif;
	--tk-hero-gap: 36px;
	--tk-hero-inset: 14%;
	--tk-hero-logo-w: 160px;
}

.tk-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	height: 100vh;
	height: 100dvh;
	padding: 0;
	overflow: hidden;
	background-color: var(--tk-hero-ink);
	isolation: isolate;
}

/* —— Media —— */
.tk-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	transform: scale(1.05);
	transform-origin: center center;
	will-change: transform;
}

.tk-hero__video,
.tk-hero__image,
.tk-hero__fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	border-radius: 0;
	background-color: var(--tk-hero-ink);
}

.tk-hero__fallback {
	background:
		radial-gradient(90% 70% at 72% 40%, rgba(var(--tk-hero-green-rgb), 0.16) 0%, transparent 55%),
		linear-gradient(135deg, #0f1c18 0%, var(--tk-hero-ink) 100%);
}

/* Charcoal + transparent forest green — elegant, not obviously green */
.tk-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(8, 18, 25, 0.7) 0%,
		rgba(10, 45, 34, 0.45) 35%,
		rgba(8, 18, 25, 0.15) 70%,
		rgba(8, 18, 25, 0.05) 100%
	);
}

/* —— Content · left · vertically centered · breathing room —— */
.tk-hero__container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-flow: column;
	align-items: flex-start;
	justify-content: center;
	gap: var(--tk-hero-gap);
	width: min(640px, 72vw);
	max-width: 640px;
	margin: 0;
	margin-inline-start: var(--tk-hero-inset);
	padding: 110px 0;
	box-sizing: border-box;
}

/* Official TREEPLAST logo */
.tk-hero__brand {
	margin: 0 0 4px;
}

.tk-hero__logo {
	display: block;
	width: var(--tk-hero-logo-w);
	max-width: min(170px, 42vw);
	height: auto;
	object-fit: contain;
	object-position: left center;
}

/* Supporting headline — logo is the brand */
.tk-hero__title {
	margin: 0;
	max-width: 11ch;
	font-family: var(--tk-hero-display);
	font-size: clamp(64px, 7vw, 120px);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.05em;
	text-transform: none;
	color: #ffffff;
	word-break: break-word;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	text-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.tk-hero__desc {
	margin: 0;
	max-width: 560px;
	font-family: var(--tk-hero-ui);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.85);
	-webkit-font-smoothing: antialiased;
}

.tk-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

.tk-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		transform 0.35s var(--tk-hero-ease),
		background-color 0.3s ease,
		border-color 0.3s ease,
		color 0.3s ease,
		box-shadow 0.35s ease;
}

.tk-hero__cta--primary {
	background: var(--tk-hero-green);
	color: var(--tk-hero-white);
	border: 1px solid var(--tk-hero-green);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.tk-hero__cta--ghost {
	background: transparent;
	color: var(--tk-hero-white);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: none;
}

.tk-hero__cta:hover {
	transform: translateY(-2px);
}

.tk-hero__cta--primary:hover {
	background: var(--tk-hero-green-hover);
	border-color: var(--tk-hero-green-hover);
	color: var(--tk-hero-white);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.tk-hero__cta--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.85);
	color: var(--tk-hero-white);
}

.tk-hero__cta:active {
	transform: translateY(0);
}

.tk-hero__cta-label {
	font-family: var(--tk-hero-ui);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Entrance: logo → heading → description → buttons */
[data-tk-hero-anim] {
	opacity: 0;
	transform: translate3d(0, 20px, 0);
	transition:
		opacity var(--tk-hero-duration) var(--tk-hero-ease),
		transform var(--tk-hero-duration) var(--tk-hero-ease);
	transition-delay: var(--tk-hero-delay, 0ms);
	will-change: transform, opacity;
}

.tk-hero.is-ready [data-tk-hero-anim] {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.tk-hero.is-scrolling .tk-hero__media {
	transform: translate3d(0, var(--tk-hero-parallax, 0px), 0) scale(1.05);
	transition: transform 0.05s linear;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--tk-hero-duration: 0.01s;
	}

	.tk-hero__media,
	.tk-hero.is-scrolling .tk-hero__media {
		transform: scale(1.05);
	}

	[data-tk-hero-anim] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.tk-hero__cta:hover {
		transform: none;
	}
}

@media (max-width: 1199.98px) {
	:root {
		--tk-hero-inset: 8%;
		--tk-hero-gap: 28px;
		--tk-hero-logo-w: 148px;
	}

	.tk-hero__container {
		width: min(560px, 78vw);
		padding: 96px 0;
	}

	.tk-hero__desc {
		font-size: 16px;
	}
}

@media (max-width: 809.98px) {
	:root {
		--tk-hero-inset: 24px;
		--tk-hero-gap: 22px;
		--tk-hero-logo-w: 140px;
	}

	.tk-hero {
		min-height: 100svh;
		height: auto;
		padding: 120px 0 72px;
		align-items: flex-end;
	}

	.tk-hero__container {
		width: calc(100% - 48px);
		max-width: none;
		margin-inline-start: var(--tk-hero-inset);
		padding: 0;
	}

	.tk-hero__title {
		max-width: 100%;
		font-size: clamp(48px, 12vw, 64px);
		letter-spacing: -0.04em;
	}

	.tk-hero__desc {
		font-size: 15px;
		max-width: 100%;
	}

	.tk-hero__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.tk-hero__cta {
		width: 100%;
	}

	.tk-hero__overlay {
		background: linear-gradient(
			180deg,
			rgba(8, 18, 25, 0.3) 0%,
			rgba(10, 45, 34, 0.5) 45%,
			rgba(8, 18, 25, 0.78) 100%
		);
	}
}

html[dir="rtl"] .tk-hero {
	justify-content: flex-end;
}

html[dir="rtl"] .tk-hero__container {
	align-items: flex-start;
	margin-inline-start: 0;
	margin-inline-end: var(--tk-hero-inset);
}

html[dir="rtl"] .tk-hero__logo {
	object-position: right center;
}

html[dir="rtl"] .tk-hero__overlay {
	background: linear-gradient(
		270deg,
		rgba(8, 18, 25, 0.7) 0%,
		rgba(10, 45, 34, 0.45) 35%,
		rgba(8, 18, 25, 0.15) 70%,
		rgba(8, 18, 25, 0.05) 100%
	);
}

html[dir="rtl"] .tk-hero__title {
	letter-spacing: -0.03em;
}
