/* THIS STYLESHEET IS FOR THE HOMEPAGE
--------------------------------------------------*/

/*Common
---------------------------------------------------------------*/

body.freeze {
	overflow: hidden;
}
h1 {
	font-size: 26px;
	text-transform: uppercase;
	margin-bottom: 20px;
	font-weight: 300;
}
h2 {
	font-size: 20px;
	text-transform: uppercase;
	font-weight: 300;
}
li {
	list-style-type: circle;
}
.btn {
	background: none;
	border: solid 1px white;
	border-radius: 3px;
	text-transform: uppercase;
	font-weight: 400;
	color: white;
	transition: opacity 0.5s ease;
}
.btn-inverse {
	border: solid 1px black;
	color: black
}
.btn:hover {
	color: white;
	opacity: 0.6;
}
.btn-inverse:hover {
	color: black;
}

.btn-sm {
	font-size: 14px;
	padding: 2px 10px;
}
.btn .fa {
	line-height: 0.25;
	margin-right: 6px;
}
section {
	padding: 20px 0;
}
footer {
	margin: 50px 0 5px 0;
}

/*Navigation
---------------------------------------------------------------*/
#nav-toggle {
	position: fixed;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	color: white;
	z-index: 999;
	transition: opacity 0.5s ease;
}
#nav-toggle:hover {
	opacity: 0.7;
}
#nav-toggle.inverse {
	color: black;
}
/*
nav {
	display: block;
	position: fixed;
	height: auto;
	width: 100%;
	padding: 20px 30px 50px 30px;
	margin-top: -365px;
	background: rgba(0,0,0,0.9);
	z-index: 1000;
	color: white;
	text-transform: uppercase;
	transition: margin 0.5s ease;
	overflow: hidden;
}
nav.active {
	margin: 0;
}
nav ul {
	padding: 0;
	margin: 20px 0 0 0px;
}
nav li {
	list-style: none;
	border-bottom: solid 1px #333;
	padding: 20px 0;
}
nav li a {
	color: white;
	transition: opacity 0.5s ease;
}
nav li a:hover {
	color: white;
	opacity: 0.7;
	text-decoration: none;
}
*/
/*Introduction
---------------------------------------------------------------*/
#intro{
	background:url('/_ext/csa.octoplus.co.za/wp-content/themes/csa/img/bg-farming.jpg') no-repeat center;
	background-size: cover;
	text-align: center;
	padding: 0;
}
#intro, #intro .container, #intro .row {
	height: 100%;
}
#intro .row {
	position: relative;
}
#intro div[class^="col-"] {
	position: absolute;
	bottom: 20%;
}
#intro .btn {
	color: white;
	margin: 30px 0;
}
#intro h1 {
	color: white;
	font-size: 24px;
	text-transform: none;
}
#intro h1 span {
	white-space: nowrap;
}
#csa-top-logo img {
	width: 80%;
	margin-left: 10%;
}

/*What is climate smart agriculture?
---------------------------------------------------------------*/
#climate-smart-agriculture {
	background:url('/_ext/csa.octoplus.co.za/wp-content/themes/csa/img/bg-map.jpg') no-repeat left bottom;
	background-size: cover;
}
#climate-smart-agriculture div[class^='col-'] .btn {
	margin: 20px 0;
}
#learn-more-popover {
	padding: 10px 0 20px 0;
	display: none;
}
#learn-more-popover h2 {
	margin: 20px 0 30px 15px;
}
#learn-more-popover .btn {
	margin: 10px 10px 0 10px;
}
#learn-more-popover.active {
	display:block;
}
#learn-more-popover .row > div {
	display: none;
}
#learn-more-popover .row > div.active {
	display: block;
}
/*Founding members
---------------------------------------------------------------*/
#partners h2 {
	clear:both;
	margin: 20px 0;
}
#partners button {
	position: relative;
	display: block;
	background: none;
	border: solid 1px #ccc;
	border-radius: 3px;
	margin: 0 5px 5px 0;
	padding: 0;
	float: left;
	width: 60px;
}
#partners button.active {
	border: solid 1px black;
}
#partners button:after {
	font-family: "FontAwesome", "Lato", "sans-serif";
	white-space: pre;
	content: "\f055 \A More info";
	background: rgba(0,0,0,0.7);
	padding-top: 30%;
	color: white;
	font-size: 10px;
	text-transform:uppercase;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	display: block;
	opacity: 0;
	transition: opacity 0.5s ease
}
#partners button:hover:after {
	opacity: 1;
}
#partners button.active:after {
	content: normal;
}
#partner-information {
	position: relative;
	display: none;
}
#partner-information.active {
	display: block;
}
.partner {
	position: absolute;
	opacity: 0;
	display: none;
}
.partner.active {
	opacity: 1;
	display: block;
	position: relative;
}
#partner-back {
	margin-top: 20px;
}
.partner.active img {
	width:80px;
}
.partner.active {
	display: block;
}
/*Proposed Projects
---------------------------------------------------------------*/
#proposed-locations-map {
    width: 100%;
}
#proposed-locations {
	background:url('/_ext/csa.octoplus.co.za/wp-content/themes/csa/img/bg-cow.jpg') no-repeat -1000px center;
	background-size: cover;
	color: white;
}
#proposed-locations .col-sm-4 {
	margin-bottom: 50px;
}
#proposed-locations img {
	width: 90%;
	margin: 20px 5% 30px 5%;
}

