/*
	Theme Name: Diarymaid
	Description: Diarymaid website template
	Author: getso.pl
*/

/* ---------------------------
	reset
--------------------------- */
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
abbr, address, article, aside, audio, b, blockquote, body, canvas,
caption, cite, code, dd, del, details, dfn, div, dl, dt, em, fieldset,
figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup,
html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav,
object, ol, p, pre, q, samp, section, small, span, strong, sub, summary,
sup, table, tbody, td, tfoot, th, thead, time, tr, ul, var, video { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; background-color: transparent; }
article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; }
address, cite, q, dfn { font-style: normal; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height:1; }
a, ins, del { text-decoration:none }
q, blockquote { quotes: none; }
th, td {  vertical-align: top; }
th { text-align: left; }
nav li { display:inline-block; list-style:none; }
img { display:inline-block; max-width:100%; height:auto; }
button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle;}
button,input{*overflow:visible;line-height:normal;}
button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0;}
button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}
textarea{overflow:auto;vertical-align:top;}
label,input,button,select,textarea{font-size:14px;font-weight:normal;line-height:20px;}
input,button,select,textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;}
label{display:block;margin-bottom:5px;font-size:16px;}
select,textarea,input[type="text"],input[type="password"],input[type="datetime"],
input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],
input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],
input[type="tel"],input[type="color"],.uneditable-input{display:inline-block;height:40px;padding:5px 10px;font-size:14px;line-height:1;color:#555555;vertical-align:middle;width:100%;}
textarea{height:auto;padding:5px 10px;}
textarea,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],
input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],
input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],
.uneditable-input{background-color:#ffffff;border:1px solid #cccccc;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-moz-box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);-webkit-transition:border linear .2s, box-shadow linear .2s;-moz-transition:border linear .2s, box-shadow linear .2s;-o-transition:border linear .2s, box-shadow linear .2s;transition:border linear .2s, box-shadow linear .2s;}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.uneditable-input:focus{border-color:rgba(82, 168, 236, 0.8);outline:0;outline:thin dotted \9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);}
input[type="radio"],input[type="checkbox"]{margin:4px 0 0;*margin-top:0;margin-top:1px \9;line-height:normal;cursor:pointer;}
input[type="file"],input[type="image"],input[type="submit"],input[type="reset"],input[type="button"],input[type="radio"],input[type="checkbox"]{width:auto;}
select,input[type="file"]{height:25px;*margin-top:4px;line-height:1;}
select{border:1px solid #cccccc;background-color:#ffffff;}
select[multiple],select[size]{height:auto;}
select:focus,input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px;}
label strong { color:red; margin-left:2px; font-size:20px; }
iframe {
	max-width: 100%;
}

/* -------------------------- 
	default 
-------------------------- */
html {
    -webkit-text-size-adjust: none;
}
body { 
	font:normal 18px/24px georgia, verdana, serif; 
	background:#fff url(images/background.jpg); 
	color:#000; 
}
a {
	color: #000;
}
a:hover {
	text-decoration: underline;
}
h1 {
	font-size:34px;
	padding: 10px 0;
}
h2 {
	font-size:28px;
	padding:20px 0 10px;
}
h3 {
	font-size:22px;
	padding:20px 0 10px;
}
h4 {
	font-size:18px;
	padding:10px 0;
	font-weight: bold;
}
article ul {
	padding:0 0 10px 24px;
}
p { 
	padding-bottom:14px; 
}
time {
	display:block;
	color:#aaa;
	margin-bottom:6px;
}


/* -------------------------- 
	layout 
-------------------------- */
#header {
	position:relative;
	padding: 20px 0;
}
#header:before {
	position: absolute;
	left: -70px;
	top: 20px;
	content:'';
	display:block;
	background:url(images/natural-banner.png)no-repeat;
	width: 309px;
	height: 85px;
}
#header:after {
	content:'';
	display:block;
	position:absolute;
	top:0;
	right:0;
	background:url(images/new-banner.png) right top no-repeat;
	width:96px;
	height:115px;
}
#header h1 {
	padding: 0;
}
#header h1 a {
	display: block;
	background: url(images/diary-logo.png) center no-repeat;
	background-size: contain;	
	width: 412px;
	height: 128px;
	text-indent: -9999px;
	margin: 0 auto;
}
#header .social {
	display: block;
	right: -5px;
	position: absolute;
	bottom: 0;
}
#header .social li {
	margin: 0 5px;
	list-style: none;
}
#header .social a {
	text-indent:-9999px;
	display:block;
	width:45px;
	height:45px;
	background:url(images/social-ico.png);
}
#header .social li.tw a {
	background-position:45px 0;
}
#header ul li {
	float:left;
}

