/*
Theme Name: All About Health
Theme URI: http://allabouthealth.co.nz
Description: All About Health theme
Version: 1
Author: PlasticStudio
Author URI: plasticstudio.co.nz
*/


* {
	padding: 0;
	margin: 0;
}

body {
	font-family: 'Open Sans', sans-serif;
	color: #08445c;
	font-size: 12px;
	overflow-x: hidden;
}

h1 {
	font-size: 20px; 
	margin: 0 0 15px; }	

h2 {
	font-size: 18px;
	margin-bottom: 15px;
}

h3 {
	font-size: 16px;
	margin: 0 0 15px; }
	
h4 {
	font-size: 15px;
	margin: 0 0 10px; }

p {
	font-size: 14px;
	margin-bottom: 10px;
}

a {
	color: #08445c;
	text-decoration: none;
	outline: none;
}

/*img{
	max-width: 100%;
}*/

.page-content a {
	text-decoration: underline; }

ul {
	list-style: none;
}

ol {
	padding: 10px 0 10px 20px; }

.align-right {
	text-align: right;
}
	
.page-content ul li,
.page-content ol li {
	font-size: 14px; 
	margin: 5px 0; }

	
blockquote {
	padding: 15px; }
	
blockquote,
blockquote p {
	font-size: 14px;
	font-style: italic;
}

.clear {
	height: 1px;
	clear: both;
}

#wrapper {
	width: 980px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

#page-header {
	height: 28px;
	padding: 15px 30px;
	position: relative;
}

.page-content img.alignleft {
	float: left;
	margin: 0 15px 10px 0; }
	
.page-content img.alignright {
	float: right;
	margin: 0 0 10px 15px; }

.read-more {
	float: right;
	display: block;
	margin: 5px 0;
	text-transform: uppercase;
	font-weight: bold;
	font-style: italic;
	opacity: 0.6;
	text-decoration: none !important;
}

a.read-more:hover,
a:hover .read-more {
	opacity: 1; }
	
.readmore.basic {
	display: block;
	margin: 10px; }

/**
 * columns
 */
.col {
	float: left;
}

.one-third {
	width: 28%;
	margin-right: 8%;
}

.two-thirds {
	width: 64%;
	margin-right: 8%;
}

.one-half {
	width: 50%;
}

.col.last {
	margin-right: 0;
}


.homepage #page-header {
	background: none;
}

/**
 * main nav
 */
#primary-nav {
	position: absolute;
	top: 0px;
	right: 0;
	height: 50px;
}

#primary-nav ul.menu li {
	float: right;
	position: relative;
	height: 50px;
}

#primary-nav ul li a {
	padding: 20px;	
	font-size: 14px;
	text-transform: uppercase;
	height: 20px 15px;
	display: block;
}

#primary-nav ul li a:hover,
#primary-nav ul li.current_page_item a {
	text-decoration: underline; 
}

#primary-nav ul li.current_page_item ul.sub-menu li a {
	text-decoration: none; 
}

#primary-nav ul.sub-menu {
	display: none;
	position: absolute;
	top: 58px;
	left: 0;
	z-index: 2; 
}

#primary-nav ul.menu li:hover .sub-menu {
	display: block;
}

#primary-nav ul.sub-menu li {
	float: none;
	white-space:nowrap;
	height: auto;
}

#primary-nav ul.sub-menu li a {
	background: #fff; /* url('../images/top-subnav-bg.png') 0 0 repeat-x */
	padding: 8px 21px !important;
	font-size: 13px;
	text-transform: none;
	line-height: 1em;
	height: auto;
}

#primary-nav ul.sub-menu li a:hover,
#primary-nav ul li ul.sub-menu li.current_page_item a {
	background: #d5ddde; 
	text-decoration: none; 
}


	
/**
 * banner
 */

#banner {
	position: relative;
	background: url('../images/banners/generic.jpg') 200px 0 no-repeat #fff;
}

