/*
Theme Name: MFM Contracting
Author: 801red
Author URI: http://www.801red.com
*/

/* IMPORTS */
@import url(css/slimbox2.css);
@import url(css/reset.css);

/* COLOR SELECTORS*/
.white, .white a { color:#FFF; }
.black { color:#000; }
.blue { color:#39607A; }
/* MIXIN */

/**
 * 1.0 Global
 * ----------------------------------------------------------------------------- */
 
/* INNER BOX PADDING FOR RESPONSIVE COLUMNS */
* {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */	
}

/* CLEAR FIX */
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }

/* BASIC SETUP */
body {
	font: 14px "Open Sans", Helvetica, Arial, sans-serif;
	background-color: #000;
}

/* TYPOGRAPHY */

/* Headings */
h1, h2, h3, h4, h5, h6, p {
	margin:0 0 12px;
	padding:0;
}
h1, h1 a {
	font: 300 40px/48px "Open Sans", Helvetica, Arial, sans-serif;
	color: #8B2332;
	text-decoration: none;
}
h1.title {
	text-align:center;
	margin:20px 0;
}
h2, h2 a {
	font: 700 30px/36px "Open Sans", Helvetica, Arial, sans-serif;
	color: #39607A;
	text-decoration: none;
}
.module h2 {
	font: 300 30px/38px "Open Sans", Helvetica, Arial, sans-serif;
	text-transform:uppercase;
	letter-spacing:.5em;
	color:#FFF;
	word-spacing:-.3em;
}
h3 {
	font: 700 26px/32px "Open Sans", Helvetica, Arial, sans-serif;
	color:#BEBEBE;
}
h4 {
	font: 700 20px/28px "Open Sans", Helvetica, Arial, sans-serif;
	color: #39607A;
}
h4.title {
	border-bottom:solid 1px #000;
	padding-bottom:4px;
	margin-bottom:6px;
	text-transform:uppercase;
	font-size:16px;
}
h5 {
	font: 300 15px/22px "Open Sans", Helvetica, Arial, sans-serif;
}
h5 a {
	text-decoration: none;
	font-weight: 700;
	color: #39607A;
	-webkit-transition: all .2s;
	-o-transition: all .2s;
	transition: all .2s;
	opacity:1;
}
h5 a:hover { opacity:.6; }
h5 a::after { font-family:"FontAwesome"; content:'\f0a9'; margin-left:6px; }
h6 {
	font: 700 15px/22px "Open Sans", Helvetica, Arial, sans-serif;
}

/* Text elements */
p {
}
p, li {
	font: 15px/22px "Open Sans", Helvetica, Arial, sans-serif;
}
.small, .small p, .secondary p, .caption, .project-module p {
	font: 14px/20px "Open Sans", Helvetica, Arial, sans-serif;
}
p:last-child {
	margin-bottom:0;
}
p.caption {
	color:#FFF;
	padding:10px;
	margin:0;
	background-color:rgba(140,111,75,.8);
	position:absolute;
	bottom:0;
	width:100%;	
}
em { font-style:italic; }
strong { font-weight:700; }
a {
	color:#39607A;
}
a:hover {
}
ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}
.quote {
	padding: 20px;
	margin:20px 0 10px;
	background-color:#bebebe;
	color: #FFF;
}
div blockquote {
	font: italic 400 16px/20px "Open Sans", Helvetica, Arial, sans-serif;
}
.quote p {
	text-align:right;
}
.quote p:before {
	content: "— ";
}
blockquote:before { 
	content: "“";
}
blockquote:after { 
	content: "”";
}

/* TABLES */
table { width:100%; }
.table {
	display:table;
	width:100%;
}
.table-cell {
	display:table-cell;
}
tr { height:40px; }
th { vertical-align:middle; text-align:right; padding:0 10px; }
td { padding:6px 0; }
table.lined td { border-bottom:1px dotted #ddd; }	



/* FORMS */
#searchform {
	display:inline; 
}
.searchbox {
	background-color: #FFF;
	border: solid 1px #9fa1a4;
	color: #9fa1a4;
	font: 11px/18px 'Open Sans',Arial,Helvetica,sans-serif;
	height: 26px;
	padding-left: 5px;
	vertical-align: top;
	margin-left: 5px;
}
input, textarea {
	font: 11px/18px 'Open Sans',Arial,Helvetica,sans-serif;
	border:solid 1px #999;;
	width:100%;
	padding:6px;
}
input.radio, .checkbox { width:auto; }
span.wpcf7-list-item.first { width:25%; }
input.file { width:70%; border:none; }
.wpcf7-submit {
	background-color: #8d6f4a;
	border: medium none;
	color: #fff;
	display: block;
	float: right;
	width: auto;
	margin: 20px 6px;
	text-transform: uppercase;
	padding: 6px 28px;
	cursor:pointer;
}
.wpcf7-form input { margin-bottom:10px; }

/* TAGS */
.hidden    { display:    none !important; }

.block        { display: block        !important; }
.inline       { display: inline       !important; }
.inline-block { display: inline-block !important; }

.left  { float: left  !important; }
.right { float: right !important; }

.text-left   { text-align: left   !important; }
.text-center { text-align: center !important; }
.text-right  { text-align: right  !important; }

.hide{display:none;}
.show{display:block;}

.big { font-size: 125%; }
.small { font-size: 75%; }
.caps { text-transform:uppercase; }
.rounded {
	-moz-border-radius: 9px;
	-webkit-border-radius: 9px;
	border-radius: 9px;
}
.round {
	-moz-border-radius: 50%;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}
.border {
	border:1px solid #000;
}
.boxShadow {
	box-shadow: 0 1px 0 #E6E6E6;
	border-bottom: 1px solid #999999;
}
.textShadow {
	text-shadow: 0 0 6px #054172;
}
.shadow {
	-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
	-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
	/* For IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=10, Direction=0, Color='#999999')";
	/* For IE 5.5 - 7 */
	filter: progid:DXImageTransform.Microsoft.Shadow(Strength=0, Direction=5, Color='#999999');
}
.grayscale {
	-webkit-filter: grayscale(1); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);
	filter: gray; filter: grayscale(100%);
	filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0' /></filter></svg>#greyscale");
}
.menu-toggle { display:none; }
.borderBottom {
	border-bottom:solid 1px #BEBEBE;
	padding-bottom:20px;
	margin-bottom:20px;
}
.fade {
	transition: opacity .2s ease-out;
	-moz-transition: opacity .2s ease-out;
	-webkit-transition: opacity .2s ease-out;
	-o-transition: opacity .2s ease-out;
	opacity:1;
}
.fade:hover {
	opacity:0.8;
}
.relative {	position:relative; }
.absolute {	position:absolute; }
.middle { position: relative; top: 50%; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -o-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); display:block; }
.no-margin { margin:0; }
.none { padding:0; margin:0; }
.breakpoint > div:nth-child(3n+1) {
	clear: left;
}
.masonry { /* Masonry container */
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
    -moz-column-gap: 1em;
    -webkit-column-gap: 1em;
    column-gap: 1em;
}
.masonry > div, .masonry > article { /* Masonry bricks or child elements */
    display: inline-block;
    margin: 0 0 1em;
    width: 100%;
}
/**
 * 2.0 Layout
 * ----------------------------------------------------------------------------- */