#nav li:first-child {
	background:url(images/nav-background.png) left center no-repeat;
	text-indent:-9999px;
	width:39px;
}
#nav a { 
	font-size: 17px;
	text-transform: uppercase;
	display: block;
	padding: 10px 13px; 
}
#nav .menu-bars {
	width:60px;
	height:60px;
	position:absolute;	
	right:0;
	top:0;	
	display:none;
	background:#000 url(images/mobile-menu-icon-open.png) center no-repeat;
	cursor:pointer;
}
#nav.menu-active .menu-bars {			
	background-image:url(images/mobile-menu-icon-close.png);
}

#main {
	padding-bottom: 40px;
}
#main .content {
	padding-right: 50px;
}

aside .box {
	margin-bottom: 50px;
}
aside .box img {
	width: 100%;
}

#footer {
	font-size: 14px;
	background:url(images/footer-background.jpg) center top repeat-x;		
	padding: 60px 0 20px;
}
#footer a {
	color:#222;
}
#footer ul li {
	line-height: 1;
	padding:0 10px;
	border-left:1px solid #222;
}
#footer ul li:first-child {
	border: 0;
	padding-left: 0;
}
#footer a:hover {
	text-decoration:underline;
}
#footer p {
	position: absolute;
	right: 120px;
	top: 0;
}


/* -------------------------- 
	specific
-------------------------- */
.clearfix {
  *zoom: 1;
}
.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both;
}

.radio,
.checkbox {
  min-height: 20px;
  padding-left: 20px;
}
.radio input[type="radio"],
.checkbox input[type="checkbox"] {
  float: left;
  margin-left: -20px;
}
.radio.inline,
.checkbox.inline {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: middle;
}
.radio.inline,
.checkbox.inline {
  margin-right: 10px;
}

.prev, 
.next { 
	max-width: 49%; 
}
.prev, .alignleft { 
	float: left; 
	text-align: left; 
}
.next, .alignright { 
	float: right; 
	text-align: right; 
}
.alignleft { 
	margin: 0 20px 20px 0;
}
.alignright { 
	margin: 0 0 20px 20px;
}

.alert {
  padding: 15px 25px;
  margin-bottom: 20px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  background-color: #fcf8e3;
  border: 1px solid #fbeed5;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  color: #c09853;
}
.alert h4 {
  	padding: 0 0 5px 0;
	color:inherit;
}
.alert .close {
  position: relative;
  top: -2px;
  right: -21px;
  line-height: 20px;
}
.alert-success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #468847;
}
.alert-danger,
.alert-error {
  background-color: #f2dede;
  border-color: #eed3d7;
  color: #b94a48;
}
.alert-info {
  background-color: #d9edf7;
  border-color: #bce8f1;
  color: #3a87ad;
}

.buttons {
	padding: 20px 0;
}
.btn {
	width: auto;
	display: inline-block;
	line-height: 30px;
	background: #00a651 url(images/rarr-white.png) 90% 50% no-repeat;
	border: none;
	color: #fff;
	font-size: 22px;
	font-style: italic;
	font-family: georgia;
	border-radius: 5px;
	padding: 5px 50px 5px 30px;
}
.btn:hover {
	background-color: #000;
	text-decoration: none;
}