/* page-specific banner-images */
#wrapper.section-natural-health #banner { background: url('../images/banners/Paddy.jpg') 200px 0 no-repeat #fff; }
 #wrapper.section-physio #banner { background: url('../images/banners/John.jpg') 200px 0 no-repeat #fff; }

/* homepage banner-images */
#banner.homepage-banner #slides {
	width: 720px;
	height: 186px;
	overflow: hidden;
	position: absolute;
	top: 0;
	right: 0;
	background: url('../images/banners/page-banner-home.jpg') 0 0 no-repeat;
	z-index: -10;
}

/* branding */
#banner .logo {
	width: 200px;
	height: 150px;
	display: block;
	background: url('../images/logo.jpg') 0 0 no-repeat;
	text-indent: -9999em;
}

#banner.homepage-banner {
	background: none;
	overflow: hidden;
}

/* branding */
#banner.homepage-banner  .logo {
	width: 250px;
	height: 186px;
	background: url('../images/logo-homepage.jpg') 0 0 no-repeat;
	left: 0;
}

#banner.homepage-banner img {
	position: absolute;
	top: 0;
	left: 0;
}

#banner h1 span {
	display: block;
	border-bottom: 2px solid #FFF;
	font-size: 26px;
	text-transform: none;
	font-style: italic;
	opacity: 0.6;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

#banner h1 {
	font-size: 26px;
	font-weight: normal;
	line-height: 30px;
	margin: 0;
	color: #235f2b;
	display: inline-block;
	padding-bottom: 20px;
}

#banner footer {
	width: 100%;
	padding: 40px 0 0;
	display: inline-block;
	margin: 0 auto;
	text-align: center;
	display: block;
}

#banner.inner-banner footer {
	width: 100%;
	padding: 40px 0 0;
	display: inline-block;
	margin: 0 auto;
	text-align: center;
	display: block;
}

#banner footer  ul {
	display: inline-block;
	vertical-align: top;
}

#banner.inner-banner footer footer  ul {
	right: 30px;
}

#banner footer  ul li {
	font-size: 22px;
	font-weight: bold;
	line-height: 30px;
	height: 30px;
	color: #96ba9a;	
	padding-left: 25px;
	margin-left: 15px;
	float: right;
	background: url('../images/homepage-banner-footer-list-bg.png') 0 0 no-repeat;
}

#banner footer  ul li:last-child {
	background: none; }



#banner footer  ul li span {
	padding: 0 45px;
}


/**
 * page
 */
.page-liner {
	padding: 35px 0;
}

.page-content  h1 {
	padding: 15px 20px;
	background: #08445c;
	color: #FFF;
	font-weight: normal;
	text-transform: uppercase;
	font-style: normal;
	font-size: 18px;
	margin: -15px -15px 15px;
}

.page-content  h1 em {
	display: block;
	font-size: 18px;
}

.page-content  ul {
	margin-left: 20px;
	list-style: disc;
	margin-bottom: 10px;
}

.page-content .col.two-thirds {
	border-bottom: 10px solid #08445c;
	background: #f2f7f8;
}

.page-content  .content-wrapper {
	padding: 15px;
}

.download-link {
	background: none repeat scroll 0 0 #235f2b;
	color: #fff;
	display: block;
	font-size: 16px;
	margin-bottom: 15px;
	padding: 1em 0;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
}

.download-link:hover {
	background: #267431;
}

/**
 * sidebar
 */
.sidebar-block {
	display: block;
	padding: 15px;
	background: #f2f7f8;
	border-bottom: 10px solid #08445c;
	margin-bottom: 15px;
	text-decoration: none !important;
}

.sidebar-block.featured-image {
	height: 220px;
	position: relative;
	overflow: hidden;
}

.sidebar-block.featured-image img {
	position: absolute;
	/*bottom: 0;
	margin: 0 0 0 35px;*/
	left: 0;
	top: 0;
}

.sidebar-block.fb img {
	float: left;
}

