/*
Theme Name: CDFH
Text Domain: twentysixteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, ins, kbd, q, samp, small, strike, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

@font-face{
	font-family: 'Segoe';
	src: url("fonts/Segoe.eot") format("eot");
	src: url("fonts/Segoe.eot?#iefix") format("embedded-opentype"), url("fonts/Segoe.woff") format("woff"), url("fonts/Segoe.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

@-webkit-keyframes fade{
	from{
		transform: translateX(-50%) translateY(-60%);
		opacity: 0;
	}
}
@keyframes fade{
	from{
		transform: translateX(-50%) translateY(-60%);
		opacity: 0;
	}
}

header:after,
#primary:after,
#content:after{
	content: '';
	display: table;
  	clear: both;
}

html {
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body{
	font-size: 14px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	color: #000;
	background: #efefef;
	border-top: 5px solid #005eb1;
}
body:before{
	content: '';
	height: 5px;
	background: #89c732;
	position: absolute;
	top: 6px;
	right: 0;
	width: calc(50% + 150px);
}
body.admin-bar:before{
	top: 38px;
}


header, nav, section, article, aside, footer, #primary img{ display: block; }

div.wrap{
	width: 1024px;
	margin: 0 auto;
}

header{
	overflow: visible;
	background: #fff;
	box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.04);
}
header .flex{
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between
}
body.admin-bar header.fixed{
	top: 32px;
}
header .top{
	background: #ededed;
	overflow: auto;
	padding: 5px 0;
}
header #logo{
	display: flex;
	align-items: center;
	padding: 20px 0 0;
}
header #logo img{
	display: block;
	margin-right: 50px;
}
header #logo .baseline{
	color: #005eb1;
	font-family: 'Segoe';
	font-weight: bold;
	font-style: italic;
	font-size: 18px;
}
header #logo .baseline span{
	display: block;
	padding-left: 50px;
}
#page .wpml-ls-legacy-list-horizontal{
	position: absolute;
	top: -130px;
	right: 0;
}
.page-template-landing #page .wpml-ls-legacy-list-horizontal{
	top: 0;
}
#page .wpml-ls-legacy-list-horizontal a{
	padding: 10px 0;
	width: 35px;
	text-align: center;
	border-radius: 7px;
	margin-left: 10px;
	background: #fff;
	border: 1px solid #0f70c5;
	color: #0f70c5;
	font-weight: 100;
	text-decoration: none;
}
#page .wpml-ls-legacy-list-horizontal .wpml-ls-current-language a{
	background: #005fb3;
	border: none;
	color: #fff;
	font-weight: bold;
}
#page .wpml-ls-legacy-list-horizontal .wpml-ls-current-language a:hover{
	cursor: default;
}
header nav{
	flex-grow: 1;
	position: relative;
	margin-bottom: 20px;
}
header nav:before,
header nav:after{
	content: '';
	height: 1px;
	width: 150px;
	background: #dcdcdc;
	top: 50%;
	left: 0;
	position: absolute;
}
header nav:after{
	left: initial;
	right: 0;
}
header nav ul.menu{
	margin: 0 auto;
	text-align: center;
}
header nav ul.menu > li{
	display: inline-block;
	list-style: none;
	position: relative;
}
header nav ul.menu > li + li{
	margin-left: 20px;
}
header nav ul.menu > li > a{
	text-transform: uppercase;
	font-weight: 400;
	font-size: 14px;
	display: inline-block;
	padding: 10px 15px;
	color: #005fb3;
	font-weight: 600;
}
header nav ul.menu > li.current-menu-item > a,
header nav ul.menu > li.current-page-ancestor > a,
header nav ul.menu > li a:hover{
	color: #89c732;
}

footer{
	border-top: 4px solid #005eb1;
	background: #fbfbfb;
	overflow: auto;
	clear: both;
	color: #333;
	padding: 30px 0;
	position: relative;
}
footer:before{
	content: '';
	height: 4px;
	background: #89c732;
	position: absolute;
	top: 0;
	right: 0;
	width: calc(50% + 150px);
}
footer p{
	margin-bottom: 0;
}

.top-banner img{
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-bottom: 5px solid #009fe3;
}

.flex{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}
/*.flex::after{
	content: '';
	flex: auto;
}*/
.col-2 > div{
	width: calc((100%/2) - 30px);
}
.col-3 > div{
	width: calc((100%/3) - 30px);
}
.col-4 > div{
	width: calc((100%/4) - 30px);
}


#content{
	padding: 20px 0;
}
#primary{
	border-radius: 15px;
	padding: 30px 20px;
	background: #fff;
	box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.04);
}
.page-template-landing #primary{
	position: relative;
}
.page-template-landing .entry-content{
	padding: 0 100px;
}
.page-template-landing p{
	text-align: justify;
}
.spacer{
	background: #009fe3;
	margin: 50px auto;
}

