/*
Theme Name: Fristads
Author: Fristads / Mikko Hopia Oy
Author URI: http://www.fristads.com
Description: Fristads lomake sivupohja
Version: 1.0
*/

/* Reset */

html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; }
img { border: 0; }
ol, ul, dl { list-style: none; }
div { box-sizing: border-box; }

/*
Fonts
font-family: "aller", sans-serif; 400 700
*/

/* HTML5 */

article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, mark, time {  
	display:block;
}

/* Typography */

body {
	font-family: "aller", sans-serif;
	font-size: 1rem;
	font-weight: 400;
}

a {
	color: #1ea8e1;
	text-decoration: none;
}

p {
	line-height: 1.4;
	margin-bottom: 20px;
}

h1, h2, h3 {
	font-style: italic;
	font-weight: 700;
	line-height: 1;
}

h1 {
	color: #fff;
	font-size: 3rem;
	text-transform: uppercase;
}

h2 {
	font-size: 1.8rem;
	margin-bottom: 20px;
	text-transform: uppercase;
}

h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	text-transform: uppercase;
}

strong {
	font-weight: 700;
}

div.hero h1 {
	bottom: 20px;
	left: 20px;
	position: absolute;
	width: calc(100% - 20px);
}

.center { text-align: center; }

p.logos {
	margin-top: 40px;
	text-align: center;
}

p.logos img {
	margin: 0 2%;
	width: 35%;
	vertical-align: middle;
}

p.logos img:nth-child(2) {
	width: 18%;
}

p.some {
	text-align: center;
}

p.some img {
	margin: 0 5px;
}

/* Wrap and col */

div.wrap {
	clear: both;
	margin: 0 auto;
	max-width: 800px;
	padding: 0;
	position: relative;
	z-index: 1;
}

div.content {
	background: url(img/kolmio600x600.png) top left no-repeat;
	background-size: 300px;
	padding: 50px 20px;
}

div.content.finnbuild {
	background: url(img/Fristads-triangle.png) top left no-repeat;
	background-size: 400px;
}

body.home div.content { background: none; }

div.col-wrap {
	clear: both;
	padding: 50px 20px;
	position: relative;
	width: 100%;
	float: left;
}

div.col-wrap:after,
div.events-bg:after,
div.contact-bg:after,
div.wrap:after {
  content: "";
  display: table;
  clear: both;
}

div.no-bot-pad {
	padding-bottom: 20px;
}

div.no-top-pad {
	padding-top: 20px;
}

div.col-1 {
	padding: 0 4%;
}

div.col-3 {
	float: left;
	padding: 0;
	position: relative;
	width: 33.33%;
}

div.col-3-2 {
	float: left;
	padding: 0 4% 0 2%;
	width: 66.66%;
}

div.col-3-1 {
	float: left;
	padding: 0 1%;
	width: 33.33%;
}

div.col-2-1 {
	float: left;
	width: 32%;
}

div.col-2-1:first-child {
	padding: 0 2% 0 0;
}

div.col-2-1:nth-child(2) {
	padding: 0 0 0 2%;
}

div.col-2-2 {
	float: left;
	width: 68%;
}

div.col-2-2:first-child {
	padding: 0 2% 0 0;
}

div.col-2-2:nth-child(2) {
	padding: 0 0 0 2%;
}

div.col-2 {
	float: left;
	width: 50%;
}

div.col-2:first-child {
	padding-right: 50px;
}

div.col-2:last-child {
	padding-left: 50px;
}

