/* Shared Kontra Faul header used by pages, category archives and posts. */

:root {
	--kf-navy: #101827;
	--kf-navy-soft: #172237;
	--kf-white: #f7f8f3;
	--kf-accent: #d5e63a;
	--kf-line: rgba(247, 248, 243, 0.18);
}

body.kf-shared-header-enabled .ct-header,
body.kf-shared-header-enabled > .ct-drawer-canvas {
	display: none !important;
}

.kf-site-header,
.kf-site-header *,
.kf-site-header *::before,
.kf-site-header *::after {
	box-sizing: border-box;
}

.kf-site-header {
	position: relative;
	z-index: 30;
	width: 100%;
	border-bottom: 1px solid var(--kf-line);
	background: var(--kf-navy);
	color: var(--kf-white);
	font-family: Arial, Helvetica, sans-serif;
	text-rendering: optimizeLegibility;
}

.kf-site-header a {
	color: inherit;
	text-decoration: none;
}

.kf-site-header img {
	display: block;
	max-width: 100%;
	height: auto;
}

.kf-page-shell {
	width: min(1320px, calc(100% - 64px));
	margin-inline: auto;
}

.kf-header-main {
	display: flex;
	min-height: 102px;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.kf-wordmark {
	display: block;
	width: clamp(120px, 11.5vw, 160px);
}

.kf-brand-logo {
	width: 100%;
	height: auto;
}

.kf-tagline {
	max-width: 290px;
	margin: 0;
	font-family: "Arial Narrow", "DejaVu Sans Condensed", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.kf-tagline span {
	display: block;
	margin-top: 6px;
	color: var(--kf-accent);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kf-desktop-nav {
	display: flex;
	min-height: 50px;
	align-items: stretch;
	gap: clamp(22px, 3vw, 46px);
	border-top: 1px solid var(--kf-line);
	font-family: "Arial Narrow", "DejaVu Sans Condensed", Arial, sans-serif;
	font-size: 12px;
	font-weight: 900;
}

.kf-desktop-nav a {
	position: relative;
	display: flex;
	align-items: center;
}

.kf-desktop-nav a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--kf-accent);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}

.kf-desktop-nav a:hover::after,
.kf-desktop-nav a.is-active::after {
	transform: scaleX(1);
}

.kf-desktop-nav a.is-active {
	color: var(--kf-accent);
}

.kf-desktop-nav .kf-nav-contact {
	margin-left: auto;
}

.kf-mobile-nav {
	display: none;
}

@media (max-width: 760px) {
	.kf-tagline,
	.kf-desktop-nav {
		display: none;
	}

	.kf-page-shell {
		width: min(calc(100% - 32px), 1320px);
	}

	.kf-header-main {
		min-height: 82px;
	}

	.kf-wordmark {
		width: 132px;
	}

	.kf-mobile-nav {
		display: block;
		border-top: 1px solid var(--kf-line);
	}

	.kf-mobile-nav summary {
		display: flex;
		height: 48px;
		align-items: center;
		justify-content: space-between;
		cursor: pointer;
		font-size: 11px;
		font-weight: 900;
		list-style: none;
		text-transform: uppercase;
	}

	.kf-mobile-nav summary::-webkit-details-marker {
		display: none;
	}

	.kf-menu-lines,
	.kf-menu-lines::before,
	.kf-menu-lines::after {
		display: block;
		width: 23px;
		height: 2px;
		background: var(--kf-accent);
	}

	.kf-menu-lines {
		position: relative;
	}

	.kf-menu-lines::before,
	.kf-menu-lines::after {
		position: absolute;
		left: 0;
		content: "";
	}

	.kf-menu-lines::before {
		top: -7px;
	}

	.kf-menu-lines::after {
		top: 7px;
	}

	.kf-mobile-nav > div {
		display: grid;
		padding-bottom: 18px;
	}

	.kf-mobile-nav a {
		padding: 13px 0;
		border-top: 1px solid var(--kf-line);
		font-size: 13px;
		font-weight: 800;
	}

	.kf-mobile-nav a.is-active {
		color: var(--kf-accent);
	}
}
