/* Tema tarafından gelen eski header alanlarını kapatır. */
#masthead.site-header,
.mobile-menu-wrapper {
	display: none !important;
}

.elementor-location-header,
header[data-elementor-type="header"] {
	position: sticky;
	z-index: 99990;
	top: 0;
}

body.admin-bar .elementor-location-header,
body.admin-bar header[data-elementor-type="header"] {
	top: 32px;
}

.rcs-header {
	--rcs-green: #237a5c;
	--rcs-green-dark: #185b45;
	--rcs-yellow: #ffc64d;
	--rcs-ink: #181818;
	--rcs-muted: #737d79;
	--rcs-line: #e8ecea;
	--rcs-white: #ffffff;

	position: relative;
	z-index: 9999;
	width: 100%;
	border-bottom: 1px solid var(--rcs-line);
	background: rgba(255, 255, 255, .98);
	color: var(--rcs-ink);
	font-family: "Manrope", sans-serif;
	transition: box-shadow .25s ease;
	backdrop-filter: blur(14px);
}

.rcs-header,
.rcs-header *,
.rcs-header *::before,
.rcs-header *::after {
	box-sizing: border-box;
}

.rcs-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(24, 65, 52, .09);
}

.rcs-header a {
	color: inherit;
	text-decoration: none;
}

.rcs-container {
	width: min(calc(100% - 48px), 1320px);
	margin: 0 auto;
}

.rcs-inner {
	position: relative;
	display: flex;
	min-height: 78px;
	align-items: center;
	gap: 28px;
}

/* =========================================================
   LOGOLAR
========================================================= */

.rcs-brand-group {
	display: flex;
	min-width: 0;
	flex: 0 0 auto;
	align-items: center;
	gap: 16px;
}

.rcs-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.rcs-brand img {
	display: block;
	width: 164px;
	height: auto;
	max-height: 54px;
	object-fit: contain;
}

.rcs-codeai {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 16px;
}

.rcs-codeai::before {
	content: "";
	display: block;
	width: 1px;
	height: 28px;
	flex: 0 0 1px;
	background: var(--rcs-line);
}

.rcs-codeai img {
	display: block;
	width: auto;
	height: 19px;
	max-width: 72px;
	object-fit: contain;
}

/* =========================================================
   SADE MENÜ
========================================================= */

.rcs-navigation {
	display: flex;
	min-width: 0;
	flex: 1;
	align-items: center;
	justify-content: flex-end;
}

.rcs-nav-list {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	list-style: none;
}

.rcs-nav-list li {
	margin: 0;
	padding: 0;
}

.rcs-nav-link {
	position: relative;
	display: inline-flex;
	min-height: 42px;
	padding: 11px 10px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--rcs-ink) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: color .2s ease, background-color .2s ease;
}

.rcs-nav-link:hover,
.rcs-nav-link[aria-current="page"] {
	background: #f2f7f4;
	color: var(--rcs-green-dark) !important;
}

.rcs-nav-link[aria-current="page"]::after {
	content: "";
	position: absolute;
	right: 13px;
	bottom: 5px;
	left: 13px;
	height: 2px;
	border-radius: 999px;
	background: var(--rcs-green);
}

.rcs-nav-cta {
	min-height: 44px;
	margin-left: 8px;
	padding: 12px 18px;
	border: 1px solid var(--rcs-yellow);
	border-radius: 8px;
	background: var(--rcs-yellow);
	color: var(--rcs-ink) !important;
	font-weight: 800;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.rcs-nav-cta:hover,
.rcs-nav-cta[aria-current="page"] {
	border-color: #ffd46f;
	background: #ffd46f;
	color: var(--rcs-ink) !important;
	transform: translateY(-1px);
}

.rcs-nav-cta[aria-current="page"]::after {
	display: none;
}

/* =========================================================
   MOBİL MENÜ BUTONU
========================================================= */

.rcs-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--rcs-line);
	border-radius: 9px;
	background: var(--rcs-white);
	cursor: pointer;
}

