@charset 'UTF-8';
@import url('font-awesome.min.css');
@import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic,600,600italic,700,700italic');

@import 'vars';
@import 'mixins';

/*
	Directive by HTML5 UP
	html5up.net | @n33co
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

/* Basic */

	html, body {
		height: 100%;
	}

	body {
		background: $color-bg;

		&.is-loading {
			* {
				@include vendor-property('transition', 'none !important');
				@include vendor-property('animation', 'none !important');
			}
		}
	}

	body, input, select, textarea {
		color: $color-fg;
		font-family: 'Source Sans Pro', sans-serif;
		font-size: 16pt;
		font-weight: 400;
		line-height: 1.75em;
	}

	a {
		@include vendor-property('transition', 'color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out');
		border-bottom: dotted 1px;
		color: $color-accent-bg;
		text-decoration: none;
		
		&:hover {
			border-bottom-color: transparent;
		}
	}

	strong, b {
		font-weight: 600;
		color: $color-fg-bold;
	}
	
	em, i {
		font-style: italic;
	}

	p, ul, ol, dl, table, blockquote, form {
		margin: 0 0 2em 0;
	}

	h1, h2, h3, h4, h5, h6 {
		color: $color-fg-bold;
		font-weight: 700;
		letter-spacing: 0.125em;
		line-height: 1.75em;
		margin-bottom: 1em;
		text-transform: uppercase;
		text-align: center;
		
		a {
			color: inherit;
			text-decoration: none;
		}
	}

	h2 {
		font-size: 1.75em;
	}

	h3 {
		font-size: 1.5em;
	}

	sub {
		font-size: 0.8em;
		position: relative;
		top: 0.5em;
	}
	
	sup {
		font-size: 0.8em;
		position: relative;
		top: -0.5em;
	}
	
	hr {
		border: 0;
		border-top: solid 1px $color-border;
		margin-bottom: 1.5em;
	}
	
	blockquote {
		border-left: solid 0.5em $color-border;
		font-style: italic;
		padding: 1em 0 1em 2em;
	}
	
/* Section/Article */

	section, article {
		&.special {
			text-align: center;
		}
	}

	header {
		text-align: center;
		
		p {
			position: relative;
			top: -1em;
			color: $color-fg-light;
			text-transform: uppercase;
			letter-spacing: 0.075em;
		}
		
		&.major {
			border-bottom-width: 1px;
			border-color: $color-border;
			border-style: solid;
			border-top-width: 1px;
			margin-bottom: 6em;
			padding: 4em 0;
			position: relative;
			
			&:before,
			&:after {
				background: $color-border;
				content: '';
				display: block;
				height: 1px;
				left: 0;
				position: absolute;
				width: 100%;
			}
			
			&:before {
				top: 10px;
			}
			
			&:after {
				bottom: 10px;
			}
			
			h2 {
				margin: 0;
			}
			
			p {
				top: 0;
				margin: 1.5em 0 0 0;
				padding: 1.5em 1.5em 0 1.5em;
				font-size: 1.5em;
				line-height: 1.75em;
				border-top: solid 1px $color-border;
				display: inline-block;
			}
			
			&.last {
				border-bottom: 0;
				margin-bottom: 0;
				padding-bottom: 0;
				
				&:after {
					display: none;
				}

				h2 {
					margin-bottom: 1em;
				}				
			}
		}
	}
	
	footer {
		text-align: center;
		
		&.major {
			border-bottom-width: 1px;
			border-color: $color-border;
			border-style: solid;
			border-top-width: 1px;
			margin-top: 6em;
			padding: 4em 0;
			position: relative;

			&:before,
			&:after {
				background: $color-border;
				content: '';
				display: block;
				height: 1px;
				left: 0;
				position: absolute;
				width: 100%;
			}
			
			&:before {
				top: 10px;
			}
			
			&:after {
				bottom: 10px;
			}
		}
	}
	
