/*
 * NAHBS page frame: base type, header with menu bar, footer with menu.
 * Shared by every NAHBS page: home, Register, forms, Blog, Press Releases.
 * Scoped under body.nahbs-home-site so the active theme cannot override it.
 */

body.nahbs-home-site {
	margin: 0;
	background: #ffffff;
	color: #111111;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.nahbs-home-site .nh-site,
.nahbs-home-site .nh-site * {
	box-sizing: border-box;
}
.nahbs-home-site .nh-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.nahbs-home-site .nh-main,
.nahbs-home-site .nh-home {
	flex-grow: 1;
}
.nahbs-home-site a,
.nahbs-home-site a:visited {
	color: #111111;
}
.nahbs-home-site a:hover,
.nahbs-home-site a:focus,
.nahbs-home-site a:active {
	color: #a63010;
}
.nahbs-home-site a:focus-visible,
.nahbs-home-site button:focus-visible {
	outline: 3px solid #2c6b7d;
	outline-offset: 2px;
}
.nahbs-home-site .nh-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Header and menu bar --------------------------------------------- */

.nahbs-home-site .nh-header {
	background: #000000;
	padding: 14px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 32px;
}
.nahbs-home-site .nh-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}
.nahbs-home-site .nh-header .nh-header__home,
.nahbs-home-site .nh-header .nh-header__home:visited,
.nahbs-home-site .nh-header .nh-header__home:hover,
.nahbs-home-site .nh-header .nh-header__home:focus,
.nahbs-home-site .nh-header .nh-header__home:active {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	color: #ffffff;
	text-decoration: none;
}
.nahbs-home-site .nh-header__logo {
	width: 44px;
	height: 41px;
	object-fit: contain;
	flex-shrink: 0;
}
.nahbs-home-site .nh-header__title {
	font-family: 'League Gothic', Impact, sans-serif;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffffff;
}

/* "Menu" button: only on narrow screens, and only once the script runs */
.nahbs-home-site .nh-menu-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 4px;
	background: transparent;
	color: #ffffff;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
}
.nahbs-home-site .nh-header.nh-js .nh-menu-toggle {
	display: inline-flex;
}
.nahbs-home-site .nh-menu-toggle__icon,
.nahbs-home-site .nh-menu-toggle__icon span,
.nahbs-home-site .nh-menu-toggle__icon::before,
.nahbs-home-site .nh-menu-toggle__icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: #ffffff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nahbs-home-site .nh-menu-toggle__icon {
	position: relative;
	background: transparent;
}
.nahbs-home-site .nh-menu-toggle__icon::before,
.nahbs-home-site .nh-menu-toggle__icon::after {
	content: '';
	position: absolute;
	left: 0;
}
.nahbs-home-site .nh-menu-toggle__icon::before { top: -6px; }
.nahbs-home-site .nh-menu-toggle__icon::after { top: 6px; }
.nahbs-home-site .nh-header.is-open .nh-menu-toggle__icon span { opacity: 0; }
.nahbs-home-site .nh-header.is-open .nh-menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nahbs-home-site .nh-header.is-open .nh-menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.nahbs-home-site .nh-nav {
	width: 100%;
}
.nahbs-home-site .nh-header.nh-js .nh-nav {
	display: none;
}
.nahbs-home-site .nh-header.nh-js.is-open .nh-nav {
	display: block;
}
.nahbs-home-site .nh-menu {
	list-style: none;
	margin: 12px 0 4px;
	padding: 0;
	border-top: 1px solid #2a2a2a;
}
.nahbs-home-site .nh-menu li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #2a2a2a;
}
.nahbs-home-site .nh-menu a,
.nahbs-home-site .nh-menu a:visited {
	display: block;
	padding: 14px 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
}
.nahbs-home-site .nh-menu a:hover,
.nahbs-home-site .nh-menu a:focus,
.nahbs-home-site .nh-menu a:active {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-color: #a63010;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.nahbs-home-site .nh-menu .current-menu-item > a,
.nahbs-home-site .nh-menu .current_page_item > a,
.nahbs-home-site .nh-menu .current-menu-ancestor > a,
.nahbs-home-site .nh-menu .current-page-ancestor > a,
.nahbs-home-site .nh-menu .current_page_parent > a {
	color: #ffffff;
	box-shadow: inset 4px 0 0 #a63010;
	padding-left: 14px;
}

/* ---- Footer ----------------------------------------------------------- */

.nahbs-home-site .nh-footer {
	background: #000000;
	padding: 28px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
}
.nahbs-home-site .nh-footer__logo {
	width: 32px;
	height: 30px;
	object-fit: contain;
}
.nahbs-home-site .nh-footer__copy {
	font-size: 14px;
	color: #ffffff;
}
.nahbs-home-site .nh-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
}
.nahbs-home-site .nh-footer__menu li {
	margin: 0;
	padding: 0;
}
.nahbs-home-site .nh-footer .nh-footer__menu a,
.nahbs-home-site .nh-footer .nh-footer__menu a:visited,
.nahbs-home-site .nh-footer .nh-footer__menu a:hover,
.nahbs-home-site .nh-footer .nh-footer__menu a:focus,
.nahbs-home-site .nh-footer .nh-footer__menu a:active {
	font-size: 14px;
	color: #ffffff;
}

