/*
Theme Name: CMG Theme
Author: MediaOnMars
Author URI: http://mediaonmars.com.au/
Version: 1.0
License: GNU General Public License
*/

/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */

html, body, ol, ul, li, h1, h2, h3, h4, h5, h6, p, form {
	border: none;
	margin: 0;
	padding: 0;
}
* {outline: 0;}
table {
	border-collapse: separate;
	border-spacing: 0;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
img {
	vertical-align: middle;
	max-width: 100%;
	height: auto;
}
a img {
	border: none;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol li, ul li {
	list-style-position: outside;
}
input, textarea {-webkit-border-radius: 0;}
textarea, input[type="text"], input[type="email"], input[type="button"], input[type="submit"] {-webkit-appearance: none;}

/* =Global
----------------------------------------------- */

body {
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	color: #000;
	background: url(images/bg.jpg) repeat;
}
body.home {background: #008e9b;}

h1.entry-title, .block_title {
	background: #008e9b;
	color: #fff;
	font-family: 'Roboto Condensed', sans-serif;
	padding: 9px 180px 10px;
	font-size: 30px;
	font-weight: normal;
	text-transform: uppercase;
}
.block_title {
	padding-left: 18px;
	padding-right: 18px;
}

body.page-template-linley-php h1.entry-title,
body.page-template-rendering-php h1.entry-title,
body.page-template-cmfood-php h1.entry-title {
	background: #262e30;
	border-top: 10px solid #008b99;
}

.block_title a {color: #fff;}

h2, h3, h4, h5, h6 {
	font-weight: normal;
	color: #008e9a;
	text-transform: uppercase;
	margin-bottom: 8px;
	font-family: 'Roboto Condensed', sans-serif;
}

h2 {font-size: 28px;}
h3 {font-size: 24px;}
h4 {font-size: 22px;}
h5 {font-size: 18px;}
h6 {font-size: 16px;}

blockquote {
	border: 5px solid #efefef;
	color: #008e9b;
	padding: 15px 18px 1px 18px;
	margin: 0 0 30px 0;
}

#main blockquote p {margin-bottom: 15px;}

hr {
	height: 1px;
	font-size: 1px;
	border: none;
	border-top: 1px solid #7f7f7f;
	background: none;
	clear: both;
	margin: 0 0 30px 0;
}

a {
	color: #008e9b;
	text-decoration: none;
}
a:focus,
a:active,
a:hover {
	text-decoration: none;
	color: #53b9c2;
}

.clear {
	clear: both;
	font-size: 1px;
}

/* =Structure
----------------------------------------------- */

.wrapper {
	width: 1000px;
	padding: 0 20px;
	margin: 0 auto;
}

/* Block Alignment */

.alignleft {
	float: left;
	margin: 0 20px 10px 0;
}
.alignright {
	float: right;
	margin: 0 0 10px 20px;
}
.aligncenter {
	margin-left: auto;
	margin-right: auto;
}
p.wp-caption-text {
	margin-bottom: 0 !important;
	background: #7f7f7f;
	color: #fff;
	text-align: center;
	font-family: 'Roboto Condensed', sans-serif;
	padding: 5px 15px;
}

/* Text Alignment */

.textleft {text-align: left;}
.textright {text-align: right;}
.textcenter {text-align: center;}
.textjustify {text-align: justify;}

/* =Header
----------------------------------------------- */

#branding {
	padding-bottom: 9px;
	position: relative;
	z-index: 9;
	height: 170px;
	background: url(images/header_bg.png) repeat-x left top;
}

#branding .wrapper {position: relative;}

#branding #site-title {
	position: absolute;
	left: 11px;
	top: 0;
}
#branding #site-title a {
	text-decoration: none;
	display: block;
	width: 258px;
	height: 199px;
	background: url(images/logo.png) no-repeat left top;
	text-indent: -9999px;
}

.header_right {
	float: right;
	text-align: right;
	width: 740px;
	padding-top: 24px;
}

.header_right .widget {
	font-size: 16px;
	text-transform: uppercase;
	color: #fff;
	font-family: 'Roboto Condensed', sans-serif;
	margin-bottom: 28px;
}

.header_right .widget a {
	display: inline-block;
	color: #fff;
	padding-left: 28px;
	background: url(images/icon_email.png) no-repeat 0 5px;
}
.header_right .widget a:hover {color: #ccc;}

.home_icon, .show_nav {display: none;}

/* =Top Menu
-------------------------------------------------------------- */

#topmenu {
	font-size: 18px;
	text-transform: uppercase;
	font-family: 'Roboto Condensed', sans-serif;
	margin-bottom: 7px;
	float: right;
}

#topmenu li {
	display: inline;
	margin-left: 15px;
}

