/* ==========================================================================
   NOKSEL — Header, mobil menü, footer
   Onaylı tasarımın (tasarim1) yapısı korunmuştur.
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 48px;
}

/* --- HEADER --------------------------------------------------------------
   Sayfanın üstünde saydam durur, kaydırılınca .scrolled ile koyulaşır.
   Bu yüzden position: fixed — hero'nun üzerine biner.
   -------------------------------------------------------------------------- */

#site-header {
	position: fixed;
	top: 0;
	inset-inline-start: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 80px;
	/* Mega menü paneli bu dolguyu ters çevirerek tam genişliğe yayılıyor. */
	--header-pad: 48px;
	padding: 0 var(--header-pad);
	transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
	background: rgba(21, 47, 86, 0.9);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.header-logo { display: flex; align-items: center; text-decoration: none; }

.header-logo img {
	display: block;
	height: var(--logo-h, 28px);
	width: auto;
}

.header-wordmark {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--white);
}

/* --- Ana menü ------------------------------------------------------------- */

.header-nav {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
}

.header-nav li { position: relative; }

.header-nav a {
	position: relative;
	display: block;
	padding-bottom: 4px;
	font-family: var(--font-body);
	font-size: var(--fs-nav);
	font-weight: 500;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	transition: color 0.2s ease;
}

.header-nav a::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 0;
	height: 2px;
	background: var(--green);
	transition: width 0.3s ease;
}

.header-nav a:hover,
.header-nav .current-menu-item > a { color: var(--white); }

.header-nav a:hover::after,
.header-nav .current-menu-item > a::after { width: 100%; }

/* --- Sağ blok ------------------------------------------------------------- */

.header-right { display: flex; align-items: center; gap: 20px; }

.header-cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 24px;
	background: var(--blue);
	border: none;
	font-family: var(--font-display);
	font-size: var(--fs-btn-sm);
	font-weight: 700;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--white);
	white-space: nowrap;
	transition: background 0.2s ease;
}

.header-cta:hover { background: var(--blue-mid); color: var(--white); }

/* --- Hamburger ------------------------------------------------------------ */

.hamburger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	margin-inline-end: -8px; /* optik hizalama */
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--white);
	transition: transform 0.28s ease, opacity 0.2s ease;
}

/* Çizgi kalınlığı + aralık = 7px; X için o kadar kaydırılır. */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobil menü ----------------------------------------------------------- */

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	background: var(--navy);
	clip-path: circle(0% at calc(100% - 56px) 40px);
	pointer-events: none;
	transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.is-open {
	clip-path: circle(170% at calc(100% - 56px) 40px);
	pointer-events: all;
}

.mm-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px clamp(20px, 6vw, 40px) clamp(20px, 4vh, 32px);
}

.mm-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	height: 40px;
	padding-bottom: clamp(16px, 3vh, 28px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mm-logo img { display: block; height: 26px; width: auto; }

.mm-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-inline-end: -6px;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--white);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.mm-close:hover { border-color: var(--green); color: var(--green); }

.mm-nav {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	padding: clamp(12px, 3vh, 24px) 0;
	overflow-y: auto;
	list-style: none;
}

.mm-nav li { display: block; }

.mm-nav a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--font-display);
	font-size: clamp(1rem, 3.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.2s ease, padding-inline-start 0.2s ease;
}

.mm-nav li:last-child a { border-bottom: 0; }