.flex-container {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
}
.grid {
	max-width:1060px;
	margin:auto;
}
.row { padding:30px 0; }

/**
 * 4.0 Header
 * ----------------------------------------------------------------------------- */
header {
	background-color:#FFF;
}
header .wrapper {
	background-color:rgba(255,255,255,.9);
	padding:30px 0 0;
	position:fixed;
	width:100%;
	z-index:999;
	top:0; left:0;
}
header .wrapper.fixed {
	border-bottom:solid 1px #CECECE;
}
.wrapper > .grid {
	height:52px;
}
.logo {
	background-image: url(images/MFM-Contracting-logo.svg);
	background-repeat: no-repeat;
	background-position: left top;
	background-size: contain;
	float: left;
	height: 100%;
	width: 300px;
	text-indent: -9999px;
}

/**
 * 5.0 Navigation
 * ----------------------------------------------------------------------------- */

/* MAIN NAVIGATION */
.mainNav {
	padding-top:23px;
	float:right;
}
@media all 
and (min-width: 320px) 
and (max-width: 1014px) {
	header {
		text-align:center;
	}
	.mainNav {
		float:none;
	}
}
.mainNav ul {
	padding:0;
	margin:0;
	list-style: none;
}
.mainNav ul li {
	display:inline-block;
}
.mainNav ul li a {
	transition: color 0.2s ease-out;
	-moz-transition: color 0.2s ease-out; /* Firefox 4 */
	-webkit-transition: color 0.2s ease-out; /* Safari and Chrome */
	font: italic 800 13px/16px "Open Sans", Helvetica, Arial, sans-serif;
	-o-transition: color 0.2s ease-out; /* Opera */
	text-transform: uppercase;
	color: #8B2332;
	text-decoration: none;
	padding: 6px 15px 15px;
	display:inline-block;
	border-top: 4px solid transparent;
}
.mainNav > ul > li:hover > a,
.mainNav > ul > li.current_page_item > a,
.mainNav > ul > li.current-menu-item > a,
.mainNav > ul > li.current-page-ancestor > a {
	border-top:solid 4px #8C6F4B;
}
.mainNav ul li:hover > ul {
	display: block;
	border-bottom: solid 1px #8B2332;
	background-color:rgba(255,255,255,.9);
	/* transition: background-color 0.5s linear 0s; */
}
.mainNav ul li ul {
	display: none;
	position: absolute;
	z-index: 999;
}
.mainNav ul li ul li {
	float:none;
	display:block;
	width:100%;
	height:auto;
	position:relative;
}
.mainNav ul li ul li:hover {
	background:none;
}
.mainNav ul li ul li:last-child {
}
.mainNav ul li ul li a {
	padding:6px 15px;
}
.mainNav ul li ul li.menu-item-has-children {
	background-image: url(images/mouseover-triangle.png);
	background-repeat: no-repeat;
	background-position: 95% 6px;
}
.mainNav ul li ul li:hover > a {
}
.mainNav ul li ul li:last-child {
}
.mainNav ul li ul li ul {
	left: 100%;
	width: 100%;
	top: 0;
}
/* MAIN NAV RESPONSIVE */
	.flexnav { display:none; }
	@media only screen 
	and (max-width: 765px) {
		.mainNav, .secondary nav {
			display: none !important;
		}
		.flexnav {
			display:block;
		}
	}
