/* ==========================================================
   CARXIS TOOLKIT
   Header Module v1.0
========================================================== */

/* ==========================================================
   Header
========================================================== */

.cx-header {
	position: sticky;
	top: 0;
	z-index: 999;

	background: #ffffff;
	border-bottom: 1px solid #ececec;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cx-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

.cx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
}

/* ==========================================================
   Logo
========================================================== */

.cx-header__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.cx-company-logo {
	display: block;
	height: 54px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
}

/* ==========================================================
   Navigation
========================================================== */

.cx-header__navigation {
	flex: 1;
	display: flex;
	justify-content: center;
}

.cx-header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.cx-header__menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cx-header__menu a {
	display: block;
	padding: 12px 18px;

	border-radius: 8px;

	color: #222222;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;

	transition:
		background 0.25s ease,
		color 0.25s ease;
}

.cx-header__menu a:hover,
.cx-header__menu .current-menu-item > a,
.cx-header__menu .current_page_item > a {
	background: #f7f7f7;
	color: #d61f26;
}

/* ==========================================================
   Dropdown
========================================================== */

.cx-header__menu .sub-menu {
	display: none;

	position: absolute;
	top: calc(100% + 8px);
	left: 0;

	min-width: 220px;

	margin: 0;
	padding: 10px 0;

	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 10px;

	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

	list-style: none;

	z-index: 999;
}

.cx-header__menu li:hover > .sub-menu {
	display: block;
}

.cx-header__menu .sub-menu li {
	width: 100%;
}

.cx-header__menu .sub-menu a {
	padding: 10px 18px;
	border-radius: 0;
	white-space: nowrap;
}

/* ==========================================================
   Actions
========================================================== */

.cx-header__actions {
	flex: 0 0 auto;

	display: flex;
	align-items: center;
	gap: 16px;
}

/* ==========================================================
   Phone
========================================================== */

.cx-header__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 10px 18px;

	border: 2px solid #d61f26;
	border-radius: 999px;

	color: #d61f26;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;

	transition:
		background 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease;
}

.cx-header__phone:hover {
	background: #d61f26;
	border-color: #d61f26;
	color: #ffffff;
}

/* ==========================================================
   WhatsApp
========================================================== */

.cx-header__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 10px 18px;

	background: #25d366;
	border-radius: 999px;

	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;

	transition:
		background 0.25s ease,
		transform 0.25s ease;
}

.cx-header__whatsapp:hover {
	background: #1faa52;
	color: #ffffff;
	transform: translateY(-1px);
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 1024px) {

	.cx-header__inner {
		gap: 16px;
	}

	.cx-header__menu {
		gap: 4px;
	}

	.cx-header__menu a {
		padding: 10px 14px;
	}

}

@media (max-width: 768px) {

	.cx-header__inner {
		flex-wrap: wrap;
		min-height: auto;
		padding: 16px 0;
	}

	.cx-header__logo {
		order: 1;
	}

	.cx-header__actions {
		order: 2;
		margin-left: auto;
	}

	.cx-header__navigation {
		order: 3;
		width: 100%;
		justify-content: flex-start;
	}

	.cx-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.cx-header__menu li {
		width: 100%;
	}

	.cx-header__menu a {
		width: 100%;
		padding: 14px 0;
		border-radius: 0;
	}

	.cx-header__phone {
		padding: 8px 14px;
		font-size: 14px;
	}

}