.mm-nav a::after {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-inline-end: 1.5px solid currentColor;
	transform: rotate(45deg) translateX(-3px);
	opacity: 0.3;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mm-nav a:hover,
.mm-nav .current-menu-item > a { color: var(--white); padding-inline-start: 8px; }
.mm-nav a:hover::after { opacity: 1; transform: rotate(45deg) translateX(0); }

.mobile-menu.is-open .mm-nav li {
	animation: nkMmIn 0.32s ease both;
	animation-delay: calc(0.12s + var(--i, 0) * 0.035s);
}

.mm-nav li:nth-child(1)  { --i: 1; }
.mm-nav li:nth-child(2)  { --i: 2; }
.mm-nav li:nth-child(3)  { --i: 3; }
.mm-nav li:nth-child(4)  { --i: 4; }
.mm-nav li:nth-child(5)  { --i: 5; }
.mm-nav li:nth-child(6)  { --i: 6; }
.mm-nav li:nth-child(7)  { --i: 7; }
.mm-nav li:nth-child(8)  { --i: 8; }
.mm-nav li:nth-child(9)  { --i: 9; }
.mm-nav li:nth-child(10) { --i: 10; }

@keyframes nkMmIn {
	from { opacity: 0; transform: translateX(-14px); }
	to   { opacity: 1; transform: translateX(0); }
}

.mm-bottom {
	flex-shrink: 0;
	padding-top: clamp(14px, 2.5vh, 24px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mm-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-bottom: 14px;
	padding: 15px 28px;
	background: var(--blue);
	font-family: var(--font-display);
	font-size: var(--fs-btn-sm);
	font-weight: 700;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--white);
	transition: background 0.2s ease;
}

.mm-cta:hover { background: var(--blue-mid); color: var(--white); }

.mm-footer-text {
	font-family: var(--font-body);
	font-size: clamp(10px, 2.5vw, 12px);
	letter-spacing: 0.05em;
	text-align: center;
	color: rgba(255, 255, 255, 0.25);
}

body.menu-open { overflow: hidden; }

/* --- Dil seçici ----------------------------------------------------------- */

/* --- Dil seçici (dünya ikonlu açılır liste) ------------------------------
   Fare olan cihazda üzerine gelince, dokunmatikte dokununca açılır.
   Dokunma davranışı main.js'te; hover yalnızca (hover: hover) cihazlarda.   */

.lang-dd { position: relative; }

.lang-dd__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 11px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: none;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.lang-dd__btn:hover,
.lang-dd.is-open .lang-dd__btn { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }

.lang-dd__btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.lang-dd__ok { opacity: 0.7; transition: transform 0.2s ease; }
.lang-dd.is-open .lang-dd__ok { transform: rotate(180deg); }

.lang-dd__liste {
	position: absolute;
	top: 100%;
	inset-inline-end: 0;
	z-index: 70;
	min-width: 180px;
	margin-top: 10px;
	padding: 6px 0;
	list-style: none;
	background: var(--white);
	border-top: 2px solid var(--green);
	box-shadow: 0 18px 44px rgba(21, 47, 86, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Düğme ile liste arasındaki boşlukta fare listeden çıkmış sayılmasın. */
.lang-dd__liste::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -12px;
	height: 12px;
}

.lang-dd.is-open .lang-dd__liste {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/*
 * Yalnızca :hover — :focus-within kullanılmıyor: Esc ile kapatınca odak
 * düğmeye dönüyor ve :focus-within listeyi açık tutuyordu. Klavyeyle
 * düğmeye Enter basınca zaten .is-open ile açılıyor.
 */
@media (hover: hover) and (pointer: fine) {
	.lang-dd:hover .lang-dd__liste {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.lang-dd:hover .lang-dd__ok { transform: rotate(180deg); }
	.lang-dd:hover .lang-dd__btn { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }

	/* Yukarı açılan varyant ortalı; genel hover kuralı transform'u ezmesin. */
	.lang-dd--yukari:hover .lang-dd__liste { transform: translate(-50%, 0); }
}

.lang-dd__dil {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 11px 18px;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	text-decoration: none;
	color: var(--ink-light);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-dd__dil:hover,
.lang-dd__dil:focus-visible { background: var(--surface-alt); color: var(--navy); outline: none; }

.lang-dd__kisa {
	font-family: var(--font-display);
	font-size: var(--fs-tag);
	font-weight: 700;
	letter-spacing: var(--ls-tag);
	color: var(--muted);
}

/* Mobil menüde: ortada, liste yukarı açılır (seçici ekranın altında). */
.lang-dd--mobile { display: table; margin: 0 auto clamp(12px, 2vh, 20px); }
.lang-dd--mobile .lang-dd__btn { padding: 11px 16px; font-size: var(--fs-body); }

.lang-dd--yukari .lang-dd__liste {
	top: auto;
	bottom: 100%;
	inset-inline-end: auto;
	inset-inline-start: 50%;
	margin-top: 0;
	margin-bottom: 10px;
	border-top: 0;
	border-bottom: 2px solid var(--green);
	transform: translate(-50%, 6px);
}

.lang-dd--yukari .lang-dd__liste::before { top: auto; bottom: -12px; }

.lang-dd--yukari.is-open .lang-dd__liste { transform: translate(-50%, 0); }

/* --- FOOTER --------------------------------------------------------------- */

#footer { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.08); }

.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }

.footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 64px;
	padding: 80px 0 60px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo { display: block; height: 36px; width: auto; margin-bottom: 20px; }

.footer-about {
	max-width: 280px;
	margin-bottom: 24px;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	line-height: var(--lh-loose);
	color: rgba(255, 255, 255, 0.4);
}

.footer-socials { display: flex; gap: 12px; list-style: none; }

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover { border-color: var(--green); color: var(--green); }

.footer-col-title {
	margin-bottom: 20px;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--blue-light);
}

.footer-links,
.footer-contact { display: flex; flex-direction: column; gap: 12px; list-style: none; }

.footer-links a,
.footer-contact a {
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	text-decoration: none;
	color: rgba(255, 255, 255, 0.4);
	transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--green); }

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.4);
}

