/**
 * Pure Haven IT — Header: black bar, logo with black bg, coloured nav links.
 */

/* --------------------------------------------------------------------------
   Header bar — black background
   -------------------------------------------------------------------------- */
body.ph-body .site-header,
body.ph-body .ast-header-wrap,
body.ph-body .ast-primary-header-bar,
body.ph-body .ast-primary-header-bar .site-primary-header-wrap,
body.ph-body .ast-primary-header-bar .ast-container {
	background-color: #060d18 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.ph-body .ast-primary-header-bar {
	padding-top: 3px;
	padding-bottom: 3px;
}

body.ph-body .ast-primary-header-bar,
body.ph-body .ast-primary-header-bar .site-primary-header-wrap {
	min-height: 72px;
}

body.ph-body .ast-primary-header-bar .ast-container,
body.ph-body .ast-primary-header-bar .site-primary-header-wrap,
body.ph-body .ast-primary-header-bar .main-header-bar-wrap {
	width: 100%;
	max-width: var(--ph-container-max, 1280px);
	margin-inline: auto;
	padding-inline: var(--ph-container-padding, clamp(1rem, 4vw, 2rem));
	box-sizing: border-box;
}

body.ph-body .ast-primary-header-bar .main-header-bar-wrap,
body.ph-body .ast-primary-header-bar .site-primary-header-wrap,
body.ph-body .ast-builder-header .ast-builder-grid-row {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100%;
	gap: clamp(16px, 2.5vw, 32px);
}

body.ph-body .ast-primary-header-bar .site-header-primary-section-left {
	flex: 0 0 auto;
	max-width: none;
}

body.ph-body .ast-primary-header-bar .site-header-primary-section-right,
body.ph-body .ast-primary-header-bar .ast-builder-layout-element.ast-header-menu {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: none;
}

/* --------------------------------------------------------------------------
   Brand logo — black-background asset
   -------------------------------------------------------------------------- */
body.ph-body .site-header .site-branding,
body.ph-body .site-header .ast-site-identity {
	align-items: center;
	flex: 0 0 auto;
}

body.ph-body .site-header .site-title {
	margin: 0;
	line-height: 0;
	font-size: 0;
}

body.ph-body .site-header .site-title a {
	display: block;
	line-height: 0;
	padding: 0;
	text-decoration: none;
}

body.ph-body .site-header .ph-header-logo {
	display: block;
	width: auto;
	height: clamp(58px, 7.75vw, 82px);
	max-width: min(46vw, 580px);
	max-height: 82px;
	object-fit: contain;
	object-position: left center;
}

body.ph-body .site-header .ast-site-title-wrap {
	line-height: 0;
}

/* --------------------------------------------------------------------------
   Navigation — single line, full width
   -------------------------------------------------------------------------- */
body.ph-body .ast-primary-header-bar .main-header-bar-navigation {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	margin-left: 0;
	display: flex;
	align-items: center;
	justify-content: stretch;
}

body.ph-body .ast-primary-header-bar .main-header-menu,
body.ph-body .ast-primary-header-bar .ast-builder-menu,
body.ph-body .ast-primary-header-bar .main-header-menu .sub-menu {
	flex-wrap: nowrap !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu,
body.ph-body .ast-primary-header-bar .ast-builder-menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: clamp(2px, 0.35vw, 6px);
	margin: 0;
	padding: 0;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item {
	margin: 0;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item a,
body.ph-body .ast-primary-header-bar .main-header-menu .menu-item .menu-link {
	display: block;
	padding: 0.3rem clamp(0.2rem, 0.45vw, 0.45rem) !important;
	font-size: clamp(0.7rem, 0.82vw, 0.875rem) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-align: center;
	transition: color 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Nav link colours — professional enterprise palette (muted, cohesive)
   -------------------------------------------------------------------------- */
body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(1) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(1) a {
	color: #7eb3e8 !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(2) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(2) a {
	color: #e8a86a !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(3) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(3) a {
	color: #6db8ad !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(4) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(4) a {
	color: #c8d4e4 !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(5) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(5) a {
	color: #a8bdd4 !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(6) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(6) a {
	color: #b8c8dc !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(7) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(7) a {
	color: #f0f4ff !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(8) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(8) a {
	color: #9eb4cc !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(9) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(9) a {
	color: #d4c9a8 !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item:nth-child(10) a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item:nth-child(10) a {
	color: #5b9fef !important;
}

body.ph-body .ast-primary-header-bar .main-header-menu .menu-item a:hover,
body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item a:hover {
	opacity: 0.88;
	filter: brightness(1.12);
}

body.ph-body .ast-primary-header-bar .main-header-menu .current-menu-item > a,
body.ph-body .ast-primary-header-bar .ast-builder-menu .current-menu-item > a {
	filter: brightness(1.2);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 921px) {
	body.ph-body .site-header .ph-header-logo {
		max-width: min(62vw, 300px);
		max-height: 52px;
		height: 52px;
	}

	body.ph-body .ast-primary-header-bar,
	body.ph-body .ast-primary-header-bar .site-primary-header-wrap {
		min-height: var(--ph-header-height-mobile, 52px);
		padding-top: 3px;
		padding-bottom: 3px;
	}

	body.ph-body .ast-primary-header-bar .main-header-menu,
	body.ph-body .ast-primary-header-bar .ast-builder-menu {
		justify-content: flex-end;
		width: auto;
	}
}

@media (max-width: 544px) {
	body.ph-body .site-header .ph-header-logo {
		max-width: min(74vw, 260px);
		max-height: 48px;
		height: 48px;
	}
}

@media (min-width: 922px) {
	body.ph-body .ast-primary-header-bar .main-header-menu .menu-item a,
	body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item a,
	body.ph-body .ast-primary-header-bar .main-header-menu .menu-item .menu-link {
		font-size: clamp(0.75rem, 0.88vw, 0.875rem) !important;
		padding: 0.35rem clamp(0.25rem, 0.5vw, 0.5rem) !important;
	}

	body.ph-body .site-header .ph-header-logo {
		height: clamp(64px, 8.25vw, 82px);
		max-width: min(44vw, 600px);
	}
}

@media (min-width: 1200px) {
	body.ph-body .ast-primary-header-bar .main-header-menu .menu-item a,
	body.ph-body .ast-primary-header-bar .ast-builder-menu .menu-item a,
	body.ph-body .ast-primary-header-bar .main-header-menu .menu-item .menu-link {
		font-size: 0.875rem !important;
		padding: 0.35rem 0.45rem !important;
	}

	body.ph-body .ast-primary-header-bar .main-header-menu,
	body.ph-body .ast-primary-header-bar .ast-builder-menu {
		gap: clamp(4px, 0.5vw, 8px);
	}

	body.ph-body .site-header .ph-header-logo {
		height: 82px;
		max-width: min(42vw, 620px);
	}
}