.page-template-homepage #content{
	padding: 0 0 20px;
}
.page-template-homepage #primary{
	border-radius: 0 0 15px 15px;
}
.coords{
	color: #005fb3;
	font-weight: bold;
	margin-bottom: 10px;
}
.coords div{
	margin-bottom: 5px;
}
.coords svg{
	color: #94c11f;
}
.page-template-homepage .wp-block-columns.first > div:last-child{
	border-bottom: 4px solid #94c11f;
}
.page-template-homepage .wp-block-columns.last{
	border-bottom: 4px solid #009fe3;
	margin-bottom: 20px;
}
.page-template-homepage .wp-block-column a:not(.btn)[target="_blank"]{
	display: flex;
	align-items: center;
	font-weight: bold;
}
.page-template-homepage .wp-block-column a[target="_blank"] img{
	margin-right: 15px;
}
.page-template-homepage p.last-p{
	color: #adadad;
	padding: 0 180px;
	text-align: justify;
	font-size: 12px;
}
.entry-content .wp-block-media-text{
	width: 800px;
	margin: 0 auto;
	grid-template-columns: 200px 1fr;
	padding: 2px 0;
	background: #ffffff;
	border-radius: 90px 0 15px 90px;
	margin-bottom: 15px;
	border-bottom: 2px solid #94c11f;
	background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 12%, rgba(148,193,31,0.05) 100%);
	background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0.9) 12%,rgba(148,193,31,0.05) 100%);
	background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0.9) 12%,rgba(148,193,31,0.05) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#2e94c11f',GradientType=0 );
}
.entry-content .wp-block-media-text > figure > img{
	width: 170px;
	height: 170px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #94c11f;
}

/*NINJA FORMS*/
.nf-form-cont{
	width: 650px;
	margin: 0 auto;
}
.page-template-homepage .nf-form-cont{
	width: auto;
}
.nf-form-fields-required{
	color: #ababab;
	float: right;
	font-size: 12px;
	font-weight: 100;
}
.nf-error-wrap{
	position: absolute;
	top: 0;
	right: 0;
}
.ninja-forms-form-wrap .nf-field-container{
	margin: 0 0 10px;
}
.ninja-forms-form-wrap .label-above .nf-field-label{
	margin-bottom: 5px;
}
.ninja-forms-form-wrap .nf-field-label label{
	color: #333;
	font-weight: 100;
}
.listcheckbox-container .nf-field-label label{
	font-weight: bold;
}
.field-wrap:not(.checkbox-wrap) .ninja-forms-field{
	height: 45px;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	padding: 0 10px;
	outline: none;
}
#content .field-wrap hr.ninja-forms-field{
	border: none !important;
	height: 0;
}
.listcheckbox-container .nf-field-element ul li .ninja-forms-field{
	height: auto;
}
.listcheckbox-container .nf-field-element ul li label{
	font-weight: 100;
}
.recaptcha-wrap .nf-field-label{
	display: none;
}
.ninja-forms-form-wrap .submit-wrap input[type="button"]{
	background: #005fb3;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	float: right;
	font-size: 15px;
	padding: 15px 35px;
	height: auto;
	transition: filter 0.4s;
}
.page-template-homepage .ninja-forms-form-wrap .submit-wrap input[type="button"]{
	font-size: 15px;
}
.ninja-forms-form-wrap .submit-wrap input:hover{
	filter: brightness(120%);
}
.nf-form-fields-required,
.nf-after-form-content{
	display: none;
}
.g-recaptcha, .g-recaptcha > div{
	width: 295px !important;
}


/*STYLES*/
a{
	color: #005fb3;
	text-decoration: none;
	outline: none;
}
a.btn,
.wp-block-button a{
	display: inline-block;
	padding: 10px 20px;
	background: #005fb3;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	transition: opacity 0.2s;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 400;
}
.site-content a:hover{
	text-decoration: underline;
}
a.btn:hover,
.wp-block-button a:hover{
	opacity: 0.9;
	text-decoration: none;
}
p,
.entry-content ul,
.entry-content ol{
	margin-bottom: 15px;
}
.entry-content ul,
.entry-content ol{
	padding-left: 17px;
}

.wp-block-columns{
	text-align: justify;
}
.wp-block-columns.w70-30 > div:first-child,
.wp-block-columns.w30-70 > div:last-child{
	flex-basis: 70%;
}
.wp-block-columns.w70-30 > div:last-child,
.wp-block-columns.w30-70 > div:first-child{
	flex-basis: 30%;
}

h1,h2,h3{
	font-size: 20px;
	font-weight: normal;
	color: #005fb3;
	margin-bottom: 15px;
	text-transform: uppercase;
}
h1{
	font-weight: bold;
	text-align: center;
}
h2{
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
}
h3{
	font-size: 14px;
}
strong{
	font-weight: 600;
}
.entry-content img.alignleft{
	float: left;
	margin: 0 15px 15px 0;
}
.entry-content img.alignright{
	float: right;
	margin: 0 0 15px 15px;
}
svg{
	margin-right: 5px;
}
em{
	font-style: italic;
}