.footer-contact .icon { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* İletişim sütununun altındaki çerçeveli buton (Site Ayarları → Footer). */
.footer-buton {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 11px 18px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-family: var(--font-display);
	font-size: var(--fs-btn-sm);
	font-weight: 700;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--white);
	transition: background-color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.footer-buton:hover {
	gap: 14px;
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--white);
	color: var(--white);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 24px 0;
}

.footer-bottom span,
.footer-bottom a {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	color: rgba(255, 255, 255, 0.25);
	text-decoration: none;
}

.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; }
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.6); }

.footer-note { padding-bottom: 24px; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.22); }

/* --- Duyarlılık ----------------------------------------------------------- */

/*
 * Menü kırılımı. Sekiz ana başlık + logo + arama/dil düğmeleri 36px aralıkla
 * ~1500px istiyor (ölçüm 2026-09-22). 1560'ın altında aralık 16px'e ve kenar
 * boşluğu 32px'e iniyor; 1440'ta iki yanda ~25px kalıyor. 1439 ve altında
 * hamburger menü.
 * Başlık eklenir/çıkarılırsa bu değerler yeniden ölçülmeli (main.js'teki
 * matchMedia da aynı değeri kullanıyor).
 */
@media (max-width: 1560px) {
	.header-nav { gap: 16px; }
	#site-header { --header-pad: 32px; }
}

@media (max-width: 1439px) {
	.header-nav { display: none; }
	.header-cta { display: none; }
	.lang-dd--header { display: none; }
	.hamburger { display: flex; }
	#site-header { --header-pad: 32px; }

	/*
	 * Menü gizlenince header'da logo, sağ blok ve hamburger kalıyor;
	 * space-between sağ bloğu ortaya itiyordu. Sağa yaslayıp hamburgerin
	 * yanına alıyoruz.
	 */
	.header-right { margin-inline-start: auto; margin-inline-end: 12px; }

	/* Geniş ekranda açılan menü: içerik ortada, okunur genişlikte. */
	.mm-nav,
	.mm-bottom { width: 100%; max-width: 640px; margin-inline: auto; }
}

@media (max-width: 900px) {
	.footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	#site-header { --header-pad: 20px; }
	.wrap { padding-inline: 20px; }
}