.box {
	background: #fff;
	text-align: center;
	font-style: italic;
	font-size: 20px;
	line-height: 1.2;
}
.box h5 {
	background:#00a651;
	color:#fff;
	font-size: 22px;
	padding: 15px;
}
.box .thumb-mask {
	max-height: 130px;
	overflow: hidden;
	position: relative;
	text-align: center;
}
.box .thumb-mask img {
	margin: 0 auto;
	vertical-align: middle;
}
/*.box .thumb-mask img {
	width: 100%;
}*/
.box .inner {
	padding: 10px;
}
.box .inner h3 {
	font-size: 30px;
	margin-bottom: 10px;
}
.box .inner a {
	display: block;
	padding: 10px;
	border-top: 2px solid #ccc;
	background:url(images/rarr-green.png) right center no-repeat;
}
.box .facebook {
	font-size: 18px;
}
.box .facebook a {
	position: relative;
	display: block;
	color: #fff;
	background: #345a9f url(images/facebook-like.png) 10px center no-repeat;
	font: bold 22px/60px arial;
	padding-left: 20px;
}
.box .facebook a:after {
	position: absolute;
	display: block;
	content: '';
	width: 14px;
	height: 15px;
	background: url(images/rarr-white.png);
	right: 15px;
	top: 50%;
	margin-top: -7px;
}
.box .facebook p {
	padding: 10px;
}
.box .box-recipe .thumb-mask:after {
	background: url(images/new-banner.png);
	width: 96px;
	height: 115px;
	content: '';
	display: block;
	position: absolute;
	top:0;
	right: 20px;
}

.logos {
	padding: 30px 0;
	text-align: center;
}
.logos img {
	margin:0 30px;
}

.page-header {
	padding: 10% 5%;
}
.page-header h1 {
	color: #fff;
	font-weight: bold;
}

.post-nav {
	padding-top: 20px;
	font-style: italic;
	font-weight: bold;
}
.post-more a {
	padding-right: 24px;
	background: url(images/rarr-green.png) right center no-repeat;
}
.post-back a {
	padding-left: 24px;
	background: url(images/larr-green.png) left center no-repeat;
}
.post-listing {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #aaa;
}
.post-listing h3 a {
	color: #00a651;
}
.post-listing h3,
.post-single h1 {
	padding: 10px 0;
	font-size: 40px;
	color: #00a651;	
	font-style: italic;	
}


/* home */
.home .primary {
	background-image: url(images/home-background.jpg);
}
.home .intro-slider {
	margin-bottom: 70px;
	position:relative;
}
.home .intro-slider a {
	display: block;
}
.home .intro-slider h5 {
	text-align: center;
	font-style: italic;
	font-size: 28px;
	padding: 20px 0;
}
.home .products-slider {
	position: relative;
	padding-top: 170px;
	background: url(images/range-banner.png) top center no-repeat;
}
.home .products-slider:before,
.home .products-slider:after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
}
.home .products-slider:before {
	left: 150px;
	width: 100px;
	height: 163px;
	background: url(images/milk.png);
}
.home .products-slider:after {
	top: 30px;
	right: 140px;
	width: 100px;
	height: 100px;
	background: url(images/love-food.png);
}
.home .products-slider .bx-wrapper {
	margin-bottom:0;
}
.home .products-slider h4 {
	padding: 30px 0;
	text-align: center;
	color: #fff;
	font-size: 36px;
	font-weight: bold;
}
.home #main .content {
	padding: 50px 0;
}
.home .box {
	min-height: 420px;
}

/* contact */
.contact .content h3 {
	font-style: italic;
	color: #00a651;
	font-size: 30px;
	font-weight: bold;
}

/* Products */
.product-slider {
	padding-bottom:30px;
}
.product-slider .box {
	background:none;
}
.product-slider .box .thumb-mask {
	max-height:none;
	padding:10px 0;
}

