/*
 * Hero fejlécek. Csak azokon az oldalakon töltődik be, ahol van hero.
 *
 * Az átlós vágás: a csík és a fotó ugyanabban a keretben ül, és a sokszögük
 * azonos arányban ferde, ezért bármilyen képernyőn párhuzamosak maradnak.
 * A háttér a teljes szekción fut, így a vágás mögött mindig folytatódik.
 */

.wv-hero {
	position: relative;
	overflow: hidden;
	color: var(--wv-ink);
	background: url("../img/woodvill-hatter.png") left center / cover no-repeat;
}

.wv-hero--image-large,
.wv-hero--image-medium {
	display: flex;
	align-items: stretch;
}

.wv-hero--image-large {
	min-height: 600px;
}

.wv-hero--image-medium {
	min-height: 460px;
}

.wv-hero__text {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding-block: 72px;
	padding-right: 40px;
	padding-left: max(24px, calc((100% - var(--wv-content-width)) / 2));
}

.wv-hero--image-large .wv-hero__text {
	padding-block: 88px;
}

.wv-hero__compact {
	padding-block: 64px;
}

.wv-hero .wv-hero__eyebrow {
	margin: 0 0 20px;
	color: var(--wv-brand-dark);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 1.2px;
	line-height: 1.5;
	text-transform: uppercase;
}

.wv-hero .wv-hero__title {
	margin: 0 0 20px;
	color: var(--wv-ink);
	font-family: var(--wv-font);
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.wv-hero--image-large .wv-hero__title {
	font-size: clamp(48px, 6vw, 84px);
	line-height: 1.02;
}

.wv-hero--image-medium .wv-hero__title {
	font-size: clamp(30px, 3.8vw, 52px);
}

.wv-hero--compact .wv-hero__title {
	margin-bottom: 0;
	font-size: clamp(38px, 5vw, 68px);
}

.wv-hero .wv-hero__lead {
	max-width: 460px;
	margin: 0 0 32px;
	font-size: 20px;
	line-height: 1.5;
}

.wv-hero--compact .wv-hero__lead {
	margin: 16px 0 0;
}

.wv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}

.wv-hero a.wv-button {
	color: var(--wv-on-brand);
}

.wv-hero a.wv-hero__link {
	color: var(--wv-ink);
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	text-transform: uppercase;
}

.wv-hero a.wv-hero__link span {
	color: var(--wv-brand-dark);
}

.wv-hero__media {
	position: relative;
	flex: 1 1 440px;
	min-width: 0;
}

.wv-hero__stripe,
.wv-hero .wv-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
}

.wv-hero__stripe {
	background: var(--wv-brand);
	clip-path: polygon(10% 0, 16.5% 0, 6.5% 100%, 0 100%);
}

.wv-hero .wv-hero__img {
	object-fit: cover;
	/* A fotó bal éle a zöld csík jobb élére illeszkedik (16,5% / 6,5%),
	   0,3% átfedéssel – így nincs köztük fehér rés vagy élsimítási csík. */
	clip-path: polygon(16.2% 0, 100% 0, 100% 100%, 6.2% 100%);
}

.wv-hero .is-focus-left {
	object-position: left center;
}

.wv-hero .is-focus-center {
	object-position: center;
}

.wv-hero .is-focus-right {
	object-position: right center;
}

/* Mobilon a szöveg alá kerül a fotó, az átló a felső éle lesz. */
@media (max-width: 900px) {
	.wv-hero {
		background-position: 30% center;
	}

	.wv-hero--image-large,
	.wv-hero--image-medium {
		flex-direction: column;
		min-height: 0;
	}

	.wv-hero__text,
	.wv-hero--image-large .wv-hero__text {
		flex: none;
		padding: 32px 20px 8px;
	}

	.wv-hero__compact {
		width: 100%;
		padding: 32px 20px;
	}

	.wv-hero .wv-hero__eyebrow {
		margin-bottom: 12px;
		font-size: 12px;
		letter-spacing: 0.8px;
	}

	/* Mobilon visszafogottabb címek; a hosszú magyar szavak elválaszthatók. */
	.wv-hero .wv-hero__title {
		margin-bottom: 16px;
		hyphens: auto;
		text-wrap: balance;
	}

	.wv-hero--image-large .wv-hero__title {
		font-size: clamp(32px, 9vw, 56px);
		line-height: 1.05;
	}

	.wv-hero--image-medium .wv-hero__title {
		font-size: clamp(26px, 7vw, 40px);
		line-height: 1.1;
	}

	.wv-hero--compact .wv-hero__title {
		margin-bottom: 0;
		font-size: clamp(28px, 8vw, 46px);
		line-height: 1.1;
	}

	.wv-hero .wv-hero__lead {
		margin-bottom: 24px;
		font-size: 17px;
	}

	.wv-hero--compact .wv-hero__lead {
		margin: 12px 0 0;
	}

	.wv-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.wv-hero__actions .wv-button {
		text-align: center;
	}

	.wv-hero a.wv-hero__link {
		padding-block: 14px;
		text-align: center;
	}

	.wv-hero__media {
		flex: none;
		height: clamp(220px, 64vw, 400px);
	}

	.wv-hero__stripe {
		clip-path: polygon(0 18%, 100% 0, 100% 8%, 0 26%);
	}

	.wv-hero .wv-hero__img {
		/* A fotó felső éle a zöld csík alsó élére illeszkedik (26% / 8%). */
		clip-path: polygon(0 25.6%, 100% 7.6%, 100% 100%, 0 100%);
	}
}