@media (max-width: 600px) {
	.footer-top { grid-template-columns: 1fr; }
	.footer-brand { grid-column: auto; }
	.footer-inner { padding: 0 20px; }
	.footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Ana menü açılır listeleri -------------------------------------------- */

/*
 * Açılan liste hem fare hem klavye ile çalışır: :hover fare için,
 * :focus-within sekme tuşuyla gezen ziyaretçi için.
 */

.header-nav > .menu-item-has-children > a { padding-inline-end: 14px; }

/* Alt menüsü olan başlığın yanındaki küçük ok. */
.header-nav > .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	inset-inline-end: 0;
	top: 50%;
	width: 5px;
	height: 5px;
	border-bottom: 1.5px solid currentColor;
	border-inline-end: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	opacity: 0.55;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-nav > .menu-item-has-children:hover > a::before,
.header-nav > .menu-item-has-children:focus-within > a::before {
	opacity: 1;
	transform: translateY(-30%) rotate(225deg);
}

.header-nav > li > .sub-menu {
	position: absolute;
	inset-inline-start: -20px;
	top: 100%;
	z-index: 60;
	min-width: 268px;
	margin-top: 18px;
	padding: 10px 0;
	background: var(--white);
	border-top: 2px solid var(--green);
	box-shadow: 0 18px 44px rgba(21, 47, 86, 0.18);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/*
 * Başlık ile liste arasındaki 18px boşlukta fare imleci menüden çıkmış
 * sayılmasın diye görünmez bir köprü.
 */
.header-nav > li > .sub-menu::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -20px;
	height: 20px;
}

.header-nav > .menu-item-has-children:hover > .sub-menu,
.header-nav > .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header-nav > li > .sub-menu li { position: static; }

.header-nav > li > .sub-menu a {
	display: block;
	padding: 11px 24px;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-light);
	white-space: normal;
	transition: background-color 0.15s ease, color 0.15s ease, padding-inline-start 0.15s ease;
}

.header-nav > li > .sub-menu a::after { display: none; }

.header-nav > li > .sub-menu a:hover,
.header-nav > li > .sub-menu .current-menu-item > a {
	background: var(--surface-alt);
	color: var(--navy);
	padding-inline-start: 30px;
}

/* NOKSEL España — menünün en sağında, ayrı duruyor. */
.header-nav .menu-espana { margin-inline-start: auto; }

.header-nav .menu-espana > a {
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: var(--white);
}

.header-nav .menu-espana > a::after { display: none; }

.header-nav .menu-espana > a:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--white);
}

/* Header rengi değişince açılır liste zemini beyaz kaldığı için dokunmuyoruz. */

/* --- Mobil menü alt listeleri --------------------------------------------- */

/*
 * Açılış/kapanış yüksekliğe göre canlandırılıyor; `display` animasyon almaz.
 * Yüksekliği betik ölçüp veriyor (main.js), CSS yalnızca geçişi yürütüyor.
 */
.mm-nav .sub-menu {
	height: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	list-style: none;
	transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease, padding 0.3s ease;
}

.mm-nav .menu-item-has-children.is-open > .sub-menu {
	padding: 4px 0 12px;
	opacity: 1;
}

/* Hareketi azaltılmış tercihte anında açılıp kapansın. */
@media ( prefers-reduced-motion: reduce ) {
	.mm-nav .sub-menu { transition: none; }
}

.mm-nav .sub-menu a {
	padding: 9px 0 9px 16px;
	border-bottom: 0;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 400;
	text-transform: none;
	color: rgba(255, 255, 255, 0.6);
}

.mm-nav .sub-menu a::after { display: none; }
.mm-nav .sub-menu a:hover { color: var(--white); padding-inline-start: 22px; }

/*
 * Alt menüsü olan satırda başlık ile açma düğmesi yan yana duruyor;
 * başlığa dokunmak sayfaya gider, düğmeye dokunmak listeyi açar.
 */
.mm-nav .menu-item-has-children > a { padding-inline-end: 52px; }
.mm-nav .menu-item-has-children > a::after { display: none; }

