/*
Theme Name: Mac Munchies
Design: <a href="http://bondcreative.com">Bond Creative</a>
Author: <a href="http://equaltemp.com/">Matthew Fries</a>
Description: Custom theme for Mac Munchies.
Version: 1.0
*/


/* Overwrites and Tag Declarations
----------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	background: transparent;
	border: 0;
	font-size: 100%;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
	word-wrap: normal;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	hyphens: none;
}

@font-face {
	font-family: 'Cera-medium';
	src: url('fonts/Cera_Round_Basic/Medium/CeraRoundBasic-Medium.eot');
	src: url('fonts/Cera_Round_Basic/Medium/CeraRoundBasic-Medium.eot?#iefix') format('embedded-opentype'),
		url('fonts/Cera_Round_Basic/Medium/CeraRoundBasic-Medium.woff') format('woff'),
		url('fonts/Cera_Round_Basic/Medium/CeraRoundBasic-Medium.ttf') format('truetype');
	font-weight:normal;
	font-style:normal;
}

@font-face {
	font-family: 'Cera-thin';
	src: url('fonts/Cera_Round_Basic/Thin/CeraRoundBasic-Thin.eot');
	src: url('fonts/Cera_Round_Basic/Thin/CeraRoundBasic-Thin.eot?#iefix') format('embedded-opentype'),
		url('fonts/Cera_Round_Basic/Thin/CeraRoundBasic-Thin.woff') format('woff'),
		url('fonts/Cera_Round_Basic/Thin/CeraRoundBasic-Thin.ttf') format('truetype');
	font-weight:normal;
	font-style:normal;
}

@font-face {
	font-family: 'Corporative';
	src: url('fonts/Corporative/Regular/corporative-regular-webfont.eot');
	src: url('fonts/Corporative/Regular/corporative-regular-webfont.eot?#iefix') format('embedded-opentype'),
		url('fonts/Corporative/Regular/corporative-regular-webfont.woff') format('woff'),
		url('fonts/Corporative/Regular/corporative-regular-webfont.ttf') format('truetype');
	font-weight:normal;
	font-style:normal;
}


body {
	font-family:'Corporative', Arial, sans-serif;
	background-color:#666;
	color:#666;
	font-size:15px;
}

#page {
	position: relative; /* Set the position property so z-index will apply */
	z-index: 20; /* Make sure this is higher than #menu */
 	height: 100%;
	background-color:#fff;
	box-shadow: 2px 2px 6px #333;
}

a {
	font-weight:bold;
	color:#333;
}

a:HOVER {
	color:#ed1b2d;
}

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

.frame {
	max-width:960px;
	padding:0;
	margin:0 auto;
}

#header {
	box-shadow: 0px 0px 15px #666;
	position:fixed;
	width:100%;
	background-color:#fff;
	z-index:30;
	/* max-height:187px; */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
}

#logo {
	width:331px;
	height:auto;
	float:left;
}

#menu_extras {
	float:right;
	padding-top:30px;
	padding-right:40px;
}

#menu_extras .header_icon {
	width:34px;
	height:34px;
	display:block;
	margin-bottom:5px;
}


ul.main_nav {
	display:block;
	list-style: none;
	padding-top:30px;
	margin-left:375px;
	width:410px;
}

ul.main_nav li {
	display:inline-block;
	margin-right:8px;
	margin-bottom:8px;
	white-space:nowrap;
}

ul.main_nav li:first-child {
	display:block;
}

ul.main_nav li a {
	font-family:'Cera-medium', Arial, sans-serif;
	display:block;
	width:105px;
	background-color:#e6e6e6;
	color:#666;
	font-size:1em;
	border-radius:9px;
	padding:9px;
	text-align:center;
	text-decoration:none;
	white-space:nowrap;
}

ul.main_nav li a:HOVER {
	background-color:#fddd7f;
	color:#000;
}

ul.main_nav li.current-menu-item a,
ul.main_nav li.current-menu-item a:HOVER, 
ul.main_nav li.current_page_item a,
ul.main_nav li.current_page_item a:HOVER,
ul.main_nav li.current-page-parent a, 
ul.main_nav li.current-page-parent a:HOVER
 {
 	background-color:#ffcc39;
	color:#000;
	font-weight:bold;
}


/* --- Featured Image ------------------- */

#featured_image {
	position:relative;
	max-width:960px;
	padding:185px 0 0 0;
	margin:0px auto;
	max-height:400px;
	overflow:hidden;
}

#feature_slider_list {
	z-index:0;
}

#featured_image img {
	width:100%;
	height:auto;
}

#featured_text {
	position:absolute;
	width:100%;
	bottom:0;
	left:0;
}

