/*------------Colors------------*/
/*
Red: #ECLE27;
Offwhite: #F6F6F6;
Clay: #EBEBEB;
Gray: #7F7F7F;
Dusk: #3C3C3C;
Midnight: #212121;
Fusion: #6AB950 (old green);
Logo Green: #269958
*/
/*===============================*/


/*-----------Typography----------*/
@font-face {												// Headers
	font-family: 'Brother', sans-serif;
	src: url('../fonts/07-brother1816-regular.otf');
}

@font-face {												// Body
	font-family: 'Open Sans', sans-serif;
	src: url('../fonts/open-sans/OpenSans-Regular.ttf');
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Hind';
	font-weight: bold;
	text-transform: uppercase;
}

h1 { 
	font-size: 40px;
	letter-spacing: 0.56px;
}

h2 { 
	font-size: 25px;
	letter-spacing: 0.3px;
}

h3 { 
	font-size: 18px;
	letter-spacing: 0.2px;
}

* {
	font-family: 'Open Sans';
	font-size: 16px;
	outline: none;
}

*:hover, *:active, *:focus {
	outline: none;
}

body {
	color: #3C3C3C;
}

p {
	line-height: 25px;
}

a {
	background: transparent;
	text-decoration: none;
	outline: none;
	transition: color 0.3s, background 0.3s, border 0.3s, -webkit-filter 0.3s, filter 0.3s;
}

a:hover, a:active, a:focus {
	text-decoration: none;
	outline: none;
	-webkit-filter: brightness(75%);
	filter: brightness(75%);
}

.green-text {
	color: #269958;
}
/*===============================*/


/*----------UI Elements----------*/
.button {
	display: inline-block;
	width: 90%;
	max-width: 290px;
	margin: 10px;
	padding: 10px;
	font-family: 'Hind';
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.14px;
	border-radius: 2px;
	transition: color 0.3s, background 0.3s, border 0.3s, -webkit-filter 0.3s, filter 0.3s;
}

.button:hover, .button:active, .button:focus {
	text-decoration: none;
	outline: none;
	-webkit-filter: brightness(75%);
	filter: brightness(75%);
}

.button.green {
	color: white;
	background: #269958;
	border: 2px solid #269958;
}

.button.green.clear {
	color: #269958;
	background: transparent;
	border: 2px solid #269958;
}

.button.green.clear:hover {
	color: white;
	background: #269958;
	-webkit-filter: brightness(100%);
	filter: brightness(100%);
}

.button.white {
	color: #269958;
	background: white;
	border: 2px solid white;
}

.button.white.clear {
	color: white;
	background: transparent;
	border: 2px solid white;
}

.button.white.clear:hover {
	color: #269958;
	background: white;
	-webkit-filter: brightness(100%);
	filter: brightness(100%);
}

.hline {
	width: 100%;
	height: 1px;
	background: red;
}

.icon {
	display: inline-block;
	width: 45px;
	height: 45px;
	padding: 0 7px;
	margin: 3px;
	color: white;
	font-size: 33px;
	border-radius: 3px;
}

.icon:hover, .icon:active, .icon:focus {
	color: white;
}

.icon.twitter {
	background: #1AB4EF;
}

.icon.facebook {
	background: #3B5898;
}

a.back {
	display: inline-block;
	width: 100%;
	margin: 40px 0 20px;
	color: #7F7F7F;
}

a.back::before {
	content: url('../images/icon_back_casestudy.svg');
	float: left;
	margin-top: 12px;
	margin-right: 15px;
}

a.back:hover, a.back:active, a.back:focus {
	color: #269958;
	-webkit-filter: brightness(100%);
	filter: brightness(100%);
}

ul.pagination li a {
	padding: 5px 10px;
	color: #3C3C3C;
	font-family: 'Hind';
	font-size: 18px;
	font-weight: bold;
	border: none;
}

ul.pagination li a.active {
	color: #269958;
}

ul.pagination li a.page-link.step {
	margin-top: -10px;
}
/*===============================*/


/*-----------Sections------------*/
.container-fluid {
	padding-left: 0;
	padding-right: 0;
}

*[class^="col-"] {
	margin-top: 20px;
	margin-bottom: 20px;
}

header {
	display: inline-block;
	position: relative;
	width: 100%;
	padding: 50px 0;
	color: white;
}

header #down {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
}

header.gray {
	background: #F6F6F6;
}

/* Page Headers */
header#home-header {
	padding: 50px 0 100px;
	background: linear-gradient(
					rgba(86, 175, 60, 0.7),
					rgba(86, 175, 60, 0.7)
				), 
				url('../images/background_masthead_home.png') no-repeat center center;
	background-size: cover;
}
header#solar-header {
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				), 
				url('../images/background_masthead_solar.png') no-repeat center center;
	background-size: cover;
}
header#houselift-header {
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				), 
				url('../images/background_masthead_houselift.png') no-repeat bottom center;
	background-size: cover;
}
header#industrial-header {
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				), 
				url('../images/background_masthead_industrial.png') no-repeat center center;
	background-size: cover;
}
header#commercial-header {
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				), 
				url('../images/background_masthead_commercial.png') no-repeat center center;
	background-size: cover;
}
header#residential-header {
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				), 
				url('../images/background_masthead_residential.png') no-repeat center center;
	background-size: cover;
}
header#case-studies-header {
	padding: 100px 0;
	color: black;
}
header#case-study-header {
	padding: 50px 0 0;
}
header#user-tools {
	color: black;
}
header#user-tools p.tools-inner {
	max-width: 800px;
	margin: 60px auto 0;
	text-align: left;
	-webkit-column-count: 2;
	column-count: 2;
}
/* END of Page Headers */

section {
	padding: 50px 0;
}

section img {
	border-radius: 5px;
}