.mm-alt-ac {
	position: absolute;
	inset-inline-end: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 52px;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.mm-alt-ac::after {
	content: "";
	width: 8px;
	height: 8px;
	border-bottom: 1.5px solid currentColor;
	border-inline-end: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.mm-nav .is-open > .mm-alt-ac { color: var(--white); }
.mm-nav .is-open > .mm-alt-ac::after { transform: translateY(2px) rotate(225deg); }

.mm-nav .menu-item-has-children { position: relative; }

@media (max-width: 1180px) {
	.header-nav { gap: 22px; }
	.header-nav > li > .sub-menu { min-width: 236px; }
}

/* --- Mega menü ------------------------------------------------------------
   Panel header genişliğinde açılır: solda bölüm tanıtımı, ortada alt
   başlıklar, sağda görsel, altta CTA şeridi.

   Görseli hiç olmayan dallar yukarıdaki sade açılır listeyi kullanır.        */

/*
 * Panel header'ın tamamına yayıldığı için öğenin kendisi konumlandırma
 * bağlamı olmamalı; panel #site-header'a göre hizalanıyor.
 */
.header-nav > li.has-mega { position: static; }

.header-nav .mega {
	position: absolute;
	top: 100%;
	z-index: 60;
	/*
	 * 100vw kullanılmıyor: kaydırma çubuğu genişliği kadar taşıyordu.
	 * Mutlak konumlanan öğenin kabı header'ın dolgu kutusudur; dolgu kutusu
	 * zaten header'ın tam genişliği olduğu için sıfır yeterli.
	 */
	inset-inline: 0;
	background: var(--white);
	box-shadow: 0 24px 60px rgba(21, 47, 86, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Başlık ile panel arasında imleç boşluğa düşünce menü kapanmasın. */
.header-nav .mega::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -14px;
	height: 14px;
}

.header-nav .has-mega:hover > .mega,
.header-nav .has-mega:focus-within > .mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mega__inner {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr) 400px;
	gap: clamp(32px, 4vw, 64px);
	align-items: start;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 44px var(--gutter) 40px;
}

.mega--genis .mega__inner { grid-template-columns: 230px minmax(0, 1fr) 380px; }

/* --- Sol sütun: bölüm tanıtımı -------------------------------------------- */

.mega__intro { display: flex; flex-direction: column; }

.mega__label {
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--green);
}

.header-nav .mega__title {
	margin-top: 12px;
	padding: 0;
	font-family: var(--font-display);
	font-size: var(--fs-h3);
	font-weight: 800;
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-tight);
	text-transform: none;
	white-space: normal;
	color: var(--ink);
}

.header-nav .mega__title::after { display: none; }
.header-nav .mega__title:hover { color: var(--navy); }

.mega__intro-desc {
	margin-top: 14px;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	line-height: var(--lh-body);
	color: var(--muted);
}

/* --- Orta sütun: alt başlıklar -------------------------------------------- */

/*
 * Buradaki listeye görünürlük zorlanmıyor. `visibility` kalıtsaldır: kapalı
 * panelin içinde `visible` kalan bir liste, saydam olsa bile fareyi yakalayıp
 * komşu menünün panelini açıyordu. Sade dropdown kuralları da artık yalnızca
 * `.header-nav > li > .sub-menu` seçiciyle bu listeye hiç değmiyor.
 */
.header-nav .mega .sub-menu {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Özgüllük taban kuralını (.header-nav .mega .sub-menu) geçmek zorunda. */
.header-nav .mega--genis .sub-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.header-nav .mega .sub-menu::before { display: none; }

.header-nav .mega .sub-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	white-space: normal;
	color: var(--ink-light);
	transition: color 0.18s ease, gap 0.18s ease;
}

/* İnce ok — hover'da öne çıkıyor. */
.header-nav .mega .sub-menu a::after {
	content: "";
	position: static;
	width: 5px;
	height: 5px;
	margin-inline-start: auto;
	border-top: 1.5px solid currentColor;
	border-inline-end: 1.5px solid currentColor;
	background: none;
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-nav .mega .sub-menu a:hover {
	color: var(--navy);
	gap: 16px;
}

.header-nav .mega .sub-menu a:hover::after { opacity: 0.6; transform: rotate(45deg) translateX(2px); }

.header-nav .mega .sub-menu .current-menu-item > a { color: var(--navy); font-weight: 700; }

/* --- Sağ sütun: görsel ---------------------------------------------------- */

.mega__gorsel {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--navy);
}

.mega__gorsel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.22s ease;
}

