/**
 * Admirise — ASD Header
 * Prototipten birebir aktarildi, sinif adlari asdh- ile on eklendi.
 * Token'lar asd-hero.css icindeki .asdh kapsamindan gelir.
 */

/* Sitenin mevcut Elementor header'i ana sayfada gizlenir. */
body.home header.elementor-location-header {
	display: none !important;
}

.asdh-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	color: var(--asd-on-inverse);
}

.asdh-header__bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-text);
	padding: var(--header-pad) var(--page-margin);
	border-bottom: 1px solid var(--asd-border-on-media);
	transition: background-color .2s ease-out;
}

.asdh-header.is-solid .asdh-header__bar {
	background: rgba(0, 10, 45, .72);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

@media (prefers-reduced-transparency: reduce) {
	.asdh-header.is-solid .asdh-header__bar {
		background: var(--asd-navy);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

.asdh-header__logo {
	display: block;
	flex: none;
	border-radius: 4px;
	line-height: 0;
}

/* Elementor `.elementor img{height:auto;max-width:100%}` kuralini ezmek icin
   ozgulluk yuksek tutuldu. */
.asdh-header .asdh-header__logo img {
	height: var(--logo-h);
	width: auto;
	max-width: none;
	display: block;
}

/* ---------- Masaustu menusu ---------- */

.asdh-nav { display: none; }

.asdh-nav > ul {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.asdh-nav li {
	position: relative;
	margin: 0;
	list-style: none;
}

.asdh-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font: 500 14px/20px Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse);
	text-decoration: none;
}

@media (hover: hover) {
	.asdh-nav__link:hover { color: var(--asd-on-inverse-muted); }
}

.asdh-nav__link[aria-expanded="true"] .asdh-chev { rotate: 180deg; }

.asdh-chev { transition: rotate .15s ease-out; }

.asdh-nav__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: -16px;
	min-width: 264px;
	margin: 0;
	padding: 8px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: var(--asd-surface);
	box-shadow: 0 1px 2px rgba(0, 10, 45, .08), 0 12px 32px rgba(0, 10, 45, .18);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease-out, translate .15s ease-out, visibility .15s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
	.asdh-nav__dropdown { translate: 0 4px; }
	.asdh-nav__dropdown[data-open="true"] { translate: 0 0; }
}

/* Fare menuyle acilan liste arasindaki bosluktan gecerken kapanmasin. */
.asdh-nav__dropdown::before {
	content: "";
	position: absolute;
	inset: -12px 0 auto 0;
	height: 12px;
}

.asdh-nav__dropdown[data-open="true"] {
	opacity: 1;
	visibility: visible;
}

.asdh-nav__dropdown a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font: 500 15px/22px Manrope, system-ui, sans-serif;
	color: var(--asd-text-primary);
	text-decoration: none;
	transition: background-color .15s ease-out;
}

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

/* ---------- Sag taraf ---------- */

.asdh-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-text);
}

.asdh-header__phone {
	display: none;
	align-items: center;
	min-height: 44px;
	font: 500 14px/20px Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse);
	text-decoration: none;
}

.asdh-header__cta { display: none; }

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

.asdh-burger {
	display: grid;
	gap: 5px;
	width: 22px;
}

.asdh-burger i {
	display: block;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transition: translate .2s cubic-bezier(.2, 0, 0, 1), rotate .2s cubic-bezier(.2, 0, 0, 1), opacity .2s cubic-bezier(.2, 0, 0, 1);
}

.asdh-burger[data-open="true"] i:first-child { translate: 0 7px; rotate: 45deg; }
.asdh-burger[data-open="true"] i:nth-child(2) { opacity: 0; }
.asdh-burger[data-open="true"] i:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

@media (min-width: 768px) {
	.asdh-header__cta { display: inline-flex; }
}