.rcs-menu-lines {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
	margin: auto;
}

.rcs-menu-lines i {
	position: absolute;
	left: 0;
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 10px;
	background: var(--rcs-green-dark);
	transition: top .22s ease, transform .22s ease, opacity .18s ease;
}

.rcs-menu-lines i:nth-child(1) {
	top: 0;
}

.rcs-menu-lines i:nth-child(2) {
	top: 6px;
}

.rcs-menu-lines i:nth-child(3) {
	top: 12px;
}

.rcs-menu-toggle[aria-expanded="true"] .rcs-menu-lines i:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}

.rcs-menu-toggle[aria-expanded="true"] .rcs-menu-lines i:nth-child(2) {
	opacity: 0;
}

.rcs-menu-toggle[aria-expanded="true"] .rcs-menu-lines i:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) and (min-width: 1025px) {
	.rcs-container {
		width: min(calc(100% - 32px), 1320px);
	}

	.rcs-inner {
		gap: 18px;
	}

	.rcs-brand img {
		width: 148px;
	}

	.rcs-codeai {
		gap: 12px;
	}

	.rcs-codeai img {
		height: 17px;
		max-width: 62px;
	}

	.rcs-nav-link {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 12px;
	}
}

@media (max-width: 1024px) {
	body.admin-bar .elementor-location-header,
	body.admin-bar header[data-elementor-type="header"] {
		top: 32px;
	}

	.rcs-container {
		width: min(calc(100% - 36px), 1320px);
	}

	.rcs-inner {
		min-height: 72px;
		gap: 16px;
	}

	.rcs-brand img {
		width: 148px;
	}

	.rcs-navigation {
		position: absolute;
		top: calc(100% + 1px);
		right: 0;
		left: 0;
		display: block;
		width: 100%;
		padding: 10px;
		border: 1px solid var(--rcs-line);
		border-radius: 0 0 12px 12px;
		background: rgba(255, 255, 255, .99);
		box-shadow: 0 18px 42px rgba(24, 65, 52, .12);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-7px);
		transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
	}

	.rcs-navigation.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.rcs-nav-list {
		display: grid;
		width: 100%;
		grid-template-columns: minmax(0, 1fr);
		align-items: stretch;
		justify-content: stretch;
		justify-items: stretch;
		gap: 2px;
	}

	.rcs-nav-list li {
		display: block;
		width: 100%;
	}

	.rcs-nav-link {
		width: 100%;
		min-height: 47px;
		padding: 13px 14px;
		justify-content: flex-start;
		border-radius: 7px;
		font-size: 13px;
		text-align: left;
	}

	.rcs-nav-link[aria-current="page"]::after {
		right: auto;
		bottom: 8px;
		left: 14px;
		width: 24px;
	}

	.rcs-nav-cta {
		width: 100%;
		margin: 5px 0 0;
		justify-content: center;
		text-align: center;
	}

	.rcs-menu-toggle {
		display: block;
	}
}

@media (max-width: 767px) {
	body.admin-bar .elementor-location-header,
	body.admin-bar header[data-elementor-type="header"] {
		top: 46px;
	}

	.rcs-container {
		width: calc(100% - 28px);
	}

	.rcs-inner {
		min-height: 68px;
		gap: 12px;
	}

	.rcs-brand-group {
		gap: 11px;
	}

	.rcs-brand img {
		width: 130px;
		max-height: 46px;
	}

	.rcs-codeai {
		gap: 10px;
	}

	.rcs-codeai::before {
		height: 23px;
	}

	.rcs-codeai img {
		height: 16px;
		max-width: 58px;
	}

	.rcs-menu-toggle {
		width: 42px;
		height: 42px;
	}

	.rcs-navigation {
		max-height: calc(100vh - 115px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (max-width: 390px) {
	.rcs-brand img {
		width: 118px;
	}

	.rcs-codeai img {
		height: 15px;
		max-width: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcs-header *,
	.rcs-header *::before,
	.rcs-header *::after {
		transition: none !important;
	}
}
