/* =========================================
   HEADER BASE
   ========================================= */

.site-header {
	position: relative;
	z-index: 100;
}

.ast-primary-header-bar {
	background: #111111;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ast-primary-header-bar .site-primary-header-wrap {
	min-height: 78px;
}


/* =========================================
   HEADER CONTAINER
   ========================================= */

.ast-primary-header-bar .ast-builder-grid-row {
	width: 100%;
	max-width: 1240px;
	min-height: 78px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}


/* =========================================
   LOGO
   ========================================= */

.ast-header-widget-area .custom-logo-link,
.site-header .custom-logo-link {
	display: flex;
	align-items: center;
}

.site-header .custom-logo {
	display: block;
	width: auto;
	max-height: 44px;
}

.site-header .custom-logo-link {
	line-height: 0;
}


/* =========================================
   PRIMARY MENU
   ========================================= */

.main-header-menu {
	display: flex;
	align-items: center;
	gap: 2px;
}

.main-header-menu > .menu-item > .menu-link {
	position: relative;
	display: flex;
	align-items: center;
	height: 78px;
	padding: 0 15px;

	color: #ffffff;
	background: transparent;

	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;

	transition:
		color 0.2s ease,
		background 0.2s ease;
}

.main-header-menu > .menu-item > .menu-link:hover {
	color: #d4a72c;
	background: transparent;
}


/* =========================================
   MENU UNDERLINE
   ========================================= */

.main-header-menu > .menu-item > .menu-link::after {
	content: "";

	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 19px;

	height: 1px;

	background: #d4a72c;

	transform: scaleX(0);
	transform-origin: center;

	transition: transform 0.2s ease;
}

.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .menu-item.current-menu-item > .menu-link::after,
.main-header-menu > .menu-item.current-menu-ancestor > .menu-link::after {
	transform: scaleX(1);
}


/* =========================================
   CURRENT MENU ITEM
   ========================================= */

.main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
	color: #d4a72c;
}


/* =========================================
   ASTRA MENU ARROWS
   ========================================= */

.main-header-menu .ast-menu-toggle {
	color: #ffffff;
}

.main-header-menu .menu-item:hover > .ast-menu-toggle {
	color: #d4a72c;
}


/* =========================================
   DROPDOWN MENU
   ========================================= */

.main-header-menu .sub-menu {
	min-width: 230px;
	padding: 8px 0;

	background: #111111;
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.20);
}

.main-header-menu .sub-menu .menu-link {
	padding: 11px 18px;

	color: #ffffff;
	background: transparent;

	font-size: 13px;
	line-height: 1.4;
}

.main-header-menu .sub-menu .menu-link:hover {
	color: #d4a72c;
	background: rgba(212, 167, 44, 0.07);
}


/* =========================================
   GET STRATEGY — ASTRA HEADER BUTTON
   ========================================= */

.ast-builder-button-wrap .ast-builder-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 48px;
	padding: 13px 28px;

	background: #d4a72c;
	color: #111111 !important;

	border: 1px solid #d4a72c;
	border-radius: 2px;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;

	box-shadow: none;

	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.ast-builder-button-wrap .ast-builder-button:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #111111 !important;

	transform: translateY(-1px);
}


/* =========================================
   BUTTON CONTAINER
   ========================================= */

.ast-header-button-1 {
	display: flex;
	align-items: center;
}

.ast-header-button-1 .ast-builder-button-wrap {
	display: flex;
	align-items: center;
}


/* =========================================
   HEADER SPACING
   ========================================= */

.ast-primary-header-bar .site-header-primary-section-left {
	align-items: center;
}

.ast-primary-header-bar .site-header-primary-section-right {
	align-items: center;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1100px) {

	.ast-primary-header-bar .ast-builder-grid-row {
		padding-left: 24px;
		padding-right: 24px;
	}

	.main-header-menu > .menu-item > .menu-link {
		padding-left: 11px;
		padding-right: 11px;
	}

	.main-header-menu > .menu-item > .menu-link::after {
		left: 11px;
		right: 11px;
	}

	.ast-builder-button-wrap .ast-builder-button {
		padding-left: 22px;
		padding-right: 22px;
	}

}


