/*
 * CookVibe header — scoped styles.
 * The rest of the theme remains untouched until its own build stage.
 */
.cv-site-header,
.cv-site-header * {
	box-sizing: border-box;
}

.cv-site-header {
	position: relative;
	z-index: 100;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #edf1f7;
	box-shadow: 0 2px 14px rgba(18, 44, 84, 0.05);
	direction: rtl;
	font-family: Tahoma, Arial, sans-serif;
}

.cv-header-inner {
	width: min(100% - 48px, 1370px);
	min-height: 64px;
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cv-brand {
	flex: 0 0 170px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-decoration: none;
}

.cv-brand img {
	display: block;
	width: 170px;
	height: 52px;
	object-fit: contain;
	object-position: right center;
}

.cv-main-nav {
	flex: 0 1 auto;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	align-self: stretch;
	gap: clamp(24px, 2.1vw, 38px);
	white-space: nowrap;
}

.cv-main-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: #12234c;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: color .2s ease;
}

.cv-main-nav a:hover,
.cv-main-nav a:focus-visible,
.cv-main-nav a.is-active {
	color: #0874dc;
}

.cv-main-nav a.is-active::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: 10px;
	height: 2px;
	border-radius: 4px;
	background: #0874dc;
}

.cv-header-cta {
	flex: 0 0 auto;
	margin-inline-start: auto;
	min-width: 154px;
	height: 40px;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 8px;
	color: #fff !important;
	background: #0874dc;
	box-shadow: 0 7px 18px rgba(8, 116, 220, 0.18);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.cv-header-cta:hover,
.cv-header-cta:focus-visible {
	background: #075fba;
	box-shadow: 0 9px 22px rgba(8, 95, 186, 0.24);
	transform: translateY(-1px);
}

.cv-header-cta__icon {
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cv-header-cta__icon svg {
	width: 16px;
	height: 16px;
}

.cv-mobile-menu {
	display: none;
	position: relative;
	margin: 0;
}

.cv-mobile-menu summary {
	list-style: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid #dbe4ef;
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	display: grid;
	align-content: center;
	gap: 5px;
}

.cv-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.cv-mobile-menu summary span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 3px;
	background: #12234c;
	transition: transform .2s ease, opacity .2s ease;
}

.cv-mobile-menu[open] summary span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.cv-mobile-menu[open] summary span:nth-child(2) {
	opacity: 0;
}

.cv-mobile-menu[open] summary span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.cv-mobile-menu nav {
	position: absolute;
	top: calc(100% + 13px);
	left: 0;
	width: min(320px, calc(100vw - 32px));
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(19, 40, 75, 0.16);
}

.cv-mobile-menu nav a {
	padding: 13px 15px;
	border-radius: 8px;
	color: #12234c;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
}

.cv-mobile-menu nav a:hover,
.cv-mobile-menu nav a:focus-visible,
.cv-mobile-menu nav a.is-active {
	color: #0874dc;
	background: #f0f7ff;
}

.cv-mobile-menu nav .cv-mobile-cta {
	margin-top: 6px;
	color: #fff;
	background: #0874dc;
	text-align: center;
}

@media (max-width: 1120px) {
	.cv-header-inner {
		width: min(100% - 32px, 1370px);
		gap: 10px;
	}

	.cv-brand {
		flex-basis: 150px;
	}

	.cv-brand img {
		width: 150px;
	}

	.cv-main-nav {
		gap: 20px;
	}

	.cv-main-nav a {
		font-size: 13.5px;
	}

	.cv-header-cta {
		min-width: 142px;
		height: 38px;
		padding-inline: 12px;
		font-size: 13.5px;
	}
}

@media (max-width: 900px) {
	.cv-header-inner {
		min-height: 70px;
		justify-content: space-between;
	}

	.cv-brand {
		flex: 0 1 190px;
		height: 58px;
	}

	.cv-brand img {
		width: min(190px, 52vw);
		height: 58px;
	}

	.cv-main-nav,
	.cv-header-cta {
		display: none;
	}

	.cv-mobile-menu {
		display: block;
		margin-inline-start: auto;
	}
}

@media (max-width: 480px) {
	.cv-header-inner {
		width: calc(100% - 24px);
		min-height: 64px;
	}

	.cv-brand,
	.cv-brand img {
		height: 52px;
	}

	.cv-brand img {
		width: min(172px, 58vw);
	}

	.cv-mobile-menu summary {
		width: 42px;
		height: 42px;
	}

	.cv-mobile-menu nav {
		left: -2px;
	}
}


