/* =====================================================================
   Trea Kids - Anasayfa hero (tek, statik)

   Tam genislikte gorsel; icerik solda. Slider, kucuk gorsel seridi,
   sayac ve three.js efekti kaldirildi - hero artik tek bir sahne.

   Ust katman sirasi:
     .tk-hero__gorsel  fotograf (object-fit: cover)
     .tk-hero__ortu    degrade - metnin okunurlugunu saglar
     .tk-hero__ic      icerik
     .tk-hero__serit   alt serit (NEXT STEP program sureleri)
   ===================================================================== */

.tk-hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Tam ekran: altta bosluk kalmasin.
	   Header saydam ve mutlak konumlu oldugu icin hero y=0'dan basliyor,
	   bu yuzden ustten cikarma yapmiyoruz.
	   svh (small viewport height): mobil tarayici cubugu acilip kapandiginda
	   yukseklik ziplamaz. Cok kisa pencerelerde icerik sikismasin diye
	   min-height var; max-height YOK ki uzun ekranlarda da bosluk olusmasin. */
	height: 100svh;
	min-height: 700px;   /* icerik + header + serit icin gereken en az yukseklik */
	overflow: hidden;
	isolation: isolate;
}

.tk-hero__gorsel {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 68% center;      /* ozne sagda kalsin, sol tarafta yer acilsin */
}

/* Soldan saga koyudan seffafa; metin her fotografta okunur kalir */
.tk-hero__ortu {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg,
			rgba(18, 24, 38, .92) 0%,
			rgba(18, 24, 38, .82) 26%,
			rgba(18, 24, 38, .55) 46%,
			rgba(18, 24, 38, .12) 66%,
			rgba(18, 24, 38, 0) 82%),
		linear-gradient(to bottom, rgba(18, 24, 38, .45) 0%, rgba(18, 24, 38, 0) 22%);
}

.tk-hero__ic { width: 100%; }

.tk-hero__metin {
	/* 34rem, 80px'e cikan basligi tasiyamiyordu: "Same challenge," gibi
	   uzun kelimeli dillerde satir ikiye bolunup baslik 4 satira ciriyordu.
	   Sutun genisletildi; paragraf kendi olcusunu koruyor. */
	max-width: 40rem;
	/* Header saydam ve mutlak konumlu; icerik dikeyde ortalandigi icin kisa
	   pencerelerde header'in altina girebiliyordu. Ust dolgu header
	   yuksekligini (40px serit + 84px bar) karsilar, alt dolgu ise alttaki
	   hizmet seridini (74px) karsilar. */
	padding-block: 140px 124px;
	color: #fff;
}

/* --- Etiket (marka cizgisi + Figtree versal) ------------------------- */
.tk-hero__etiket {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	font-family: var(--font-base);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 12px rgba(18, 24, 38, .45);
}
.tk-hero__etiket::before {
	content: "";
	flex: 0 0 auto;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--vurgu);
}

/* --- Baslik --------------------------------------------------------- */
/* <em> dil dosyasindaki vurgu kelimesini isaretler: italik degil,
   altinda el cizimi bir firca darbesi ve sag ustunde suzulen bir yildiz */
.tk-hero__baslik em {
	font-style: normal;
	position: relative;
	display: inline-block;
	padding-bottom: .1em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M4 10 C40 4 85 11 120 7 C150 4 176 6 196 9' fill='none' stroke='%23F353A0' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") bottom center / 100% .14em no-repeat;
}
.tk-hero__baslik em::after {
	content: "";
	position: absolute;
	top: -.28em;
	inset-inline-end: -.5em;
	width: .42em;
	height: .42em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C13.1 6.9 17.1 10.9 24 12 17.1 13.1 13.1 17.1 12 24 10.9 17.1 6.9 13.1 0 12 6.9 10.9 10.9 6.9 12 0Z' fill='%23FFB020'/%3E%3C/svg%3E") center / contain no-repeat;
	animation: tkSuzul 4.5s ease-in-out infinite alternate;
}

.tk-hero__baslik {
	margin: 0 0 18px;
	font-size: var(--tk-baslik-1); /* site.css - baslik olcegi kademe 1 */
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.025em;
	/* <br> yetmezse satirlar dengeli bolunsun (uzun kelimeli dillerde) */
	text-wrap: balance;
	color: #fff;
}

/* --- Aciklama ------------------------------------------------------- */
.tk-hero__aciklama {
	max-width: 30rem;
	margin: 0 0 34px;
	font-size: clamp(1rem, 1.15vw, 1.1875rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}

/* --- Butonlar ------------------------------------------------------- */
.tk-hero__butonlar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.tk-btn--hayalet {
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .38);
	backdrop-filter: blur(6px);
}
.tk-btn--hayalet:hover {
	background: #fff;
	color: var(--secondary);
	border-color: #fff;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

/* --- Sayilar -------------------------------------------------------- */
.tk-hero__sayilar {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tk-hero__sayilar li {
	padding-inline: 26px;
	border-inline-start: 1px solid rgba(255, 255, 255, .22);
}
.tk-hero__sayilar li:first-child { padding-inline-start: 0; border-inline-start: 0; }

.tk-hero__sayilar strong {
	display: block;
	font-size: clamp(1.75rem, 2.6vw, 2.5rem);
	font-weight: 600;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -.02em;
}
/* Koyu zeminde paletin uc canli tonu; fotografin ustunde seker gibi durur */
.tk-hero__sayilar li:nth-child(1) strong { color: var(--gunes); }
.tk-hero__sayilar li:nth-child(2) strong { color: var(--turkuaz); }
.tk-hero__sayilar li:nth-child(3) strong { color: var(--vurgu); }
.tk-hero__sayilar span {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .72);
}

/* --- Alt serit: one cikan hizmetler --------------------------------- */
.tk-hero__serit {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	background: rgba(12, 17, 28, .42);
	border-top: 1px solid rgba(255, 255, 255, .14);
	backdrop-filter: blur(10px);
}
.tk-hero__serit-ic {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 74px;
}
.tk-hero__serit-ad {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}
.tk-hero__serit ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tk-hero__serit a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	font-size: 14.5px;
	font-weight: 500;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 40px;
	transition: background .25s, border-color .25s;
}
.tk-hero__serit a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); color: #fff; }