/* MAIN NAV RESPONSIVE */
	@media all 
	and (min-width: 320px) 
	and (max-width: 768px) {
		nav.mainNav {
			display: none !important;
		}
		.toggle {
			position: relative;
			top: 0;
			right: 0;
			text-indent: -9999px;
			white-space: nowrap;
			overflow: hidden;
			width: 100%;
			height: 36px;
			background: url(images/menu.png) no-repeat center center;
			cursor: pointer;
			z-index: 99;
		}
		nav .mobile {
			display: block !important;
			visibility:visible;
			text-align:center;
			list-style-type:none;
		}
		nav .mobile li {
			padding:6px 0;
		}
		nav a {
			font: 700 18px/26px "Open Sans", Helvetica, Arial, sans-serif;
			text-transform: uppercase;
			color: #8B2332;
			text-decoration:none;
		}
	}
/**
 * 6.0 Asides
 * ----------------------------------------------------------------------------- */

/* SIDEBAR */
aside {
	width:40%;
	float:left;
}
.single-project aside { width:48%; }
.project-details {
	-ms-flex-wrap:wrap;
	    flex-wrap:wrap;
	-webkit-box-align:start;
	    -ms-flex-align:start;
	        align-items:flex-start;
	-webkit-box-pack:justify;
	    -ms-flex-pack:justify;
	        justify-content:space-between;
}
.project-details h6 {
	-webkit-box-flex:0;
	    -ms-flex:0 0 25%;
	        flex:0 0 25%;
	margin-bottom:25px;
}
.project-details div {
	-webkit-box-flex:0;
	    -ms-flex:0 0 70%;
	        flex:0 0 70%;
}
aside ul {
}
aside ul li {
}

/* WIDGETS */
input#mce-EMAIL.email {
}

/**
 * 7.0 Content
 * ----------------------------------------------------------------------------- */

ul.slideshow {
	margin:0;
	padding:0;
}
ul.slideshow li {
	visibility:hidden;
}
.main-image {
	min-height:400px;
	background-position:center center;
	background-size:cover;
	background-repeat:no-repeat;
}
.main-body {
	background-color: #FFF;
	padding: 20px 0 40px;
}
.main-body.padding {
	padding: 150px 0 40px;
}
.secondary {
	padding:30px 0;
	background-color:#39607A;
}
.image {
	width:40%;
	float:left;
}
.content {
	width:55%;
	float:right;
}
.home .content {
	padding:0 100px;
	float:none;
	width:100%;
}
.single-project .content {
	width:48%;
}
.single-project .project-thumb {
	width:32%;
	margin-right:2%;
	margin-bottom:10px;
	float:left;
}
.single-project .project-thumb:nth-child(3n) { margin-right:0; }
.two-column > div {
	-webkit-box-flex:0;
	    -ms-flex:0 0 50%;
	        flex:0 0 50%;
}




