/**
 * Admirise — ASD Hero
 * Prototipten (advancedsmile-prototype.vercel.app) birebir aktarilmistir.
 * Token'lar :root yerine .asdh kapsamina hapsedildi; sinif adlari asdh- ile
 * on eklendi. Boylece sitenin mevcut CSS'i ile carpismaz.
 */

.asdh {
	--asd-navy: #000a2d;
	--asd-blue-on-dark: #7da2ff;
	--asd-surface: #fff;
	--asd-surface-muted: #f1f8ff;
	--asd-text-primary: #000a2d;
	--asd-on-inverse: #fff;
	--asd-on-inverse-muted: #c8daf2;
	--asd-border-on-media: rgba(255, 255, 255, .2);
	--asd-rating: #f5a623;

	--page-margin: 16px;
	--space-3xs: 4px;
	--space-stack-sm: 8px;
	--space-stack-md: 12px;
	--space-text: 16px;
	--space-stack-lg: 24px;
	--btn-x: 24px;
	--btn-y: 14px;
	--type-display: 34px;
	--lh-display: 40px;
	--type-h4: 18px;
	--lh-h4: 24px;
	--type-small: 14px;
	--lh-small: 20px;
	--header-pad: 12px;
	--logo-h: 44px;
	--hero-gap: 32px;
	--badge: 60px;
	--shadow-on-dark: 0 1px 2px rgba(0, 5, 26, .12), 0 8px 24px rgba(0, 5, 26, .22);
}

@media (min-width: 768px) {
	.asdh {
		--page-margin: 40px;
		--space-stack-md: 16px;
		--space-text: 20px;
		--space-stack-lg: 32px;
		--type-display: 44px;
		--lh-display: 52px;
		--type-h4: 19px;
		--lh-h4: 28px;
		--header-pad: 16px;
		--logo-h: 56px;
		--hero-gap: 72px;
		--badge: 144px;
	}
}

@media (min-width: 1200px) {
	.asdh {
		--page-margin: max(40px, calc((100vw - 1240px) / 2));
		--space-text: 24px;
		--space-stack-lg: 40px;
		--btn-x: 28px;
		--btn-y: 16px;
		--type-display: 56px;
		--lh-display: 64px;
		--badge: 176px;
	}
}

/* ---------- Govde ---------- */

.asdh-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-rows: 1fr auto;
	height: 100vh;
	height: 100svh;
	min-height: 600px;
	color: var(--asd-on-inverse);
	background: var(--asd-navy);
	overflow: hidden;
}

/* ---------- Medya ---------- */

.asdh-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	container-type: size;
}

.asdh-hero__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 56% 50%;
}

@media (min-width: 768px) {
	.asdh-hero__poster { object-position: 95% 50%; }
}

@media (min-width: 1200px) {
	.asdh-hero__poster { object-position: 100% 50%; }
}

/* Kaplama formulu: 16:9 kaynagi kutuya tasirarak oturtur. */
.asdh-hero__video {
	position: absolute;
	top: 50%;
	left: 50%;
	/* cq birimleri bu kurulumda COZULMUYOR; yazilirsa bildirim gecersiz
	   sayilip DUSUYOR ve hicbir medya sorgusu tutmadiginda (ornegin
	   767,5 px gibi kesirli genislikte) iframe dogal 300x150 olcusune
	   duser; YouTube videoyu kutuya sigdirip ust/alt SIYAH BANT koyar.
	   Temel deger her zaman gecerli olmali: 16:9 kaplama. */
	width: max(100vw, 177.78svh);
	height: max(100svh, 56.25vw);
	translate: -50% -50%;
	border: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .6s ease-out;
}

.asdh-hero__video[data-on="true"] { opacity: 1; }

.asdh-hero__scrim {
	position: absolute;
	left: 0;
	right: 0;
	pointer-events: none;
}

.asdh-hero__scrim--x {
	display: none;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 10, 45, .78), rgba(0, 10, 45, .55) 35%, rgba(0, 10, 45, .1) 62%, rgba(0, 10, 45, 0) 85%);
}

.asdh-hero__scrim--top {
	top: 0;
	height: 200px;
	background: linear-gradient(180deg, rgba(0, 10, 45, .62), rgba(0, 10, 45, 0));
}