@media (min-width: 1200px) {
	.asdh-nav { display: block; }
	/* Dar masaustunde "Insurance & Financing" ve "Contact Us" iki satira
	   kiriliyor, baslik cubugu dagilmis gorunuyordu. */
	.asdh-nav__link, .asdh-header__phone { white-space: nowrap; }
	.asdh-header__phone { display: inline-flex; }
	.asdh-header__menu { display: none; }
}

/* ---------- Mobil cekmece ---------- */

.asdh-panel {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0;
	padding: calc(var(--logo-h) + var(--header-pad) * 2 + 16px) var(--page-margin) 32px;
	background: var(--asd-navy);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.asdh-panel[hidden] { display: none; }

.asdh-panel__list { margin: 0; padding: 0; list-style: none; }
.asdh-panel__list li { margin: 0; list-style: none; }

.asdh-panel__group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--asd-border-on-media);
	background: none;
	text-align: left;
	cursor: pointer;
	font: 600 20px/28px Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse);
	text-decoration: none;
}

.asdh-panel__group[aria-expanded="true"] .asdh-chev { rotate: 180deg; }

.asdh-panel__sub {
	margin: 0;
	padding: 8px 0 12px 16px;
	list-style: none;
}

.asdh-panel__sub[hidden] { display: none; }

.asdh-panel__sub a {
	display: flex;
	align-items: center;
	min-height: 44px;
	font: 400 16px/24px Manrope, system-ui, sans-serif;
	color: var(--asd-on-inverse-muted);
	text-decoration: none;
}

.asdh-panel__actions {
	display: grid;
	gap: 8px;
	justify-items: center;
	margin-top: auto;
}

.asdh-panel__actions .asdh-btn { width: 100%; }