/* PHOTO BLOCK */
.photo-block {
	padding:1% 0;
}
.module {
	height:330px;
	overflow:hidden;
	background-size:cover;
	background-position:center center;
	margin-bottom:1%;
	margin-right:20px;
	-webkit-box-flex:1;
	    -ms-flex:1 0 25%;
	        flex:1 0 25%;
}
.module:last-child { margin-right:0; }
@media all 
and (min-width: 320px) 
and (max-width: 768px) {
	.module {
		width:100% !important;
		float:none !important;
	}
}
.module a,
.project-block > a {
	position:absolute;
	width:100%;
    overflow: hidden;
	display:block;
	padding:15px;
	text-decoration:none;
	bottom:0;
	left:0;
	transition: all .2s ease-out;
	-moz-transition: all .2s ease-out;
	-webkit-transition: all .2s ease-out;
	-o-transition: all .2s ease-out;
	background-color:rgba(140,111,75,.8);
}
.module a {
	height:60px;
}
.project-block > a {
	height:40px;
}
.project-block p,
.project-block .learn-more {
	opacity:0;
	display:none;
}
.module:hover a,
.project-block:hover a {
	height:100%;
}
.project-block a:hover p,
.project-block a:hover .learn-more {
	opacity:1;
	display:block;
}
@media all 
and (min-width: 320px) 
and (max-width: 768px) {
	.module a {
		opacity:1;
		background-color:rgba(140,111,75,.8);
	}
}



/* RECENT PROJECTS */
.project-module {
	padding:0 10px;
	-webkit-box-flex:1;
	    -ms-flex:1 0 25%;
	        flex:1 0 25%;
}




/* PROJECT BLOCK */
section.archive {
	margin:auto;
	max-width:940px;
}
section.archive .project-block {
	width:300px;
	float:left;
	margin-right:10px;
	margin-bottom:10px;
}
section.archive .project-block:nth-child(3n) {
	margin-right:0;
}
.project-block {
	height:300px;
	margin-bottom:10px;
}
@media all 
and (min-width: 768px) 
and (max-width: 960px) {
	.project-block {
		height:243px;
	}
}
@media all 
and (min-width: 320px) 
and (max-width: 768px) {
	.project-block img {
		display:none;
		visibility:hidden;
	}
}
.project-block > a {
}
.project-block > a.gold-bg {
	background-color:rgba(140,111,75,.8);
}
.project-block > a.blue-bg {
	background-color:rgba(57,96,122,.8);
}
.project-block > a:hover {
	/*opacity:0;*/
}
.category-description { margin:40px 0; padding:0 60px; }





/* Isotope */
.isotope-container { margin:auto; }
ul.select-group {
	list-style-type:none;
	text-align:center;
	line-height:16px;
	margin-bottom:20px;
}
ul.select-group li {
	display:inline-block;
	margin:0 10px;
	line-height:22px;
}
ul.select-group li a {
	display:block;
	cursor:pointer;
	text-transform:uppercase;
	text-decoration:none;
	color:#646464;
}
ul.select-group li a:hover,
ul.select-group li a.is-checked {
	color:#437F89;
}
.project-block {
	position: relative;
	text-align: center;
	background-repeat: no-repeat;
	background-position: center center;
	background-size:cover;
}
.element-item {
	width:345px;
	height:300px;
	overflow:hidden;
	margin-bottom:10px;
}





/* Values */
.values-row {
	padding:30px 0;
	background-color:#bebebe;
}
.values {
	-ms-flex-wrap:wrap;
	    flex-wrap:wrap;
}
.value {
	-webkit-box-flex:0;
	    -ms-flex:0 0 50%;
	        flex:0 0 50%;
	padding:0 10px;
	margin-bottom:10px;
}





/* WORDPRESS */
.widgets, .widget ul { list-style: none; margin: 0; padding: 0; }
.alignleft { float: left; margin: 0 20px 0 0; }
.alignright { float: right; margin: 0 0 0 20px; }
.aligncenter { display: block; margin: 0 auto; }
.entry {}
.post {}
p.postmetadata {}
.byline {}
.wp-post-image { margin-bottom:10px; }