.slider-recipes .box {
	padding-top: 50px;
}
.slider-recipes h5 {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 100;
}


/* -------------------------- 
	grid
-------------------------- */
.container {
	max-width: 1280px;
	margin:0 auto;
	padding:0 120px;
	position:relative;
}
.primary {
	background:url(images/header-bg.jpg) no-repeat;	
}

.row {
  	margin-left: -20px;
  	margin-right: -20px;	
}
.row:before,
.row:after {
  	content: " ";
  	display: table;
}
.row:after {
  	clear: both;
}

[class^="col"] {
	float:left;
  	padding: 0 20px;
}
.col12 {
  width: 100%;
}
.col11 {
  width: 91.66666666666666%;
}
.col10 {
  width: 83.33333333333334%;
}
.col9 {
  width: 75%;
}
.col8 {
  width: 66.66666666666666%;
}
.col7 {
  width: 58.333333333333336%;
}
.col6 {
  width: 50%;
}
.col5 {
  width: 41.66666666666667%;
}
.col4 {
  width: 33.33333333333333%;
}
.col3 {
  width: 25%;
}
.col2 {
  width: 16.666666666666664%;
}
.col1 {
  width: 8.333333333333332%;
}


/* -------------------------- 
	plugins
-------------------------- */
.slider {
	margin: 0;
	margin-bottom: 30px;
}
.slider a:hover,
.slider li.active a {
	text-decoration: none;
}
.slider a:hover h5,
.slider li.active h5 {
	background: #00612b;
}
.slider .thumb-mask {
	max-height: 240px;
}
.slider .bx-wrapper .bx-prev { 
	background-image: url(images/pager-green-prev.png);
}
.slider .bx-wrapper .bx-next { 
	background-image: url(images/pager-green-next.png);
}

/* BxSlider v4.1.2 - Fully loaded, responsive content slider */
/* RESET AND LAYOUT
===================================*/
.bx-wrapper {
	position: relative;
	margin: 0 auto 20px;
	padding: 0;
	*zoom: 1;
}

/* THEME
===================================*/
.bx-wrapper .bx-viewport {
	-webkit-transform: translatez(0);
	-moz-transform: translatez(0);
   	-ms-transform: translatez(0);
   	-o-transform: translatez(0);
   	transform: translatez(0);
}

/* LOADER */

.bx-wrapper .bx-loading {
	min-height: 50px;
	background: url(images/bx_loader.gif) center center no-repeat #fff;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2000;
}

/* PAGER */

.bx-wrapper .bx-pager {
	text-align: center;
	font-size: .85em;
	font-family: Arial;
	font-weight: bold;
	color: #666;
	padding-top: 20px;
}

.bx-wrapper .bx-pager .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
	display: inline-block;
	*zoom: 1;
	*display: inline;
}

.bx-wrapper .bx-pager.bx-default-pager a {
	border: 1px solid #004416;
	text-indent: -9999px;
	display: block;
	width: 15px;
	height: 15px;
	margin: 0 5px;
	outline: 0;
	-moz-border-radius: 100%;
	-webkit-border-radius: 100%;
	border-radius: 100%;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
	background: #004416;
}

/* DIRECTION CONTROLS (NEXT / PREV) */
.bx-wrapper .bx-prev {
	left: -50px;
	background: url(images/pager-prev.png) no-repeat;
}
.bx-wrapper .bx-next {
	right: -50px;
	background: url(images/pager-next.png) no-repeat;
}
.bx-wrapper .bx-controls-direction a {
	position: absolute;
	top: 50%;
	margin-top: -20px;
	outline: 0;
	width: 40px;
	height: 40px;
	text-indent: -9999px;
	z-index: 9999;
}
.bx-wrapper .bx-controls-direction a.disabled {
	display: none;
}