.asdh-hero__scrim--bottom {
	bottom: 0;
	height: 66%;
	background: linear-gradient(180deg, rgba(0, 10, 45, 0), rgba(0, 10, 45, .78) 38%, rgba(0, 10, 45, .94));
}

@media (min-width: 768px) {
	.asdh-hero__scrim--x { display: block; }
	.asdh-hero__scrim--top { height: 240px; }
	.asdh-hero__scrim--bottom {
		height: 280px;
		background: linear-gradient(180deg, rgba(0, 10, 45, 0), rgba(0, 10, 45, .7));
	}
}

/* ---------- Icerik ---------- */

.asdh-hero__body {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	padding: calc(var(--logo-h) + var(--header-pad) * 2 + 24px) var(--page-margin) var(--hero-gap);
}

.asdh-hero__content {
	display: flex;
	flex-direction: column;
	gap: var(--space-stack-lg);
	width: 100%;
}

@media (min-width: 768px) {
	.asdh-hero__content { max-width: 500px; }
}

@media (min-width: 1200px) {
	.asdh-hero__content { max-width: 640px; }
}

.asdh-hero__title {
	margin: 0;
	font: 800 var(--type-display)/var(--lh-display) Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse);
}

.asdh-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-stack-sm);
}

@media (min-width: 768px) {
	.asdh-hero__actions {
		flex-direction: row;
		align-items: center;
		gap: var(--space-text);
	}
}

.asdh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--btn-y) var(--btn-x);
	border: 1px solid transparent;
	border-radius: 999px;
	font: 600 16px/24px Manrope, system-ui, sans-serif;
	text-decoration: none;
	white-space: nowrap;
	background: var(--asd-surface);
	color: var(--asd-text-primary);
	box-shadow: var(--shadow-on-dark);
	transition: background-color .15s ease-out, scale .15s ease-out;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.asdh-btn:hover { background: var(--asd-surface-muted); }
}

@media (prefers-reduced-motion: no-preference) {
	.asdh-btn:active { scale: .96; }
}

.asdh-hero__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	font: 600 16px/24px Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

@media (hover: hover) {
	.asdh-hero__call:hover { text-decoration-thickness: 2px; }
}

/* Masaustunde telefon header'da zaten var. */
@media (min-width: 1200px) {
	.asdh-hero__call { display: none; }
}

/* ---------- Rozet ---------- */

.asdh-hero__badge {
	flex: none;
	width: var(--badge);
	filter: drop-shadow(0 12px 32px rgba(0, 5, 26, .35));
}

.asdh-hero__badge img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.asdh-hero__badge {
		position: absolute;
		right: var(--page-margin);
		bottom: 18px;
		pointer-events: none;
	}
}

@media (min-width: 1200px) {
	.asdh-hero__badge { margin-right: calc(var(--page-margin) * -.5); }
}

/* ---------- Guven seridi ---------- */

.asdh-hero__strip {
	display: flex;
	align-items: center;
	gap: var(--space-stack-md);
	padding: var(--space-stack-md) var(--page-margin) var(--space-text);
	border-top: 1px solid var(--asd-border-on-media);
}

@media (min-width: 768px) {
	.asdh-hero__strip { padding-block: var(--space-text); }
}

.asdh-trust {
	flex: 1 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-stack-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.asdh-trust__item {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	min-width: 0;
}

.asdh-trust__item--wide { display: none; }

@media (min-width: 1200px) {
	.asdh-trust { grid-template-columns: repeat(4, 1fr); }
	.asdh-trust__item--wide { display: flex; }
}

.asdh-trust__value {
	font: 600 var(--type-h4)/var(--lh-h4) Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse);
}

.asdh-trust__star { color: var(--asd-rating); }

.asdh-trust__label {
	font: 400 var(--type-small)/var(--lh-small) Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse-muted);
	text-wrap: balance;
}

/* ---------- Hareketi durdurma ---------- */

.asdh-hero__pause {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--asd-on-inverse);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.asdh-hero__pause .asdh-ring {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--asd-border-on-media);
	border-radius: 50%;
}

/* Hero, Elementor sarmalayicisinin icinde oldugu icin temanin
   `.elementor-element svg { width: 1em }` kurali bu ikona da uyguluyor;
   buradaki font-size 0 oldugundan genislik 0 px'e dusuyor ve halkanin
   icindeki durdurma cubuklari kayboluyor. Olcuyu acik veriyoruz. */