/* Form */

	label {
		display: block;
		color: $color-fg-bold;
		font-size: 0.8em;
		font-weight: 700;
		letter-spacing: 0.125em;
		line-height: 1.75em;
		text-transform: uppercase;
		margin: 0 0 0.5em 0;
	}

	input[type="text"],
	input[type="password"],
	input[type="email"],
	select,
	textarea {
		@include vendor-property('appearance', 'none');
		@include vendor-property('transition', 'background-color 0.2s ease-in-out');
		background: none;
		border-radius: $size-radius;
		border: 0;
		border: solid 1px $color-border;
		color: inherit;
		display: block;
		outline: 0;
		padding: 0.75em;
		text-decoration: none;
		width: 100%;
		opacity: 1;
		
		&:focus {
			background: $color-border-bg;
			border-color: $color-accent-bg;
		}
	}

	input[type="text"],
	input[type="password"],
	input[type="email"],
	select {
		line-height: 1em;
	}
	
	textarea {
		padding: 0.5em 0.75em;
	}

	::-webkit-input-placeholder {
		color: inherit;
		opacity: 0.5;
		position: relative;
		top: 3px;
	}

	:-moz-placeholder {
		color: inherit;
		opacity: 0.5;
	}

	::-moz-placeholder {
		color: inherit;
		opacity: 0.5;
	}

	:-ms-input-placeholder {  
		color: inherit;
		opacity: 0.5;
	}

	.formerize-placeholder {
		color: transparentize($color-fg, 0.5) !important;
	}

/* Image */

	.image {
		border: 0;
		display: inline-block;
		position: relative;
		
		&:after {
			@include vendor-property('transition', 'opacity 0.25s ease-in-out');
			background-image: url('images/overlay.png');
			content: '';
			display: block;
			height: 100%;
			left: 0;
			opacity: 0.2;
			position: absolute;
			top: 0;
			width: 100%;
		}
		
		img {
			display: block;
		}
		
		&.fit {
			display: block;

			img {
				display: block;
				width: 100%;
			}
		}
		
		&.feature {
			display: block;
			margin: 0 0 2em 0;
			
			img {
				display: block;
				width: 100%;
			}
		}
		
		&.icon {
			@include vendor-property('perspective', '500px');
			
			&:before {
				@include vendor-property('transition', 'transform 0.1s ease-in-out, font-size 0.1s ease-in-out');
				color: #fff;
				font-size: 6em;
				height: 1em;
				left: 50%;
				line-height: 1em;
				margin: -0.5em 0 0 -0.5em;
				position: absolute;
				text-align: center;
				top: 50%;
				width: 1em;
				z-index: 1;
			}
			
			&:hover {
				&:before {
					@include vendor-property('transform', 'translateZ(1em)');
				}
				
				&:after {
					opacity: 1;
				}
			}
		}
	}

	span.image.icon {
		cursor: default;
	}

/* Icon */

	.icon {
		@include icon;
		border-bottom: none;
		position: relative;

		> .label {
			display: none;
		}
	}
	
/* List */

	ol {
		&.default {
			list-style: decimal;
			padding-left: 1.25em;

			li {
				padding-left: 0.25em;
			}
		}
	}

	ul {
		&.default {
			list-style: disc;
			padding-left: 1em;

			li {
				padding-left: 0.5em;
			}
		}
		
		&.icons {
			cursor: default;

			li {
				display: inline-block;
				font-size: 1.25em;
				line-height: 1em;
				padding-left: 0.5em;

				&:first-child {
					padding-left: 0;
				}
				
				a, span {
					@include vendor-property('transition', 'background-color 0.2s ease-in-out');
					border-radius: 100%;
					border: solid 1px $color-border;
					display: inline-block;
					height: 2em;
					line-height: 2em;
					text-align: center;
					width: 2em;
					
					&:hover {
						background: $color-border-bg;
					}
				}
			}		
		}
				
		&.actions {
			cursor: default;
			text-align: center;

			&:last-child {
				margin-bottom: 0;
			}

			li {
				display: inline-block;
				padding: 0 0 0 1.5em;
			
				&:first-child {
					padding: 0;
				}
			}
			
			&.vertical {
				li {
					display: block;
					padding: 1.5em 0 0 0;
			
					&:first-child {
						padding: 0;
					}
				}
			}
		}
	}