.sidebar-block.fb h2 {
	margin: 0 0 0 75px;
}

a.sidebar-block:hover {
	background: #d5ddde; }

/* contact details */
.contact-details {
	margin: 0 !important;
	list-style: none !important;
}

.page-content .contact-details li {
	padding: 10px 0 6px 40px;
	background: url('../images/contact-details-bg.png') 0 0 no-repeat;
	margin: 3px 0;
}

.contact-details li.email { background-position: 0 10px; }
.contact-details li.phone { background-position: 0 -45px; }
.contact-details li.address { background-position: 0 -90px; }
.contact-details li.address strong,
.contact-details li.address span {
	display: block;
}
.contact-details li.address span { font-size: 12px; }

/**
 * homepage
 */
.homepage-block {
	border-bottom: 10px solid #08445c;
	/*min-height: 460px;*/
	height: 500px;
	position: relative;
}

.homepage-block:hover {
	background: #d5ddde; }

.homepage-block .image-wrapper {
	position: relative;
}

.homepage-block img {
	width: 100%;
	display: block;
}

.homepage-block .name-title {
	background: url('../images/trans-bg-black.png');
	padding: 5px 5%;
	display: block;
	height: 15px;
	position: absolute;
	bottom: 0;
	width: 90%;
}

.homepage-block .name-title strong,
.homepage-block .name-title em {
	display: block;
	font-size: 10px;
	line-height: 15px;
	color: #FFF;
}

.homepage-block .content {
	padding: 15px 15px 45px 15px;
}

.homepage-block .content .read-more {
	position: absolute;
	bottom: 10px;
	right: 20px;
}

.homepage-block h2{
	text-transform: uppercase;
	font-size: 18px;
	margin-bottom: 15px;
}

.homepage-block p {
	/*font-size: 13px;*/
}

.homepage-block:hover .read-more {
	opacity: 1;
}


/**
 * SHOP - PRODUCTS
 */

.page-content.woocommerce h1 {
	margin: 0; }
 
/*** All products ***/
.woocommerce.page-content ul.products li.product {
	margin: 1.5em 0; 
	width: 25%;}
	
.woocommerce.page-content ul.products li.product a {
	box-shadow: 0 1px 2px 0 rbg(0, 0, 0, 0.3);
	width: 150px; 
	margin: 0 auto;
	display: block; }
	
.woocommerce.page-content ul.products li.product a img {
	width: auto; 
	box-shadow: 0; }
 
 
/*** Single product ***/
.woocommerce.page-content div.product div.images {
	width: 58%; }
	
.woocommerce.page-content div.product .summary.entry-summary {
	width: 40%; }

.woocommerce.page-content div.product .summary.entry-summary .product_title {
	padding: 15px 20px; 
	margin: 0 0 10px; }

.woocommerce.page-content div.product .summary.entry-summary .price,
.woocommerce.page-content div.product .summary.entry-summary .cart {
	padding: 10px 20px; }
 
.woocommerce .product .images .woocommerce-main-image {
	width: 258px;
	display: block; 
	margin: 0 auto; }

	
/**
 * BLOG
 */
 
.post-summary {
	margin: 0 0 40px; }
	
.post-summary h2,
.blog-post h2 {
	margin: 0 0 5px; }
	
	
.blog-post h2,
.blog-post .post-details {
	padding: 0 15px; }

	
	
/**
 * TESTIMONIALS
 */
.testimonial {
	padding: 15px;
	border-bottom:1px solid #fff;
}

.testimonial .content-wrapper {
	padding: 0 !important;
}

.testimonial blockquote {
	padding-left: 40px;
	background: url('../images/quotes-before.png') 0 0 no-repeat;
	position: relative;
	margin-bottom: 10px;
}

.sidebar-block.testimonial blockquote {
	padding: 30px 15px 15px 15px;
}

.testimonial blockquote:after {
	content: "";
	width: 30px;
	height: 24px;
	background: url('../images/quotes-after.png') 0 0 no-repeat;
	bottom: 0;
	right: 0;
	position: absolute;
	display: inline-block;
}
	
/**
 * COMMENTS
 */	
.commentlist,
.commentlist .children {
	list-style: none;
}



.comment-body {
	padding-bottom: 15px;
	border-bottom: 1px solid #08445C;
	margin-bottom: 15px;
	position: relative;
}

.comment-author{
	height: 32px;
	margin-bottom: 5px;
}

.comment-author img {
	float: left;
	margin-right: 10px;
}

.commentmetadata {
	clear: left;
}

.commentmetadata a {
	font-size: 12px;
	text-decoration: none;
	position: absolute;
	top: 0;
	right: 0;
	font-style: italic;
}

.reply a {
	font-size: 12px;
	padding: 2px 10px;
	text-decoration: none;
	background: #08445C;
	color: #F2F7F8;
	border-radius: 3px;
	opacity: 0.6;
}

#commentform input,
#commentform textarea {
	border: 1px solid #08445C;
	padding: 3px 1%;
}

#commentform input {
	width: 48%;
	margin-right: 10px;
}

