#masthead {
	position: fixed;
	width: 100%;
	z-index: 99;
	transition: 0.5s ease all;
}
#masthead.sticky {
	background: #0052a4dd;
}
.site-header .logo a {
	display: inline-block;
}
.sticky.site-header .logo img {
	transform: translateY(0px);
}
.site-header .logo img {
	width: auto;
	height: 80px;
	display: inline-block;
	padding-left: 15px;
}
.nav-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.postid-2018 .site-header .logo img,
.postid-496 .site-header .logo img {
	max-width: 125px;
}

.site-branding {
	text-align: center;
	transition: 0.5s ease all;
	opacity: 1;
}
.site-branding .phones {
	margin: 5px auto;
	transition: 0.5s ease all;
	opacity: 1;
}
.site-branding .phones .phone {
	font-size: 20px;
	line-height: 22px;
	font-family: "Open Sans", sans-serif;
	color: #0e4699;
	display: inline-block;
	font-weight: 500;
	letter-spacing: 1px;
	padding: 5px 15px;
	transition: 0.5s ease all;
}
.site-branding .phones .phone .phone-link,
.site-branding .phones .phone .location-link {
	font-size: 16px;
	color: #000;
}
.site-branding .phones .phone .phone-link {
	display: none;
}

.site-branding a.btn.btn-header,
.site-branding button.btn.btn-header {
	text-transform: uppercase;
	font-family: "Open Sans", sans-serif;
	padding: 8px 20px;
	margin-right: 15px;
}
.sticky .site-branding #menu-main-menu {
	margin-top: 0;
}
.site-branding .header-right {
	display: flex;
	flex-direction: column;
	padding-top: 1rem;
}
.sticky .site-branding .header-buttons {
	display: none;
}
.site-branding .header-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.site-branding .header-buttons li {
	display: inline-block;
}

button.navbar-toggler {
	padding: 6px;
	background-color: #000;
}
.navbar-toggler-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar {
	padding: 0;
}
.nav-toggler {
	display: none;
}

#menu-main-menu,
#menu-main-menu ul {
	padding: 0;
	list-style: none;
}

#menu-main-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0;
	margin: 1rem;
	margin-left: 0;
}

#menu-main-menu > li {
	flex-grow: 1;
	flex-basis: 0;
	text-align: center;
	position: relative;
}

#menu-main-menu > li > a {
	padding: 1rem;
	white-space: nowrap;
	font-size: 20px;
	border-radius: 5px;
}

#menu-main-menu a {
	padding: 0.5rem 1rem;
	display: inline-block;
	color: white;
	width: 100%;
	transition: background-color 0.3s cubic-bezier(0, 0.55, 0.45, 1),
		color 0.3s cubic-bezier(0, 0.55, 0.45, 1);
	text-shadow: 1px 1px 1px #000;
	font-family: "Oswald", sans-serif;
	text-transform: uppercase;
	line-height: 1.2;
}

#menu-main-menu > .menu-item-has-children > a {
	border-radius: 5px 5px 0 0;
}

#menu-main-menu li:hover > a,
#menu-main-menu a[aria-current="page"] {
	background-color: white;
	color: #212529;
	text-shadow: none;
}

#menu-main-menu .sub-menu {
	border-radius: 0 0 5px 5px;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: #0052a4;
	text-align: left;
	max-height: 0;
	transform: translateY(30px);
	opacity: 0;
	overflow: hidden;
	min-width: 250px;
	transition: transform 0.3s cubic-bezier(0, 0.55, 0.45, 1),
		opacity 0.3s cubic-bezier(0, 0.55, 0.45, 1);
}

.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid white;
	margin-left: 5px;
	vertical-align: middle;
}

.menu-item-has-children:hover > a::after {
	border-top: 5px solid #212529;
}

#masthead .site-name {
	font-family: "Oswald", sans-serif;
	text-transform: uppercase;
	line-height: 1.2;
	color: white;
	font-size: 24px;
	margin-left: 1.5rem;
	display: none;
}

#masthead.sticky .site-name {
	display: inline-block;
}

@media (min-width: 1200px) {
	.admin-bar #masthead {
		top: 32px;
	}
	#menu-main-menu li:hover .sub-menu {
		max-height: 1000px;
		transform: translateY(0);
		opacity: 1;
	}
	.site-header .logo img {
		transform: translateY(-10px);
	}
	.mobile-link {
		display: none;
	}
	#masthead.sticky .logo img {
		display: none;
	}
}
@media (max-width: 1200px) {
	.site-header .logo img {
		padding: 0;
	}
	#masthead .logo {
		position: fixed;
		top: 1rem;
		left: 50%;
		transform: translateX(-50%);
		padding: 0;
		pointer-events: none;
		transition: opacity 0.3s cubic-bezier(0, 0.55, 0.45, 1);
	}
	#masthead .site-name {
		display: none !important;
	}
	#masthead.sticky .logo {
		opacity: 0;
	}
	.site-branding .header-buttons {
		display: none;
	}
	.nav-toggler {
		display: inline-block;
		color: white;
		font-size: 40px;
		cursor: pointer;
	}
	.nav-toggler .close {
		display: none;
	}
	.nav-toggler.active .bars {
		display: none;
	}
	.nav-toggler.active .close {
		display: inline-block;
	}
	.menu-main-menu-container {
		background-color: #0052a4;
		position: fixed;
		bottom: 80px;
		right: 0;
		height: calc(100vh - 80px);
		width: 360px;
		transform: translateX(360px);
		transition: transform 0.3s cubic-bezier(0, 0.55, 0.45, 1);
	}
	.admin-bar .menu-main-menu-container {
		height: calc(100vh - 112px);
	}
	#menu-main-menu li,
	#menu-main-menu a {
		width: 100%;
		text-align: left;
	}
	#menu-main-menu > li > a {
		border-radius: 0;
	}
	#menu-main-menu > li > a:target {
		color: #212529;
	}
	#menu-main-menu .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-radius: 0;
	}
	#menu-main-menu {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		margin: 0;
	}
	.menu-main-menu-container.active {
		transform: translateX(0);
	}
	#menu-main-menu .sub-menu {
		position: relative;
		top: unset;
		left: unset;
		transform: translateY(0);
		transition: all 0.3s cubic-bezier(0, 0.55, 0.45, 1);
	}
	#menu-main-menu li.active .sub-menu {
		max-height: 1000px;
		opacity: 1;
	}
	#menu-main-menu li.active > a {
		background-color: #e7e7e7;
	}
	.nav-top {
		height: 80px;
		padding: 0 2rem;
	}
	#masthead {
		top: unset;
		bottom: 0;
		background: #0052a4 !important;
	}
	.site-branding .header-right {
		position: absolute;
	}
	.mobile-link {
		display: flex;
		flex-direction: column;
		background: transparent;
		color: white;
		border: none;
		text-align: center;
		align-items: center;
	}
	.mobile-link .icon {
		font-size: 2em;
	}
}
@media (max-width: 782px) {
	.admin-bar .menu-main-menu-container {
		height: calc(100vh - 126px);
	}
}
