/**
 * Homepage sections. Tokens come from style.css.
 */

/* =========================================================================
   SECTION HEADS
   ========================================================================= */

.kf-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 42px;
	flex-wrap: wrap;
}

.kf-section__head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.kf-section__head .kf-title { margin-bottom: 0; }
.kf-section__head-cta { flex: none; }

.kf-section__cta { margin-top: 42px; text-align: center; }

/* =========================================================================
   HERO
   ========================================================================= */

.kf-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(460px, 62vh, 660px);
	background: var(--kf-black);
	overflow: hidden;
}

.kf-hero__media { position: absolute; inset: 0; }

.kf-hero__img,
.kf-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Scrim: the headline sits on the left, so the gradient is strongest there
   and thins out over the machinery on the right. */
.kf-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.72) 38%,
		rgba(0, 0, 0, 0.25) 72%,
		rgba(0, 0, 0, 0.45) 100%
	);
}

.kf-hero__inner {
	position: relative;
	z-index: 1;
	color: #fff;
	padding-block: 60px;
	width: 100%;
}

.kf-hero__eyebrow {
	color: var(--kf-gold);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

.kf-hero__title {
	font-size: clamp(38px, 6.4vw, 74px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 18px;
	color: #fff;
}

.kf-hero__title-accent { display: block; color: var(--kf-gold); }

.kf-hero__text {
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.65;
	max-width: 40ch;
	margin: 0 0 30px;
	color: rgba(255, 255, 255, 0.88);
}

.kf-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================================
   STATS
   ========================================================================= */

.kf-stats {
	background: var(--kf-surface);
	border-block: 1px solid var(--kf-border);
}

.kf-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding-block: 30px;
}

.kf-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-inline: 16px;
	border-inline-end: 1px solid var(--kf-border);
}

.kf-stat:last-child { border-inline-end: 0; }

.kf-stat__prefix {
	color: var(--kf-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.kf-stat__value {
	color: #fff;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 800;
	line-height: 1.1;
}

.kf-stat__label {
	color: var(--kf-text-muted-dark);
	font-size: 13px;
	margin-top: 4px;
}

/* =========================================================================
   ABOUT
   ========================================================================= */

.kf-about__grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 56px;
	align-items: center;
}

.kf-about__lead {
	font-size: 15px;
	line-height: 1.8;
	color: var(--kf-text-muted-light);
	margin: 0 0 28px;
	max-width: 46ch;
}

.kf-about__points {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 26px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.kf-about__point { position: relative; padding-inline-start: 16px; }

.kf-about__point::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 4px;
	bottom: 4px;
	width: 3px;
	background: var(--kf-gold);
	border-radius: 2px;
}

.kf-about__point-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 5px;
	color: var(--kf-text-on-light);
}

.kf-about__point-text {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--kf-text-muted-light);
	margin: 0;
}

/* Media collage: one tall image beside a stacked pair. */
.kf-about__media {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 14px;
	align-items: stretch;
}

.kf-about__media-side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 14px;
}

.kf-about__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--kf-radius);
}

.kf-about__media-main { min-height: 380px; }

/* =========================================================================
   PRODUCTS
   ========================================================================= */

.kf-product-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-product-card {
	background: var(--kf-black);
	border-radius: var(--kf-radius);
	overflow: hidden;
	transition: transform var(--kf-transition), box-shadow var(--kf-transition);
}

.kf-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.kf-product-card__media { aspect-ratio: 4 / 3; overflow: hidden; }

.kf-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.kf-product-card:hover .kf-product-card__media img { transform: scale(1.06); }

.kf-product-card__title {
	margin: 0;
	padding: 14px 14px 16px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.35;
}

/* =========================================================================
   MACHINERY
   The renders are studio shots on white, so they sit on a light tile to
   avoid a hard white rectangle floating on the dark section.
   ========================================================================= */

.kf-machinery__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-machine {
	background: var(--kf-surface);
	border: 1px solid var(--kf-border);
	border-radius: var(--kf-radius);
	overflow: hidden;
	text-align: center;
	transition: border-color var(--kf-transition), transform var(--kf-transition);
}

.kf-machine:hover { border-color: var(--kf-gold); transform: translateY(-4px); }