#commentform textarea{
	width: 98%;
}

#commentform input#submit {
	border: none;
	background: #08445C;
	color: #F2F7F8;
	cursor: pointer;
	opacity: 0.6;
	border-radius: 3px;
	width: 30%;
}

#commentform input#submit:hover,
.reply a:hover {
	opacity: 1;
}

 

/**
 * footer
 */
#page-footer {
	padding: 50px 0;
}

.call-now {
	font-weight: normal;
	font-size: 19px;
	text-align: center;
	background: #235f2b;
	color: #FFF;
	padding: 15px 0;
	margin-bottom: 20px;
}

#page-footer .logo {
	font-size: 18px;
	line-height: 18px;
	height: 18px;
	display: block;
	text-align: right;
	margin: 10px 0;
}

#page-footer  .small {
	font-size: 11px;
}

.section-health-check .featured-image {
	background: #08445c;
}

.section-health-check .featured-image img {
	width: 100%;
	height: auto;
	top: 0;
	bottom: 0;
	margin: auto;
}

a.pdf {
	background: url('../images/pdf.png') 0 0 no-repeat;
	padding-left: 25px;
}

#page-footer .col.one-third p {
	font-size: 12px;	
}

#mobile-link {
	display: none;
}

#mobile-link:hover {
	cursor: pointer;
}


@media (max-width: 1040px){

	#wrapper {
		width: 100%;
		max-width: 980px;
		padding: 0 20px;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
	}

	#primary-nav ul li a {
		padding: 20px 15px;
	}

	.homepage-block {
		height: auto;
		min-height: 567px;
	}

	.homepage-block .content {
		padding: 15px 10px 45px;
	}

	#page-footer .logo {
		font-size: 16px;
		margin-top: 0;
	}

	#page-footer .one-third .one-half {
		width: 100%;
	}

	.one-third {
		width: 31%;
		margin-right: 3.5%;
	}

	.two-thirds {
		margin-right: 5%;
	}
}


