﻿/*
Theme Name: GrainTek UK
Theme URI: http://graintek.co.uk
Description: WordPress theme built by <a href="http://www.hedleyenterprises.co.uk">hedley enterprises</a>. <strong>Web design</strong> starts with a coffee and a chat...
Version: 1
Author: <strong>hedley</strong> enterprises
Author URI: https://hedleyenterprises.co.uk

*/
body {
	font-size:12pt;
	font-family: 'Roboto', sans-serif;
	margin:0;
	padding:0;
	color: #383838;
}
p::selection, h1::selection, h2::selection, h3::selection { background-color: #320101; color: #fff;}
p::-moz-selection, h1::-moz-selection, h2::-moz-selection, h3::-moz-selection { background-color: #320101; color: #fff; }


/* -------------------- General Styles -------------------- */

.container {
	width: 1200px;
	margin: auto;
}
.fl {
	float:left;
}
.fr {
	float:right;
}
.c {
	clear:both;
}

p {
	line-height:1.6em;
}
img {
	border-style: none;
}
.center {
	text-align:center;
}
.absol {
	position:relative;
}
.line {
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-bottom-color: #dfdfdf;
}
h1, h2, h3, h4, .navigation, .slogan {
	font-weight: normal;
	font-family: 'Rockwell', Roboto, sans-serif;

}
h1 {
	font-size: calc(1em + 2vw);
}
h2 {
	font-size: calc(1em + 1vw);
}
.ndi, .nd, .n {
	opacity: 0;
	transition: all 0.5s ease-in-out;
}
.display {
	opacity: 1;
}
/* -------------------- Padding and Margins -------------------- */
.pd {
	padding-bottom: 100px;
}
.pad {
	padding: 160px 0;
}
.page-pad {
	padding: 60px 0;
}
.down {
	margin-top:20px;
}
.drop {
	margin-top: 50px;
}
.alignright {
	float:right;
	padding-left: 20px;
	padding-bottom: 20px;
}
.alignleft {
	float:left;
	padding-right: 20px;
	padding-bottom: 20px;
}
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
/* -------------------- Colours -------------------- */
.red {
	background-image: linear-gradient( to bottom, #eff1f3, #fff );
}
.green {
	color: #fff;
	background-color: #00a354;
}
.grey {
	background-color: #f7f7f7;
}
.bkg, .service-box-pic {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}
.machine {
	background-image: url('images/machine.jpg');
	background-repeat: no-repeat;
	background-position: center center;

}
/* -------------------- Buttons -------------------- */
.button {
	width: 300px;
	margin: 20px auto;
}
.button a {
	color: #fff;
	text-decoration: none;
	padding: 10px 15px;
	display: block;
	text-align: center;
	transition: all 0.5s ease-in-out;
}
.green .button a {
	background-color: rgb(67, 62, 58);
	border: solid 1px rgb(245, 245, 245);
}
.products .button a {
	background-color: #898f4b;
	border: solid 1px rgb(67, 62, 58);
}
.button a:hover {
  background-color: #272727;
}
.products .button, .package .button {
	margin: 40px auto 0 auto;
}
/* -------------------- Header -------------------- */
header {
	color: #fff;
}
.feature {
	z-index: -9999;
	background: rgba(0, 0, 0, 1);
}
.feature img {
	width: 100%;
	height: auto;
	opacity: 0.6;
}
.melco {
	fill: #fff;
}
.logo-navigation {
	text-align: center;
	width: 100%;
}
.logo {
	z-index: 1;
	width: 100%;
	text-align: center;
	margin-top: 60px;
}
.slogan {
	text-align: center;
	margin: 60px auto;
}
.slogan p {
	font-size: calc(1em + 0.8vw);
}
.slogan img {
	width: 50%;
	height: auto;
}
.height {
	height: 98vh;
	overflow: hidden;
}

/* -------------------- Navigation -------------------- */
.navigation {
	z-index: 1;
	width: 100%;
	height: 100px;
}
nav {
	background-color: #fff;
	border-bottom: solid medium #00a354;
}
nav ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
}
nav li {
	flex-grow: 1;
}
nav li a {
	display: block;
	padding: 20px;
	color: #383838;
	text-decoration: none;
	text-align: center;
}

nav li a:hover {
	color: #fff;
	background-color: #00a354;
}
.current {
	color: #fff;
	background-color: #00a354;
}
.current-menu-item a, .page_item a, .current_page_item a {
	color: #fff;
	background-color: #00a354;
}
.hrline li {
	line-height: 1.6em;
}
/* -------------------- Mobile Navigation -------------------- */

.subtoggle, .subsidebar, #subsidebartoggler {
		display:none;
}
.subpage-wrap {
	position: absolute;
	right: 30px;
	top: 30px;
	z-index: 10;
}
.subtoggle {
	transition: all 0.5s ease-in-out;
	z-index: 99999999;
	cursor: pointer;
	font-size: 30pt;
	color: #fff;
}
.subtoggle:hover {
	color: #d4d4d4;
}
.subsidebar {
	overflow: scroll;
	position: fixed;
	top: 0;
	bottom: 0px;
	right: -100%;
	width: 100%;
	padding: 80px 30px 0 30px;
	color: #fff;
	z-index: -9;
	opacity: 1;
	box-sizing: border-box;
	font-size: calc(1em + 0.3vw);
	background-color: #00a354;
}

#subsidebartoggler:checked + .subpage-wrap .subsidebar {
	right: 0px;
}
#subsidebartoggler:checked + .subpage-wrap .subtoggle {
	color: #433e3a;
}
#subsidebartoggler:checked + .subpage-wrap .subpage-content {
	padding-left: 180px;
}
.subsidebar hr {
	margin: 30px auto;
	border: solid 1px #fff;
	width: 200px;
}
.subsidebar ul {
	margin: 0;
	list-style: none;
	padding: 0;
}
/* -------------------- Page Titles -------------------- */
.pagetitles h2, .service-box h2 {
	text-align: center;
	margin-bottom: 10px;
	font-size: calc(1em + 0.5vw);
}
.pagetitles hr, .service-box hr, .hrline hr {
	border: solid 2px #00a354;
	width: 50px;
	margin-bottom: 30px;
}
/* -------------------- Service Box -------------------- */
.service-box {
	width: 30%;
	background-color: #fff;
	box-shadow: 0px 3px 27px 0px rgba(0, 0, 0, 0.11);
	flex-grow: 1;
	margin-right: 20px;
	margin-top: -100px;
	z-index: 8;
}
.service-box-pic {
	min-height: 300px;
}
.service-box-pic img {
	width: 100%;
	height: auto;
}
.service-box hr {
	margin-bottom: 10px;
}
.service-box-text {
	padding: 20px;
}
.service-box .button,
.half .button {
	background-color: #00a354
}
/* -------------------- Video -------------------- */
.video img, .img img {
	width: 100%;
}

