/**
 * Header Styles
 *
 * This document contains all of the styles for the top portion of the 
 * Wordpress theme.
 *
 * @package WordPress
 * @subpackage Southcoast
 * @since Southcoast 1.0
 */

.header {
	background: $white;
	border-bottom: 1px solid $grey-light;
	border-left: 1px solid $grey-light;
	border-right: 1px solid $grey-light;
	height: 80px;
	margin: 0 auto -81px auto;
	max-width: 1420px;
	position: relative;
	z-index: 2;
}

.logo-headline {
	left: 30px;
	margin-bottom: 0;
	margin-top: 0;
	position: absolute;
	top: 28px;
}

.logo-link {
	display: block;
	@include transition( opacity 0.4s );
}

.logo-link:hover {
	opacity: 0.8;
}

.logo-image {
	border: none;
	display: block;
	height: 24px;
	width: 286px;
}

.header-menu {
	position: absolute;
	right: 326px;
	top: 0;
}

.header-menu-list {
	margin-bottom: 0;
	margin-top: 0;
	padding-left: 0;
}

.header-menu-list:after {
	clear: both;
	content: "";
	display: table;
}

.header-menu-list li {
	margin-bottom: 0;
	margin-right: 30px;
	margin-top: 0;
	padding: 31px 0;
	float: left;
}

.header-menu-list li:before {
	display: none;
}

.header-menu-list a {
	color: $grey-dark;
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 18px;
	text-transform: uppercase;
}

.header-menu-list a:hover,
.header-menu-list .current-menu-item > a {
	color: $pink;
}

.header-menu-list .doctors a:before {
	background-image: url("images/icon-header-stethoscope-regular.png");
	content: "";
	display: inline-block;
	height: 15px;
	margin-right: 8px;
	margin-top: -1px;
	position: relative;
	top: 3px;
	width: 10px;
}

.header-menu-list .services a:before {
	background-image: url("images/icon-header-plus-regular.png");
	content: "";
	display: inline-block;
	height: 13px;
	margin-right: 8px;
	position: relative;
	top: 1px;
	width: 13px;
}

.header-menu-list .locations {
	min-height: 0;
}

.header-menu-list .locations a:before {
	background-image: url("images/icon-header-pin-regular.png");
	content: "";
	display: inline-block;
	height: 20px;
	margin-right: 8px;
	margin-top: -6px;
	position: relative;
	top: 5px;
	width: 12px;
}

.header-resources-link {
	border-left: 1px solid $grey-light;
	border-right: 1px solid $grey-light;
	color: $grey-dark;
	display: block;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 18px;
	padding: 31px 0;
	position: absolute;
	right: 160px;
	text-align: center;
	text-transform: uppercase;
	top: 0;
	width: 164px;
}

.header-resources-link:hover {
	color: $pink;
}

.header-resources-link:before {
	background-image: url("images/icon-header-squares-regular.png");
	content: "";
	display: inline-block;
	height: 11px;
	margin-right: 8px;
	width: 11px;
}

.header-search-link {
	background-image: url("images/icon-header-search-regular.png");
	background-position: center center;
	background-repeat: no-repeat;
	display: block;
	height: 80px;
	overflow: hidden;
	position: absolute;
	right: 80px;
	text-indent: -999px;
	top: 0;
	width: 80px;
}

.header-search-form {
	background-color: $pink;
	display: none;
	height: 81px;
	padding-left: 81px;
	padding-right: 90px;
	position: absolute;
	right: 0;
	top: 0;
	width: 750px;
	z-index: 9999;
	@include box-sizing( border-box );
}

.header-search-form-textfield {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: none;
	border: none;
	color: $white;
	display: block;
	font-family: $sans-serif;
	font-size: 24px;
	height: 80px;
	line-height: 36px;
	margin: 0;
	outline: none;
	padding: 0 0 0 20px;
	width: 100%;
	@include border-radius( 0 );
	@include box-sizing( border-box );
}

.header-search-form-textfield::-webkit-input-placeholder {
    color: $white;
}

.header-search-form-textfield:-moz-placeholder {
	color: $white;
	opacity: 1;
}