@media (max-width: 768px){

	#primary-nav {
		background-color: #f3f3f3;
		color: rgba(0, 0, 0, 0.7);
		height: auto;
		z-index: 500;
		width: 90%;
		max-width: 280px;
		overflow-y: scroll;
		max-height: 100vh;
		position: absolute;
		left: -320px;
	}

	#primary-nav.active {
		left: -20px;
	}

	#mobile-link {
		display: block;
		position: absolute;
		text-align: right;
		left: 0px;
		top: 20px;
	}

	#mobile-link.active {
		width: 90%;
		max-width: 265px;
		left: 30px;
	}

	.mob_nav_bar{
		display: block;
		margin-top: 3px;
		height: 4px;
		width: 23px;
		background-color: #08445C;
		clear: both;
		float: right;
	}

	#primary-nav #menu-main-nav > .menu-item{
		float: none;
		height: auto;
	}

	#primary-nav #menu-main-nav > .menu-item.menu-item-has-children .sub_menu_toggle{
		position: absolute;
		z-index: 10;
		right: 0;
		top: 0;
		width: 25px;
		height: 40px;
		background-color: rgba(0, 0, 0, 0.05);
		font-size: 25px;
		padding-left: 15px;
	}

	#primary-nav #menu-main-nav > .menu-item.menu-item-has-children .sub_menu_toggle:hover{
		cursor: pointer;
	}

	#primary-nav #menu-main-nav > .menu-item.menu-item-has-children .sub_menu_toggle::before{
		position: absolute;
		content: '>';
		top: 0;
		bottom: 0;
		left: 12px;
		color: rgba(0,0,0,0.3);
		-webkit-transform: rotate(90deg);
		-moz-transform: rotate(90deg);
		-o-transform: rotate(90deg);
		-ms-transform: rotate(90deg);
		transform: rotate(90deg);
	}

	#primary-nav ul.menu li:hover .sub-menu {
		display: none;
	}

	#primary-nav #menu-main-nav > .menu-item a{
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
		color: inherit;
		line-height: 20px;
		display: block;
		padding: 10px 10px 10px 20px;
		margin: 0;
		text-transform: none;
	}

	#primary-nav #menu-main-nav > .menu-item a:hover{
		text-decoration: none;
	}

	#primary-nav #menu-main-nav > .menu-item:after{
		content: '';
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
	}

	#primary-nav #menu-main-nav > .menu-item:after{
		content: '';
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
	}

	#primary-nav #menu-main-nav > .menu-item .sub-menu{
		position: static;
		background-color: rgba(0, 0, 0, 0.05);
	}

	#primary-nav #menu-main-nav > .menu-item .sub-menu.active{
		display: block;
		background-color: rgba(0, 0, 0, 0.05);
	}

	#primary-nav #menu-main-nav > .menu-item .sub-menu a{
		background-color: transparent;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}

	#page-header {
		padding: 15px 0;
	}

	#page-footer .logo {
		font-size: 13px;
	}

	.page-content .col {
		width: 100%;
		margin-right: 0;
	}

	.page-content .col.last {
		margin-top: 40px;
	}

	.sidebar-block {
		width: 31%;
		float: left;
		margin-right: 3.5%;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
	}

	.sidebar-block:last-child {
		margin-right: 0;
	}

	.sidebar-block.fb {
		display: none;
	}

	

}


@media (max-width: 520px){

	.homepage-block {
		min-height: 0;
		width: 100%;
		margin-right: 0;
		margin-bottom: 40px;
	}

	.homepage-block.last {
		margin-bottom: 0;
	}

	.homepage-block .image-wrapper {
		background-color: #08445c;
	}

	#page-footer {
		padding: 0;
	}

	#page-footer .one-third {
		width: 100%;
		margin-right: 0;
		margin-bottom: 20px;
	}

	#page-footer .one-third.last {
		margin-bottom: 0;
	}

	#page-footer .one-third,
	#page-footer .one-third .align-right,
	#page-footer .logo {
		text-align: center;
	}

	#page-footer .logo {
		font-size: 18px;
	}

	#page-footer .one-third .one-half.last {
		margin-top: 10px;
	}

	.sidebar-block {
		width: 100%;
		margin-right: 0;
	}

	.fscf-div-field input,
	.fscf-div-field textarea {
		width: 100%;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
	}

	.sidebar-block.fb {
		display: block;
	}

}


@media (max-width: 450px){
	#banner footer  ul li {
		font-size: 15px;
	}
}

@media (max-width: 435px){

	.page-liner {
		padding-top: 18px;
	}
}

@media (max-width: 435px){

	#banner footer  ul li {
		display: none;
	}

	#banner footer h1 {
		padding-bottom: 10px;
	}

}