/* ===================== RESET & BASE ===================== */
.ch-header-wrap {
	width: 100%;
	position: relative;
	z-index: 9999;
}

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

.ch-header-inner {
	width: 100%;
	background: #fff;
	box-shadow: none;
	border: none;
	transition: background-color 0.3s ease;
}

/* Sticky – on the Elementor <header> element (direct child of body, no overflow issues) */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 99999;
	background: #fff;
}

/* Container */
.ch-header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	margin: 0 auto;
}

/* ===================== LOGO ===================== */
.ch-logo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.ch-logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.ch-logo img {
	display: block;
	height: auto;
}

/* ===================== DESKTOP NAV ===================== */
.ch-nav-wrap {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.ch-nav-desktop {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ch-nav-desktop li {
	position: relative;
	list-style: none;
}

.ch-nav-desktop > li > a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	white-space: nowrap;
	padding: 8px 0;
	transition: color 0.2s ease;
}

/* Arrow toggle (desktop) */
.ch-nav-desktop .ch-submenu-toggle {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	padding: 0 0 0 4px;
	vertical-align: middle;
	transition: transform 0.3s ease;
}

.ch-nav-desktop .ch-submenu-toggle svg {
	width: 10px;
	height: 10px;
}

/* Sub-menu (desktop) */
.ch-nav-desktop .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
	z-index: 100;
}

.ch-nav-desktop li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ch-nav-desktop .sub-menu li {
	padding: 0;
}

.ch-nav-desktop .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.ch-nav-desktop .sub-menu a:hover {
	background-color: #f7f7f7;
}

/* Nested sub-menu */
.ch-nav-desktop .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

/* ===================== SEARCH ===================== */
.ch-search-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	position: relative;
	transition: flex-basis 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ch-search-wrap.is-open {
	flex-shrink: 1;
}

.ch-search-toggle {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	padding: 6px;
	flex-shrink: 0;
	transition: width 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
	width: 30px;
	overflow: hidden;
}

.ch-search-toggle svg,
.ch-search-toggle .ch-search-icon-img {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
}

.ch-search-toggle .ch-search-icon-img,
.ch-search-submit .ch-search-icon-img {
	display: block;
	object-fit: contain;
	stroke: unset;
	fill: unset;
}

.ch-search-form-wrap {
	width: 0;
	overflow: hidden;
	opacity: 0;
	transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.ch-search-wrap.is-open .ch-search-toggle {
	width: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.ch-search-wrap.is-open .ch-search-form-wrap {
	width: 260px;
	opacity: 1;
}

.ch-search-form input[type="search"]::placeholder {
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.3s ease 0.25s, transform 0.3s ease 0.25s;
}

.ch-search-wrap.is-open .ch-search-form input[type="search"]::placeholder {
	opacity: 1;
	transform: translateX(0);
}

.ch-search-form {
	display: flex;
	align-items: center;
	position: relative;
}

.ch-search-form input[type="search"] {
	width: 100%;
	height: 36px;
	padding: 0 36px 0 12px;
	border: 1px solid #0073aa;
	border-radius: 0;
	outline: none;
	font-size: 14px;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
}

.ch-search-form input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.ch-search-submit {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	cursor: pointer;
}

.ch-search-submit svg {
	width: 16px;
	height: 16px;
	stroke: #666;
	fill: none;
}

/* ── Live Search Results ── */
.ch-search-results {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 260px;
	max-height: 360px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

.ch-search-results.is-visible {
	display: block;
}

.ch-sr-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	text-decoration: none;
	color: #333;
	transition: background-color 0.15s ease;
	border-bottom: 1px solid #f3f4f6;
}

.ch-sr-item:last-child {
	border-bottom: none;
}

.ch-sr-item:hover {
	background-color: #f3f4f6;
}

.ch-sr-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.ch-sr-title {
	font-size: 14px;
	line-height: 1.4;
	color: #1f2937;
}

.ch-sr-empty {
	padding: 16px 12px;
	text-align: center;
	font-size: 13px;
	color: #9ca3af;
}

/* ===================== HAMBURGER ===================== */
.ch-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.ch-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #333;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===================== MOBILE PANEL ===================== */
.ch-mobile-panel {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 999999;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.35s ease;
}

.ch-mobile-panel.is-open {
	transform: translateX(0);
}

.ch-mobile-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.ch-mobile-panel-header .ch-logo img {
	width: 140px;
	height: auto;
}

.ch-mobile-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
}

.ch-mobile-close svg {
	width: 24px;
	height: 24px;
	stroke: #333;
}

/* Mobile Nav */
.ch-mobile-nav-wrap {
	padding: 0;
}

.ch-mobile-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ch-mobile-nav li {
	border-bottom: 1px solid #eee;
	list-style: none;
}

.ch-mobile-nav > li > a {
	display: block;
	padding: 16px 20px;
	text-decoration: none;
	font-size: 16px;
	font-weight: 400;
	transition: color 0.2s ease;
}

.ch-mobile-nav li {
	position: relative;
}

.ch-mobile-nav .ch-submenu-toggle {
	position: absolute;
	right: 0;
	top: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s ease;
	z-index: 2;
}

.ch-mobile-nav .ch-submenu-toggle svg {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

.ch-mobile-nav .ch-submenu-toggle.is-active svg {
	transform: rotate(180deg);
}

/* Accordion sub-menu */
.ch-mobile-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	background: #f9f9f9;
}

.ch-mobile-nav .sub-menu.is-open {
	display: block;
}

.ch-mobile-nav .sub-menu a {
	display: block;
	padding: 14px 20px 14px 36px;
	text-decoration: none;
	font-size: 15px;
	color: #555;
	transition: color 0.2s ease;
	border-bottom: 1px solid #eee;
}

.ch-mobile-nav .sub-menu .sub-menu a {
	padding-left: 52px;
	font-size: 14px;
}

/* Overlay */
.ch-mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999998;
}

.ch-mobile-overlay.is-active {
	display: block;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
	.ch-nav-wrap,
	.ch-search-wrap {
		display: none;
	}

	.ch-hamburger {
		display: flex;
	}

	.ch-header-container {
		justify-content: space-between;
	}
}

@media (min-width: 1025px) {
	.ch-hamburger {
		display: none;
	}

	.ch-mobile-panel,
	.ch-mobile-overlay {
		display: none !important;
	}
}