/* -------------------- Split Background -------------------- */
.split-background, .split-background-bottom {
	height: 50vh;
	background-size: cover;
	background-attachment: fixed;
}
.split-background {
	background-image: url('images/aberdeen.jpg');
}
.split-background-bottom {
	background-image: url('images/aberdeen1.jpg');
}
/* -------------------- Half -------------------- */
.half {
	width: 48%;
}
.half .button {
	margin: 40px 0;
}
.half iframe {
	width: 100%;
}
.half ul, .contact ul, .subsidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.half li, .contact li, .subsidebar li {
	line-height: 1.6em;
}
.contact ul {
	width: 30%;
	flex-grow: 1;
}
/* -------------------- Icons -------------------- */

.icons {
	width:62px;
	height:62px;
	margin-left: 5px;
	margin-top:20px;
}
.icons img {
	width: 100%;
	height: auto;
}
.youtube {
	background: #c61800;
}
.twitter {
	background: #4099ff;
}
.facebook {
	background: #4966b6;
}
.twitter:hover, .facebook:hover, .mobile {
	background: #0066CC;
}
/* -------------------- Staff -------------------- */
.staff {
	background-image: url('images/A-background.jpg');
	background-repeat: no-repeat;
	background-color: #111423;
	background-size: contain;
	padding: 100px 0 160px 0;
	color: #fff;
}
.staff-member {
	width: 20%;
	flex-grow: 1;
	margin:20px;
}
.staff-member h3 {
	margin-bottom: 0;
}
.staff-member p {
	margin: 0;
}
.staff-member i {
	margin-top: 10px;
	margin-right: 10px;
}
.staff-pic img {
	width: 100%;
	border: solid thin #ebebeb;
}
.staff-member a {
	color: #00a354;
	text-decoration: none;
}
.staff-member a:hover {
	color: #fff;
	text-decoration: none;
}
.greentxt {
	margin: 10px 0;
	color: #00a354;
}
/* -------------------- Gallery -------------------- */

