.logo-bar{
	min-height: 8rem;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-bar__inner{
	padding: 0 4rem;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr max-content auto;
	grid-template-rows: auto;
	justify-content: center;
	align-items: center;
	grid-template-areas: "logo search menu phone";
	grid-column-gap: 1.8rem;
	padding-top: 1.6rem;
	padding-bottom: 1.6rem;
}

.logo-bar__item{
	display: flex;
}

.logo-bar__item img{
	display: block;
}

.logo-bar__item:nth-child(2){
	flex-grow: 1;
}

.top-menu{
	justify-content: flex-end;
	grid-area: menu;
}

.top-menu__items{
	list-style-type: none;
	padding: 0;
	/* padding-right: 1.8rem; */
	padding-right: 0;
	margin: 0;
	display: flex;
	justify-content: space-between;
}

.top-menu__item{
	position: relative;
	padding: 1rem 0;
}

.top-menu__item + .top-menu__item{
	margin-left: 3.6rem;
}

.top-menu__link{
	color: var(--color-brand-navy);
	font-size: 1.4rem;
	font-weight: var(--font-weight--light);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: border var(--animation-duration--default) ease;
	display: flex;
	align-items: center;
	letter-spacing: var(--letter-spacing);
}
.top-menu__link img {
	display: none;
}
.top-menu__link--has-children:after{
	content: " ";
	/*background-image: url('../../icons/bbk/chevron-down.svg');*/
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23112134' fill='none' stroke-linecap='square' d='M13 .5l-6 6-6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	height: 1em;
	width: 1em;
	display: inline-block;
	margin-left: 0.8rem;
}


.top-menu__link span{
	border-bottom: 1px solid transparent;
}

.top-menu__link:hover span,
.top-menu__link:focus span{
	border-bottom: 1px solid currentColor;
}



.top-menu__item:hover .top-menu__item__children,
.top-menu__item:focus .top-menu__item__children{
	display: block;
}
.top-menu__item:focus-within .top-menu__item__children{
	display: block;
}

.top-menu__item__children{
	display: none;
	position: absolute;
	top: 100%;
	left: -1.8rem;
	padding: 1.8rem;
	z-index: 100;
	min-width: 20rem;
	background-color: var(--color-brand-white);
	border-radius: 1px;
	box-shadow: 0px 0px 0.8rem 0.8rem rgba(var(--color-brand-navy-rgb), 0.04);
	animation: fadeIn ease var(--animation-duration--default);


	/* left: -1.4rem; */
}

.top-menu__item__child__link{
	color: var(--color-brand-navy);
	font-size: 1.4rem;
	font-weight: var(--font-weight--light);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: border var(--animation-duration--default) ease;
}

.top-menu__dropdown,
.top-menu__dropdown__title,
.top-menu__back-to-top-menu {
	display: none;
}

.top-menu__item:hover .top-menu__dropdown {
	display: block;
}

.top-menu__item__child + .top-menu__item__child {
    margin-top: 1rem;
}

.top-menu__item__child__link:hover,
.top-menu__item__child__link:focus{
	border-bottom: 1px solid currentColor;
}

.site-search-wrapper{
	grid-area: search;
}

.site-search{
	position: relative;
	margin: 0 auto;
	width: 100%;
	max-width: 28rem;
}

.site-search__field{
	width: 100%;
	font-size: var(--input-font-size);
	border-radius:  calc(var(--input-border-radius));
	background-color: var(--color-brand-pale-blue);
	box-shadow: none;
	border: none;
	padding: 1.6rem 1.6rem 1.6rem 4.8rem;
	color: var(--input-color);
	transition: background var(--animation-duration--default) ease;
}

.site-search__button{
	position: absolute;
	background-color: transparent;
	border-radius: none;
	padding: 0;
	top: 50%;
	left: 1.6rem;
}

.site-search__button::before{
	content: " ";
	display: block;
	position: absolute;
	height: 2.4rem;
	width: 2.4rem;

	transform: translateY(calc(-50% + 2px));

	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,%3Csvg%20height%3D%2218%22%20viewBox%3D%220%200%2020%2018%22%20width%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%23112134%22%20stroke-linecap%3D%22square%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22m16%2014%203%203%22/%3E%3C/g%3E%3C/svg%3E');
	background-repeat: no-repeat, repeat;
}
.site-search__button:hover+* {
	outline: solid 2px var(--color-brand-navy);
    border-radius: calc(var(--input-border-radius));
}

.site-search__field:hover,
.site-search__field:focus{
	background-color: var(--color-brand-pale-blue--light);
	outline: solid 2px var(--color-brand-navy);
    border-radius: calc(var(--input-border-radius));
}





.mobile-nav-toggle{
	display: none;
	height: 2.4rem;
	width: 2.4rem;
	grid-area: menu;
	background-image: url("data:image/svg+xml,%3Csvg height='18' viewBox='0 0 26 18' width='26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' stroke='%23112134' stroke-linecap='square'%3E%3Cpath d='m1 1h24v1h-24z'/%3E%3Cpath d='m1 16h24v1h-24z'/%3E%3Cpath d='m1 9h24v1h-24z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}



.site-search-mobile-toggle{
	display: none;
	grid-area: search_toggle;
	height: 2.4rem;
	width: 2.4rem;

	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,%3Csvg%20height%3D%2218%22%20viewBox%3D%220%200%2020%2018%22%20width%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20stroke%3D%22%23112134%22%20stroke-linecap%3D%22square%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%229%22%20r%3D%228%22/%3E%3Cpath%20d%3D%22m16%2014%203%203%22/%3E%3C/g%3E%3C/svg%3E');
	background-repeat: no-repeat, repeat;
	background-position: center;
}

.logo-bar__item.phone-cta {
	top: -1px;
	padding-left: 3.6rem;
	border-left: solid 1px var(--color-brand-pale-blue--light);
	margin-left: 1.8rem;
}	

.logo-bar__item.phone-cta {
	&:before {
		background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.333 2.995A2.668 2.668 0 0 1 3.008.333h1.467V5.13L2.91 6.336a6.747 6.747 0 0 0 4.737 4.752l1.2-1.543h4.819v1.46a2.668 2.668 0 0 1-2.675 2.662H9.41l-.017-.001C4.394 13.648.333 9.597.333 4.618h.005c0-.016-.005-.03-.005-.046V2.995z' fill='%23008486' fill-rule='evenodd'/%3E%3C/svg%3E");
		margin-right: 0.8rem;
	}
}

/* responsiveness */
@media(max-width: 1440px){
	.logo-bar__inner{
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media(max-width: 1168px){
	.top-menu__item{
		position: initial;
	}

	.top-menu__item__child{
		padding: 1.8rem 1.4rem;
		border-top: solid 1px white;
	}

	.top-menu__link{
		justify-content: space-between;
	}

	.top-menu__link img {
		display: block;
		position: absolute;
		left: -4.4rem;
		top: 50%;
		width: 3.2rem;
		padding: 4px;
		background: var(--color-brand-white);
		border-radius: 4px;
		margin-top: -16px;
	}

	.top-menu__link--has-children:after{
		height: 0.8rem;
    	width: 2.6rem;
		background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="10" viewBox="0 0 28 10" fill="none"><path d="M23 0.934692L27 4.99999L23 9.06528" stroke="%23112134" stroke-linecap="round"/><path d="M1 4.99998L26 4.99998" stroke="%23112134" stroke-linecap="round"/></svg>');
		background-position: center right;
	}
	
	.top-menu__dropdown{
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 4rem 0;
		background-color: var(--color-background--light);
		z-index: 999;
	}
	
	/* .top-menu__item:hover .top-menu__dropdown{
		display: flex;
	}
	.top-menu__item:focus-within .top-menu__dropdown{
		display: flex;
	} */
	
	/* .top-menu__dropdown .top-menu__dropdown__title,
	.top-menu__dropdown .top-menu__back-to-top-menu {
		display: none;
	} */

	.top-menu__dropdown__main{
		flex-basis: 2;
	}
	
	.top-menu__back-to-top-menu {
		display: flex;
		align-items: center;
		font-size: 1.6rem;
		font-weight: var(--font-weight--medium);
		background-color: var(--color-brand-pale-blue) !important;
		border-bottom: 1px solid var(--color-brand-pale-blue-dark);
		width: 100%;
		margin-bottom: 1.8rem;
		padding-top: 1.8rem;
		padding-bottom: 1.8rem;
		padding-left: 1.4rem;
		padding-right: 2.4rem;
		margin-top: 0;
		margin-bottom: 0;
	}
	.top-menu__back-to-top-menu:before {
		content: " ";
		display: inline-block;
		background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="18" viewBox="0 0 10 18" fill="none"><path d="M9 17L1 9L9 1" stroke="%23112134" stroke-linecap="square"/></svg>');
		background-repeat: no-repeat;
		background-size: contain;
		background-position: left 1px;
		height: 1.6rem;
		width: 0.8rem;
		margin-right: 1.6rem;
	}
	.top-menu__dropdown__title{
		color: inherit;
		font-size: 1.8rem;
		font-weight: var(--font-weight--bold);
		text-decoration: none;
		margin-bottom: 3rem;
		display: inline-block;
		border-bottom: 1px solid transparent;
		transition: border var(--animation-duration--default);
		position: relative;
		display: flex;
		align-items: center;
	}
	.top-menu__dropdown__title:after{
		content: " ";
		height: 1.5rem;
		width: 1.5rem;
		background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="10" viewBox="0 0 28 10" fill="none"><path d="M23 0.934814L27 5.00011L23 9.06541" stroke="%23112134" stroke-linecap="round"/><path d="M1 5.00011L26 5.00011" stroke="%23112134" stroke-linecap="round"/></svg>');
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		margin-left: 1.6rem;
		transition: transform ease var(--animation-duration--slow);
	}
	.top-menu__dropdown__title:focus span{
		border-color: currentColor;
	}
	.top-menu__dropdown__title:hover:after,
	.top-menu__dropdown__title:focus:after{
		transform: translateX(0.2rem);
	}
	.top-menu__dropdown__title span{
		border-bottom: 1px solid transparent;
	}
	.top-menu__dropdown__title span:hover,
	.top-menu__dropdown__title span:focus{
		border-color: currentColor;
	}
	.top-menu__dropdown.active{
		display: flex !important;
		flex-direction: column;
		position: absolute;
		top: 0;
		overflow-x: hidden;
		padding-top: 0;
		min-height: 100%;
		padding-bottom: 8rem;
		background-color: var(--color-brand-pale-blue);
	}
	.top-menu__dropdown.active .top-menu__item__children {
		display: block;
		background-color: transparent;
		border-bottom: solid 1px white;
		margin-bottom: 6rem;
	}
	.top-menu__item:hover .top-menu__dropdown {
		display: none;
	}
	.top-menu__item__child + .top-menu__item__child {
		margin-top: 0;
	}
	.top-menu__item__child__link {
		font-size: 1.6rem;
		font-weight: var(--font-weight--medium);
	}
	.top-menu__dropdown__title{
		position: relative;
		font-weight: var(--font-weight--medium);
		letter-spacing: 0.8px;
		padding: 1.8rem 2.4rem 1.8rem 6rem;
		background-color: var(--color-brand-white);
		margin-bottom: 0rem;
	}
	.top-menu__dropdown__title:before{
		display: none;
	}
	.top-menu__dropdown__title:after{
		/* background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="10" viewBox="0 0 28 10" fill="none"><path d="M23 0.934814L27 5.00011L23 9.06541" stroke="white" stroke-linecap="round"/><path d="M1 5.00011L26 5.00011" stroke="white" stroke-linecap="round"/></svg>'); */
		background-repeat: no-repeat;
		background-size: contain;
		height: 0.8rem;
		width: 2.6rem;
		margin-left: auto;
	}
	.top-menu__dropdown__title img{
		position: absolute;
		left: 1.6rem;
		top: 50%;
		width: 3.2rem;
		padding: 4px;
		background: var(--color-brand-white);
		border-radius: 4px;
		margin-top: -16px;
	}


	.logo-bar{
		min-height: auto;
	}

	.logo-bar__inner{
		padding-left: var(--site-padding);
		padding-right: var(--site-padding);
		grid-template-columns: 1fr auto auto;
		grid-template-rows: auto auto;
		grid-template-areas: 
			"logo search_toggle menu"
			"search search search";
	}

	.site-search-mobile-toggle{
		display: block;
	}

	.site-search-wrapper{
		margin-top: 1.8rem;
	}

	.site-search-wrapper.active{
		animation: fadeIn ease var(--animation-duration--default);
		display: flex;

	}

	.site-search{
		margin-left: auto;
		margin-right: 0;
	}

	.site-search__button {
		display: none;
	}

	.site-search__field {
		padding-left: 1.6rem;
	}

	.top-menu{
		display: none;
	}

	.mobile-nav-toggle{
		display: block;
	}

	.mobile-nav-toggle.nav-active{
		background-image: url('../../icons/bbk/cross.svg');
		height: 2.2rem;
		animation: fadeIn ease var(--animation-duration--default);
	}

	.site-search-wrapper{
		display: none;
	}
	.logo-bar__item.phone-cta {
		display: none;
	}	
}

@media(max-width: 968px){
}

@media(max-width: 768px){
}

@media(max-width: 568px){
	.site-search{
		width: 100%;
		max-width: 100%;
	}

	.site-search__field{
		width: 100%;
	}
}