/* Program sureleri: rakam paletin tonunda dairede, cip seridin
   "1 Hafta | 2 Hafta | 3 Hafta | 4 Hafta" dizisini tasir */
.tk-hero__sureler a { gap: 9px; padding: 7px 16px 7px 7px; font-weight: 600; }
.tk-hero__sure-no {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--primary);
	font-family: var(--font-title);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.tk-hero__sureler li:nth-child(2) .tk-hero__sure-no { background: var(--vurgu); }
.tk-hero__sureler li:nth-child(3) .tk-hero__sure-no { background: var(--gunes); color: var(--secondary); }
.tk-hero__sureler li:nth-child(4) .tk-hero__sure-no { background: var(--turkuaz); }
.tk-hero__serit i { font-size: 14px; color: var(--primary); }
.tk-hero__serit a:hover i { color: #fff; }

/* --- Kisa pencereler (dizustu, bolunmus ekran) -----------------------
   Yukseklik azaldiginda dolgu ve tipografi olculu sekilde daralir ki
   icerik header'in altina veya alt seridin uzerine tasmasin. */
@media (min-width: 992px) and (max-height: 800px) {
	.tk-hero__metin { padding-block: 128px 108px; }
	.tk-hero__etiket { margin-bottom: 16px; }
	.tk-hero__baslik { font-size: clamp(2.25rem, 4.2vw, 3.5rem); margin-bottom: 14px; }
	.tk-hero__aciklama { margin-bottom: 26px; }
	.tk-hero__butonlar { margin-bottom: 30px; }
	.tk-hero__sayilar strong { font-size: clamp(1.5rem, 2vw, 2rem); }
	.tk-hero__serit-ic { min-height: 64px; }
}

/* =====================================================================
   Duyarli davranis
   ===================================================================== */
@media (max-width: 1199px) {
	.tk-hero { min-height: 680px; }
	.tk-hero__serit-ad { display: none; }
}

@media (max-width: 991px) {
	/* Flex yerine normal akis: alt serit artik metnin YANINA degil ALTINA gelir */
	.tk-hero {
		display: block;
		height: auto;
		min-height: 0;
		max-height: none;
		padding-block: var(--tk-ust-yuk) 0;
	}
	.tk-hero__gorsel { object-position: 62% center; }
	/* Ustte gorsel gorunur kalsin, karartma metnin arkasinda kuvvetlensin. */
	.tk-hero__ortu {
		background: linear-gradient(180deg,
			rgba(18, 24, 38, .40) 0%,
			rgba(18, 24, 38, .52) 30%,
			rgba(18, 24, 38, .72) 62%,
			rgba(18, 24, 38, .82) 100%);
	}
	/* Saydam header icerigin uzerinde duruyor; ust dolgu bar yuksekligini
	   karsilar, aksi halde logo hero etiketinin uzerine biniyor. */
	.tk-hero__metin { max-width: none; padding-block: calc(var(--tk-bar-yuk-d) + 24px) 40px; }

	/* Sayilar: esit sutunlar, kirilma yok */
	.tk-hero__sayilar {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, auto));
		justify-content: start;
	}

	.tk-hero__serit {
		position: static;
		background: rgba(12, 17, 28, .5);
	}
	.tk-hero__serit-ic { padding-block: 16px; min-height: 0; }
}

@media (max-width: 575px) {
	.tk-hero { padding-top: 74px; }

	/* Dar ekranda zorlanmis satir sonu yerine dogal sarma daha dengeli */
	.tk-hero__baslik { font-size: clamp(2.25rem, 9.4vw, 3rem); }
	.tk-hero__baslik br { display: none; }

	.tk-hero__etiket { font-size: 11.5px; }
	.tk-hero__aciklama { margin-bottom: 28px; }

	.tk-hero__butonlar { gap: 10px; margin-bottom: 32px; }
	.tk-hero__butonlar .tk-btn { flex: 1 1 auto; justify-content: center; }

	.tk-hero__sayilar { grid-template-columns: repeat(3, 1fr); }
	.tk-hero__sayilar li { padding-inline: 12px; }
	.tk-hero__sayilar li:first-child { padding-inline-start: 0; }
	.tk-hero__sayilar span { font-size: 12.5px; }

	.tk-hero__serit ul { gap: 6px; }
	.tk-hero__serit a { padding: 8px 13px; font-size: 13.5px; }
}


/* Mobil: hero alt seridi (one cikan hizmetler) gizlenir.
   Ayni hizmetler hemen asagidaki bolumde zaten iki sutunlu kartlar
   halinde listeleniyor; serit yalnizca ekran yuksekligi harciyordu. */
@media (max-width: 767px) {
	.tk-hero__serit { display: none; }
	/* Serit kalkinca hero kisaldi; ekranin buyuk bolumunu kaplasin diye
	   asgari yukseklik verilir (adres cubugu icin dvh, desteklemeyen
	   tarayicilar icin vh yedegi). */
	.tk-hero {
		padding-bottom: 0;
		min-height: 82vh;
		min-height: 82dvh;
		display: flex;
		align-items: center;
	}
	.tk-hero__ic { width: 100%; }
	.tk-hero__metin { padding-block: calc(var(--tk-bar-yuk-d) + 32px) 48px; }
}
