/* 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.scrolled{
		--header-height: var(--min-header-height);
	}
}


/****************** 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;
}

#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: white;
	opacity:1;
	transition: opacity .5s ease;
}
 
  
#topMenuBG > .standard-width {
	display: flex;
	height: 100%;
	justify-content: space-between;
	align-items: center;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#topMenuBG #header-logo {
    height: 100%;
    max-width: 500px;
}

#topMenuBG #header-logo img {
    max-height: 100%;
    position: relative;
    top: 50%;
	width: 100%;
    transform: translateY(-50%);
}

#topMenuBG #header-logo img:hover {
	opacity: .75;
	transition: opacity 1s ease;
}

#headerLeft {
	height: 100%;
}

#headerRight {
	display: flex;
	flex-direction: row;
	gap: 15px;
}

#topHeaderContact {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 15px;
}

.header-buttons {
    display: flex;
    gap: 20px;
}

.div-phone-icon {
	display: block;
	width: 25px;
	height: 25px;
}

.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:not(.scrolled) #topMenuBG.no-banner::after,
	#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%;
		gap: 0;
	}
	
	/*
	body #topHeaderContact .cms-button-a{
		transition: padding .5s ease;
	}
	body.scrolled #topHeaderContact .cms-button-a{
		padding: 0 .35rem;
	}
	*/

	.div-phone-icon,
	.div-email-icon {
		display: none;
	}
}

@media only screen and (max-width: 1186px) {
    
    .header-buttons {
        display: none;
    }
}