/* Invictum Hero — hero.css
   Değişkenlerle kurulmuş: her site kendi temasında :root ya da .inv-hero
   üzerinden ezer, CSS'e dokunmaz. */

.inv-hero {
	--inv-hero-h: 600px;
	--inv-hero-h-mobil: 440px;
	--inv-hero-perde: rgba(16, 24, 20, .40);
	--inv-hero-yazi: #fff;
	--inv-hero-vurgu: #fff;
	--inv-hero-btn-zemin: #fff;
	--inv-hero-btn-yazi: #12403a;
	--inv-hero-hiza: left;
	--inv-hero-genislik: 1200px;

	position: relative;
	overflow: hidden;
	/* Yükseklik baştan sabit: görsel geç gelse de sayfa zıplamaz (CLS). */
	height: var(--inv-hero-h);
	background: #1b2a24;
	isolation: isolate;
}

.inv-hero__raylar { position: absolute; inset: 0; }

.inv-hero__slayt {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease;
}
.inv-hero__slayt.is-aktif { opacity: 1; visibility: visible; }

/* Tek slaytta geçiş yok; JS de yüklenmiyor. */
.inv-hero:not(.inv-hero--cok) .inv-hero__slayt {
	opacity: 1; visibility: visible; transition: none;
}

/* DİKKAT — burada !important zorunlu.
   Bu eklenti başka başka temalara giriyor ve neredeyse hepsi
   `img { height: auto }` yazıyor. Elementor'ınki `.elementor img`
   (özgüllük 0,1,1) ve tek sınıflı kuralımızı (0,1,0) eziyor;
   ölçüldü, görsel 354x440 yerine 354x142 basılıyordu. Düzen için
   kritik üç özellik korunuyor, gerisi tema serbest.
   Sarmalayıcı sınıf da eklendi ki özgüllük zaten yüksek olsun. */
.inv-hero .inv-hero__gorsel {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	z-index: 0;
}

.inv-hero__perde {
	position: absolute;
	inset: 0;
	background: var(--inv-hero-perde);
	z-index: 1;
}

.inv-hero__icerik {
	position: relative;
	z-index: 2;
	height: 100%;
	max-width: var(--inv-hero-genislik);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	color: var(--inv-hero-yazi);
}

/* Bütün öğeler bu kutunun içinde. Hizalama KUTUYA uygulanır, tek tek
   öğelere değil — aksi hâlde her öğe kendi genişliğince hizalanıyor ve
   sağa yaslı düzende başlığın, metnin ve butonun sol kenarı farklı
   yerde başlıyor. */
.inv-hero__kutu {
	/* px: em kullanınca tema kök yazı tipini değiştirdiğinde kutu da
	   kayıyor ve başlık beklenmedik yerde satır atlıyor. */
	max-width: 640px;
	text-align: left;
}

.inv-hero__slayt--orta .inv-hero__icerik { justify-content: center; }
.inv-hero__slayt--orta .inv-hero__kutu   { text-align: center; }

.inv-hero__slayt--sag  .inv-hero__icerik { justify-content: flex-end; }
/* Sağa yaslı düzende kutu sağda durur ama İÇİ sola hizalı kalır:
   satır sonları tırtıklı görünmesin. */
.inv-hero__slayt--sag  .inv-hero__kutu   { text-align: left; }

@media (max-width: 991px) {
	.inv-hero__slayt--sag .inv-hero__icerik,
	.inv-hero__slayt--orta .inv-hero__icerik { justify-content: flex-start; }
	.inv-hero__slayt--orta .inv-hero__kutu   { text-align: left; }
	.inv-hero__kutu { max-width: none; }
}

.inv-hero__ust {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: .92;
}

.inv-hero__baslik {
	margin: 0 0 18px;
	line-height: 1.08;
	font-size: clamp(32px, 5.2vw, 64px);
	font-weight: 400;
	color: var(--inv-hero-yazi);
}
.inv-hero__baslik span { display: block; }
.inv-hero__baslik strong {
	display: block;
	font-weight: 800;
	color: var(--inv-hero-vurgu);
}

.inv-hero__metin {
	margin: 0 0 30px;
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.6;
	opacity: .95;
}