/* Contact Form 7 */
.wpcf7 {
	padding: 30px 0;
}
.wpcf7 .wpcf7-form-control-wrap {
	display: block !important;
}
.wpcf7 p { 
	position: relative; 
}
.wpcf7 p strong { 
	color: #f95900; 
}
.wpcf7 p input { 
	width: 50%; 
}
.wpcf7 textarea {
	width: 100%;
	height: 120px;
}
.wpcf7 p .wpcf7-submit {
	width: auto;
	display: inline-block;
	line-height: 30px;
	background: #00a651 url(images/rarr-white.png) 90% 50% no-repeat;
	border: none;
	color: #fff;
	font-size: 22px;
	font-style: italic;
	font-family: georgia;
	border-radius: 5px;
	padding: 5px 50px 5px 30px;
}
.wpcf7 p .wpcf7-submit:hover {
	background-color: #000;
}
.wpcf7 .screen-reader-response {
	display: none;
}
.wpcf7-response-output { 
	padding: 15px 5%;
	width: 100%;	
	text-align: center;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
.wpcf7-mail-sent-ok { 
	background: #398f14; 
	color: #fff;
} 
.wpcf7-display-none { 
	display: none; 
} 
.wpcf7-validation-errors { 
	background: #b00; 
	color: #fff; 
} 
.wpcf7-not-valid-tip { 
	font-size: 14px;
	-webkit-border-radius: 0 10px 10px 10px; 
	-moz-border-radius: 0 10px 10px 10px; 
	border-radius: 0 10px 10px 10px; 
	position: absolute; 
	top: 25px; 
	z-index: 100; 
	display: block; 
	color: #fff; 
	background: #d00; 
	padding: 5px 20px; 
	border: none; 
	left: 45%; 
	width: auto; 
} 
.wpcf7-not-valid-tip-no-ajax { 
	color: #f00; 
	display: block; 
} 
.ajax-loader { 
	border: none; 
	vertical-align: middle;  
	display: block; 
	float: right;
}


/* ---------------------------
	Media query
--------------------------- */
@media only screen and (max-width: 1279px){

	.container {
		width: 100%;
		padding: 0 2%;
	}

}

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

	#nav ul,
	#header:after,
	#header:before, 	
	.logos,
	.bx-has-controls-direction,
	.home .products-slider:before,
	.home .products-slider:after {
		display: none;
	}	

	#header .social {
		right: auto;
		left: 5px;
		top: 15px;
	}

	#nav ul {
		background: #000;
	}
	#nav li {
		padding: 0;
		display:block;
		float:none;
		text-align:center;
		border-bottom:1px solid #aaa;
	}
	#nav li a {
		font-size:22px;
		display: block;
		color: #fff;
		line-height:50px;
		border: 0;
	}
	#nav li.active > a {
		background: #999;
		color: #fff;
	}
	#nav li:first-child {
		display: none;
	}	
	#nav .menu-bars {	
		display:block;
	}
	
	#main .content {
		padding: 0;
	}
	
	#main {
		padding: 2%;
		background:#fff url(images/background.jpg); 		
	}

	#footer {
		text-align: center;
	}
	#footer p {
		position: static;
	}
	
	.content {
		margin-bottom: 50px;
	}
	
	.container {
		padding: 0;
	}
	.row {
		margin: 0;
	}
	[class^="col"] {
		float: none;
	  	padding: 0;
		width: 100%;
	}

	.home #main {
		background: none;
	}
	.home .intro-slider	{
		margin-bottom: 30px;
	}	
	.home .intro-slider h5 {
		font-size: 20px;
		line-height: 24px;
	}
	
	.page-header {
		padding: 3% 0;
	}
	.page-header h1 {
		color: #333;
	}
	
	.products-slider .bxslider li {
		text-align: center;
	}
	
	.wpcf7 p input { 
		width: 100%; 
	}
	
}

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

	h1 {
		font-size: 28px;
		line-height: 32px;
	}
	
	.post-listing h3, .post-single h1 {
		font-size: 24px;
		line-height: 28px;
	}
	
}

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

	#header h1 a {
		width: 90%;
	}

}