#featured_text h2 {
	width:100%;
	padding:30px 40px;
	background:transparent url(images/bg_feature.png);
	color:#fff;
	font-size:3em;
	font-family:'Cera-thin', Arial, sans-serif;
}

#featured_text h2 b {
	font-family:'Cera-medium', Arial, sans-serif;
	font-weight:normal;
}

.home #featured_image {
	max-height:450px;
}

.home #featured_text h2 {
	background-image:url(images/bg_feature-home.png);
}


/* --- Content Area --------------------- */

#content {
	padding-top:30px;
	padding-bottom:40px;
	line-height: 1.4em;
}

#content .frame {
	padding:0 40px;
	max-width:880px;
}

#content p {
	margin:0 0 1.2em 0;
}

#content ul, ol {
	margin:0 0 1.4em 1.5em;
}

#content li {
	margin:0 0 .3em 0;
	
	
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;    
	
}



#content h1 {
	font-family:'Cera-medium', Arial, sans-serif;
	font-weight:normal;
	font-size:2em;
	margin:0 0 1em 0;
	line-height:1em;
}

#content h2 {
	font-family:'Cera-medium', Arial, sans-serif;
	font-weight:normal;
	font-size:1.5em;
	margin: 1em 0 .5em 0;
	line-height: 1.2em;
}

#content h3 {
	font-family:'Cera-medium', Arial, sans-serif;
	font-weight:normal;
	font-size:1.5em;
	margin:.5em 0 .1em 0;
}

#content h4 {
	overflow: hidden;
	text-align: center;
	font-family:'Cera-medium', Arial, sans-serif;
	font-size:1.5em;
	line-height:normal;
	margin:40px; 0 40px 0;
}

#content h4:before,
#content h4:after {
	background-color: #666;
	content: "";
	display: inline-block;
	height: 1px;
	position: relative;
	vertical-align: middle;
	width: 50%;
}

#content h4:before {
	right: 0.5em;
	margin-left: -50%;
}

#content h4:after {
	left: 0.5em;
	margin-right: -50%;
}

#content h4.blue:before,
#content h4.blue:after {
	background-color:#006ab6;
}

#content h4.green:before,
#content h4.green:after {
	background-color:#009a66;
}

#content h4.red:before,
#content h4.red:after {
	background-color:#ed1b2d;
}

#content h4.purple:before,
#content h4.purple:after {
	background-color:#9e005d;
}



.clear_floats,
.clearfloats {
	clear:both;
	padding-top:10px;
}


.red {
	color:#ed1b2d;
}

.blue {
	color:#006ab6;
}

.green {
	color:#009a66;
}

.purple {
	color:#9e005d;
}



.three_col, 
.two_col {
	-webkit-column-gap:40px; /* Chrome, Safari, Opera */
	-moz-column-gap:40px; /* Firefox */
	column-gap:40px;	
	margin-bottom:10px;
}

.two_col {
	-webkit-column-count:2; /* Chrome, Safari, Opera */
	-moz-column-count:2; /* Firefox */
	column-count:2;
}

.three_col {
	-webkit-column-count:3; /* Chrome, Safari, Opera */
	-moz-column-count:3; /* Firefox */
	column-count:3;
}

div.three_col,
div.two_col {
	margin-bottom:50px;
}


.alignleft {
	float:left;
	margin: .2em 1.3em .5em 0;
	max-width:70%;
	height:auto;
}

.alignright {
	float:right;
	margin: .2em 0 .5em 1.3em;
	max-width:70%;
	height:auto;
}

.centered, 
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}


a.button,
input[type=submit] {
	font-family:'Cera-medium', Arial, sans-serif;
	display:inline-block;
	color:#666;
	font-size: 1.3em;
	text-decoration:none;
	border:2px solid #666;
	padding:8px 20px;
	border-radius:9px;
	-webkit-appearance: none;
}

a.button:HOVER,
input[type=submit]:HOVER {
 	background-color:#ffcc39;
	border-color: #ffcc39;
	color:#000;
	cursor:pointer;
}



.gallery img {
	border:none !important;
}

.gallery {
	margin-bottom: 3em !important;
}

input[type=text],
input[type=email],
input[type=password],
textarea {
	width:90%;
	border:solid 1px #999;
	padding: .5em;
	font-size:1.2em;
	font-family:'Corporative', Arial, sans-serif;
	color:#888;
	outline: none;
}


.form_item {
	font-size:.9em;
	font-weight:bold;
	color:#333;
}

.wpcf7-list-item-label {
	margin-right:10px;
}

input.small_number {
	width:20px;
}


/* --- Healthy Eating Box ---------------- */

#healthy_eating {
	text-align:center;
	margin:50px -40px 50px -40px;
}

#healthy_eating a {
	font-weight: normal;
}