#topmenu a {color: #53b9c2;}
#topmenu a:hover {color: #008e9b;}

#socialmenu {
	float: right;
	text-align: right;
	padding-top: 1px;
	margin-left: 15px;
}

#socialmenu li {
	display: inline;
	margin-left: 4px;
}

#socialmenu li a {
	display: inline-block;
	height: 0;
	padding-top: 20px;
	width: 20px;
	overflow: hidden;
}

#socialmenu li.icon_fb a {background: url(images/icon_fb.png) no-repeat 0 0;}
#socialmenu li.icon_twitter a {background: url(images/icon_twitter.png) no-repeat 0 0;}
#socialmenu li.icon_linkedin a {background: url(images/icon_linkedin.png) no-repeat 0 0;}

/* =Main Menu
-------------------------------------------------------------- */

#mainmenu {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 24px;
	text-transform: uppercase;
	position: relative;
	z-index: 999;
}

#mainmenu li {
	display: inline-block;
	position: relative;
	z-index: 999;
	list-style-type: none;
	margin-left: 23px;
	padding-bottom: 39px;
}

#mainmenu a {color: #008e9a;}
#mainmenu a:hover, #mainmenu li:hover > a {color: #53b9c2;}

#mainmenu ul#menu-main-menu > li.current-menu-item > a, #mainmenu ul#menu-main-menu > li.current-menu-parent > a {color: #fff;}

/* if Submenu -------------------------------------------------- */

#mainmenu ul.sub-menu {
	display: none;
	position: absolute;
	text-align: left;
	min-width: 210px;
	max-width: 280px;
	background: #fff;
	z-index: 999;
	top: 65px;
	left: 0;
}
#mainmenu li:hover > ul.sub-menu {display: block;}

#mainmenu > .menu > ul > li:last-child > ul.sub-menu {
	left: auto;
	right: 0;
}

#mainmenu > .menu > ul > li:last-child > ul.sub-menu ul {
	left: auto;
	right: 100%;
}

#mainmenu ul.sub-menu li {
	display: block;
	margin-left: 0;
	padding-bottom: 0;
}

#mainmenu ul.sub-menu a {
	font-size: 18px;
	display: block;
	padding: 7px 18px;
	/*height: 39px;
	line-height: 39px;*/
	border-top: 1px solid #ccc;
}

#mainmenu ul.sub-menu li.current-menu-item > a, #mainmenu ul.sub-menu a:hover {
	background: #008e9a;
	color: #fff;
}

#mainmenu ul.sub-menu ul.sub-menu {
	left: 100%;
	top: 0;
}

/* =Content
----------------------------------------------- */

.slider {
	margin: -9px 0 -100px;
	background: url(images/bg.jpg) repeat;
}
.slider_inner {
	background: url(images/slider_shadow.png) repeat-x left bottom;
	padding-bottom: 40px;
}
.slider .wrapper {width: 1100px;}

#main {margin-top: -9px;}
body.home #main {
	margin-top: 0;
	padding-top: 0;
}

#primary {
	position: relative;
	padding: 0 140px;
	margin-bottom: 20px;
	background: #efefef;
}

body.home #primary {
	padding: 0;
	margin-bottom: 0;
	background: none;
}

#content {
	background: #fff;
	padding: 35px 38px 10px;
}

body.home #content, .news_widget {
	background: none;
	padding: 0;
	float: left;
	width: 490px;
	margin-bottom: 40px;
}
.news_widget {float: right;}

.inner {
	background: #fff;
	padding: 15px 18px;
}