/* Table */

	.table-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table {
		width: 100%;
	
		&.default {
			width: 100%;
		
			tbody {
				tr {
					border-bottom: solid 1px $color-border;
					
					&:nth-child(2n - 1) {
						background: $color-border-bg;
					}
				}
			}
			
			td {
				padding: 0.5em 1em 0.5em 1em;
			}
			
			th {
				color: $color-fg-bold;
				font-size: 0.8em;
				font-weight: 700;
				letter-spacing: 0.125em;
				line-height: 1.75em;
				padding: 0.5em 1em 0.5em 1em;
				text-align: left;
				text-transform: uppercase;
			}
		
			thead {
				border-bottom: solid 1px $color-border;
			}
		}
	}
		
/* Button */

	input[type="submit"],
	input[type="reset"],
	input[type="button"],
	.button {
		@include vendor-property('appearance', 'none');
		@include vendor-property('transition', 'color 0.2s ease-in-out, background-color 0.2s ease-in-out');
		background: $color-accent2-bg;
		border-radius: $size-radius;
		border: 0;
		color: $color-accent2-fg-bold;
		cursor: pointer;
		display: inline-block;
		font-size: 0.9em;
		font-weight: 700;
		letter-spacing: 0.125em;
		line-height: 3.25em;
		min-width: 15em;
		padding: 0 1.5em;
		text-align: center;
		text-decoration: none;
		text-transform: uppercase;

		&:hover {
			background: lighten($color-accent2-bg, 10);
		}

		&:active {
			background: darken($color-accent2-bg, 5);
		}

		&.alt {
			background: none;
			box-shadow: inset 0 0 0 1px $color-border;
			color: $color-accent2-bg;
			
			&:hover {
				background: $color-border-bg;
			}

			&:active {
				background: $color-border-bg2;
			}
		}	

		&.fit {
			width: 100%;
		}
		
		&.small {
			font-size: 0.8em;
		}
	}

/* Box */

	.box {
		background: $color-bg;
		border: solid 1px $color-border;
		margin-bottom: 6em;
		padding: 3.5em;
		
		&.alt {
			background: none;
			border: none;
			padding: 0;
		}
	}

/* Feature */

	.feature {
		position: relative;
		height: 20em;
		
		&:after {
			clear: both;
			content:'';
			display: block;
		}

		h3, h4, h5, h6 {
			text-align: inherit;
		}
		
		.image {
			display: inline-block;
			height: 100%;
			overflow: hidden;
			position: relative;
			width: 50%;
			
			img {
				display: block;
				min-height: 100%;
				min-width: 100%;
				position: absolute;
			}
		}
		
		&:before {
			background: blue;
			content: '';
			display: inline-block;
			height: 100%;
			vertical-align: middle;
		}
		
		.content {
			display: inline-block;
			padding: 3.5em;
			vertical-align: middle;
			width: 48%;
			
			h3 {
				margin-bottom: 0.5em;
			}
			
			:last-child {
				margin: 0;
			}
		}

		&.left {
			text-align: left;
			
			.image {
				float: left;
				
				img {
					right: 0;
					top: 0;
				}
			}
			
			.content {
				padding-right: 0;
			}
		}
		
		&.right {
			text-align: right;
			
			.image {
				float: right;
				
				img {
					left: 0;
					top: 0;
				}
			}

			.content {
				padding-left: 0;
			}
		}
		
		&.long {
			.content {
				padding-top: 0;
			}
		}
	}