.inv-hero__btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	background: var(--inv-hero-btn-zemin);
	color: var(--inv-hero-btn-yazi);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: transform .15s ease, opacity .15s ease;
}
.inv-hero__btn:hover,
.inv-hero__btn:focus-visible { opacity: .9; transform: translateY(-1px); color: var(--inv-hero-btn-yazi); }

/* --- gezinme --- */
.inv-hero__noktalar {
	position: absolute;
	left: 0; right: 0; bottom: 22px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.inv-hero__nokta {
	width: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background .2s ease, width .2s ease;
}
.inv-hero__nokta.is-aktif { background: #fff; width: 28px; border-radius: 5px; }

/* Oklar.
   DİKKAT — ölçüler !important. Temalarda `.site-content button
   { height: auto }` gibi (0,1,1) kurallar var ve tek sınıflı kuralımızı
   (0,1,0) yeniyor; ölçüldü, düğme 44px yerine ~11px yüksekliğe düşüp
   yassı bir elips gibi görünüyordu. Tema ayrıca butonlara
   `line-height:48px; padding:0 33px` veriyor — ikisi de sıfırlanmalı. */
.inv-hero__ok {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 46px !important;
	height: 46px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	border: 1px solid rgba(255, 255, 255, .34) !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .13);
	-webkit-backdrop-filter: blur(10px) saturate(1.3);
	backdrop-filter: blur(10px) saturate(1.3);
	box-shadow: none;
	cursor: pointer;
	opacity: .5;
	transform: translateY(-50%);
	transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}
.inv-hero:hover .inv-hero__ok { opacity: 1; }
.inv-hero__ok:hover {
	background: rgba(255, 255, 255, .24);
	border-color: rgba(255, 255, 255, .6) !important;
	opacity: 1;
}
.inv-hero__ok--geri  { left: 26px; }
.inv-hero__ok--ileri { right: 26px; }

/* İnce chevron — kalın kenarlık yerine 1.5px, daha küçük. */
.inv-hero__ok::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	border-top: 1.5px solid #fff;
	border-right: 1.5px solid #fff;
}
.inv-hero__ok--ileri::before { transform: translateX(-2px) rotate(45deg); }
.inv-hero__ok--geri::before  { transform: translateX(2px) rotate(-135deg); }

/* Noktalar da aynı tema kuralından etkileniyor. */
.inv-hero__nokta {
	height: 9px !important;
	min-height: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	border: 0 !important;
}

/* Klavye kullanıcısı oku göremezse gezinemez. */
.inv-hero__ok:focus-visible,
.inv-hero__nokta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	opacity: 1;
}

/* Dar ekranda düzen tek sütuna düşer ve metin görselin ÜSTÜNE biner.
   Masaüstünde karartma kapatılmış olsa bile burada taban bir perde
   şart — yoksa açık fotoğrafta beyaz yazı okunmuyor (ölçüldü). */
@media (max-width: 991px) {
	.inv-hero__slayt--perdesiz::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		background: linear-gradient(90deg,
			rgba(10, 20, 16, .74) 0%,
			rgba(10, 20, 16, .58) 60%,
			rgba(10, 20, 16, .38) 100%);
	}
}

/* --- mobil --- */
/* Dar ekranda ok YOK — düzen tek sütuna düştüğü için oklar metnin
   üstüne biniyor. Yerine parmakla kaydırma (hero.js). !important
   zorunlu: ok kuralının kendisi de !important, aksi hâlde yenemez. */
@media (max-width: 991px) {
	.inv-hero__ok { display: none !important; }
}

@media (max-width: 767px) {
	.inv-hero { height: var(--inv-hero-h-mobil); }
	.inv-hero__icerik { padding: 0 18px; }
	.inv-hero__noktalar { bottom: 16px; }
}

/* Kaydırma sırasında dikey sayfa kaydırması serbest kalsın ama
   yatay sürükleme tarayıcının geri/ileri jestine kapılmasın. */
.inv-hero--cok { touch-action: pan-y; }

/* Hareket azaltma tercihi: geçiş yok, otomatik oynatma JS tarafında durur. */
@media (prefers-reduced-motion: reduce) {
	.inv-hero__slayt { transition: none; }
	.inv-hero__btn   { transition: none; }
}