.asdh-hero .asdh-hero__pause .asdh-ring svg {
	width: 12px !important;
	height: 12px !important;
}

/* ---------- Giris animasyonu ---------- */

.asdh-hero__word { display: inline-block; }

.asdh-hero__word,
.asdh-hero__enter {
	animation: asdh-fade .3s ease-out both;
	animation-delay: calc(var(--i, 0) * .1s);
}

@keyframes asdh-fade {
	from { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
	.asdh-hero__word,
	.asdh-hero__enter { animation-name: asdh-enter; }

	@keyframes asdh-enter {
		from { opacity: 0; filter: blur(4px); translate: 0 12px; }
	}
}

.asdh-hero__accent {
	color: var(--asd-blue-on-dark);
}

@media (prefers-reduced-motion: no-preference) {
	.asdh-hero__accent {
		background: linear-gradient(90deg, #7da2ff, #a9c1ff 20%, #e4ecff 30%, #a9c1ff 40%, #7da2ff 60%);
		background-size: 300% 100%;
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		animation: asdh-enter .3s ease-out both, asdh-sweep 6s linear 1.1s infinite;
		animation-delay: calc(var(--i, 0) * .1s), 1.1s;
	}

	@keyframes asdh-sweep {
		from { background-position: 100% 0; }
		to { background-position: -100% 0; }
	}
}

.asdh-hero[data-paused="true"] .asdh-hero__accent { animation-play-state: paused; }

/* Elementor duzenleyicisinde tam ekran yuksekligi editoru bozmasin. */
.elementor-editor-active .asdh-hero { height: 70vh; min-height: 520px; }

/* ---------------------------------------------------------------
   Ana sayfa: header hero'nun USTUNE biner (akistan cikar).
   Prototipte header position:fixed ve seffaf; canlida normal akista
   oldugu icin hero'yu 166 px asagi itiyor ve guven seridi ekran
   disinda kaliyordu. Yalniz .home kapsaminda gecerli.
   --------------------------------------------------------------- */

body.home header.elementor-location-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
	pointer-events: none;
}

/* Bar'larin kendisi tiklanabilir kalsin, aradaki bosluk degil. */
body.home header.elementor-location-header > * {
	pointer-events: auto;
}

body.home main.site-main {
	position: relative;
}

/* Elementor kit'inde konteyner dolgusu bos birakilirsa varsayilan 10 px
   uygulanir ve hero tam ekran olmaz. Hero'yu tasiyan konteyneri sifirla. */
.e-con:has(> .elementor-widget-asd_hero),
.e-con:has(> .elementor-widget > .elementor-widget-container > .asdh-hero) {
	padding: 0 !important;
	margin: 0 !important;
}

.elementor-widget-asd_hero {
	margin: 0 !important;
}

/* ---------------------------------------------------------------
   DUZELTME — poster kutuyu doldurmuyordu.
   Elementor'un `.elementor img{height:auto}` kurali (ozgulluk 0,1,1)
   `.asdh-hero__poster`i (0,1,0) eziyor; gorsel dogal oraninda kalip
   altta bos (koyu) bant birakiyordu. Secici ozgullugu yukseltildi.
   --------------------------------------------------------------- */
.asdh-hero__media img.asdh-hero__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Mobilde DIKEY kaynak servis ediliyor; 16:9 kaplama dikey videoyu
   yanlardan dolgulu gosterir. Dikey icin 9:16 formulu.
   Kirilim 767.98: JS ayni degeri kullanir. 767 yazilirsa 767,5 px gibi
   kesirli genislikte NE bu kural NE de min-width:768 tutar. */
@media (max-width: 767.98px) {
	.asdh-hero__media iframe.asdh-hero__video {
		width: max(100vw, 56.25vh);
		height: max(100svh, 177.78vw);
	}
}

/* Tema/Elementor'un `iframe{max-width:100%}` kurali hesaplanan kaplama
   genisligini kutuya kirpiyordu; iframe 9:16 olamiyordu. */
.asdh-hero__media iframe.asdh-hero__video {
	max-width: none !important;
	max-height: none !important;
}

/* Masaustu/tablet: 16:9 kaynak icin kaplama. cq birimleri bu kurulumda
   cozulmedigi icin burada da viewport birimi kullaniliyor. */
@media (min-width: 767.99px) {
	.asdh-hero__media iframe.asdh-hero__video {
		width: max(100vw, 177.78svh);
		height: max(100svh, 56.25vw);
	}
}

/* ---------------------------------------------------------------
   Tema ezmelerine karsi hero metin stilleri.
   Prototipte: buton ve basliklarda alt cizgi YOK, yalniz "Call ..."
   linkinde var (1px, 4px offset). Tema tum baglantilari altini
   ciziyordu.
   --------------------------------------------------------------- */

.asdh-hero a,
.asdh-hero a:link,
.asdh-hero a:visited {
	box-shadow: none;
}

.asdh-hero .asdh-btn,
.asdh-hero .asdh-btn:link,
.asdh-hero .asdh-btn:visited,
.asdh-hero .asdh-btn:hover {
	text-decoration: none !important;
	background: #fff !important;
	color: #000a2d !important;
	border-radius: 999px !important;
	box-shadow: 0 1px 2px rgba(0, 5, 26, .12), 0 8px 24px rgba(0, 5, 26, .22) !important;
}

.asdh-hero .asdh-hero__call,
.asdh-hero .asdh-hero__call:link,
.asdh-hero .asdh-hero__call:visited {
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 4px !important;
	color: #fff !important;
	background: none !important;
}

.asdh-hero .asdh-hero__call:hover {
	text-decoration-thickness: 2px !important;
}

.asdh-hero .asdh-hero__title,
.asdh-hero .asdh-hero__title * {
	text-decoration: none !important;
}

.asdh-hero .asdh-trust,
.asdh-hero .asdh-trust li {
	margin: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
	background: none !important;
}

.asdh-hero .asdh-trust li::before,
.asdh-hero .asdh-trust li::marker {
	content: none !important;
}

.asdh-hero .asdh-trust__value { color: #fff !important; }
.asdh-hero .asdh-trust__label { color: #c8daf2 !important; }
.asdh-hero .asdh-trust__star { color: #f5a623 !important; }

.asdh-hero .asdh-hero__pause {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
}

/* ---------------------------------------------------------------
   FONT DUZELTMESI — prototipten olculerek alindi.
   Govde/arayuz fontu Inter; Manrope yalniz baslik, butonlar ve
   guven seridi degerlerinde. Agirliklar prototiple ayni.
   --------------------------------------------------------------- */

.asdh {
	--font-text: Inter, system-ui, sans-serif;
	--font-display: Manrope, system-ui, sans-serif;
}

@media (min-width: 1200px) {
	.asdh { --logo-h: 60px; }
}

.asdh-hero .asdh-hero__title { font-family: var(--font-display); font-weight: 800; }

.asdh-hero .asdh-btn,
.asdh-header .asdh-btn {
	font: 700 16px/24px var(--font-display) !important;
}

.asdh-hero .asdh-hero__call,
.asdh-header .asdh-panel__call {
	font: 600 16px/24px var(--font-text) !important;
}

.asdh-hero .asdh-trust__value,
.asdh-hero .asdh-trust__star {
	font: 600 var(--type-h4)/var(--lh-h4) var(--font-display) !important;
}

.asdh-hero .asdh-trust__label {
	font: 400 var(--type-small)/var(--lh-small) var(--font-text) !important;
}

/* Guven seridi degeri 1200 ustunde 20px (prototipten olculdu). */
@media (min-width: 1200px) {
	.asdh { --type-h4: 20px; --lh-h4: 28px; }
}

/* Tema buton stilleri durdurma dugmesini buyutuyordu: 44x44, dolgusuz. */
.asdh-hero button.asdh-hero__pause {
	width: 44px !important;
	height: 44px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

/* ---------------------------------------------------------------
   Ustteki beyaz serit: hero konteynerini sifirlayan kural :has()
   kullaniyordu ve birlestirilmis CSS'te bazen dusuyordu; o zaman
   Elementor kit'inin varsayilan 10px dolgusu geri gelip hero'yu
   asagi itiyordu (yenilemeye gore gidip gelmesinin sebebi).
   Simdi dogrudan sinif adiyla, :has() olmadan sabitleniyor.
   --------------------------------------------------------------- */
body.home .elementor-element-asdhhome1,
body.home .elementor-element-asdhhome2,
body.home .elementor-widget-asd_hero,
body.home .elementor-widget-asd_hero > .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.home .elementor-13 > .e-con:first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