#content p, #content ul, #content ol {margin-bottom: 30px;}
.pum-content p, .pum-content ul, .pum-content ol {margin-bottom: 13px;}
body.home #content p, body.home #content ul, body.home #content ol, body.home .news_widget p, body.home .news_widget ul, body.home .news_widget ol {margin-bottom: 13px;}
#content ul, #content ol, .pum-content ul, .pum-content ol {margin-left: 30px;}
.pum-title {
	text-transform: uppercase !important;
	margin-bottom: 25px;
}

.featured {position: relative;}

.stamp {
	position: absolute;
	right: 14px;
	bottom: 18px;
	z-index: 9;
}

.subpage_logo {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 9;
}

.rspca_logo {
	position: absolute;
	right: 15px;
	bottom: 15px;
	z-index: 9;
}

.subpage_nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 41px;
	height: 50px;
	padding-right: 50px;
	z-index: 5;
	background: url(images/submenu_green.png) no-repeat right top;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 18px;
	text-transform: uppercase;
	color: #fff;
}

body.page-template-linley-php .subpage_nav, body.page-template-cmfood-php .subpage_nav {
	background: url(images/submenu_green3.png) no-repeat left bottom;
	right: auto;
	left: 23px;
	bottom: 146px;
	width: 195px;
	height: auto;
	padding: 0 0 16px;
	text-align: center;
}
body.page-template-linley-php .subpage_nav {background: url(images/submenu_green.png) no-repeat left bottom;}
body.page-template-rendering-php .subpage_nav {background: url(images/submenu_green2.png) no-repeat right top;}

.subpage_nav ul {
	background: #a9c65a;
	height: 50px;
	line-height: 50px;
	padding-left: 258px;
	padding: 0 5px 0 258px;
}