/* Accessibility */

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.screen-reader-text:focus {
	background-color:#fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
	clip: auto!important;
	-webkit-clip-path: none;
	clip-path: none;
	color: #000;
	display: block;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 20px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Header */

header {
	
}

body.admin-bar header {
	margin-top: 32px;
}

header h1 a {
	background: url(img/logo.png) no-repeat;
	background-size: contain;
	display: block;
	height: 18px;
	left: 100px;
	overflow: hidden;
	position: absolute;
	text-indent: -9999px;
	top: 11px;
	width: 168px;
}

button.hamburger {
	background: none;
	border: 0;
	cursor: pointer;
	display: none;
	height: 18px;
	margin: 0;
	outline: none;
	padding: 0;
	position: absolute;
	right: 40px;
	top: 12px;
	width: 25px;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 4px;
  width: 25px;
  background: #333;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
  width: 100%;
}

#nav-icon span:nth-child(1) {
  top: 0;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(2) {
  top: 7px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon span:nth-child(3) {
  top: 14px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon.open span:nth-child(1) {
  -webkit-transform: rotate(35deg);
  -moz-transform: rotate(35deg);
  -o-transform: rotate(35deg);
  transform: rotate(35deg);
  top: 0;
  left: 0;
  width: 25px;
}

#nav-icon.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon.open span:nth-child(3) {
  -webkit-transform: rotate(-35deg);
  -moz-transform: rotate(-35deg);
  -o-transform: rotate(-35deg);
  transform: rotate(-35deg);
  top: 14px;
  left: 0;
  width: 25px;
}

ul.main-navi {
	
}

ul.main-navi li {
	display: inline-block;
}

ul.main-navi li a {
	display: block;
}

ul.main-navi li.current-menu-item a,
ul.main-navi a:hover {
	
}

/* HERO */

div.hero {
	min-height: 533px;
}

/* /HERO END */

/* Content */

a.more-info-links {
	color: #fff;
	display: block;
	float: left;
	font-size: 1.6rem;
	font-style: italic;
	height: 350px;
	margin-bottom: 10px;
	margin-right: 1%;
	text-align: center;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
	transition-duration: 0.5s;
	width: 32.66%;
}

a.more-info-links:nth-child(3n) {
	margin-right: 0;
}

a.more-info-links:hover {
	opacity: 0.8;
}

a.more-info-links div {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	text-align: center;
}

/* Images */

div.wrap img {
	height: auto;
	max-width: 100%;
}

/* Table */

table {
	border-collapse: collapse;
	line-height: 1.45;
	margin-bottom: 30px;
	width: 100%;
}

table td {
	padding: 2px 0;
	vertical-align: top;
}

table td:last-child {
	text-align: right;
	white-space: nowrap;
}

/* Form */

div.gform_wrapper {
	margin-bottom: 50px;
	padding-top: 20px;
}

div.gform_wrapper form {
	width: 60%;
}

div#gform_wrapper_2 form {
	width: 100%;
}

div.gform_wrapper li {
	margin-bottom: 20px;
}

li.gform_validation_container {
	display: none;
}

div.gform_wrapper input {
	background: #b3c7d9;
	border: 3px solid #fff;
	box-sizing: border-box;
	font-family: "aller", sans-serif;
	font-size: 1.2rem;
	padding: 5px;
	width: 100%;
}

body.finnbuild div.gform_wrapper input {
	background: #009fe3;
}

div.gform_body ul li:first-child input {
	background: #fff;
	border: 3px solid #b3c7d9;
	font-size: 2rem;
}

body.finnbuild div.gform_body ul li:first-child input {
	background: #009fe3;
	border: 3px solid #fff;
	font-size: 1.2rem;
}

div.gform_wrapper input[type=submit] {
	background: #fff;
	border: 3px solid #b3c7d9;
	cursor: pointer;
	padding: 5px 40px;
	transition-duration: 0.5s;
	width: auto;
}

body.finnbuild div.gform_wrapper input[type=submit] {
	background: #fff;
	border: 3px solid #009fe3;
}

div.gform_wrapper input[type=submit]:hover {
	background: #b3c7d9;
	color: #fff;
}

body.finnbuild div.gform_wrapper input[type=submit]:hover {
	background: #009fe3;
	color: #fff;
}

div.gform_wrapper input[type=checkbox] {
	padding: 0;
	width: auto;
}

img.gform_ajax_spinner {
	display: block;
	height: auto !important;
	margin-top: 20px;
	margin-top: 10px;
	width: 30px !important;
}

div.validation_error {
	margin-bottom: 11px;
}

div.validation_error,
div.validation_message,
li.gfield_error {
	color: red;
}

li.gfield_error input[type=text],
li.gfield_error textarea {
	border: 1px solid red;
}

div.gform_confirmation_message {
	background: #b3c7d9;
	margin-bottom: 40px;
	padding: 20px;
}

/* Footer */

footer {
	min-height: 533px;
}

footer p {
	font-style: italic;
	font-weight: 700;
	font-size: 3rem;
	left: 60px;
	line-height: 1;
	position: absolute;
	text-transform: uppercase;
	top: 20px;
	width: 70%;
}

a.footer-link {
	color: #fff;
	clear: both;
	font-size: 3rem;
	font-style: italic;
	display: block;
	height: 400px;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
	text-transform: uppercase;
	transition-duration: 0.5s;
}

a.footer-link:hover {
	opacity: 0.8;
}

a.footer-link div {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	text-align: center;
}

/* Misc */

div.clear {
	clear: both;
	height: 0;
}

.smooth-font {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.only-mobile {
	display: none !important;
}

/* Mokoma */

body.page-template-page-tmpl-mokoma {
	background: #000;
	padding-top: 20px;
}

body.page-template-page-tmpl-mokoma div.wrap {
	background: #d9d3c3;
	max-width: 1440px;
}

body.page-template-page-tmpl-mokoma div.col-wrap {
  padding: 50px;
}

body.page-template-page-tmpl-mokoma div.no-bot-pad {
	padding-bottom: 10px;
}

body.page-template-page-tmpl-mokoma p.site-title {
	background: url(img/Fristads_logo_black_workwear.png) top right no-repeat;
	background-size: contain;
	height: 115px;
	float: right;
	overflow: hidden;
	text-indent: -9999px;
	width: 415px;
}

body.page-template-page-tmpl-mokoma div.site-title {
	height: 230px;
	padding: 60px 55px 0 0;
}

body.page-template-page-tmpl-mokoma div.site-title:after {
  content: "";
  display: table;
  clear: both;
}

body.page-template-page-tmpl-mokoma div.hero {
	min-height: 0;
}

body.page-template-page-tmpl-mokoma div.hero img {
	display: block;
}

body.page-template-page-tmpl-mokoma h1 {
	color: #000;
	margin-bottom: 20px;
}

body.page-template-page-tmpl-mokoma h2 {
	font-size: 1.6rem;
	line-height: 1.1;
}

body.page-template-page-tmpl-mokoma div.gform_wrapper {
  padding-top: 65px;
}

body.page-template-page-tmpl-mokoma div.gform_wrapper form {
  width: 100%;
}

body.page-template-page-tmpl-mokoma div.gform_body ul li:first-child input,
body.page-template-page-tmpl-mokoma div.gform_wrapper input {
  background: #9e8b6c;
  border: none;
  box-sizing: border-box;
  font-family: "aller", sans-serif;
  font-size: 1.2rem;
  padding: 5px;
  width: 70%;
}

body.page-template-page-tmpl-mokoma div.gform_body ul li:first-child input[type=checkbox],
body.page-template-page-tmpl-mokoma div.gform_wrapper input[type=checkbox] {
	padding: 0;
	width: auto;
}

body.page-template-page-tmpl-mokoma div.gform_wrapper input[type=submit] {
  cursor: pointer;
  font-style: italic;
  padding: 20px 40px;
  text-transform: uppercase;
  transition-duration: 0.5s;
  width: auto;
}

body.page-template-page-tmpl-mokoma div.gform_wrapper input[type=submit]:hover {
	background: #000;
	color: #9e8b6c;
}

body.page-template-page-tmpl-mokoma label.gfield_label {
	font-size: 1.2rem;
	font-style: italic;
	margin-bottom: 5px;
	text-transform: uppercase;
}

body.page-template-page-tmpl-mokoma li.checkbox-field label.gfield_label {
	display: none;
}

body.page-template-page-tmpl-mokoma div.col-1 {
  padding: 0;
}

body.page-template-page-tmpl-mokoma div.col-1 a {
	font-size: 1.2rem;
  font-style: italic;
  text-decoration: none;
}

body.page-template-page-tmpl-mokoma div.col-1 a:hover {
  text-decoration: underline;
}

body.page-template-page-tmpl-mokoma a {
 	color: #000;
	text-decoration: underline;
}

body.page-template-page-tmpl-mokoma a.more-info-links {
	color: #fff;
	text-decoration: none;
}

body.page-template-page-tmpl-mokoma footer {
	margin-bottom: 20px;
	min-height: 0;
}

body.page-template-page-tmpl-mokoma footer div.wrap {
	padding-bottom: 100px;
}

body.page-template-page-tmpl-mokoma footer p {
  font-style: italic;
  font-size: 1.2rem;
  font-weight: normal;
  left: auto;
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
  text-transform: uppercase;
  top: auto;
  width: auto;
}

body.page-template-page-tmpl-mokoma p.logos-wrap a {
	float: left;
	display: block;
	margin-right: 50px;
}

body.page-template-page-tmpl-mokoma p.logos-wrap a img {
	display: block;
}

body.page-template-page-tmpl-mokoma p.logos-wrap a:nth-child(2) img {
	margin-top: -5px;
}

/* Mokoma END */

@media only screen and (max-width : 1480px) {
	body.page-template-page-tmpl-mokoma div.wrap {
		max-width: 97%;
	}
}

/* 1480 */

@media only screen and (max-width : 830px) {
	a.more-info-links {
		font-size: 1.2rem;
	}

	body.page-template-page-tmpl-mokoma div.wrap {
		max-width: 95%;
	}

	body.page-template-page-tmpl-mokoma div.site-title {
		height: 120px;
		padding: 30px 30px 0 0;
	}

	body.page-template-page-tmpl-mokoma p.site-title {
		height: 60px;
		margin-bottom: 0;
		width: 215px;
	}

	body.page-template-page-tmpl-mokoma h1 {
    font-size: 1.8rem;
	}

	body.page-template-page-tmpl-mokoma h2 {
    font-size: 1.2rem;
	}

	body.page-template-page-tmpl-mokoma div.col-wrap {
    padding: 30px;
	}

	body.page-template-page-tmpl-mokoma div.no-bot-pad {
    padding-bottom: 10px;
	}

	div.col-2:first-child {
    padding-right: 20px;
	}

	div.col-2:last-child {
    padding-left: 20px;
	}

	body.page-template-page-tmpl-mokoma div.gform_wrapper {
  	padding-top: 50px;
	}

	body.page-template-page-tmpl-mokoma div.gform_body ul li:first-child input, 
	body.page-template-page-tmpl-mokoma div.gform_wrapper input {
		width: 100%;
	}

	body.page-template-page-tmpl-mokoma div.col-1 a {
    font-size: 1rem;
	}

	body.page-template-page-tmpl-mokoma footer p {
		font-size: 1rem;
	}

	body.page-template-page-tmpl-mokoma p.logos-wrap a {
		margin-right: 5%;
		width: 25%;
	}

	body.page-template-page-tmpl-mokoma p.logos-wrap a:last-child {
		margin-right: 0;
	}

	body.page-template-page-tmpl-mokoma div.col-2-2 {
		float: none;
		width: 100%;
	}
}

/* 830 */

@media only screen and (max-width : 600px) {
	div.hero,
	footer {
    min-height: 250px;
	}

	h1 {
		font-size: 2rem;
	}

	div.gform_wrapper form {
    width: 100%;
	}

	footer p {
		font-size: 2rem;
    left: 20px;
    top: 20px;
    width: 50%;
	}

	a.more-info-links {
		float: none;
		font-size: 1.6rem;
		height: 350px;
		margin-bottom: 10px;
		margin-right: 0;
		width: 100%;
	}

	body.page-template-page-tmpl-mokoma {
		padding-top: 10px;
	}

	body.page-template-page-tmpl-mokoma footer {
		margin-bottom: 10px;
	}

	body.page-template-page-tmpl-mokoma div.site-title {
    height: 80px;
    padding: 20px 20px 0 0;
	}

	body.page-template-page-tmpl-mokoma p.site-title {
    height: 40px;
    margin-bottom: 0;
    width: 215px;
	}

	.only-mobile {
		display: block !important;
	}

	.no-mobile {
		display: none !important;
	}

	div.col-2 {
		float: none;
		padding-right: 0 !important;
		padding-left: 0 !important;
		width: 100%;
	}

	body.page-template-page-tmpl-mokoma div.col-wrap {
    padding: 20px;
	}

	body.page-template-page-tmpl-mokoma h1 {
    font-size: 1.6rem;
	}

	body.page-template-page-tmpl-mokoma h2 {
    font-size: 1.1rem;
	}

	body.page-template-page-tmpl-mokoma div.mobile-products p {
	  font-style: italic;
	  font-size: 1rem;
	  font-weight: normal;
	  left: auto;
	  line-height: 1.2;
	  margin-bottom: 10px;
	  position: relative;
	  text-transform: uppercase;
	  top: auto;
	  width: auto;
	}

	body.page-template-page-tmpl-mokoma div.mobile-products p.link {
		padding: 0 10px 20px 20px;
	}

	body.page-template-page-tmpl-mokoma div.mobile-products p a {
		text-decoration: none;
	}

	body.page-template-page-tmpl-mokoma p.logos-wrap a {
		display: block;
		float: none;
		margin-bottom: 40px;
    margin-right: 0;
    width: 100%;
	}

	body.page-template-page-tmpl-mokoma p.logos-wrap a:nth-child(2) img {
    margin-top: -15px;
	}

	body.page-template-page-tmpl-mokoma footer div.wrap {
    padding-bottom: 50px;
	}
}

/* 600 */

@media only screen and (max-width : 400px) {
	h2 {
		font-size: 1.5rem;
	}

	body.page-template-page-tmpl-mokoma div.gform_wrapper input[type=submit] {
		padding: 10px 20px;
	}
}

/* 400 */