/**
 * KASA FIK — EET 2.0 homepage hero (page 18 / child page 1393).
 *
 * Scoped to .kf-hero. No theme or navbar rules are overridden.
 */

.kf-hero {
	--kf-ink: #17181d;
	--kf-body: #44464f;
	--kf-red: #d81f26;
	--kf-red-dark: #ac141a;
	--kf-cream: #fdf8ee;
	--kf-nav-bottom: 52px;
	--kf-gutter: max(20px, calc((100vw - 1170px) / 2 + 15px));

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	margin: 0;
	background: var(--kf-cream);
	color: var(--kf-ink);
	font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.kf-hero *,
.kf-hero *::before,
.kf-hero *::after {
	box-sizing: border-box;
}

.kf-hero .kf-hero__stage {
	position: relative;
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Background plate                                                    */
/* ------------------------------------------------------------------ */

.kf-hero .kf-hero__bg {
	display: block;
	margin: 0;
}

.kf-hero .kf-hero__bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

/* ------------------------------------------------------------------ */
/* Copy                                                                */
/* ------------------------------------------------------------------ */

.kf-hero .kf-hero__copy {
	position: relative;
	z-index: 3;
	padding: 24px var(--kf-gutter) 38px;
}

.kf-hero .kf-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--kf-red);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.kf-hero .kf-hero__dot {
	position: relative;
	display: inline-block;
	width: 9px;
	height: 9px;
	flex: none;
	border-radius: 50%;
	background: var(--kf-red);
}

.kf-hero .kf-hero__dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid rgba(216, 31, 38, 0.32);
	border-radius: 50%;
}

.kf-hero .kf-hero__title {
	margin: 0;
	color: var(--kf-ink);
	font-family: 'Nunito', sans-serif;
	font-size: clamp(38px, 4.2vw, 64px);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.028em;
}

.kf-hero .kf-hero__title em {
	color: var(--kf-red);
	font-style: normal;
}

