html{overflow-x:hidden;}
body{font-family:'Source Sans Pro',sans-serif;font-size:19px;line-height:1.8em;overflow-x:hidden;}
header{padding:30px 70px 15px;}
p,span,em,a,address{color:#848586;}
h2,p{margin-top:0;}
a:hover,a.active{color:#309AFD;}

.tm-btn{
	padding:10px 40px;
	color:white;
	background-color:#3299CD;
	display:inline-block;
	border:none;
	cursor:pointer;
	font-size:1.2rem;
	transition:all 0.3s ease;
}

button.tm-btn{
	padding:15px 40px;
}

.tm-btn:hover{
	color:white;
	background-color:#49b4e9;
}

h1{font-size:3rem;}
em{display:block;}
div{box-sizing:border-box;}
.tm-mt-35{margin-top:35px;}
.tm-mb-0{margin-bottom:0;}
.tm-mb-15{margin-bottom:15px;}
.tm-mb-30{margin-bottom:30px;}
.tm-mb-40{margin-bottom:40px;}
.tm-mb-50{margin-bottom:50px;}
.tm-mb-80{margin-bottom:80px;}
.tm-text-center{text-align:center;}
.tm-text-right{text-align:right;}
.tm-color-primary{color:#309AFD;}
.tm-color-primary2{color:#289030;}
.tm-color-primary3{color:#ff9218;}
.tm-color-gray{color:#666768;}
.tm-color-gray-2{color:#98999A;}
.tm-color-light-gray{color:#9E9FA0;}
.tm-bg-white{background-color:#FFF;}
.tm-bg-gray{background-color:#F1F2F3;}
blockquote{margin:0 0 30px 10px;}
img{max-width:100%;}
.tm-page-title{font-size:30px;}

body,ul{
	margin:0;
	padding:0;
}

a{
	text-decoration:none; 
	transition:all 0.3s ease;
}

.tm-mt-0{margin-top:0;}

.tm-tagline{
	font-size:1.5rem;   
	margin-left:130px;
}

#tm-video-container {
    max-height:400px;
    overflow:hidden;
    background-color:#333;
    margin-bottom:50px;
    position:relative;
}

#tm-video {
    width:100%;
    height:auto;
}

.tm-nav-item{
	list-style:none;
	margin:15px;   
}

.tm-nav-link{
	display:flex;
	align-items:center;	
	flex-direction:column;
	width:200px;
	height:200px;
	padding:30px;
	border:1px solid #D2D3D4;
	color:#999; 
	box-sizing:border-box;
}

.tm-nav-link:hover,
.tm-nav-link.active{
	color:#309AFD;
}

.tm-nav-link i{
	margin-top:30px;
	color:#309AFD;
}

.tm-main-nav ul{
	display:flex;
	flex-wrap:wrap;
	margin-left:auto;
	margin-right:auto;
}

.tm-container{
	max-width:1254px;
	padding-left:15px;
	padding-right:15px;
	margin:0 auto 35px;
}

.footer{
background-color: #646464;
/*position: fixed;
bottom: 0;*/
width: 100%;
padding: 5px;
font-size: 14px;
font-weight: 400;
line-height: 33px;
}

.footer a{
	color: lightgray;
	margin-left: 8px;
}

.footer span{
	color: lightgray;
}

.footer a:hover{
	color: white;
}

.tm-close-popup{
	text-align:right;
	display:block;
}

.tm-close-popup i{
	margin-left:10px;
	margin-right:10px;
}

.tm-row{
	display:flex;
}

.tm-col-6{
	flex:0 0 50%;
}

.tm-intro-pad{
	padding:40px 55px 50px; 
}

.tm-intro-col-l{
	margin-right:40px;
}

/* text-based popup styling */
.popup{
	position:relative;
	padding:12px 10px 35px;
	width:auto;
	max-width:1200px;
	margin:0 auto; 
}

/* 

====== Move-from-top effect ======

*/
.mfp-move-from-top .mfp-with-anim{
	opacity:0;
	transition:all 0.2s;
	transform:translateY(-100px);
}
.mfp-move-from-top.mfp-bg{
	opacity:0;
	transition:all 0.2s;
}
.mfp-move-from-top.mfp-ready .mfp-with-anim{
	opacity:1;
	transform:translateY(0);
}
.mfp-move-from-top.mfp-ready.mfp-bg{
	opacity:0.8;
}
.mfp-move-from-top.mfp-removing .mfp-with-anim{
	transform:translateY(-50px);
	opacity:0;
}
.mfp-move-from-top.mfp-removing.mfp-bg{
	opacity:0;
}

button.mfp-arrow{
	display:none;
}

/* Intro */
.tm-intro-img{
	max-width:300px;
	max-height:600px;
}

/* Gallery */
.tm-gallery{
	flex:0 0 68%;
	margin:0 20px;
}

.tm-gallery-container{
	position:relative;	
	max-width:800px;
	margin:0 -10px;
	list-style:none;
	text-align:center;
}

.tm-paging{
	overflow:auto;
	margin-top:25px;
}

.tm-paging li{
	list-style:none;
}

.tm-paging-link{
	display:flex;
	float:left;
	width:40px;
	height:40px;
	align-items:center;
	justify-content:center;
	background:white;
	color:#999;
	margin-right:15px;
	margin-bottom:15px;
}

a.tm-paging-link.active,
a.tm-paging-link:hover{
	background:#309AFD;
	color:white;
}

.tm-gallery-right{
	flex:0 0 26%;
	margin-left:15px;
}

.tm-gallery-links{
	margin-left:35px;
	margin-bottom:55px;
}

.tm-gallery-links li{
	list-style:none;
	margin-bottom:20px;
}

.tm-gallery-link-icon{
	display:inline-block;
	width:30px;
}

.tm-gallery-item{
	overflow:hidden;
	margin:15px 10px;
	min-width:180px;
	max-width:180px;
	max-height:240px;
	width:25%;
	background:#3085a3;
	text-align:center;
	cursor:pointer;
}

.tm-gallery-container figure img{
	position:relative;
	display:block;
	min-height:100%;
	max-width:100%;
	opacity:0.9;
}

.tm-gallery-container figure figcaption{
	padding:2em;
	color:#fff;
	text-transform:uppercase;
	font-size:1.25em;
	-webkit-backface-visibility:hidden;
	backface-visibility:hidden;
}

.tm-gallery-container figure figcaption::before,
.tm-gallery-container figure figcaption::after{
	pointer-events:none;
}

.tm-gallery-container figure figcaption,
.tm-gallery-container figure figcaption > a{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.tm-gallery-container figure h2{
	word-spacing:-0.15em;
	font-weight:300;
}

.tm-gallery-container figure h2 span{
	font-weight:800;
}

.tm-gallery-container figure h2,
.tm-gallery-container figure p{
	margin:0;
}

.tm-gallery-container figure p{
	letter-spacing:1px;
	font-size:68.5%;
}

/*---------------*/
/***** Chico *****/
/*---------------*/

figure.effect-chico img{
	-webkit-transition:opacity 0.35s,-webkit-transform 0.35s;
	transition:opacity 0.35s,transform 0.35s;
	-webkit-transform:scale(1.12);
	transform:scale(1.12);
}

figure.effect-chico:hover img{
	opacity:0.5;
	-webkit-transform:scale(1);
	transform:scale(1);
}

figure.effect-chico figcaption{
	padding:1em;
	box-sizing:border-box;
	display:flex;
	align-items:center;
}

figure.effect-chico figcaption::before{
	position:absolute;
	top:15px;
	right:15px;
	bottom:15px;
	left:15px;
	border:1px solid #fff;
	content:'';
	-webkit-transform:scale(1.1);
	transform:scale(1.1);
}

figure.effect-chico figcaption::before,
figure.effect-chico p{
	opacity:0;
	-webkit-transition:opacity 0.35s,-webkit-transform 0.35s;
	transition:opacity 0.35s,transform 0.35s;
}

figure.effect-chico h2{
	padding:20% 0 20px 0;
}

figure.effect-chico p{
	color:white;
	margin:0 auto;
	max-width:200px;
	-webkit-transform:scale(1.5);
	transform:scale(1.5);
}

figure.effect-chico:hover figcaption::before,
figure.effect-chico:hover p{
	opacity:1;
	-webkit-transform:scale(1);
	transform:scale(1);
}

/* Testimonials */
.tm-testimonials-inner{
	padding:0 20px 30px;
}

.tm-testimonial-col{
	flex:0 0 33.3334%;
	padding-left:20px;
	padding-right:20px;
}

/* About */
.mapouter{
	position:relative;
	height:250px;
	width:100%;
}

.gmap_canvas{
	overflow:hidden;
	background:none!important;
	height:250px;
	width:100%;
}
.tm-contact-row{
	max-width:1045px;
}
.tm-about-col{
	margin-left:40px;
	margin-right:40px;
	max-width:500px;
}

/* Contact */
#contact{
	padding-bottom:65px;
}
.tm-contact-col{
	flex:0 0 50%;
	padding-left:40px;  
}

.tm-contact-col-r{
	padding-left:0;
	padding-right:30px;
}

.tm-contact-form{
	max-width:350px;
	margin-left:40px;
	margin-right:40px;
}

.form-control{
	font-family:'Source Sans Pro',sans-serif;
	font-size:1.2rem;
	border:1px solid #D5D6D7;
	box-sizing:border-box;
	padding:15px;
	width:100%;
}

.form-group{
	margin-bottom:25px;
}

select:not([multiple]){
	-webkit-appearance:none;
	-moz-appearance:none;
	background-position:right 15px center;
	background-repeat:no-repeat;
	background-image:url(../img/select-arrow.png);
	padding:14px 20px;
	padding-right:20px;
	color:#666;
}

.tm-contact-links li{
	list-style:none;
	margin-bottom:10px;
}

.tm-contact-link-icon{
	margin-right:15px;
}

.alert{
background-color: #fffae7;
border-color: #f39c12;
border-radius: 2px;
    border-width: 1px;
    border-style: solid;
    padding: 15px 40px 15px 20px;
    margin-bottom: 20px;
    position: relative;
    color: #16191f;
}

address{
	font-style:normal;
}

@media (max-width:850px){
	.tm-contact-row{
		flex-direction:column;
	}

	.tm-contact-col{
		flex:0 0 100%;
		max-width:100%;
		padding-left:30px;
		padding-right:30px;
	}

	.tm-contact-form{
		max-width:100%;
		margin-left:0;
		margin-right:0;
		margin-bottom:50px;
	}
}

@media (max-width:700px){
	.tm-about-row{
		flex-direction:column;
	}
	.tm-about-col{
		flex:0 0 100%;
	}
}

@media (max-width:1264px){
	.tm-main-nav ul{
		max-width:976px;
	}
}

@media (max-width:1020px){
	.tm-main-nav ul{
		max-width:732px;
	}
}

@media (max-width:776px){
	.tm-main-nav ul{
		max-width:488px;		
	}
}

@media (max-width:532px){
	.tm-main-nav ul{
		max-width:244px;
	}
}

@media (max-width:992px){
	.tm-testimonial-row{
		flex-wrap:wrap;
	}
	.tm-testimonial-col{
		flex:100%;
		margin-bottom:50px;
	}	

	.tm-testimonial-col:last-child{
		margin-bottom:0;
	}

	.tm-testimonial-col-2{
		flex:50%;
	}
}

@media (max-width:635px){
	.tm-testimonial-col-2{
		flex:100%;
	}
}

@media (max-width:902px){
	.tm-gallery{
		flex:0 0 50%;
	}
	.tm-gallery-right{
		flex:0 0 38%;
	}
}

@media (max-width:805px){
	.tm-gallery-row{
		flex-direction:column-reverse;
	}
	.tm-gallery{
		flex:0 0 100%;
	}
	.tm-gallery-right{	  
		flex:0 0 100%;
		margin-left:20px;
		margin-right:20px;
	}

	.tm-gallery-right-inner{
		display:flex;
		flex-direction:column-reverse;
	}

	.tm-gallery-links{
		display:flex;
		flex-wrap:wrap;
		margin-top:20px;
		margin-bottom:0;
		margin-left:0;
	}

	.tm-gallery-links li{
		margin-right:20px;
	}
}

@media (max-width:850px){
	.tm-content-row{
		flex-direction:column;
	}

	.tm-intro-col-l{
		margin-right:0;
	}
}

@media (max-width:650px){
	.tm-intro-row{
		flex-direction:column;
	}

	.tm-intro-img{
		max-width:100%;
		max-height:none;
	}
}

@media (max-width:540px){
	.footer{
		flex-direction:column;
		align-items:center;
	}
}

@media (max-width:558px){
	header{
		padding-left:30px;
		padding-right:30px;
	}

	.tm-tagline{
		margin-left:30px;
	}
}