#he_title {
	font-family:Arial, Helvetica, sans-serif;
	text-transform:UPPERCASE;
	text-align:center;
	background-color:#009a66;
	color:#fff;
	font-size:2.3em;
	line-height:normal;
	padding:10px;
	font-weight:bold;
}

#he_content {
	background-color:#eae7e1;
	padding:30px 50px;
	text-align:left;
}

#he_footer {
	background-color:#ffd500;
	text-align:center;
}

#he_footer img {
	width:497px;
	max-width: 60%;
}

#he_trigger {
	clear:both;
	text-align:center;
	padding-top:20px;
	cursor:pointer;
}

#he_trigger:HOVER {
	color:#009a66;
}

#he_trigger:before,
#he_trigger:after {
	background-color: #666;
	content: "";
	display: inline-block;
	height: 1px;
	position: relative;
	vertical-align: middle;
	width: 15%;
}

#he_trigger:before {
	right: 0.5em;
	margin-left: -50%;
}

#he_trigger:after {
	left: 0.5em;
	margin-right: -50%;
}

#he_extra {
	display:none;
	padding-top:25px;
}

#he_extra h3 {
	margin-top:5px;
}

#he_extra .col {
	width:25%;
	float:left;
	background-image: url(images/dot_blue.png);
	background-repeat: no-repeat;
	background-size: 30px 30px;
	padding-left: 40px;
	margin-left:2%;
	min-height:140px;
}

#he_extra .red p, 
#he_extra .blue p, 
#he_extra .green p {
	color:#666;
}

#he_extra .red.col { 
	background-image: url(images/dot_red.png); }
#he_extra .green.col { 
	background-image: url(images/dot_green.png); 
}


/* --- Icon Box -------------------------- */

#content .icon_box {
	width:400px;
	margin-top: 15px;
	margin-bottom: 15px;
}

#content .icon_box img {
	width:84px;
	float:left;
	margin-right:20px;
}

#content .icon_box h2 {
	padding-top:.2em;
	margin-bottom:0;
}

#content .icon_box p {
	font-size:.9em;
	line-height:1.3em;
}

#content .icon_box.center {
	margin-right:auto;
	margin-left:auto;
}

#content .icon_box.right {
	float:right;
}


/* --- Footer Area ----------------------- */

#footer {
	background-color:#666;
	color:#eee;
	font-size:.8em;
}

#footer .frame {
	background: transparent url(images/bg_footer.png) repeat-y;
	padding-top:20px;
	padding-bottom:30px;
}

#footer p {
	margin:0 40px 0 40px;
}

#footer a,
#footer a:HOVER {
	color:#fff;
}



/* --- TRANSITIONS & EFFECTS ------------- */

a,
ul.main_nav li a,
a.button,
input[type=submit],
#he_trigger

{
	-webkit-transition: all 500ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
	   -moz-transition: all 500ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
		-ms-transition: all 500ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
		 -o-transition: all 500ms cubic-bezier(0.250, 0.100, 0.250, 1.000);
			transition: all 500ms cubic-bezier(0.250, 0.100, 0.250, 1.000); /* ease (default) */

	/* thank you http://matthewlein.com/ceaser/ */
}


/* --- Search Stuff ---------------------- */

#search_screen {
	display:none;
	position:fixed;
	top:0;
	left:0;
	height:188px;
	width:100%;
	background-color:#333;
	opacity: 0.8;
}

#search_form {
	display:none;
	position: absolute;
	white-space: nowrap;
	padding-right:10px;
}

#searchform {
	position:relative;
	display:block;
	margin:0 auto;
	width:500px;
}

#search_form input[type="text"] {
	border-radius: 16px;
	height:26px;
	padding:4px 10px;
	border:none;
	background-color:#fff;
	font-size:1em;
	margin:0px !important;
	outline: none;
}

#search_form #search_submit {
	height:34px;
	width:34px;
	position:absolute;
	right:-10px;
}

#search_form #search_close {
	height:34px;
	width:34px;
	vertical-align: bottom;
	margin-right:5px;
}

#search_close,
#search_submit {
	cursor:pointer;
}

/* --- Mobile Menu Stuff ----------------- */

ul.mobile_nav {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
 
	width: 220px;
	padding: 10px 10px;
	margin: 0;
 
	list-style: none;
	z-index: 10; /* Make sure the z-index is lower than the #page */
}

ul.mobile_nav a {
	display: block;
	color: #fff;
	padding: 15px 0;
	
	font-family:'Cera-medium', Arial, sans-serif;
	font-size:1.2em;
	font-weight:normal;
	text-transform:UPPERCASE;
	text-decoration:none;
}

ul.mobile_nav ul {
	list-style:none;
	padding-left:10px;
}

ul.mobile_nav li {
	border-bottom:solid 1px #ccc;
	padding:0px 5px;
	margin:0;
}

ul.mobile_nav ul {
	margin-left:0;
}	