/*-----------------------------------------------
          ---- CSS SITE MOBILE ----
-----------------------------------------------*/
@media only screen and (min-width: 1024px){
	#rs-nav-btn{
		display: none;
	}
  header nav{
    height: auto !important;
  }
}
@media only screen and (max-width: 1024px){
	#rs-nav-btn {
		cursor:pointer;
		position: fixed;
		top: 15px;
		right: 20px;
		width: 40px;
		height: 40px;
		background: #005fb3;
		text-indent: -9999px;
		z-index: 8009;
		display: block !important;
		border-radius: 4px;
	}
	#rs-nav-btn:after{
		content: '';
		position: absolute;
		display: block;
		width: 1rem;
		height: 0;
		top: 0;
		left: 8px;
		box-shadow: 4px 13px 0 2px white, 4px 20px 0 2px white, 4px 27px 0 2px white;
	}


	body{
		padding-top: 70px;
	}
	body.page-template-landing{
		padding-top: 0;
	}
	div#wrap, div.wrap{
		width: auto !important;
		padding: 0 20px;
	}
	header{
		overflow: visible;
		padding: 0;
		margin: 0;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 999;
		height: 70px;
		background: #fff;
		box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.35);
	}
	header nav {
		width: 250px;
		height: 100%;
		position: fixed;
		right: 0;
		left: initial;
		top: 70px;
		background-color: #f1f1f1;
		z-index: 5;
		padding: 0;
		margin: 0;
		overflow-y: auto;
		overflow-x: hidden;
		transform: translateX(250px);
		transition-duration: 0.3s;
	}
	header nav.open{
		right: 0;
		transform: translateX(0);
	}
	header nav ul.menu{
		background: none;
		padding: 10px 0 0 0;
		float: none;
		width: 100%;
	}
	header nav ul.menu > li{
		float: none;
		margin: 0;
		height: initial;
		display: block;
		height: auto;
		padding: 0;
		margin-bottom: 5px;
		border: 0 !important;
	}
	header nav ul.menu > li + li{
		margin: 0;
	}
	header nav ul.menu > li a{
		padding-left: 20px;
		display: block;
		text-align: left;
	}
	header nav ul.menu > li a:hover{
		background: none;
	}
	header nav ul.menu > li:first-child a{
		background: none;
		text-indent: inherit;
		width: auto;
		height: auto;
	}
	header nav ul.menu ul{
		width: 100%;
		position: static;
		margin-bottom: 20px;
	}

	header #logo{
		margin: 0;
		padding: 0;
		height: 70px;
	}
	header #logo img{
		margin: 5px 0;
		max-height: 60px;
		width: auto;
	}

	header #logo .baseline{
		font-size: 10px;
		padding-left: 15px;
	}
	header #logo .baseline span{
		padding: 0;
	}

	.site-content{
		text-align: justify;
	}
	.page-template-landing #primary{
		padding: 10px 20px;
	}
	.page-template-landing #content{
		padding: 20px;
	}
	.page-template-landing .entry-content,
	.page-template-homepage p.last-p{
		padding: 0;
		clear: both;
	}
	.page-template-landing #page .wpml-ls-legacy-list-horizontal{
		position: static;
		float: right;
	}

	.nf-form-cont{
		width: 100%;
	}
	nf-field {
	    min-width: auto;
	    float: none;
	}
	.nf-field-container.full{
		width: 100%;
	}

	.flex{
		display: block;
	}
	.flex > div{
		margin-bottom: 30px;
	}
	.flex.col-3::after,
	.flex.col-4::after {
		display: none;
	}
	.col-2 > div,
	.col-3 > div,
	.col-4 > div{
		width: 100%;
	}

	.wp-block-columns.w70-30 > div:first-child,
	.wp-block-columns.w30-70 > div:last-child,
	.wp-block-columns.w70-30 > div:last-child,
	.wp-block-columns.w30-70 > div:first-child{
		flex-basis: 100%;
	}

	.entry-content .wp-block-media-text{
		display: block;
		width: auto;
		border-radius: 0 0 15px 15px;
	}
	.entry-content .wp-block-media-text figure{
		margin: 0 auto 20px;
	    display: block;
	    width: 170px;
	}


	footer{
		padding: 15px 0;
	}
	aside{
		width: 100%;
		float: none;
		padding: 0;
		margin-bottom: 20px;
	}
	aside li a{
		padding-left: 5px;
		text-align: center;
	}
	aside + .entry-content{
		float: none;
		width: 100%;
	}

	@media screen and (orientation:landscape) {
	}
}