body.page-template-rendering-php .subpage_nav ul {background: #62bb47;}

body.page-template-linley-php .subpage_nav ul, body.page-template-cmfood-php .subpage_nav ul {
	background: #008b99;
	height: auto;
	line-height: 31px;
	padding: 15px;
}
body.page-template-linley-php .subpage_nav ul {background: #a9c65a;}

/*
.subpage_nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 41px;
	height: 50px;
	padding-right: 50px;
	z-index: 5;
	background: url(images/submenu_green.png) no-repeat right top;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 18px;
	text-transform: uppercase;
	color: #fff;
}

.subpage_nav ul {
	background: #a9c65a;
	height: 50px;
	line-height: 50px;
	padding-left: 258px;
	padding: 0 72px 0 258px;
}
*/

.subpage_nav li {
	display: inline;
	margin-right: 14px;
}

.subpage_nav a {color: #fff;}
.subpage_nav a:hover, .subpage_nav li.current_page_item a, .subpage_nav li.current_page_ancestor a {color: #008e9a;}

body.page-template-rendering-php .subpage_nav a:hover,
body.page-template-cmfood-php .subpage_nav a:hover,
body.page-template-rendering-php .subpage_nav li.current_page_item a,
body.page-template-cmfood-php .subpage_nav li.current_page_item a,
body.page-template-rendering-php .subpage_nav li.current_page_ancestor a,
body.page-template-cmfood-php .subpage_nav li.current_page_ancestor a {color: #1d1919;}

body.page-template-linley-php .subpage_nav li, body.page-template-cmfood-php .subpage_nav li {
	margin-right: 0;
	display: block;
	line-height: 22px;
	margin: 5px 0;
}

.news_entry {
	position: relative;
	padding-right: 90px;
	min-height: 105px;
}

.date {
	text-align: center;
	position: absolute;
	right: 0;
	top: 0;
	width: 70px;
	height: 97px;
	padding-top: 8px;
	text-transform: uppercase;
	color: #fff;
	background: url(images/date_bg.png) no-repeat right top;
}
.date span {display: block;}

.date .day {font-size: 36px; line-height: 36px;}
.date .month {font-size: 20px; line-height: 24px;}
.date .year {font-size: 17px;}

.read_more {
	text-transform: uppercase;
	margin-top: -20px;
}
body.home .read_more {margin-top: 0;}

.button a {
	display: inline-block;
	background: #008e9b;
	color: #fff;
	font-size: 16px;
	padding: 8px 16px;
	margin-bottom: 30px;
}

.button a:hover {background: #53b9c2;}

.nav-previous {
	float: left;
	text-transform: uppercase;
}

.nav-next {
	float: right;
	text-transform: uppercase;
}

#content div.wpcf7 {
	float: right;
	width: 310px;
	padding-left: 38px;
}
#content .wpcf7 p {margin-bottom: 10px;}
span.wpcf7-checkbox .wpcf7-list-item {display: block;}
.wpcf7 textarea {width: 300px;}

/* =Homepage boxes
----------------------------------------------- */

.homepage_boxes {
	margin-bottom: 40px;
}

.homepage_boxes .home_box {
	background: #fff;
	float: left;
	width: 320px;
	margin-left: 20px;
	padding-bottom: 14px;
}

.homepage_boxes .home_box:first-child {margin-left: 0;}

.home_box h5 {
	background: #262e30;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	margin-bottom: 0;
	padding: 13px 20px;
}

.home_box .box_inner {
	position: relative;
	padding: 13px 62px 13px 20px;
}

.home_box a.box_arrow {
	position: absolute;
	right: 20px;
	bottom: 10px;
}

.home_box .box_logo {
	padding: 0 20px;
	text-align: center;
}

/* =Footer
----------------------------------------------- */

#footer {
	background: #262e30;
	padding: 17px 0;
	color: #979797;
}
#footer a {color: #979797;}
#footer a:hover {color: #008e9b;}

#footer .alignright {margin: 0;}
#footer .footer_widgets {padding-top: 18px;}

#footer .footer_widgets .widget {
	float: left;
	width: 150px;
	padding-right: 20px;
}

#footer .footer_widgets .widget:first-child {width: 320px;}
#footer .footer_widgets .widget:last-child {width: 190px;}

.copyrights {
	text-transform: uppercase;
	color: #7f7f7f;
	background: url(images/bg.jpg) repeat;
	padding: 26px 0;
	white-space: nowrap;
}

.authors {float: left;}
#site-generator {float: right;}

.copyrights a {color: #7f7f7f;}
.copyrights a:hover {color: #008e9a;}

@media screen and (min-width: 661px) and (max-width: 1500px) {
	#mainmenu ul.sub-menu ul.sub-menu {
		right: 100%;
		left: auto;
	}
}

/* Tablets */
@media screen and (min-width: 661px) and (max-width: 1200px) {
	html, body {width: 1140px;}
}

/* Phones */
@media screen and (max-width: 660px) {
	
	body {background: url(images/bg.jpg) repeat !important;}
	#socialmenu {display: none;}
	#content img {max-width: 286px !important;}
	.wrapper, .slider .wrapper {
		padding: 0;
		width: auto;
	}
	
	#branding {
		padding-bottom: 18px;
		height: 40px;
		margin-bottom: 62px;
		background: url(images/header_bg.png) repeat-x left bottom;
	}

	#branding #site-title {
		position: absolute;
		left: 41px;
		top: 0;
	}
	#branding #site-title a {
		width: 238px;
		height: 168px;
		background: url(images/logo_mobile.png) no-repeat left top;
	}

	.header_right {
		float: none;
		text-align: left;
		width: auto;
		padding-top: 0;
	}
	
	.home_icon {
		display: block;
		float: left;
		width: 48px;
		height: 40px;
		background: url(images/icon_home.png) no-repeat left top;
		text-indent: -9999px;
	}
	
	.show_nav {
		display: block;
		float: right;
		width: 48px;
		height: 40px;
		background: url(images/mobile_nav_button.png) no-repeat left top;
		text-indent: -9999px;
	}

	.header_right .widget {display: none;}
	
	#topmenu {display: none;}
		
	.slider {
		background: #fff;
		border-top: 10px solid #262e30;
		margin: 0px 0 0 0;
	}
	
	.slider_inner {
		background: none;
		padding-bottom: 0;
	}
	#main {
		margin-top: 0;
		padding-top: 21px;
	}
	
	#primary {
		background: none;
		padding: 0;
	}
	#content {padding: 17px;}
	
	body.home #content, .news_widget {
		float: none;
		margin-bottom: 20px;
		width: auto;
		position: relative;
	}
		
	h1.entry-title, .block_title {
		padding-left: 17px;
		padding-right: 17px;
	}
	
	.subpage_logo img {width: 150px;}
	.subpage_nav {display: none;}
	
	#content .alignleft, #content  .alignright, .pum-content .alignleft, .pum-content .alignright {
		float: none;
		clear: both;
		display: block;
		margin: 0;
		max-width: 286px !important;
	}
	
	.block_title {text-align: center;}
	.news_widget .block_title {text-align: left;}
	.date {right: 19px;}
	.news_widget .inner {padding-top: 25px;}
	
	.news_entry {
		min-height: 1px;
		padding-right: 0;
		position: static;
	}
	
	.homepage_boxes {margin-bottom: 0;}

	.homepage_boxes .home_box {
		float: none;
		width: auto;
		margin-left: 0;
		padding-bottom: 14px;
	}
	
	#footer {
		padding: 17px;
		position: relative;
	}
	#footer .footer_widgets {padding-top: 0;}
	
	#footer h6 {margin-bottom: 0;}
	
	#footer .alignright {
		position: absolute;
		right: 20px;
		bottom: 30px;
	}

	#footer .footer_widgets .widget {
		float: none;
		width: auto;
		padding-right: 0;
		margin-bottom: 8px;
	}

	#footer .footer_widgets .widget:first-child {width: auto;}
	#footer .footer_widgets .widget:last-child {width: auto;}

	.copyrights {
		background: none;
		padding: 10px 0;
		line-height: 29px;
		white-space: nowrap;
		text-align: center;
	}

	.authors, #site-generator {float: none;}	
	
	iframe {max-width: 100% !important;}
	
	/* =Menu
	-------------------------------------------------------------- */
	
	a.show_nav {
		float: right;
		display: block;
		text-indent: -9999px;
		height: 40px;
		width: 40px;
		background: url(images/mobile_nav_button.png) no-repeat right top;
	}
	
	#mainmenu {
		clear: both;
		display: none;
		position: absolute;
		top: 49px;
		left: 0;
		right: 0;
		z-index: 99999;
		text-align: left;
		margin: 0;
		background: #008E9B !important;
	}

	#mainmenu ul {
		list-style-type: none;
		position: static !important;
		font-size: 16px;
	}
	
	#mainmenu ul.sub-menu {background: #008E9B;}
	#mainmenu ul.sub-menu a {font-size: 15px;}
	
	#mainmenu ul ul {
		padding-top: 0;
		width: auto;
	}

	#mainmenu li {
		display: block !important;
		float: none !important;
		position: relative;
		margin: 0 !important;
		padding-bottom: 0;
	}

	#mainmenu a {
		display: block;
		padding: 8px 10px;
		color: #fff;
		height: auto !important;
		line-height: auto !important;
		text-decoration: none;
		border-top: 1px solid #fff;
		border-right: none !important;
	}

	#mainmenu ul#menu-main-menu > li.has_sub > a {
		background: url(images/mobile_nav_arrow.png) no-repeat 290px;
	}

	#mainmenu a img {display: none;}

	#mainmenu li:hover > a, #mainmenu ul#menu-main-menu > li.current-menu-ancestor > a, #mainmenu ul#menu-main-menu > li.current-menu-item > a, #mainmenu ul#menu-main-menu > li.current-page-parent > a {
		background-color: #262e30 !important;
		color: #fff;
	}
	#mainmenu ul#menu-main-menu ul.sub-menu li.current-menu-item > a {
		background-color: #262e30 !important;
	}

	/* if Submenu -------------------------------------------------- */
	#mainmenu ul#menu-main-menu > li > ul.sub-menu {
		display: none;
	}

	#mainmenu ul#menu-main-menu > li:hover > ul.sub-menu {display: block;}

	#mainmenu ul#menu-main-menu > li.has_sub:hover > a {
		background: url(images/mobile_nav_arrow2.png) no-repeat 290px;
	}

	#mainmenu ul ul li {
		display: block;
	}

	#mainmenu ul ul a {
		color: #fff;
		font-size: 0.8em;
		padding-left: 30px !important;
	}
	
	#mainmenu ul#menu-main-menu > li.has_sub > ul.sub-menu > li.has_sub > a {
		background: url(images/mobile_nav_arrow3.png) no-repeat 290px;
	}

	#mainmenu ul ul ul a {
		padding-left: 50px !important;
	}
}