.proposed-location {
    display: none;
}
.proposed-location.active {
    display: block;
}
#locations-back {
    color: white;
    border-color: white;
}

/*Get involved
---------------------------------------------------------------*/
#get-involved form {
	margin: 20px 0;
}
#get-involved form .input-lg {
	border-radius: 3px;
}
#email-sent {
	position: relative;
	padding-left: 40px;
}
#email-sent:before {
	font-family: "FontAwesome";
	content:"\f14a";
	font-size: 22px;
	display: block;
	position: absolute;
	top: 10px;
	left: 10px;
}
.has-feedback .form-control-feedback {
position: absolute;
top: 25px;
right: 0;
display: block;
width: 34px;
height: 34px;
line-height: 34px;
text-align: center;
}
.form-control-feedback {
	position: inherit;
}
#get-involved .form-control-feedback {
	font-size: 10px;
	top: 5px;
}
#get-involved p .form-control-feedback {
	vertical-align: 2px;
}
/*Media queries
---------------------------------------------------------------*/
@media (max-width: 767px) and (orientation:landscape) {
	/*Introduction*/
	#intro div[class^="col-"] {
		bottom: 0;
	}
}
@media(min-width: 481px) {
	/*Introduction*/
	#intro h1 {
		font-size: 32px;
	}
}

@media(min-width: 768px) {
	/*Common*/
	body {
		margin-top: 98px;
	}
	h1 {
		font-size: 40px;
	}
	h2 {
		font-size: 22px;
	}
	/*Navigation*/
	/*nav {
		margin: 0 0 0 -400px;
		height: 100%;
		width: 400px;
		padding: 30px;
	}
	nav ul {
		margin: 50px 0 0 20px;
	}*/

	/*Introduction*/
	#csa-top-logo img {
		width: auto;
		margin-left: 0;
	}

	/*What is climate smart agriculture?*/
	#climate-smart-agriculture {
		background-position: center bottom;
	}
	#learn-more-popover {
	position: fixed;
	height: 100%;
	width: 100%;
	top: 0;
	left: -100%;
	transition: left 0.5s ease;
	background: rgba(255,255,255, 0.92);
	z-index:1001;
	overflow: auto;
	display: block;
	margin-top: 98px;
	}
	#learn-more-popover.active {
		left: 0;
	}

	/*Founding members*/
	#founding-members {
		padding-bottom: 50px;
	}
	#partners button {
		width: 125px;
	}
	#partners button:after {
		padding-top: 35%;
		font-size: 16px;
	}
	#partner-information {
		display: block;
	}
	.partner.active img {
		width:auto;
	}
	/*Proposed Projects*/
	#proposed-locations {
		background-position: center center;
	}
	#proposed-locations .container > .row:first-child {
		margin-bottom: 30px;
	}
}
@media(min-width: 768px) and (max-width: 991px) {
	/*Common*/
	h1 {
		font-size: 36px;
	}

	/*Introduction*/
	#intro h1 {
		font-size: 32px;
	}
	#partners button {
		width: 64px;
	}
	#partners button:after {
		padding-top: 30%;
		font-size: 11px;
	}
}
@media(min-width: 992px) and (max-width: 1199px) {
	/*Founding members*/
	#partners button {
		width: 102px;
	}
	#partners button:after {
		padding-top: 30%;
	}
    #partners .partner-group-float {
        float: left;
    }
    #partners .partner-group-float:first-child {
        margin-right: 90px;
    }
}

@media(min-width: 1200px) {
	/*Introduction*/
	#intro h1 {
		font-size: 40px;
	}
    #partners .partner-group-float {
        float: left;
    }
    #partners .partner-group-float:first-child {
        margin-right: 130px;
    }
}

/*IE*/
.ie9 form .sr-only {
		position:static;
    width: auto;
    height:auto;
    margin: 0;
    padding: 0;
    overflow: auto;
    border: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}