/* Header */

	#header {
		background-attachment:		scroll,							scroll,					fixed;
		background-image:			url('images/top-3200.svg'),		url('images/overlay.png'),		url('../images/header.jpg');
		background-position:		bottom center,					top left,				center center;
		background-repeat:			repeat-x,						repeat,					no-repeat;
		background-size:			3200px 460px,					auto,					cover;
		color: $color-accent2-fg;
		padding: 10em 0 20em 0;
		position: relative;
		text-align: center;

		&:before,
		&:after {
			background: $color-border;
			content: '';
			left: 50%;
			position: absolute;
			width: 1px;
			z-index: 0;
		}
		
		&:before {
			height: calc(100% - 50px);
			opacity: 0.15;
			top: 0;
		}

		&:after {
			bottom: 0;
			height: 50px;
		}

		a {
			border-bottom-color: $color-accent2-fg-light;
			color: $color-accent2-fg;
			
			&:hover {
				border-bottom-color: transparent;
				color: $color-accent-bg;
			}
		}

		strong, b {
			color: $color-accent2-fg-bold;
		}
	
		h1, h2, h3, h4, h5, h6 {
			color: $color-accent2-fg-bold;
		}

		input[type="submit"],
		input[type="reset"],
		input[type="button"],
		.button {
			background: $color-accent2-fg-bold;
			color: $color-accent2-bg;
		}
		
		.logo {
			background: $color-accent-bg;
			border-radius: 100%;
			color: $color-accent-fg-bold;
			cursor: default;
			display: inline-block;
			font-size: 2.25em;
			height: 2.35em;
			line-height: 2.35em;
			margin: 0 0 0.75em 0;
			text-align: center;
			width: 2.35em;
			
			&.fa-paper-plane-o:before {
				left: -0.075em;
				position: relative;
			}
		}
		
		h1 {
			font-size: 2.5em;
			margin: 0;
		}
		
		p {
			font-size: 1.5em;
			line-height: 1.5em;
			margin: 0.25em 0 0 0;
		}
	}

/* Footer */

	#footer {
		background-attachment:		scroll;
		background-color:			$color-accent-bg;
		background-image:			url('images/bottom-3200.svg');
		background-position:		top center;
		background-repeat:			repeat-x;
		background-size:			3200px 460px;
		color: $color-accent-fg;
		
		/*
			Since the SVG background occupies a lot of vertical space, we'll
			add additional top padding (to move our content out of its way)
			and a negative margin (to move everything up a bit).
		*/
		margin-top: -260px;
		padding: calc(460px + 6em) 0 10em 0;
		
		position: relative;
		text-align: center;

		&:before {
			background: $color-border;
			content: '';
			height: calc(460px + 6em);
			left: 50%;
			position: absolute;
			top: 0;
			width: 1px;
			z-index: 0;
		}
		
		a {
			color: $color-accent-fg-bold;
		}

		strong, b {
			color: $color-accent-fg-bold;
		}
	
		h1, h2, h3, h4, h5, h6 {
			color: $color-accent-fg-bold;
		}

		header {
			p {
				color: $color-accent-fg-light;
			}
		}

		input[type="submit"],
		input[type="reset"],
		input[type="button"],
		.button {
			background: $color-accent-fg-bold;
			box-shadow: inset 0 0 0 1px $color-accent-fg-bold;
			color: $color-accent-bg;
			
			&:hover {
				background: $color-border-bg;
				color: $color-accent-fg-bold;
			}
		}

		input[type="text"],
		input[type="password"],
		input[type="email"],
		select,
		textarea {
			&:focus {
				border-color: $color-accent-fg-bold;
			}
		}
		
		.formerize-placeholder {
			color: transparentize($color-accent-fg, 0.5) !important;
		}

		form {
			margin: 3em 0;
		}
		
		.copyright {
			color: $color-accent-fg-light;
			font-size: 0.8em;
			line-height: 1em;
			margin: 3em 0 0 0;
			
			li {
				border-left: dotted 1px;
				display: inline-block;
				margin-left: 1em;
				padding-left: 1em;
				
				&:first-child {
					padding: 0;
					margin: 0;
					border: 0;
				}
				
				a, span {
					color: inherit;
					
					&:hover {
						color: $color-accent-fg-bold;
					}
				}
			}
		}
	}

/* Main */

	#main {
		padding: 6em 0 5em 0;
		position: relative;
		z-index: 1;
		
		&:before {
			background: $color-border;
			content: '';
			height: 100%;
			left: 50%;
			position: absolute;
			top: 0;
			width: 1px;
			z-index: -1;
		}
		
		header.major,
		footer.major {
			background: $color-bg;
		}
	}