.gallery, .grid, .links {
	display: flex;
	flex-wrap: wrap;
}
.space {
	justify-content: space-between;
}
.middle {
	justify-content: center;
}
.gallery-item {
	float: left;
	width: 20%;
	flex-grow: 1;
	margin: 5px;
}
.gallery-item img {
	width: 100%;
	height: auto;
}
.gallery-item img:hover {
	opacity: 0.6;
}

.blog:nth-child(1) {
	width: 100%;
	text-decoration: underline;
}

.link {
	flex-grow: 1;
	width: 10%;
	position: relative;
	overflow: hidden;
	margin: 10px;
	opacity: 0;
	transition: all 0.5s ease-in-out;
}


/* -------------------- Footer -------------------- */
footer {
	padding: 100px 0 20px 0;
}
.copyright {
	color: #fff;
	background-color: #252525;
	padding: 20px 0;
	font-size: 8pt;
}
.copyright p {
	margin: 0;
}
.creditaions img {
	margin: 20px;
}
.creditaions p, .googlemap p {
	margin: 0;
}
.googlemap iframe {
	width: 100%;
	margin-bottom: -10px;
}
.creditaions ul {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: space-between;
	flex-wrap: wrap;
}
.creditaions li {
	flex-grow: 1;
}

/* -------------------- Form -------------------- */
.contactform form, .wpcf7-form {
	display: flex;
	flex-wrap: wrap;
}

div.wpcf7 {
	margin: 0;
	padding: 0;
	width: 100%;
}
.contactdetails, .contactmessage {
	width: 49%;
	flex-grow: 1;
}
.contactdetail {
	width: 20%;
}
.contactdetail ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.contactdetail li {
	margin-bottom: 10px;
}
.contactdetail a {
	text-decoration: none;
}
.socialm i {
	font-size: 30px;
	margin: 10px 10px 0 0;
	color: #303030;
}
.socialm a, footer a, footer i {
	color: #303030;
	text-decoration: none;
}
.socialm a, .socialm i:hover, footer a:hover, footer i:hover {
	color: #03BDFF;
}
.contactform {
	width: 69%;
}
.name, .email, .message {
	width: 90%;
}
.name, .email, .message, .interested {
	border-radius: 5px;
	padding: 10px;
	margin-bottom: 10px;
	color: #fff;
	background-color: #888888;
	border: solid thin #eae9e9;
	transition: all 0.5s ease-in-out;
}
.interested {
	width: 94%;
}
.name:focus, .email:focus, .message:focus, .interested:focus {
		border: solid thin red;
		background-color: #d52d2d;
		color: white;
}




/*

	Author:				hedleyenterprises.co.uk - web design starts with a coffee and a chat...
	Description:	CSS Stylesheet for mobile devices


*/

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

.welcome-pic-sm {
	width: 300px;
}
}


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

.container {
	width: 95%;
}
.height {
	height: 100vh;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.logo {
	width: 100%;
}
video {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
}
.overlay img{
	width: 80%;
	height: auto;
}
.fleft {
	width: 48%;
	border-bottom: dashed 1px #fff;
	margin-bottom: 40px;
	padding-bottom: 40px;
}
.slogan img, .c img  {
	width: 100%;
	height: auto;
}
.navigation {
	z-index: 1;
	height: 100px;
}
.contact ul {
	width: 48%;
	flex-grow: 1;
	margin: 0 20px 40px 0;
}
}


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

.navigation nav {
	display: none;
}
.current-menu-item a, .page_item a, .current_page_item a {
	color: #000;
	background-color: #00a354;
}
nav {
	background-color: transparent;
}
nav ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
}
nav li {
	width: 100%;
	flex-grow: 1;
}
nav li a {
	display: block;
	padding: 10px 0;
	color: #fff;
	text-decoration: none;
	text-align: left;
}
nav li a:hover {
	color: #fff;
	background-color: #433e3a;
}
.subtoggle, .subsidebar, .toggle {
		display:block;
}
.button {
	width: 150px;
	margin: 20px auto;
}
.service-box {
	width: 40%;
	margin: 20px;
}
}

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

.product-description, .product-pic, .training-pic, .training-text {
	width: 100%;
}
.training-description {
		padding: 30px 0;
}
.product-pic {
	order: -1;
}
.half {
	width: 100%;
}
.half:nth-child(2) {
	order:-1;
}
}

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

.fleft {
	width: 100%;
}
.fleft:last-child {
	border: none;
}
.contactdetails, .contactmessage {
	width: 100%;
	flex-grow: 1;
}
.service-box {
	width: 100%;
	margin: 20px;
}
}

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

.fleft:last-child {
	display: none;
}

}
