/*
 * Header CSS
 *
 * @author  Andy Bui
 * @website https://abui.top
 * @project XE DỊCH VỤ HOÀNG DUY
 */
.hoangduy-topbar {
	background-color: var(--hd-secondary-color);
	color: var(--hd-white);
	font-size: 13px;
	padding: 8px 0;
}

.hoangduy-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.topbar-left {
	display: flex;
	gap: 20px;
}

.topbar-item {
	display: flex;
	align-items: center;
	gap: 5px;
	opacity: 0.9;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.topbar-socials {
	display: flex;
	gap: 12px;
}

.topbar-socials a {
	color: var(--hd-white);
	opacity: 0.8;
}

.topbar-socials a:hover {
	color: var(--hd-primary-color);
	opacity: 1;
}
.hoangduy-header-main {
	background-color: var(--hd-white);
	padding: 10px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 100;
	transition: padding 0.3s ease;
}

.hoangduy-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.header-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.header-logo img {
	max-height: 70px;
	width: auto;
}

/* Navigation */
.header-nav {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}
.header-nav {
	flex-grow: 1;
	display: flex;
	justify-content: center;
}

.hoangduy-primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}

.hoangduy-primary-menu > li > a {
	color: var(--hd-text-color);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	padding: 10px 0;
	position: relative;
}

.hoangduy-primary-menu > li > a:hover,
.hoangduy-primary-menu > li.current-menu-item > a {
	color: var(--hd-primary-color);
}

.hoangduy-primary-menu > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--hd-primary-color);
	transition: var(--hd-transition);
}

.hoangduy-primary-menu > li > a:hover::after,
.hoangduy-primary-menu > li.current-menu-item > a::after {
	width: 100%;
}

/* Call Button */
.btn-call-now {
	display: inline-flex;
	align-items: center;
	background-color: var(--hd-primary-color);
	color: var(--hd-white);
	padding: 8px 25px;
	border-radius: 4px; /* Square edges as in mockup */
	text-decoration: none;
	transition: var(--hd-transition);
	gap: 12px;
}

.btn-call-now:hover {
	background-color: var(--hd-primary-hover);
	color: var(--hd-white);
}

.btn-call-now .icon-phone {
	font-size: 24px;
}

.btn-call-now .call-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.btn-call-now .phone-number {
	font-size: 16px;
	font-weight: 700;
}

.btn-call-now .call-sub {
	font-size: 11px;
	opacity: 0.9;
}

/* Mobile Toggle - Hidden on desktop */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.mobile-menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--hd-secondary-color);
	margin: 5px 0;
	transition: var(--hd-transition);
}

/* Sticky Header State */
.hoangduy-header-main.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	animation: slideDown 0.3s ease-in-out;
	padding: 5px 0;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(5px);
}

.hoangduy-header-main.is-sticky .header-logo img {
	max-height: 60px;
}

@keyframes slideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

@media (max-width: 991px) {
	.header-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--hd-white);
		box-shadow: 0 5px 10px rgba(0,0,0,0.1);
		padding: 20px;
	}
	.hoangduy-primary-menu {
		flex-direction: column;
		gap: 15px;
	}
	.mobile-menu-toggle {
		display: block;
	}
	.mobile-menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(5px, 6px);
	}
	.mobile-menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	.mobile-menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -6px);
	}
}