.kf-hero .kf-hero__lead {
	margin: 14px 0 0;
	color: #2b2d35;
	font-size: clamp(17px, 1.45vw, 23px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.kf-hero .kf-hero__trust {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 7px 18px;
	margin: 14px 0 0;
	padding: 9px 14px;
	border: 1px solid rgba(23, 24, 29, 0.09);
	background: rgba(255, 251, 243, 0.86);
	color: #30323a;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
}

.kf-hero .kf-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.kf-hero .kf-hero__trust svg {
	display: block;
	width: 14px;
	height: 14px;
	flex: none;
	color: var(--kf-red);
}

.kf-hero .kf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.kf-hero .kf-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 0;
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.005em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.kf-hero .kf-hero__btn svg {
	display: block;
	width: 18px;
	height: 18px;
	transition: transform 0.18s ease;
}

.kf-hero .kf-hero__btn--primary {
	background: var(--kf-red);
	border-color: var(--kf-red);
	color: #fff;
	box-shadow: 0 10px 24px -12px rgba(120, 12, 18, 0.65);
}

.kf-hero .kf-hero__btn--primary:hover,
.kf-hero .kf-hero__btn--primary:focus {
	background: var(--kf-red-dark);
	border-color: var(--kf-red-dark);
	color: #fff;
	text-decoration: none;
}

.kf-hero .kf-hero__btn--primary:hover svg,
.kf-hero .kf-hero__btn--primary:focus svg {
	transform: translateX(3px);
}

.kf-hero .kf-hero__btn--ghost {
	background: rgba(255, 251, 243, 0.9);
	border-color: var(--kf-ink);
	color: var(--kf-ink);
}

.kf-hero .kf-hero__btn--ghost:hover,
.kf-hero .kf-hero__btn--ghost:focus {
	background: var(--kf-ink);
	border-color: var(--kf-ink);
	color: #fff;
	text-decoration: none;
}

.kf-hero .kf-hero__btn:focus-visible {
	outline: 3px solid #17181d;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(255, 251, 243, 0.9);
}

.kf-hero .kf-hero__btn:hover {
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Tablet and desktop: layered scene                                   */
/* ------------------------------------------------------------------ */

@media (min-width: 768px) {
	.kf-hero .kf-hero__stage {
		height: clamp(680px, 52vw, 880px);
	}

	.kf-hero .kf-hero__bg {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 0;
	}

	.kf-hero .kf-hero__bg img {
		object-position: 50% bottom;
	}

	.kf-hero .kf-hero__inner {
		position: absolute;
		inset: 0;
		z-index: 3;
		display: flex;
		align-items: flex-start;
		pointer-events: none;
	}

	.kf-hero .kf-hero__copy {
		width: min(560px, 48%);
		margin-left: var(--kf-gutter);
		padding: calc(var(--kf-nav-bottom) + 30px) 0 0;
		pointer-events: auto;
	}

	/* The original artwork has a white strip where the hat crosses the
	   navbar. Tint only its upper edge so the untouched white nav stays
	   readable, without editing any pixels of the supplied illustration. */
	.kf-hero .kf-hero__shade {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		z-index: 2;
		height: calc(var(--kf-nav-bottom) + 80px);
		background: linear-gradient(180deg, rgba(8, 24, 44, 0.66) 0%, rgba(8, 24, 44, 0.4) 52%, rgba(8, 24, 44, 0) 100%);
		pointer-events: none;
	}

	/* Compact CTA row for the narrower desktop range so the two buttons
	   stay on one line and clear of the devices below. */
	.kf-hero .kf-hero__actions {
		gap: 10px;
	}

	.kf-hero .kf-hero__btn {
		min-height: 54px;
		padding: 0 16px;
		font-size: 15px;
		gap: 8px;
	}

	.kf-hero .kf-hero__btn svg {
		width: 17px;
		height: 17px;
	}
}

/* ------------------------------------------------------------------ */
/* 768–1199: tighter copy, smaller devices area                        */
/* ------------------------------------------------------------------ */

@media (min-width: 768px) and (max-width: 1199px) {
	.kf-hero .kf-hero__copy {
		padding-top: calc(var(--kf-nav-bottom) + 14px);
	}

	.kf-hero .kf-hero__title {
		font-size: clamp(36px, 4.3vw, 52px);
	}

	.kf-hero .kf-hero__eyebrow {
		margin-bottom: 10px;
	}

	.kf-hero .kf-hero__lead {
		margin-top: 8px;
		font-size: 18px;
	}

	.kf-hero .kf-hero__trust {
		margin-top: 8px;
		padding: 8px 12px;
		font-size: 12px;
	}

	.kf-hero .kf-hero__actions {
		margin-top: 10px;
	}
}

/* Tablet shows the left part of the same artwork: devices remain visible
   while the farmer stays beyond the right edge of the crop. */
@media (min-width: 768px) and (max-width: 991px) {
	.kf-hero {
		/* No-JS fallback: the theme's navbar wraps to two rows here. The
		   script replaces both values with the measured height. */
		--kf-nav-bottom: 111px;
	}

	.kf-hero .kf-hero__copy {
		width: 58%;
		/* Keep the CTA clear of the foreground printer at tablet widths. */
		padding-top: calc(var(--kf-nav-bottom) + 12px);
	}

	.kf-hero .kf-hero__title {
		font-size: clamp(34px, 4.6vw, 44px);
	}

	.kf-hero .kf-hero__bg img {
		object-position: left bottom;
	}
}

/* 992–1199: the navbar is two rows tall (about 91 px). */
@media (min-width: 992px) and (max-width: 1199px) {
	.kf-hero {
		--kf-nav-bottom: 91px;
	}
}

/* ------------------------------------------------------------------ */
/* Phone: copy above a composed still                                  */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.kf-hero .kf-hero__copy {
		padding-top: 24px;
		padding-bottom: 30px;
	}

	.kf-hero .kf-hero__eyebrow {
		margin-bottom: 16px;
		font-size: 12px;
		letter-spacing: 0.08em;
	}

	.kf-hero .kf-hero__title {
		font-size: clamp(34px, 9.4vw, 44px);
	}

	.kf-hero .kf-hero__lead {
		margin-top: 14px;
		font-size: 17px;
	}

	.kf-hero .kf-hero__trust {
		display: flex;
		margin-top: 16px;
		padding: 9px 12px;
		font-size: 12px;
	}

	.kf-hero .kf-hero__actions {
		flex-direction: column;
		gap: 10px;
		margin-top: 20px;
	}

	.kf-hero .kf-hero__btn {
		width: 100%;
		min-height: 53px;
		padding: 0 18px;
		font-size: 16px;
	}

	.kf-hero .kf-hero__bg {
		width: 100%;
		max-width: 480px;
		margin: 0 auto;
	}

	.kf-hero .kf-hero__bg img {
		height: auto;
		aspect-ratio: 4 / 5;
		object-position: center top;
	}
}

/* ------------------------------------------------------------------ */
/* Motion preferences and print                                        */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.kf-hero .kf-hero__btn,
	.kf-hero .kf-hero__btn svg {
		transition: none;
	}
}

@media print {
	.kf-hero {
		display: none;
	}
}
