// -------------------------------------------------------------------
// :: HEADER
// -------------------------------------------------------------------

$logo-height: 71px;

.styleguide .o-header {
	.o-header__sidebar {
		max-height: 600px;
	}
}

.o-header {

	.o-header__brand {
		a {
			color: $red;
			font-family: $font-family-bold;
			text-transform: uppercase;
			font-size: rem(15px);
			display: block;
			text-decoration: none;
			line-height: rem($logo-height);
			text-indent: rem(81px);
		}

		.go-logo {
			display: block;
			overflow: hidden;
			text-indent: -9999em;
			background: transparent url('../img/go!logo_red.svg') no-repeat center center;
			background-size: contain;
			width: rem(47px);
			height: rem(34px);
			position: absolute;
			top: rem(16px);
			left: rem(22px);
		}
	}

	@include FLOW-to($desktop) {

		border-bottom: 1px solid darken($light, 5%);

		.o-header__sidebar {
			display: none;	// toggle with js on mobile
		}

		@include FLOW-at($tablet) {
			.o-header__brand {
				position: absolute;
				top: 0;
				right: rem(68px);
				z-index: 999;
			}

			.o-header__toggle_mobile_nav {
				position: absolute;
				top: rem(24px) !important;
				z-index: 999;
			}

			.o-header__sidebar {
				background: $light;
				padding-top: rem($logo-height);
			}
		}
	}

	.o-header__sidebar {
		position: relative;

		height: 100%;

		@include FLOW-at($desktop) {
			height: calc(100vh - 50px);
		}

		.o-header__sidebar__bottom {
			padding: rem(28px);
			margin-top: rem(10px) !important;


			.o-header__sidebar__bottom__button {
				display: block;
				font-family: $font-family-bold;
				text-transform: uppercase;
				font-size: rem(15px);
				margin-bottom: rem(10px);
				color: $dark-extra;
				text-decoration: none;

				span[class*="icon"] {
					font-size: rem(20px);
					margin-right: rem(5px);

					&:last-child {
						float: right;
						font-size: rem(16px);
						position: relative;
						top: 3px;
						margin: 0;
					}
				}
			}

			.o-header__sidebar__bottom__contact {
				font-size: rem(13px);
				padding-top: rem(10px);
				padding-bottom: rem(20px);

				a {
					font-size: rem(13px);
					color: $aqua;
					text-decoration: underline;
				}
			}
		}
	}

	@include FLOW-at($desktop) {

		padding-top: $logo-height;
		position: relative;
		background: $gradient-light;

		.o-header__brand {
			background: $gradient-red;
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			max-height: $logo-height;
			overflow: hidden;

			a {
				color: $white;
			}

			.go-logo {
				background-image: url('../../../img/go!logo.svg');
			}
		}

		.o-header__sidebar {
			position: relative;


			.o-header__sidebar__bottom {
				position: absolute;
				bottom: 0;
				left: 0;
				width: 100%;
				z-index: $z-index-base;

				.o-header__sidebar__bottom__contact {
					border-top: 1px solid $border-color;
				}

			}
		}

		.o-header__sidebar {
			display: block;
			padding-top: $grid-gutter-width;

			.o-header__sidebar__nav {
				list-style: none;
				padding: 0;
				margin-bottom: rem(40px);

				li {
					border-top: 1px solid lighten($medium, 12%);
					border-bottom: 1px solid lighten($medium, 12%);
				}

				li + li {
					border-top: none;
				}
			}

			.o-header__sidebar__nav_item {
				display: block;
				line-height: rem(48px);
				border-left: rem(6px) solid transparent;

				padding-left: rem(17px);

				&--active,
				&:hover {
					border-left-color: $primary-color;
					color: $black;
					font-weight: 500;
				}
			}


			a {
				text-decoration: none;
				color: $dark-extra;
				font-size: rem(17px);

				span[class*='icon'] {
					font-size: 2rem;
					margin-right: rem(10px);
				}
			}

			.o-header__sidebar__section_title {
				color: $primary-color;
				text-transform: uppercase;
				letter-spacing: rem(1px);
				font-size: rem(15px);
				line-height: (26/16);
				padding: 0 0 0 rem(23px);
				margin-bottom: rem(10px);

			}
		}
	}
}