.header-search-form-textfield::-moz-placeholder {
	color: $white;
	opacity: 1;
}

.header-search-form-textfield:-ms-input-placeholder {
	color: $white;
}

.header-search-form-textfield:placeholder-shown {
	color: $white;
}

.header-search-form-submit {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: url("images/icon-header-arrow-regular.png") no-repeat center center;
	border: none;
	cursor: pointer;
	display: block;
	height: 80px;
	margin: 0;
	outline: none;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 0;
	text-indent: -999px;
	top: 0;
	width: 90px;
	@include border-radius( 0 );
	@include transition( opacity 0.4s );
}

.header-search-form-submit:hover {
	opacity: 0.5;
}

.header-search-form-close {
	background-image: url("images/icon-header-close-regular.png");
	background-position: center center;
	background-repeat: no-repeat;
	border-right: 1px solid $pink-dark;
	display: block;
	height: 80px;
	overflow: hidden;
	position: absolute;
	left: 0;
	text-indent: -999px;
	top: 0;
	width: 80px;
	@include transition( opacity 0.4s );
}

.header-search-form-close:hover {
	opacity: 0.5;
}

.header-urgentcare {
	background-color: #54b64e;
	color: $white;
	display: block;
	font-size: 12px;
	font-weight: 300;
	height: 81px;
	letter-spacing: 1px;
	line-height: 14px;
	position: absolute;
	right: -1px;
	text-align: center;
	text-transform: uppercase;
	top: 0;
	width: 81px;
}

.header-urgentcare a {
	color: $white;
	display: block;
	height: 50px;
	padding-top: 30px;
	overflow: hidden;

	&:hover {
		color: $white;
		background-color: #8dc63f;
	}
}

.header-audiences {
	position: absolute;
	right: 0;
	top: 81px;
	width: 700px;
}

.header-audiences:before {
	background: rgba(255, 255, 255, 0.8);
	content: "";
	display: block;
	left: 0;
	height: 100%;
	opacity: 0;
	position: fixed;
	top: 0;
	visibility: hidden;
	width: 100%;
	@include transition( opacity 0.4s 0s, visibility 0s 0.4s );
}

.header-audiences.open:before {
	opacity: 1;
	visibility: visible;
	@include transition( opacity 0.4s 0s, visibility 0s 0s );
}

.header-audiences-wrapper {
	background: $white;
	display: none;
	position: relative;
	text-align: center;
}

.header-audiences-instruction {
	background-color: $grey-dark;
	color: $white;
	font-size: 18px;
	letter-spacing: 1px;
	line-height: 26px;
	margin-bottom: 0;
	padding: 12px 20px;
	position: relative;
}

.header-audiences-content {
	border-left: 1px solid $grey-light;
}

.header-audiences-content:after {
	clear: both;
	content: "";
	display: table;
}

.header-audience-link {
	border-bottom: 1px solid $grey-light;
	border-right: 1px solid $grey-light;
	display: block;
	float: left;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 20px;
	padding: 0 20px;
	text-transform: uppercase;
	width: 33.33%;
	@include box-sizing( border-box );
	@include transition( background 0.4s );
	
	&:hover {
		background: $white-dark;
		color: $pink;
	}
	
}

.header-audience-link-wrapper {
	display: table-cell;
	height: 120px;
	vertical-align: middle;
	width: 200px;
}

.header-audiences-toggle {
	background-image: url("images/background-header-tab-regular.png");
	display: block;
	font-size: 15px;
	letter-spacing: 1px;
	line-height: 20px;
	padding: 13px 0 17px 0;
	position: absolute;
	right: 80px;
	text-align: center;
	text-transform: uppercase;
	width: 220px;

	&:hover {
		color: $black;
	}
	
}

.header-audiences-toggle:after {
	background-image: url("images/icon-header-down-regular.png");
	content: "";
	display: inline-block;
	height: 9px;
	margin-left: 8px;
	width: 16px;
	@include transition( all 0.4s );
}

.header-audiences-toggle.open:after {
	@include transform( rotate( 180deg ) );
}

