/* =========================================================================
   Helfferich site header
   Brand: red #D71D1D, wordmark grey #5B5B5B
   ========================================================================= */

:root {
	--hf-red: #d71d1d;
	--hf-red-dark: #b01414;
	--hf-ink: #1c1c1c;
	--hf-grey: #5b5b5b;
	--hf-line: #e7e7e7;
	--hf-header-h: 76px;
}

.hf-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid var(--hf-line);
	transition: box-shadow .25s ease, border-color .25s ease;
}

.hf-header--scrolled {
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
	border-bottom-color: transparent;
}

.hf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1200px;
	min-height: var(--hf-header-h);
	margin: 0 auto;
	padding: 10px 24px;
	box-sizing: border-box;
}

/* --- Brand / logo --------------------------------------------------------- */
.hf-header__brand {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	text-decoration: none;
	line-height: 1;
	flex: 0 0 auto;
}

.hf-header__logo {
	display: block;
	width: auto;
	height: 38px;
	max-width: 100%;
}

.hf-header__tagline {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--hf-red);
	font-weight: 600;
	padding-left: 2px;
}

/* --- Navigation ----------------------------------------------------------- */
.hf-header__nav {
	display: flex;
	align-items: center;
}

.hf-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hf-menu li {
	position: relative;
	margin: 0;
}

.hf-menu a {
	display: inline-block;
	padding: 10px 14px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--hf-ink);
	text-decoration: none;
	border-radius: 6px;
	transition: color .18s ease, background-color .18s ease;
}

.hf-menu a::after {
	content: "";
	display: block;
	height: 2px;
	width: 0;
	margin-top: 4px;
	background: var(--hf-red);
	transition: width .2s ease;
}

.hf-menu > li > a:hover,
.hf-menu > li.current-menu-item > a,
.hf-menu > li.current-menu-ancestor > a {
	color: var(--hf-red);
}

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

/* CTA button (contact) */
.hf-menu li.menu-item-cta {
	margin-left: 8px;
}

.hf-menu li.menu-item-cta > a {
	color: #ffffff;
	background: var(--hf-red);
	padding: 11px 22px;
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(215, 29, 29, .28);
}

.hf-menu li.menu-item-cta > a::after {
	display: none;
}

.hf-menu li.menu-item-cta > a:hover {
	background: var(--hf-red-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

/* Sub-menus (dropdowns) */
.hf-menu ul.sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--hf-line);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 20;
}

.hf-menu li:hover > ul.sub-menu,
.hf-menu li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hf-menu ul.sub-menu a {
	display: block;
	padding: 9px 12px;
	font-weight: 500;
	color: var(--hf-ink);
}

.hf-menu ul.sub-menu a::after { display: none; }

.hf-menu ul.sub-menu a:hover {
	color: var(--hf-red);
	background: #f6f6f6;
}

/* --- Mobile toggle -------------------------------------------------------- */
.hf-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	margin: 0;
	background: transparent;
	border: 1px solid var(--hf-line);
	border-radius: 8px;
	cursor: pointer;
	box-sizing: border-box;
}

.hf-header__toggle-bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--hf-ink);
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}

.hf-header--open .hf-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hf-header--open .hf-header__toggle-bar:nth-child(2) {
	opacity: 0;
}
.hf-header--open .hf-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --- Responsive ----------------------------------------------------------- */
@media ( max-width: 960px ) {
	.hf-header__toggle {
		display: flex;
	}

	.hf-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: block;
		background: #ffffff;
		border-bottom: 1px solid var(--hf-line);
		box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}

	.hf-header--open .hf-header__nav {
		max-height: 80vh;
		overflow-y: auto;
	}

	.hf-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 16px 20px;
	}

	.hf-menu li { width: 100%; }

	.hf-menu a {
		display: block;
		padding: 14px 8px;
		font-size: 17px;
		border-bottom: 1px solid #f0f0f0;
		border-radius: 0;
	}

	.hf-menu a::after { display: none; }

	.hf-menu li.menu-item-cta {
		margin: 16px 0 0;
	}

	.hf-menu li.menu-item-cta > a {
		text-align: center;
		border-radius: 999px;
		border-bottom: 0;
	}

	.hf-menu ul.sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 14px;
		min-width: 0;
	}
}

@media ( max-width: 420px ) {
	.hf-header__inner { padding: 8px 16px; }
	.hf-header__logo { height: 32px; }
}

/* =========================================================================
   Helfferich site footer
   ========================================================================= */
.hf-footer {
	background: #161616;
	color: #c7c7c7;
	font-size: 15px;
	line-height: 1.7;
}

.hf-footer__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1.2fr;
	gap: 48px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 48px;
	box-sizing: border-box;
}

.hf-footer__logo {
	height: 40px;
	width: auto;
	/* the wordmark is dark grey; brighten it on the dark footer */
	filter: brightness(0) invert(1);
	opacity: .92;
}

.hf-footer__intro {
	margin: 20px 0 0;
	max-width: 34ch;
	color: #a7a7a7;
}

.hf-footer__heading {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #ffffff;
}

.hf-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hf-footer__menu li { margin: 0 0 10px; }

.hf-footer a {
	color: #c7c7c7;
	text-decoration: none;
	transition: color .18s ease;
}

.hf-footer__menu a:hover,
.hf-footer__contact a:hover {
	color: var(--hf-red);
}

.hf-footer__contact {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hf-footer__contact a { color: #d7d7d7; }

.hf-footer__cta {
	display: inline-block;
	margin-top: 22px;
	padding: 11px 22px;
	background: var(--hf-red);
	color: #ffffff !important;
	font-weight: 600;
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(215, 29, 29, .3);
	transition: background-color .18s ease, transform .18s ease;
}

.hf-footer__cta:hover {
	background: var(--hf-red-dark);
	transform: translateY(-1px);
}

.hf-footer__bar {
	border-top: 1px solid #2a2a2a;
}

.hf-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	font-size: 13.5px;
	color: #8f8f8f;
}

.hf-footer__bar-links a {
	color: #8f8f8f;
	margin-left: 20px;
}

.hf-footer__bar-links a:first-child { margin-left: 0; }

.hf-footer__bar-links a:hover { color: #ffffff; }

@media ( max-width: 860px ) {
	.hf-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 36px 32px;
		padding: 48px 24px 36px;
	}
	.hf-footer__col--brand { grid-column: 1 / -1; }
}

@media ( max-width: 560px ) {
	.hf-footer__inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}
	.hf-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.hf-footer__bar-links a:first-child { margin-left: 0; }
}