/* Görsel değişirken kısa sönümleme — sert geçiş olmasın. */
.mega__gorsel.is-degisiyor img { opacity: 0; }

.mega__aciklama {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 44px 20px 18px;
	background: linear-gradient(180deg, rgba(21, 47, 86, 0) 0%, rgba(21, 47, 86, 0.92) 100%);
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--white);
}

.mega__aciklama:empty { display: none; }

/* --- Alt şerit ------------------------------------------------------------ */

.mega__alt { border-top: 1px solid var(--line); background: var(--surface-alt); }

.mega__alt-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--wrap);
	min-height: 64px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.header-nav .mega__alt a {
	padding: 0;
	font-family: var(--font-display);
	font-size: var(--fs-btn-sm);
	font-weight: 700;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	white-space: nowrap;
}

.header-nav .mega__alt a::after { display: none; }

.header-nav .mega__tumu {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
	transition: gap 0.18s ease, color 0.18s ease;
}

.header-nav .mega__tumu::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--green);
	transition: width 0.18s ease;
}

.header-nav .mega__tumu:hover { color: var(--green); }
.header-nav .mega__tumu:hover::before { width: 34px; }

.header-nav .mega__cta { color: var(--muted); }
.header-nav .mega__cta:hover { color: var(--navy); }

@media (max-width: 1180px) {
	.mega__inner { grid-template-columns: 210px minmax(0, 1fr) 320px; }
	.mega--genis .mega__inner { grid-template-columns: 200px minmax(0, 1fr) 300px; }
}

@media (max-width: 1024px) {
	/* Görsel sütunu düşer, tanıtım ve liste kalır. */
	.mega__inner,
	.mega--genis .mega__inner { grid-template-columns: 220px minmax(0, 1fr); }
	.mega__gorsel { display: none; }
}

/* Görsel tanımlanmamış mega panel — sağ sütun hiç çizilmiyor. */
.mega--gorselsiz .mega__inner,
.mega--gorselsiz.mega--genis .mega__inner { grid-template-columns: 250px minmax(0, 1fr); }

/* --- Mega panel içinde akordiyon (ör. Kurumsal → Kalite) -------------------
   Satırın yazısı kendi sayfasına gider; sağdaki düğme alt listeyi açar.
   Yükseklik betikle ölçülüyor (main.js) — display animasyon almaz.          */

.header-nav .mega .sub-menu > li.menu-item-has-children { position: relative; }

/* Alt başlığı olan satırda ok yerine açma düğmesi var. */
.header-nav .mega .sub-menu > li.menu-item-has-children > a { padding-inline-end: 44px; }
.header-nav .mega .sub-menu > li.menu-item-has-children > a::after { display: none; }

.mega-alt-ac {
	position: absolute;
	inset-inline-end: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	transition: color 0.18s ease;
}

.mega-alt-ac::after {
	content: "";
	width: 7px;
	height: 7px;
	border-bottom: 1.5px solid currentColor;
	border-inline-end: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.22s ease;
}

.mega-alt-ac:hover,
.is-acik > .mega-alt-ac { color: var(--navy); }

.is-acik > .mega-alt-ac::after { transform: translateY(2px) rotate(225deg); }

.mega-alt-ac:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