.asdh-panel__call {
	display: inline-flex;
	align-items: 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 (min-width: 1200px) {
	.asdh-panel { display: none !important; }
}

/* Cekmece aciksa arka plan kaymasin. */
body.asdh-panel-acik { overflow: hidden; }

/* ---------------------------------------------------------------
   Tema/Elementor baglanti renklerini ve kutu stillerini ezer.
   Birlestirilmis CSS'te site kurallari sonra geldigi icin ozgulluk
   yukseltildi ve kritik olanlar !important ile sabitlendi.
   --------------------------------------------------------------- */

.asdh-header a,
.asdh-header a:link,
.asdh-header a:visited,
.asdh-header button {
	text-decoration: none;
	box-shadow: none;
}

.asdh-header .asdh-nav__link,
.asdh-header .asdh-nav__link:link,
.asdh-header .asdh-nav__link:visited,
.asdh-header .asdh-header__phone,
.asdh-header .asdh-header__phone:link,
.asdh-header .asdh-header__phone:visited,
.asdh-header .asdh-header__menu {
	color: #fff !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

.asdh-header .asdh-nav__link:hover,
.asdh-header .asdh-header__phone:hover {
	color: #c8daf2 !important;
}

.asdh-header .asdh-nav__dropdown a,
.asdh-header .asdh-nav__dropdown a:link,
.asdh-header .asdh-nav__dropdown a:visited {
	color: #000a2d !important;
	background: none !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
}

.asdh-header .asdh-nav__dropdown a:hover {
	background: #f1f8ff !important;
}

.asdh-header .asdh-btn,
.asdh-header .asdh-btn:link,
.asdh-header .asdh-btn:visited {
	background: #fff !important;
	color: #000a2d !important;
	border-radius: 999px !important;
	padding: var(--btn-y) var(--btn-x) !important;
	box-shadow: 0 1px 2px rgba(0, 5, 26, .12), 0 8px 24px rgba(0, 5, 26, .22) !important;
}

.asdh-header .asdh-btn:hover {
	background: #f1f8ff !important;
}

.asdh-header .asdh-panel__group,
.asdh-header .asdh-panel__group:link,
.asdh-header .asdh-panel__group:visited {
	color: #fff !important;
	background: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .2) !important;
}

.asdh-header .asdh-panel__sub a,
.asdh-header .asdh-panel__sub a:link,
.asdh-header .asdh-panel__sub a:visited {
	color: #c8daf2 !important;
	background: none !important;
	padding: 0 !important;
}

.asdh-header .asdh-panel__call,
.asdh-header .asdh-panel__call:link,
.asdh-header .asdh-panel__call:visited {
	color: #fff !important;
	background: none !important;
	text-decoration: underline !important;
}

/* Liste isaretleri ve tema bosluklari */
.asdh-header ul,
.asdh-header li {
	margin: 0 !important;
	padding-left: 0 !important;
	list-style: none !important;
	background: none !important;
}

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

/* Kirilim gorunurlukleri — override blogundan sonra geldigi icin kesin. */
@media (min-width: 1200px) {
	.asdh-header button.asdh-header__menu { display: none !important; }
	.asdh-header .asdh-nav { display: block !important; }
	.asdh-header .asdh-header__phone { display: inline-flex !important; }
}

@media (max-width: 1199px) {
	.asdh-header .asdh-nav { display: none !important; }
	.asdh-header .asdh-header__phone { display: none !important; }
	.asdh-header button.asdh-header__menu { display: inline-grid !important; }
}

@media (max-width: 767px) {
	.asdh-header .asdh-header__cta { display: none !important; }
}

@media (min-width: 768px) {
	.asdh-header .asdh-header__cta { display: inline-flex !important; }
}

/* Font duzeltmesi — prototiple ayni aile ve agirliklar. */
.asdh-header .asdh-nav__link,
.asdh-header .asdh-header__phone {
	font: 500 14px/20px var(--font-text) !important;
}

.asdh-header .asdh-nav__dropdown a {
	font: 500 15px/22px var(--font-text) !important;
}

.asdh-header .asdh-panel__group {
	font: 600 20px/28px var(--font-display) !important;
}

.asdh-header .asdh-panel__sub a {
	font: 400 16px/24px var(--font-text) !important;
}

/* Liste sifirlamasi acilir menunun beyaz zeminini de silmisti; geri aliniyor. */
.asdh-header ul.asdh-nav__dropdown {
	background: #fff !important;
	padding: 8px !important;
	border-radius: 16px !important;
	box-shadow: 0 1px 2px rgba(0, 10, 45, .08), 0 12px 32px rgba(0, 10, 45, .18) !important;
}

/* Tema <button> kenarligi cekmece gruplarinda pembe cerceve birakiyordu. */
.asdh-header button.asdh-panel__group,
.asdh-header a.asdh-panel__group {
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, .2) !important;
	outline: 0;
	box-shadow: none !important;
	width: 100% !important;
	min-height: 56px !important;
	border-radius: 0 !important;
	background: none !important;
}

.asdh-header button.asdh-header__menu {
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	min-height: 0 !important;
}

.asdh-header .asdh-nav__link {
	border: 0 !important;
	box-shadow: none !important;
	min-height: 44px !important;
}

/* Tema buton hizalamasi gruplari ortaliyordu: sola yasli, ok sagda. */
.asdh-header button.asdh-panel__group,
.asdh-header a.asdh-panel__group {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	text-align: left !important;
}

.asdh-header .asdh-panel__group .asdh-chev { flex: none; }

/* Hamburger butonu 22px'e dusmustu; dokunma hedefi 44x44 olmali ve
   ikon kenara yapismamali. */
.asdh-header button.asdh-header__menu {
	width: 44px !important;
	height: 44px !important;
	place-items: center !important;
	margin-right: -10px !important;
	flex: none !important;
}

.asdh-header .asdh-burger {
	width: 22px !important;
	display: grid !important;
	gap: 5px !important;
}

/* Hamburger prototipte 44x44 dokunma alani; tema sifirlamalari onu ikon
   genisligine dusurmustu. Ikon sagdan 17 px kaliyor (logo soldan 16). */
.asdh-header button.asdh-header__menu {
	width: 44px !important;
	height: 44px !important;
	place-items: center !important;
	margin-right: -10px !important;
	padding: 0 !important;
	flex: none !important;
}