@media ( -webkit-min-device-pixel-ratio: 2 ), ( min-resolution: 192dpi ) {

	.header-menu-list .doctors a:before {
		background-image: url("images/icon-header-stethoscope-retina.png");
		background-size: 10px 15px;
	}

	.header-menu-list .services a:before {
		background-image: url("images/icon-header-plus-retina.png");
		background-size: 13px 13px;
	}

	.header-menu-list .locations a:before {
		background-image: url("images/icon-header-pin-retina.png");
		background-size: 12px 20px;
	}

	.header-resources-link:before {
		background-image: url("images/icon-header-squares-retina.png");
		background-size: 11px 11px;
	}

	.header-search-link {
		background-image: url("images/icon-header-search-retina.png");
		background-size: 23px 23px;
	}

	.header-search-form-submit {
		background-image: url("images/icon-header-arrow-retina.png");
		background-size: 38px 24px;
	}

	.header-search-form-close {
		background-image: url("images/icon-header-close-retina.png");
		background-size: 20px 20px;
	}

	.header-audiences-toggle {
		background-image: url("images/background-header-tab-retina.png");
		background-size: 220px 50px;
	}

	.header-audiences-toggle:after {
		background-image: url("images/icon-header-down-retina.png");
		background-size: 16px 9px;
	}

}

@media ( max-width: 1420px ) {

	.header {
		border-left: none;
		border-right: none;
	}

	.header-search-form {
		right: 0;
	}

}

@media ( max-width: 1100px ) {

	.header-menu {
		display: none;
	}

	.header-resources-link {
		background-image: url("images/icon-header-cubes-regular.png");
		background-position: center center;
		background-repeat: no-repeat;
		border-left: none;
		border-right: none;
		height: 80px;
		overflow: hidden;
		padding: 0;
		right: 80px;
		text-indent: -999px;
		top: 0;
		width: 80px;
	}

	.header-resources-link:hover {
		color: $pink;
	}

	.header-resources-link:before {
		background-image: url("images/icon-header-squares-regular.png");
		content: "";
		display: inline-block;
		height: 11px;
		margin-right: 8px;
		width: 11px;
	}

	.header-search-link {
		border-left: 1px solid $grey-light;
		border-right: 1px solid $grey-light;
		right: 160px;
	}

	.header-search-form {
		width: 100%;
	}

	.header-audiences {
		width: 100%;
	}

	.header-audience-link-wrapper {
		height: 110px;
		width: 330px;
	}

	.header-audiences-toggle {
		margin-right: -110px;
		right: 50%;
	}

}

@media ( -webkit-min-device-pixel-ratio: 2 ) and ( max-width: 1100px ), ( min-resolution: 192dpi ) and ( max-width: 1100px ) {

	.header-resources-link {
		background-image: url("images/icon-header-cubes-retina.png");
		background-size: 20px 20px;
	}

}

@media ( max-width: 600px ) {

	.header {
		height: 56px;
		margin-bottom: 0;
	}

	.logo-headline {
		left: 50%;
		margin-left: -115px;
		top: 19px;
	}

	.logo-image {
		height: 19px;
		width: 230px;
	}

	.header-resources-link {
		display: none;
	}

	.header-search-link {
		display: none;
	}

	.header-search-form {
		height: 57px;
		padding-left: 57px;
	}

	.header-search-form-textfield {
		height: 56px;
	}

	.header-search-form-submit {
		height: 56px;
	}

	.header-search-form-close {
		height: 56px;
		width: 56px;
	}

	.header-urgentcare {
		display: none;
	}

	.header-audiences {
		top: 57px;
	}

	.header-audiences-instruction {
		font-size: 13px;
		letter-spacing: 0;
		line-height: 18px;
		padding-left: 40px;
		padding-right: 40px;
	}

	.header-audience-link {
		font-size: 13px;
		width: 50%;
	}

	.header-audience-link-wrapper {
		height: 80px;
	}

	.header-audiences-toggle {
		background-size: 134px 30px;
		font-size: 12px;
		line-height: 16px;
		margin-right: -67px;
		padding: 6px 0 8px 0;
		width: 134px;
	}

	.header-audiences-toggle:after {
		background-size: 11px 6px;
		height: 6px;
		margin-bottom: 1px;
		width: 11px;
	}

}