ul.mobile_nav ul li {
	border:none;
}

/* Show the menu when animating or visible */
.animating ul.mobile_nav, 
.menu-visible ul.mobile_nav {
  display: block;
}

/***
 * If the animating class is present then apply
 * the CSS transition to #page over 250ms.
 */
.animating #page,
.animating #bg_image {
  transition: transform .25s ease-in-out;
  -webkit-transition: -webkit-transform .25s ease-in-out;
}

/***
 * If the left class is present then transform
 * the #page element 240px to the left.
 */	
.animating.left #page,
.animating.left #bg_image {
  transform: translate3d( -240px, 0, 0 );
  -webkit-transform: translate3d( -240px, 0, 0 );
}

/***
 * If the right class is present then transform
 * the #page element 240px to the right.
 */
.animating.right #page,
.animating.right #bg_image {
  transform: translate3d( 240px, 0, 0 );
  -webkit-transform: translate3d( 240px, 0, 0 );
}

/***
 * If the menu-visible class is present then
 * shift the #page 240px from the right edge
 * via position: absolute to keep it in the 
 * open position. When .animating, .left and
 * .right classes are not present the CSS
 * transform does not apply to #page.
 */
.menu-visible #page,
.menu-visible #bg_image {
	left: -240px;
}

.menu-visible #header {
	background-position: -240px 0px;
}

#page, .mobile_nav {
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
}

#toggle_menu, 
#mobile_default_header {
	display:none;
}


/* --- Scrolling header -------------------------- */

body.scroll #logo {
	width:250px;
}

body.scroll ul.main_nav li:first-child {
	display:none;
}

body.scroll ul.main_nav {
	padding-top:15px;
	margin-left:265px;
}

body.scroll #menu_extras {
	padding-top:15px;
	padding-right:15px;
}

body.scroll #menu_extras .header_icon {
	width:34px;
	height:34px;
	display:block;
	margin-bottom:5px;
}

body.scroll #search_form {
	top:50px;
}


/* --- Logo Slider ---------------------------- */

.logo_slider_box {
	border:solid 1px #000;
	padding:15px 0;
	
}

.logo_slider {

}

#icon_slider_list.logo_slider img {
	margin: 0 15px;
	vertical-align:middle;
}


/* --- Media Queries -------------------------- */


@media only screen and (max-width: 900px) {
	ul.main_nav li:first-child {
		display:none;
	}
	
	#logo {
		width:250px;
	}
	
	ul.main_nav {
		padding-top:15px;
		margin-left:265px;
	}
	
	#menu_extras {
		padding-top:15px;
		padding-right:15px;
	}
	
	#menu_extras .header_icon {
		width:34px;
		height:34px;
		display:block;
		margin-bottom:5px;
	}
}


@media only screen and (max-width: 600px) {

	body {
		font-size:16px;
	}
	
	img {
		max-width:100%;
	}
	
	#logo {
		width:200px;
	}
	
	
	#header {
		position:relative;
	}
		
	#featured_image {
		padding-top:0;
	}
	
	#featured_text h2 {
		font-size:1.3em;
		padding:12px 15px;
	}
	
	ul.main_nav,
	#menu_extras,
	#search_screen,
	#search_form {
		display:none;
	}
	
	#toggle_menu {
		display:inline-block;
		float:right;
		height:48px;
		width:48px;
		margin:20px 15px 0 0;
	}
	
	#content .frame {
		padding:0 20px;
	}
	
	#content #healthy_eating {
		margin-left:0;
		margin-right:0;
	}
	
	#he_title {
		font-size:1.5em;
	}
	
	#he_content {
		padding:20px;
	}
	
	#he_extra .col {
		width:inherit;
		float:none;
		min-height:auto;
	}
	
	#he_extra .col h3 {
		text-align:left;
		padding-top:5px;
	}
	
	#content h1 {
		font-size:1.4em;
		text-align:center;
	}
	
	#content h2,
	#content h3 {
		font-size:1.2em;
		text-align:center;
	}
	
	#content h4 {
		font-size: 1.1em;
	}
	
	#content .icon_box {
		width:80%;
		float:none;
		margin-right:auto;
		margin-left:auto;
	}
	#content .icon_box img {
		width:44px;
		margin-right:0;
		margin-top:5px;
	}
	
	#content .icon_box h2 {
		text-align:left;
		padding-top:0;
		margin-left:55px;
	}
	
	#content .icon_box p {
		margin-left:55px;
	}
	
	#gallery-1 .gallery-item {
		float: none !important;
		width: auto !important;
	} 
	
	.two_col,
	.three_col {
		-webkit-column-count:1; /* Chrome, Safari, Opera */
		-moz-column-count:1; /* Firefox */
		column-count:1;
	}
	
}