/* =========================================
   ASTRA MOBILE HEADER
   ========================================= */

@media (max-width: 921px) {

	.ast-primary-header-bar .site-primary-header-wrap {
		min-height: 68px;
	}

	.ast-primary-header-bar .ast-builder-grid-row {
		min-height: 68px;
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-header .custom-logo {
		max-height: 38px;
	}

	.main-header-menu > .menu-item > .menu-link {
		height: auto;
		padding: 14px 20px;
	}

	.main-header-menu > .menu-item > .menu-link::after {
		display: none;
	}

	.main-header-menu .sub-menu .menu-link {
		padding: 11px 20px;
	}

}


/* =========================================
   MOBILE MENU BUTTON
   ========================================= */

@media (max-width: 921px) {

	.ast-button-wrap .ast-mobile-menu-trigger-minimal {
		color: #ffffff;
	}

	.ast-button-wrap .mobile-menu-toggle-icon {
		color: #ffffff;
	}

	.ast-button-wrap .ast-mobile-menu-trigger-minimal:hover {
		color: #d4a72c;
	}

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 544px) {

	.ast-primary-header-bar .ast-builder-grid-row {
		padding-left: 16px;
		padding-right: 16px;
	}

	.site-header .custom-logo {
		max-height: 34px;
	}

}

/* =========================================
   Teekhaweb — Smart Sticky Header
========================================= */

#masthead {
	position: sticky;
	top: 0;
	z-index: 99999;
	width: 100%;
	background: #111111;
}

#masthead.tw-header-hidden {
	transform: translateY(-100%);
}

#masthead.tw-header-visible {
	transform: translateY(0);
}

#masthead .ast-primary-header-bar {
	background-color: #111111;
	border-bottom: 1px solid rgba(17, 17, 17, 0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Header hidden while scrolling down */
#masthead.tw-header-hidden {
	transform: translateY(-100%);
}

/* Header visible while scrolling up */
#masthead.tw-header-visible {
	transform: translateY(0);
	box-shadow: 0 4px 18px rgba(17, 17, 17, 0.06);
}

/* Admin bar */
body.admin-bar #masthead {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar #masthead {
		top: 46px;
	}
}

/* =========================================
   TEEKHAWEB — MOBILE MENU
   Black / Gold Theme
========================================= */

