/* Mesh Kablo - 3 sahneli interaktif scroll hero (anasayfa) */
.mk-hero {
	--mk-red: #F7891F;          /* katalog turuncusu (değişken adı geriye uyum için korundu) */
	--mk-red-hover: #FF9C3A;
	--mk-dark: #161515;
	--mk-scroll: 220svh;          /* sahneler için kaydırma mesafesi */
	--mk-pad-x: clamp(24px, 4.6vw, 96px);
	--mk-font-head: stolzl, "DM Sans", sans-serif;
	--mk-font-body: "DM Sans", sans-serif;
	position: relative;
	display: block;
	height: calc(100vh + var(--mk-scroll));
	height: calc(100svh + var(--mk-scroll));
	margin: 0;
	padding: 0;
	background: var(--mk-dark);
	color: #fff;
}

.mk-hero__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

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

.mk-hero__poster,
.mk-hero__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: 62% 50%;
	border: 0;
	border-radius: 0;
	pointer-events: none;
	user-select: none;
}

.mk-hero__video {
	opacity: 0;
	transition: opacity .45s ease;
	background: transparent;
}

.mk-hero.is-ready .mk-hero__video {
	opacity: 1;
}

/* Yalnızca metnin durduğu sol bölgede yerel gradient */
.mk-hero__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(14, 13, 13, .86) 0%, rgba(14, 13, 13, .66) 32%, rgba(14, 13, 13, 0) 62%),
		linear-gradient(0deg, rgba(14, 13, 13, .55) 0%, rgba(14, 13, 13, 0) 22%);
}

/* Sahneler üst üste durur; görünürlüğü JS scroll ilerlemesine göre yönetir */
.mk-hero__scenes {
	position: absolute;
	inset: 0;
	padding: 108px var(--mk-pad-x) 120px;
	display: grid;
	align-items: center;
	pointer-events: none;
}

.mk-hero__scene {
	grid-area: 1 / 1;
	max-width: 640px;
	pointer-events: none;
}

.mk-hero__scene.is-active {
	pointer-events: auto;
}

.mk-hero__title,
.mk-hero__text,
.mk-hero__btn {
	will-change: transform, opacity;
}

/* JS çalışmadan önce yalnızca ilk sahne görünür */
.mk-hero__scene:not(:first-child) .mk-hero__title,
.mk-hero__scene:not(:first-child) .mk-hero__text,
.mk-hero__scene:not(:first-child) .mk-hero__btn {
	opacity: 0;
}

.mk-hero--static .mk-hero__scene > *,
.mk-hero--static .mk-hero__actions > * {
	opacity: 1 !important;
	transform: none !important;
	will-change: auto;
}

.mk-hero .mk-hero__title {
	margin: 0 0 22px;
	padding: 0;
	font-family: var(--mk-font-head);
	font-size: clamp(2.5rem, 4.4vw, 4.5rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: #fff;
	text-transform: none;
	text-wrap: balance;
}

.mk-hero .mk-hero__text {
	margin: 0 0 34px;
	max-width: 30rem;
	font-family: var(--mk-font-body);
	font-size: clamp(1rem, 1.25vw, 1.1875rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .84);
}

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

.mk-hero .mk-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--mk-font-head);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, translate .25s ease, box-shadow .25s ease;
}

.mk-hero .mk-hero__btn::after {
	content: "";
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s ease;
}

.mk-hero .mk-hero__btn:hover::after,
.mk-hero .mk-hero__btn:focus-visible::after {
	transform: translateX(3px) rotate(45deg);
}

.mk-hero .mk-hero__btn--primary {
	background: var(--mk-red);
	color: #161515;
}

.mk-hero .mk-hero__btn--primary:hover,
.mk-hero .mk-hero__btn--primary:focus-visible {
	background: var(--mk-red-hover);
	color: #161515;
	translate: 0 -2px;
	box-shadow: 0 10px 24px -10px rgba(247, 137, 31, .6);
}

.mk-hero .mk-hero__btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}

.mk-hero .mk-hero__btn--ghost:hover,
.mk-hero .mk-hero__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, .08);
	border-color: #fff;
	color: #fff;
	translate: 0 -2px;
}

.mk-hero .mk-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Sahne göstergesi + ilerleme çubuğu */
.mk-hero__progress {
	position: absolute;
	left: var(--mk-pad-x);
	bottom: 44px;
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--mk-font-head);
	font-size: 14px;
	letter-spacing: .08em;
	color: rgba(255, 255, 255, .6);
	pointer-events: none;
}

.mk-hero__count b {
	font-weight: 500;
	color: #fff;
}

