body {
	padding-top: 108px;
}

/*--------------------------------------------------------------
## Site Header
--------------------------------------------------------------*/

#header {
	background-color: white;
	box-shadow: 0px -10px 5px 10px rgba(51,51,51,0.5);
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1030;
}

#header .logo {
	float: left;
	margin-left: -15px;
	padding: 15px 15px;
}

#header .logo img {
	height: 40px;
}

#header .tagline {
	display: block;
	float: left;
	left: 0;
	padding: 24px;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	z-index: -1;
}

#header .social {
	float: right;
	margin: 0;
	margin-right: -15px;
	padding: 0;
}

#header .social > li {
	display: block;
	float: left;
	position: relative;
}

#header .social > li > a {
	color: #333;
	display: block;
	font-weight: bold;
	line-height: initial;
	padding: 19px 15px;
	position: relative;

	transition: all 500ms;
	-webkit-transition: all 500ms;
}

#header .social > li > a.active,
#header .social > li > a:hover,
#header .social > li > a:focus {
	color: #666;
	outline: none;
}

.menu-bar {
	background-color: #eee;
	display: block;
	margin: 0;
	padding: 0;
}

.menu-bar > li {
	display: block;
	float: left;
	position: relative;
	width: 33.333333%;
}

.menu-bar > li > a {
	color: #fff;
	display: block;
	font-weight: bold;
	line-height: initial;
	overflow: hidden;
	padding: 10px 15px;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;

	transition: all 500ms;
	-webkit-transition: all 500ms;
}

.menu-bar > li > a.active,
.menu-bar > li > a:hover {
	background-color: #fff;
}


a[href="#clinics-classes"] {
	background-color: #A457FF;
}

a[href="#clinics-classes"].active,
a[href="#clinics-classes"]:hover {
	color: #A457FF;
}

a[href="#healthy-living"] {
	background-color: #87B34A;
}

a[href="#healthy-living"].active,
a[href="#healthy-living"]:hover {
	color: #87B34A;
}

a[href="#for-professionals"] {
	background-color: #5497F6;
}

a[href="#for-professionals"].active,
a[href="#for-professionals"]:hover {
	color: #5497F6;
}

/*--------------------------------------------------------------
## Overlay Menus
--------------------------------------------------------------*/

/* Generic Overlay */

.overlay {
	background-color: red;
	color: #fff;
	height: calc(100vh - 108px);
	left: 0;
	overflow: auto;
	padding: 20px 0;
	position: fixed;
	right: 0;
	top: 108px;
	z-index: 1028;

	transform: translateY(-100%);
	-webkit-transform: translateY(-100%);

	transition: transform 500ms;
	-webkit-transition: transform 500ms;
}

.overlay.active {
	transform: translateY(0);
	-webkit-transform: translateY(0);
}

.overlay-close a {
	color: #fff;
	display: inline-block;
	padding: 15px;

	transition: transform 500ms;
	-webkit-transition: transform 500ms;
}

.overlay-close a:hover,
.overlay-close a:focus {
	transform: scale(0.9);
	-webkit-transform: scale(0.8);
}

.overlay .tile {
	padding-bottom: 35%;
}

.overlay .tile:after {
	background: linear-gradient(to top, rgba(255,255,255,0.85) 25%,rgba(255,255,255,0) 100%);
	bottom: 0;
	content: '';
	left: 0;
	position: absolute;
	right: 0;
	top: 25%;
}

.overlay .tile .caption { 
	bottom: 0;
	display: block;
	font-weight: 500;
	left: 0;
	overflow: hidden;
	padding: 15px;
	position: absolute;
	right: 0;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	z-index: 10;
}

/* Search Overlay */

#search {
	background-color: #333;
	bottom: auto;
	color: #fff;
	height: auto;
	left: 0;
	position: fixed;
	right: 0;
	top: 108px;
	z-index: 1029;
}

/* Menu Overlay */

#menu {
	background-color: #333;
	height: 100vh;
	left: auto;
	overflow: auto;
	padding: 0;
	top: 0;
	width: 100%;
	z-index: 1031;

	transform: translateX(100%);
	-webkit-transform: translateX(100%);

	transition: transform 500ms;
	-webkit-transition: transform 500ms;
}

#menu.active {
	transform: translateY(0);
	-webkit-transform: translateY(0);
}

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

#menu li > a {
	background-position: 15px center;
	background-repeat: no-repeat;
	background-size: 20px;
	color: #fff;
	display: block;
	padding: 15px 15px 15px 55px;
	text-decoration: none;

	transition: background-color 500ms;
	-webkit-transition: background-color 500ms;
}

#menu li:nth-child(1) > a { background-image: url(../img/icons/about.png); }
#menu li:nth-child(2) > a { background-image: url(../img/icons/calendar.png); }
#menu li:nth-child(3) > a { background-image: url(../img/icons/reports.png); }
#menu li:nth-child(4) > a { background-image: url(../img/icons/news.png); }
#menu li:nth-child(5) > a { background-image: url(../img/icons/careers.png); }
#menu li:nth-child(6) > a { background-image: url(../img/icons/partnerships.png); }
#menu li:nth-child(7) > a { background-image: url(../img/icons/inspections.png); }
#menu li:nth-child(8) > a { background-image: url(../img/icons/contact.png); }

#menu li > a:hover,
#menu li > a:focus {
	background-color: rgba(255,255,255,0.2);
	text-decoration: none;
}

@media (min-width: 768px) {
	#menu {
		max-width: 280px;
	}
}

/* Clinics & Classes Overlay */

#clinics-classes {
	background-color: rgba(164,87,255,0.85);
}

/* Healthy Living Overlay */

#healthy-living {
	background-color: rgba(135,179,74,0.85);
}

/* For Professionals Overlay */

#for-professionals {
	background-color: rgba(84,151,246,0.85);
}