@media (max-width: 921px) {

	/* -----------------------------------------
	   Mobile popup overall
	------------------------------------------ */

	#masthead .ast-mobile-popup-drawer {
		background: #111111 !important;
		z-index: 999999 !important;
	}

	#masthead .ast-mobile-popup-inner {
		background: #111111 !important;
	}

	#masthead .ast-mobile-popup-content {
		background: #111111 !important;
	}


	/* -----------------------------------------
	   Popup Header / Logo Area
	------------------------------------------ */

	#masthead .ast-mobile-popup-header {
		background: #111111 !important;
		border-bottom: 1px solid rgba(212, 167, 44, 0.18);
	}

	#masthead .ast-mobile-popup-header .ahfb-svg-iconset {
		color: #d4a72c !important;
	}

	#masthead .ast-mobile-popup-header .menu-toggle-close {
		color: #d4a72c !important;
		background: transparent !important;
		border: 1px solid rgba(212, 167, 44, 0.65) !important;
	}

	#masthead .ast-mobile-popup-header .menu-toggle-close:hover {
		color: #111111 !important;
		background: #d4a72c !important;
	}


	/* -----------------------------------------
	   Mobile Menu
	------------------------------------------ */

	#masthead .ast-builder-menu-mobile {
		background: #111111 !important;
	}

	#masthead .ast-builder-menu-mobile .main-header-menu {
		background: #111111 !important;
		padding: 8px 0 20px;
		margin: 0;
		border: 0;
	}

	#masthead .ast-builder-menu-mobile .main-header-menu > .menu-item {
		background: #111111 !important;
		border: 0;
	}


	/* -----------------------------------------
	   Main Menu Links
	------------------------------------------ */

	#masthead .ast-builder-menu-mobile .main-header-menu > .menu-item > .menu-link {
		display: flex;
		align-items: center;

		min-height: 46px;

		padding: 7px 30px;

		background: #111111 !important;

		color: #ffffff !important;

		font-size: 18px;
		font-weight: 500;
		line-height: 1.35;

		border: 0 !important;
	}

	#masthead .ast-builder-menu-mobile .main-header-menu > .menu-item > .menu-link:hover,
	#masthead .ast-builder-menu-mobile .main-header-menu > .menu-item > .menu-link:focus {
		background: #111111 !important;
		color: #d4a72c !important;
	}


	/* -----------------------------------------
	   Dropdown Arrow / Toggle
	------------------------------------------ */

	#masthead .ast-builder-menu-mobile .ast-menu-toggle {
		color: #d4a72c !important;
		background: transparent !important;
		border: 0 !important;
	}

	#masthead .ast-builder-menu-mobile .ast-menu-toggle:hover {
		background: transparent !important;
		color: #ffffff !important;
	}


	/* -----------------------------------------
	   Sub Menu
	------------------------------------------ */

	#masthead .ast-builder-menu-mobile .sub-menu {
		background: #181818 !important;
		border: 0 !important;
		padding: 4px 0 8px;
	}

	#masthead .ast-builder-menu-mobile .sub-menu .menu-item {
		background: #181818 !important;
	}

	#masthead .ast-builder-menu-mobile .sub-menu .menu-link {
		padding: 7px 45px;

		background: #181818 !important;

		color: #bdbdbd !important;

		font-size: 15px;
		line-height: 1.4;
	}

	#masthead .ast-builder-menu-mobile .sub-menu .menu-link:hover {
		background: #181818 !important;
		color: #d4a72c !important;
	}


	/* -----------------------------------------
	   Mobile Menu Close Button
	------------------------------------------ */

	#masthead .menu-toggle-close {
		width: 66px;
		height: 66px;

		display: flex;
		align-items: center;
		justify-content: center;

		background: transparent !important;

		color: #d4a72c !important;

		border: 1px solid rgba(212, 167, 44, 0.7) !important;
	}


	/* -----------------------------------------
	   Keep Menu Above Hero
	------------------------------------------ */

	#masthead .ast-mobile-popup-drawer.active {
		visibility: visible;
		opacity: 1;
	}

	#masthead .ast-mobile-popup-drawer,
	#masthead .ast-mobile-popup-inner {
		max-height: 100vh;
		overflow-y: auto;
	}


	/* -----------------------------------------
	   Smart Sticky Header + Mobile Menu
	------------------------------------------ */

	#masthead.tw-header-hidden {
		transform: translateY(-100%);
	}

	#masthead.tw-header-visible {
		transform: translateY(0);
	}

	/* Never hide header while mobile menu is open */
	#masthead:has(.ast-mobile-popup-drawer.active) 
		transform: translateY(0) !important;
	}

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

	#masthead .ast-builder-menu-mobile .main-header-menu > .menu-item > .menu-link {
		min-height: 43px;
		padding: 6px 24px;
		font-size: 14px;
	}

	#masthead .ast-builder-menu-mobile .sub-menu .menu-link {
		padding-left: 38px;
		font-size: 14px;
	}

	#masthead .menu-toggle-close {
		width: 64px;
		height: 64px;
	}

}

/* =========================================
   TEEKHAWEB — HEADER VISIBILITY FIX
========================================= */

html body #masthead {
    position: sticky !important;
    top: 0;
    z-index: 999999 !important;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease !important;
}

html body #masthead.tw-header-hidden {
    transform: translateY(-110%) !important;
}

html body #masthead.tw-header-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
    html body #masthead {
        transition: none !important;
    }
}

/* Homepage header height consistency */
body.home.page-id-9 #masthead .ast-primary-header-bar {
    min-height: 81px !important;
    height: 81px !important;
    box-sizing: border-box !important;
}

body.home.page-id-9 #masthead .site-primary-header-wrap,
body.home.page-id-9 #masthead .ast-builder-grid-row {
    min-height: 80px !important;
    box-sizing: border-box !important;
}