.mk-hero__bars {
	display: flex;
	gap: 6px;
}

.mk-hero__bar {
	position: relative;
	width: 44px;
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, .22);
}

.mk-hero__bar i {
	position: absolute;
	inset: 0;
	background: var(--mk-red);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* Tablet dikey ve mobil: video üstte, içerik altta */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
	.mk-hero {
		--mk-scroll: 160svh;
		--mk-pad-x: 24px;
		margin-top: var(--mk-hero-offset, 0px);
	}

	.mk-hero__media {
		bottom: auto;
		height: 54%;
	}

	.mk-hero__poster,
	.mk-hero__video {
		object-position: 58% 50%;
	}

	.mk-hero__shade {
		top: auto;
		height: calc(46% + 90px);
		background: linear-gradient(180deg, rgba(22, 21, 21, 0) 0%, var(--mk-dark) 90px);
	}

	.mk-hero__scenes {
		top: auto;
		height: 46%;
		padding: 0 var(--mk-pad-x) calc(78px + var(--mk-hero-offset, 0px));
		align-items: end;
	}

	.mk-hero .mk-hero__title {
		margin-bottom: 12px;
		font-size: clamp(1.75rem, 7.4vw, 3rem);
	}

	.mk-hero .mk-hero__text {
		margin-bottom: 20px;
		font-size: clamp(.9375rem, 3.9vw, 1.125rem);
		line-height: 1.5;
	}

	.mk-hero__progress {
		bottom: calc(28px + var(--mk-hero-offset, 0px));
	}
}

/* Dikey tablette içerik alt alanın ortasında dursun */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
	.mk-hero__scenes {
		align-items: center;
		padding-top: 40px;
	}
}

@media (max-width: 480px) {
	.mk-hero__actions {
		flex-direction: column;
		gap: 10px;
	}

	.mk-hero .mk-hero__btn {
		width: 100%;
		min-height: 48px;
	}
}

/* Hareket azaltma, Elementor editörü veya JS'siz durum: sabit poster + tüm sahneler alt alta */
.mk-hero--static {
	height: auto;
}

.mk-hero--static .mk-hero__stage {
	position: relative;
	height: auto;
	min-height: 100svh;
}

.mk-hero--static .mk-hero__video,
.mk-hero--static .mk-hero__progress {
	display: none;
}

.mk-hero--static .mk-hero__media {
	inset: 0;
	height: auto;
}

.mk-hero--static .mk-hero__shade {
	inset: 0;
	height: auto;
	background: rgba(14, 13, 13, .72);
}

.mk-hero--static .mk-hero__scenes {
	position: relative;
	inset: auto;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 64px;
	padding: 160px var(--mk-pad-x) 96px;
}

.mk-hero--static .mk-hero__scene {
	pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
	.mk-hero { height: auto; }
	.mk-hero .mk-hero__stage { position: relative; height: auto; min-height: 100svh; }
	.mk-hero .mk-hero__video,
	.mk-hero .mk-hero__progress { display: none; }
	.mk-hero .mk-hero__media { inset: 0; height: auto; }
	.mk-hero .mk-hero__shade { inset: 0; height: auto; background: rgba(14, 13, 13, .72); }
	.mk-hero .mk-hero__scenes { position: relative; inset: auto; height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 64px; padding: 160px var(--mk-pad-x) 96px; }
	.mk-hero .mk-hero__scene { pointer-events: auto; }
	.mk-hero .mk-hero__scene > *,
	.mk-hero .mk-hero__actions > * { opacity: 1 !important; transform: none !important; }
	.mk-hero .mk-hero__btn { transition: none; }
}

/* Hero ekrandayken temanın sabit header satırı beyaza dönmesin (yalnızca JS sınıfı varken) */
.mk-hero-over .top_panel .sc_layouts_row_fixed_on {
	background-color: transparent !important;
	background-image: linear-gradient(180deg, rgba(14, 13, 13, .6) 0%, rgba(14, 13, 13, 0) 100%) !important;
	box-shadow: none !important;
}

.mk-hero-over .top_panel .sc_layouts_row_fixed_on .sc_layouts_menu_nav > li > a,
.mk-hero-over .top_panel .sc_layouts_row_fixed_on .search_submit,
.mk-hero-over .top_panel .sc_layouts_row_fixed_on .sc_button {
	color: #fff !important;
}

.mk-hero-over .top_panel .sc_layouts_row_fixed_on .sc_button {
	border-color: #fff !important;
}

/* Hero'yu taşıyan Elementor sütununda boşluk bırakma */
.elementor-widget-wrap:has(> .elementor-widget-html .mk-hero) {
	padding: 0 !important;
}