.kf-machine__media {
	background: #f4f4f4;
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.kf-machine__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.kf-machine__title {
	margin: 0;
	padding: 13px 10px 15px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.35;
}

/* =========================================================================
   TEAM
   ========================================================================= */

.kf-team__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-member {
	background: var(--kf-black);
	border-radius: var(--kf-radius);
	overflow: hidden;
}

.kf-member__media { aspect-ratio: 1 / 1; overflow: hidden; }

.kf-member__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.kf-member__body { padding: 15px 16px 18px; }

.kf-member__name {
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.35;
}

.kf-member__role {
	margin: 6px 0 0;
	color: var(--kf-gold);
	font-size: 12.5px;
	line-height: 1.4;
}

.kf-member__note {
	margin: 8px 0 0;
	color: #8a8a8a;
	font-size: 11px;
	line-height: 1.45;
	font-style: italic;
}

/* Contact channels: email, Viber, WhatsApp, Telegram. Brand colours appear on
   hover only — at rest they stay monochrome so the row reads as one unit
   rather than four competing logos. */
.kf-member__links {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.kf-member__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--kf-radius);
	background: rgba(255, 255, 255, 0.08);
	color: #d8d8d8;
	text-decoration: none;
	transition: background var(--kf-transition), color var(--kf-transition), transform var(--kf-transition);
}

.kf-member__link .kf-icon { width: 16px; height: 16px; }

.kf-member__link:hover { transform: translateY(-2px); color: #fff; }

.kf-member__link--mail:hover { background: var(--kf-gold); color: #101010; }
.kf-member__link--viber:hover { background: #7360f2; }
.kf-member__link--whatsapp:hover { background: #25d366; color: #08321a; }
.kf-member__link--telegram:hover { background: #29a9eb; }

/* =========================================================================
   VIDEO STRIP
   ========================================================================= */

.kf-video-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 900px;
	margin-inline: auto;
}

.kf-video {
	border-radius: var(--kf-radius);
	overflow: hidden;
	background: #000;
	border: 1px solid var(--kf-border);
}

/* Native ratio of the source footage (464x848) — no stretching. */
.kf-video__el {
	display: block;
	width: 100%;
	aspect-ratio: 464 / 848;
	object-fit: cover;
	background: #000;
	/* The tiles are ambient footage, not players: swallow clicks so nobody
	   pauses one and leaves a stopped frame on the page. */
	pointer-events: none;
}

/* Belt and braces with the `controls` attribute being absent: WebKit still
   paints its own overlay button and panel on some builds. */
.kf-video__el::-webkit-media-controls,
.kf-video__el::-webkit-media-controls-enclosure,
.kf-video__el::-webkit-media-controls-panel,
.kf-video__el::-webkit-media-controls-start-playback-button { display: none !important; }


/* =========================================================================
   GALLERY STRIP
   ========================================================================= */

.kf-gallery-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kf-gallery-strip__item {
	border-radius: var(--kf-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.kf-gallery-strip__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.kf-gallery-strip__item:hover img { transform: scale(1.06); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1100px) {
	.kf-product-grid { grid-template-columns: repeat(3, 1fr); }
	.kf-machinery__grid { grid-template-columns: repeat(4, 1fr); }
	.kf-team__grid { grid-template-columns: repeat(3, 1fr); }
	.kf-video-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.kf-about__grid { grid-template-columns: 1fr; gap: 36px; }
	.kf-about__media-main { min-height: 260px; }
	.kf-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }

	/* With two per row the 2nd and 4th cells must not show a divider. */
	.kf-stat:nth-child(2n) { border-inline-end: 0; }

	.kf-gallery-strip__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
	.kf-product-grid { grid-template-columns: repeat(2, 1fr); }
	.kf-machinery__grid { grid-template-columns: repeat(2, 1fr); }
	.kf-team__grid { grid-template-columns: repeat(2, 1fr); }
	.kf-video-strip { grid-template-columns: repeat(2, 1fr); }
	.kf-gallery-strip__grid { grid-template-columns: repeat(2, 1fr); }
	.kf-about__points { grid-template-columns: 1fr; }

	.kf-section__head { flex-direction: column; align-items: flex-start; }
	.kf-hero__actions .kf-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.kf-product-card,
	.kf-product-card__media img,
	.kf-machine,
	.kf-gallery-strip__item img { transition: none; }

	.kf-product-card:hover,
	.kf-machine:hover { transform: none; }

	.kf-product-card:hover .kf-product-card__media img,
	.kf-gallery-strip__item:hover img { transform: none; }
}
