/* set up variables to control header height and max-banner height, in different contexts */
/* small screens always use the small header */
body{
	--header-height: var(--min-header-height);
	--banner-height-shim: var(--min-header-height);
}

/* header cutoff width should be adjusted for different sites, depending on the width of their menu. Don't bring it in sooner than necessary */
/* ;nav-transition-from-mobile; */
@media only screen and (min-width: 1186px) {
	
	body{
		--header-height: var(--max-header-height);
		--banner-height-shim: var(--max-header-height);
	}
	body.fixed-header.page-home{
		/* --banner-height-shim: 0px; */ /* banner header fixed height issue during minifying */
		--banner-height-shim: 1px;
	}
	body.scrolled{
		--header-height: var(--min-header-height);
	}
}

.banner_gallery{
	--banner-height-adjust: calc( var(--banner-height-shim) + var(--toolbar-height, 0px) );
}

/************************* Alert Bar *************************/
#alert-bar {
	text-align: center;
	width: 100%;
}

#alert-bar p {
	margin-bottom: 0;
	display: flex;
    align-content: center;
    justify-content: center;
    padding: 0.5rem;
}

#alert-bar p a {
	display: block;
}

/****************** Header Contents ****************************/
#header{
	position: sticky;
	position: -webkit-sticky;
	top: 0px;
	z-index:1000;
}

#header-inner{
	/* position:relative; */
	width:100%;
	/* box-shadow: 0 0 7px #828282; */
}

.page-home #header-inner {
	position: absolute;
}

#header-inner {
	position: relative;
}



.scrolled #header-inner {
	box-shadow: 0 0 7px #828282;
}

#topMenuBG {
	height: var(--header-height);
	position:relative;
	transition: height .5s ease;
	/* background: transparent; */
}
#topMenuBG::after{
	position:absolute;
	top:0;
	bottom:0;
	right:0;
	left:0;
	z-index:-1;
	content:'';
	background: #1e2758;
	/* opacity:1; */

	opacity: 0;

	transition: opacity .5s ease;
}

.scrolled #topMenuBG::after {
	opacity: 1;
}



#topMenuBG {
	background: url(images/spriggs-inside-page-banner.jpg) center no-repeat;
	background-size: cover;
}
.cmsDebug #topMenuBG {
	background-image: url(../../images/spriggs-inside-page-banner.jpg);
}

.scrolled #topMenuBG {
	background: #1e2758;
}

.page-home #topMenuBG {
	background: transparent;
}

 
  
#topMenuBG > .standard-width {
	display: flex;

	height: 100%;
	/* justify-content: space-between; */
	/* align-items: center; */

	flex-direction: column;
	position: relative;
	/* height: var(--header-height); */
	transition: height .5s ease;
}

.top-header-line {
	/* display: flex; */
	/* justify-content: flex-end; */
	padding: .8125rem 0;
	background: #1e2758;
	transition: height .5s ease;
}

.top-header-line > .standard-width {
	display: flex;
	justify-content: flex-end;
	transition: height .5s ease;
}

.top-header-line p {
	margin: 0 0 0 5rem;
}

.top-header-line a {
	color: white;
	font-size: 1.0625rem;
	font-weight: 600;
}

.top-header-line a:hover {
	color: var(--brand-a-hover);
}

.bottom-header-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-height);

	position: relative;
	transition: height .5s ease;
}


  
#topMenuBG #header-logo {
	display: block;
	flex: 0 1 auto;
	height: 81%;

	transition: height .5s ease;
}

#topMenuBG #header-logo:hover {
	opacity: .75;
	transition: opacity 1s ease;
}

#topMenuBG #header-logo img {
	width: auto;
	height: 100%;
	display:inline-block;
}
  
#headerRight {
	display: flex;
	/* flex-direction: row; */
	flex-direction: column;
}

#topHeaderContact {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	/* margin-right: 1rem; */
	margin-right: 0;
}
  
/* #topHeaderContact p {
	display: none;
} */

#topHeaderContact p {
	margin-bottom: 0;
}

.div-mail-icon {
	display: block;
	width: 28px;
	margin-right: 3rem;
}

.div-phone-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.div-mail-icon a,
.div-phone-icon a {
	display: block;
	width: 100%;
	height: 100%;
}

/* ;nav-transition-from-mobile; */
@media only screen and (min-width: 1186px) {
	/*
	.fixed-header #header-inner,
	.fixed-header.page-home #header-inner {
		position: absolute;
	}
	*/

	.fixed-header #header-inner {
		position: relative;
	}
	.fixed-header.page-home #header-inner {
		position: absolute;
	}

	#topMenuBG::after{
		opacity:1;
	}
	
	.fixed-header:not(.scrolled) #topMenuBG::after,
	.fixed-header.page-home:not(.scrolled) #topMenuBG::after {
		/* opacity:.7; */
		opacity: 0;
	}
	
	#topMenuBG > .standard-width {
		position: relative;
	}

	#headerRight{
		margin-right: 0;
		flex-direction: column;
		justify-content: space-evenly;
		height: 100%;
	}
	
	#topHeaderContact {
		/* padding-top: .5rem; */
		margin-right:0;
	}

	#topHeaderContact p {
		display: inline;
		margin-left: 1rem;
	}
	
	/*
	body #topHeaderContact .cms-button-a{
		transition: padding .5s ease;
	}
	body.scrolled #topHeaderContact .cms-button-a{
		padding: 0 .35rem;
	}
	*/


}




@media only screen and (max-width: 899px) {
	/* #topHeaderContact p {
		display: none;
	} */

	/* #topMenuBG #header-logo {
		height: 95%;
	} */
}

@media only screen and (min-width: 680px) {
	.div-mail-icon,
	.div-phone-icon {
		display: none;
	}
}

@media only screen and (max-width: 679px) {
	.top-header-line p {
		display: none;
	}
}