/* SOCIAL ICONS */
.icon {
	background-attachment: scroll;
	background-repeat: no-repeat;
	display: inline-block;
	transition: opacity .2s ease-out;
	-moz-transition: opacity .2s ease-out;
	-webkit-transition: opacity .2s ease-out;
	-o-transition: opacity .2s ease-out;
	opacity: 1;
	background-position: center center;
	margin: 0 0 0 10px;
}
.icon:hover {
	opacity:.8;
}	
.icon a {
	display: block;
	height: 24px;
	width: 24px;
	text-indent: -9999em;
}
.icon.email { background-image: url(images/icons/email.png); }
.icon.deviantArt { background-image: url(images/icons/deviantart.png); }
.icon.Facebook { background-image: url(images/icons/facebook.png); }
.icon.Feedburner { background-image: url(images/icons/feedburner.png); }
.icon.Flickr { background-image: url(images/icons/flickr.png); }
.icon.Foursquare { background-image: url(images/icons/foursquare.png); }
.icon.Goodreads { background-image: url(images/icons/goodreads.png); }
.icon.Google { background-image: url(images/icons/gplus.png); }
.icon.Instagram { background-image: url(images/icons/instagram.png); }
.icon.LastFM { background-image: url(images/icons/lastfm.png); }
.icon.LinkedIn { background-image: url(images/icons/linkedin.png); }
.icon.Myspace { background-image: url(images/icons/myspace.png); }
.icon.PayPal { background-image: url(images/icons/paypal.png); }
.icon.Pinterest { background-image: url(images/icons/pinterest.png); }
.icon.RSS { background-image: url(images/icons/rss.png); }
.icon.Skype { background-image: url(images/icons/skype.png); }
.icon.Twitter { background-image: url(images/icons/twitter.png); }
.icon.Tumblr { background-image: url(images/icons/tumblr.png); }
.icon.Vimeo { background-image: url(images/icons/vimeo.png); }
.icon.Wordpress { background-image: url(images/icons/wordpress.png); }
.icon.YouTube { background-image: url(images/icons/youtube.png); }

/* BUTTONS */
.button {
	background-color:#BE1E2D;
	color:#FFF;
	display:inline-block;
	text-align:center;
	text-transform:uppercase;
	padding:6px 10px;
}
.learn-more {
	color:#8C6F4B;
	border:solid 1px #8C6F4B;
	display:inline-block;
	padding:6px 20px;
	font: 700 17px/18px "Open Sans", Helvetica, Arial, sans-serif;
	letter-spacing:.04em;
	text-transform:uppercase;
	text-decoration:none;
}
.learn-more.small {
	color:#FFF;
	border:solid 1px #FFF;
	font: 700 14px/16px "Open Sans", Helvetica, Arial, sans-serif;
}
/* COMMENTS */
ol.commentlist{
    margin: 10px 5px;
    padding: 10px;
}
.commentlist .comment-body{
    padding: 10px;
    background: #EFEFEF;
    border: solid thin #DEDEDE;
    margin: 10px 0;
    position: relative;
}
.comment-body a.comment-reply-link{
    position: absolute;
    top: 10px;
    right: 10px;
    color: #AEAEAE;
}
ol.commentlist li{
    list-style: none;
}
ol.commentlist li ul li {
	margin-left:40px;
}
ol.commentlist img.avatar{
    padding: 5px;
    background: #DEDEDE;
    border: solid thin #CECECE;
    float: left;
    display: block;
    margin: 15px;
    width: 32px;
    height: 32px;
}
ol.commentlist .comment-author{
    line-height: 25px;
}
.comment-body cite.fn{
    font-size: 14px;
    font-style: normal;
}
.commentmetadata a{
    margin: 0;
    font-size: 11px;
    color: #999;
}
.comment-body p{
    margin: 5px;
}
.comment-body .comment-author.vcard{
    margin: 0;
}

/**
 * 8.0 Footer
 * ----------------------------------------------------------------------------- */

/* FOOTER */
footer {
	border-bottom:solid 1px #666;
}
footer .grid {
	position:relative;
	align-items:flex-start;
}
footer p, footer h5, footer li {
	font-size:12px;
}
footer p, footer a {
	color:#666;
}
footer .grid > div {
	flex:1;
	margin-right:40px;
}
footer .sub-menu { display:none; }
footer .grid > div:first-child {
	padding-top:60px;
	flex:2;
}
footer .grid > div:last-child {
	margin:0;
}
footer .logo {
	background-image: url(images/MFM-Contracting-logo-footer.svg);
	width: 240px;
	height:40px;
	position:absolute;
	top:0; left:0;
}


/* COLOPHON */
.colophon {
	padding:20px 0;
}
.colophon p {
	color:#666;
	font-size: 10px;
	text-transform:uppercase;
	margin:0;
	width:49%;
	display:inline-block;
}