/* İç liste — üçüncü seviye. */
.header-nav .mega .sub-menu .sub-menu {
	display: block;
	height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	opacity: 0;
	border-inline-start: 2px solid var(--line);
	transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.header-nav .mega .sub-menu .is-acik > .sub-menu { opacity: 1; }

.header-nav .mega .sub-menu .sub-menu a {
	padding: 9px 0 9px 16px;
	border-bottom: 0;
	font-size: var(--fs-sm);
	color: var(--muted);
}

.header-nav .mega .sub-menu .sub-menu li:last-child a { padding-bottom: 12px; }
.header-nav .mega .sub-menu .sub-menu a:hover { color: var(--navy); }

@media ( prefers-reduced-motion: reduce ) {
	.header-nav .mega .sub-menu .sub-menu { transition: none; }
}

/* Mobil menüde üçüncü seviye (ör. Kalite → Sertifikalar). */
.mm-nav .sub-menu .mm-alt-ac { height: 38px; width: 42px; }
.mm-nav .sub-menu .menu-item-has-children > a { padding-inline-end: 46px; }
.mm-nav .sub-menu .sub-menu { margin-inline-start: 16px; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.mm-nav .sub-menu .sub-menu a { font-size: var(--fs-xs); padding-block: 7px; }

/* Footer sütun başlığı bağlantı olabiliyor (Site Ayarları → Footer). */
.footer-col-title a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
.footer-col-title a:hover { color: var(--green); }

/* --- Arama (inc/arama.php) -------------------------------------------------- */

.arama-ac {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: none;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.arama-ac:hover,
.arama-ac[aria-expanded="true"] { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.arama-ac:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.arama-panel { position: fixed; inset: 0; z-index: 300; }
.arama-panel[hidden] { display: none; }

.arama-panel__zemin {
	position: absolute;
	inset: 0;
	background: rgba(12, 28, 52, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: arama-sol 0.2s ease;
}

.arama-panel__kutu {
	position: relative;
	max-height: 100%;
	overflow-y: auto;
	padding: 28px var(--header-pad, 48px) 32px;
	background: var(--white);
	border-bottom: 3px solid var(--green);
	box-shadow: 0 24px 60px rgba(12, 28, 52, 0.3);
	animation: arama-in 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes arama-in { from { transform: translateY(-16px); opacity: 0; } }
@keyframes arama-sol { from { opacity: 0; } }

@media ( prefers-reduced-motion: reduce ) {
	.arama-panel__zemin,
	.arama-panel__kutu { animation: none; }
}

.arama-panel__form {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 960px;
	margin: 0 auto;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--navy);
}

.arama-panel__ikon { display: flex; color: var(--navy); }

.arama-panel__form input {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: none;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ink);
	outline: none;
}

.arama-panel__form input::placeholder { color: #aab4c0; font-weight: 500; }
.arama-panel__form input::-webkit-search-cancel-button { display: none; }

.arama-panel__ara {
	padding: 11px 22px;
	border: 0;
	background: var(--blue);
	font-family: var(--font-display);
	font-size: var(--fs-btn-sm);
	font-weight: 700;
	letter-spacing: var(--ls-ui);
	text-transform: uppercase;
	color: var(--white);
	cursor: pointer;
	transition: background 0.2s ease;
}

.arama-panel__ara:hover { background: var(--blue-mid); }

.arama-panel__kapat {
	display: flex;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

.arama-panel__kapat:hover { color: var(--navy); }

.arama-panel__sonuc { max-width: 960px; margin: 0 auto; }
.arama-panel__sonuc:empty { display: none; }

.arama-panel__liste { list-style: none; margin: 8px 0 0; padding: 0; }

.arama-panel__liste a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 13px 4px;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	transition: background 0.15s ease, padding-inline 0.15s ease;
}

.arama-panel__liste a:hover,
.arama-panel__liste a:focus-visible { background: rgba(28, 66, 121, 0.04); padding-inline: 12px; outline: none; }

.arama-panel__tip {
	flex: 0 0 76px;
	font-size: var(--fs-tag);
	font-weight: 700;
	letter-spacing: var(--ls-tag);
	text-transform: uppercase;
	color: var(--green);
}

.arama-panel__baslik { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 700; color: var(--ink); }

.arama-panel__tumu {
	display: inline-flex;
	margin-top: 18px;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--navy);
	text-decoration: none;
}

.arama-panel__tumu:hover { color: var(--green); }
.arama-panel__bos { padding: 18px 4px 0; color: var(--muted); }

@media (max-width: 768px) {
	.arama-panel__kutu { padding: 20px 20px 24px; }
	.arama-panel__form { gap: 10px; }
	.arama-panel__form input { font-size: 1.125rem; }
	.arama-panel__ara { display: none; }
	.arama-panel__tip { flex-basis: 60px; }
}

/* Arama penceresi açıkken sayfa kaymasın. */
body.arama-acik { overflow: hidden; }