@media (min-width: 640px) {
	.nahbs-home-site .nh-header { padding: 18px 48px; }
	.nahbs-home-site .nh-header__logo { width: 56px; height: 53px; }
	.nahbs-home-site .nh-header__title { font-size: 30px; }
	.nahbs-home-site .nh-footer { padding: 32px 48px; }
}

/* Menu bar: logo and title at left, menu at right, no button.
   Six menu items need about 1150px, hence 1200px. */
@media (min-width: 1200px) {
	.nahbs-home-site .nh-header {
		flex-wrap: nowrap;
	}
	.nahbs-home-site .nh-header__bar {
		width: auto;
		min-width: 0;
	}
	.nahbs-home-site .nh-header.nh-js .nh-menu-toggle {
		display: none;
	}
	.nahbs-home-site .nh-nav,
	.nahbs-home-site .nh-header.nh-js .nh-nav {
		display: block;
		width: auto;
	}
	.nahbs-home-site .nh-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 4px 30px;
		margin: 0;
		border-top: 0;
	}
	.nahbs-home-site .nh-menu li {
		border-bottom: 0;
	}
	.nahbs-home-site .nh-menu a,
	.nahbs-home-site .nh-menu a:visited {
		padding: 8px 0 6px;
		font-size: 14px;
		border-bottom: 2px solid transparent;
	}
	.nahbs-home-site .nh-menu a:hover,
	.nahbs-home-site .nh-menu a:focus,
	.nahbs-home-site .nh-menu a:active {
		text-decoration: none;
		border-bottom-color: #a63010;
	}
	.nahbs-home-site .nh-menu .current-menu-item > a,
	.nahbs-home-site .nh-menu .current_page_item > a,
	.nahbs-home-site .nh-menu .current-menu-ancestor > a,
	.nahbs-home-site .nh-menu .current-page-ancestor > a,
	.nahbs-home-site .nh-menu .current_page_parent > a {
		box-shadow: none;
		padding-left: 0;
		border-bottom-color: #a63010;
	}
}

@media (max-width: 639px) {
	.nahbs-home-site .nh-header { padding: 12px 16px; }
	.nahbs-home-site .nh-header .nh-header__home,
	.nahbs-home-site .nh-header .nh-header__home:visited,
	.nahbs-home-site .nh-header .nh-header__home:hover,
	.nahbs-home-site .nh-header .nh-header__home:focus,
	.nahbs-home-site .nh-header .nh-header__home:active { gap: 12px; }
	.nahbs-home-site .nh-header__logo { width: 36px; height: 34px; }
	.nahbs-home-site .nh-header__title { font-size: 20px; line-height: 1.05; }
	.nahbs-home-site .nh-menu-toggle { padding: 0 12px; gap: 8px; }
}