section.gray {
	background: #F6F6F6;
}

section.preview {
	margin: 0;
	padding: 8vw 5vw;
	color: white;
	flex: 1;
}

section.preview h3 {
	opacity: 0.7;
}

section.preview p {
	margin: 30px 15px;
}

section.case-study img {
	width: 100%;
}

.accolades img {
	margin: 15px 10px;
}

/* Home */
section#solar-panel {
	margin: 0;
	padding: 10vw 30px;
	color: white;
	text-align: center;
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				),
				url('../images/image_solar_home_desktop.png') no-repeat center center;
	background-size: cover;
}
section#house-lifting {
	margin: 0;
	padding: 10vw 30px 250px;
	text-align: center;
	background: url('../images/image_lift_home_mobile.png') no-repeat bottom center;
	background-size: cover;
}
section#residential {
	margin: 0;
	padding: 100px 30px;
	color: white;
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				),
				url('../images/image_residential_home_desktop.png') no-repeat bottom center;
	background-size: cover;
}
section#commercial {
	margin: 0;
	padding: 100px 30px;
	color: white;
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				),
				url('../images/image_commercial_home_desktop.png') no-repeat top center;
	background-size: cover;
}
section#industrial {
	margin: 0;
	padding: 100px 30px;
	color: white;
	background: linear-gradient(
					rgba(0, 0, 0, 0.5),
					rgba(0, 0, 0, 0.5)
				),
				url('../images/image_industrial_home_desktop.png') no-repeat center center;
	background-size: cover;
}
section#get-in-touch {
	padding: 50px 0;
	color: white;
	background: linear-gradient(
					rgba(86, 175, 60, 0.7),
					rgba(86, 175, 60, 0.7)
				), 
				url('../images/image_getintouch_home.png') no-repeat center center;
	background-size: cover;
}
/* END of Home */

/* Residential */
section#residential-study-1 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy1_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-2 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy2_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-3 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy3_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-4 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy4_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-5 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy5_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-6 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy6_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-7 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy7_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-8 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy8_residential.png') no-repeat center center;
	background-size: cover;
}
section#residential-study-9 {
	background: linear-gradient(
					rgba(0, 0, 0, 0.6),
					rgba(0, 0, 0, 0.6)
				),
				url('../images/image_casestudy9_residential.png') no-repeat center center;
	background-size: cover;
}
/* END of Residential */

/* Forms */
form.form-card {
	display: inline-block;
	margin: auto;
	max-width: 750px;
	color: #7F7F7F;
	background: white;
	border: 2px solid #EBEBEB;
	border-top: none;
	border-radius: 5px;
	overflow: hidden;
}
form.form-card.small {
	max-width: 390px;
}
form.form-card .form-header h2 {
	margin: 0;
	padding: 40px 0;
	color: white;
	background: #269958;
}
form.form-card .form-header h2.error {
	background: #E84A4A;
}
form.form-card .form-content {
	padding: 25px 10px;
}
form.form-card .form-content .col-sm-6 {
	background: linear-gradient(
					rgba(86, 175, 60, 0.7),
					rgba(86, 175, 60, 0.7)
				); 
	margin: 0 0 10px;
}
form.form-card .form-content .col-xs-12 {
	margin: 0 0 20px;
}
form.form-card .form-content input:not(.button):not([type="checkbox"]),
form.form-card .form-content textarea,
form.form-card .form-content select {
	display: inline-block;
	width: 100%;
	max-width: 333px;
	margin: 6px 0;
	padding: 10px 15px;
	color: #3C3C3C;
	background: #F6F6F6;
	border: 1px solid #F6F6F6;
	border-radius: 2px;
	outline: none;
	box-shadow: 0 2px 8px 3px #EBEBEB inset;
	resize: vertical;
}
form.form-card .form-content input:not(.button):invalid,
form.form-card .form-content textarea:invalid,
form.form-card .form-content select:invalid {
	background: #feefef;
	border: 1px solid #f88a9f;
	box-shadow: 0 2px 14px -2px #f88a9f inset;
}
form.form-card .form-content select {
	-webkit-appearance: none;
	background: #F6F6F6 url('../images/arrow_dropdown.svg') no-repeat right 15px center;
}
form.form-card .form-content select:invalid {
	-webkit-appearance: none;
	background: #feefef url('../images/arrow_dropdown.svg') no-repeat right 15px center;
}
form.form-card .form-content input[type="checkbox"] {
	margin: 0 10px 10px;
}
form.form-card .form-content .button {
	width: 100%;
	max-width: 100%;
	margin: 0;
}
/* END of Forms */

/*===============================*/


/* Tablet and Desktop */
@media (min-width: 768px) {
	h1 { 
		font-size: 45px;
	}

	.row {
		display: flex;
		flex-wrap: wrap;
		margin: 0;
	}

	section.preview {
		flex: initial;
	}

	section.case-study img {
		width: 90%;
	}

	.flex-row section.preview {
		flex: 1;
	}
}

@media (min-width: 992px) {
	header {
		padding: 10vw 0;
	}

	/* Home */
	header#home-header {
		padding: 10vw 0;
	}
	section#solar-panel {
		padding: 11vw 30px;
		text-align: left;
	}
	section#house-lifting {
		padding: 11vw 30px;
		text-align: left;
		background: url('../images/image_lift_home_desktop.png') no-repeat bottom right;
		background-size: 90%;
	}
}

#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

/*Video Background*/

/* Style the video: 100% width and height to cover the entire window */
#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
}

/* Add some content at the bottom of the video/page */
.content {
  position: fixed;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
}

/* Style the button used to pause/play the video */
#myBtn {
  width: 200px;
  font-size: 18px;
  padding: 10px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

#myBtn:hover {
  background: #ddd;
  color: black;
}