/*
Site Name: 	    All Trades Pembrokeshire
Site URI: 		https://alltrades.wales
Version: 		1.0 visual


*/



/* ---------------------------------------------------------------------------------------------------------- 
01 Sensible defaults ----------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */

@import "css/normalize.css";

div,
article,
section,
header,
footer,
nav,
li					{ position:relative; }
.group:after 		{ display:block; height:0; clear:both; content:"."; visibility:hidden; }
body 				{ 
	background:#fff;
	font-family: Lato, sans-serif;
	font-size:18px;
	color:#444;
	line-height:1.7em;
	margin: 0 0 0 0;
	}
.mainNav {
	font-size: 17px;
}
.center {
	text-align :center;
}
.small { 
	font-family: Lato, sans-serif;
	font-size:16px;
	color:#444;
	line-height:1.6em;
	}
.credit { 
	font-family: Lato, sans-serif;
	font-size:10px;
	color:#c0c0c0;
	text-align:center;
	line-height:1.6em;
	}
.phone { 
	font-family: Lato, sans-serif;
	font-size:1.1em;
	font-weight: normal;
	color:#fff;
	line-height:1em;
	padding: 0 0 0 0;
	margin: .5em 0 0 6px;
	}

hr { color: #8fb2ed; }

::-moz-selection 	{ background:#ff0; color:#333; }
::selection 		{ background:#ff0; color:#333; }

img { 
	padding:0;
	margin:0; 
	max-width:100%;
	height:auto;
	}
a {
	text-decoration:none;
	border:0;
	color:#c40e0c;
}
.mail {
	text-decoration:none;
	border:0;
	color:#ffff40;
}
.link {
	text-decoration:none;
	font-weight:bold;
	border:0;
	color:#7174ad;
}

.reg {
	text-decoration:none;
	border:0;
	color:#55afc5;
}
.phone {
	text-decoration:none;
	border:0;
	color:#fff;
}
.call {
	text-decoration:none;
	font-weight: bold;
	border:0;
	color:#d30909;
}
.white {
	text-decoration:none;
	border:0;
	color:#fff;
}
.green {
	text-decoration:none;
	border:0;
	color:#2dcb1c;
}

a:hover {
	text-decoration:underline;
}
a:hover.phone {
	text-decoration:none;
	border:0;
	color:#ffff40;
} 
.clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}


/* ---------------------------------------------------------------------------------------------------------- 
Typography -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */

body,
input,
textarea 			{  }


/** text colours **/
.black {
	color:#000000;
}
.whiteleft {
	color:#ffffff;
	line-height: 1.4em;
	margin-right: 1em;
}
.whiteright {
	color:#ffffff;
	line-height: 1.4em;
	margin-right: 0;
	text-align: right;
}

.red{
	color:#c40e0c;
}
.blue {
	color:#3b4c95;
}

.yellow {
	color:#ffff40;
}

em.green {
	color: #008000;
	font-style:normal;
}

em.eco {
	color: #92f086;
	font-style:normal;
}


/* ---------------------------------------------------------------------------------------------------------- 
Grid -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.grid_1 { width: 6.5%; } 
.grid_2 { width: 15%; } 
.grid_3 { width: 23.5%; } 
.grid_4 { width: 32%; } 
.grid_5 { width: 40.5%; }
.grid_6 { width: 49%; } 
.grid_7 { width: 57.5%; } 
.grid_8 { width: 66%; } 
.grid_9 { width: 74.5%; } 
.grid_10 { width: 83%; } 
.grid_11 { width: 91.5%; } 
.grid_12 { width: 100%; } 

.grid_1,
.grid_2,
.grid_3,
.grid_4,
.grid_5,
.grid_6,
.grid_7,
.grid_8,
.grid_9,
.grid_10,
.grid_11,
.grid_12 {
	margin: 0 0 0 0;
	float: left;
	display: block;
}

.alpha{margin-right:0;}
.omega{margin-left:0;}

.container{
	width: 95%;
	max-width: 960px;
	margin: auto;
	
}


/* ---------------------------------------------------------------------------------------------------------- 
HEADER -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.header {
	position: fixed;
	top:0;
	left:0;
	width:100%;
	background:rgba(0,0,0,0.7);
	z-index: 200;
	padding:0 0 .2em 0;
}

.mainNav ul {
	list-style-type: none;
	padding:.8em 1.5em .1em 0;
	margin:0;
	text-align: right;
}
.mainNav ul li {
	display: inline-block;
}

.mainNav ul li.moreLink > a {
	padding-bottom:1.2em;
	background:url(images/menu2.png) no-repeat bottom;
	background-image:url(images/menu.svg), none;
}

.mainNav ul > li.active > a {
	color:#999999;
	cursor: default;
}
.mainNav ul > li.active:hover > a {
	color:#999999;
}
.mainNav ul li a {
	color:#ffffff;
	font-size: 1em;
	padding:.5em;
	text-decoration:none;
}
.mainNav ul li a:hover {
	color:#ffff40;
}
.mainNav ul ul {
	position: absolute;
	left:0;
	text-align: left;
	padding:0 0 .2em 0;
	min-width:190px;
	display: none
}
.mainNav ul li:hover ul {
	display: block;
}
.mainNav ul ul li {
	display: block;
}
.mainNav ul ul li a {
	padding:.2em .3em .3em .5em;
	display: block;
	border-bottom: solid 1px #999999;
	background:rgba(0,0,0,0.8);
}
.mainNav li.eco a {
	padding:.2em .3em .3em .5em;
	font-weight: normal;
	color: #92f086;
	display: block;
}
.mainNav ul ul li.eco a {
	padding:.2em .3em .3em .5em;
	font-weight: normal;
	color: #92f086;
	display: block;
	background:rgba(0,0,0,0.9);
	border-bottom: solid 1px #999999;
}
.mainNav ul ul li.eco a:hover {
	color: #ffff40;
}
.mainNav ul ul li:last-child a {
	border:0;
}
.menuToggle {
	position: absolute;
	top:1em;
	right:5%;
	z-index: 999;
	color:#ffffff;
	padding-right: 40px;
	background:url(images/menu.png) no-repeat right;
	background-image:url(images/menu.svg);
	display: none;
	text-indent: -9999px
}


/* ---------------------------------------------------------------------------------------------------------- 
BANNER -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.banner img {
	display: block;
	width:100%;
	height: auto;
}
.banner {
	text-align: center;
	background:#808080;
}
.banner h1 {
	max-width: 90%;
	position: absolute;
	z-index: 100;
	top:0;
	margin:0;
	padding:0;
}

/* ---------------------------------------------------------------------------------------------------------- 
CONTENT -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.main {
	padding:0 0;
}
.section {
	padding:0 0 0 0;
}


/**** Blocks ****/
.blocks {
	overflow: auto;
}
.blocks h3 {
	font-size: 1.4em
}
.block-image {
	float:left;
	width:23%;
}
.block-content {
	float:left;
	width:75%;
	margin-left: 2%;
}

/* ---------------------------------------------------------------------------------------------------------- 
FOOTER --------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
.footer {
	background:url(images/banner_bottom.jpg) no-repeat center center;
	color:#ffffff;
	background-size: cover;
	font-size: 1em;
	line-height: 1.8em;
}
.overlay {
	background:rgba(0,0,0,0);
	overflow: auto;
}
/*** social ***/
.social a {
	display: inline-block;
	width:74px;
	height: 74px;
	background-repeat: no-repeat;
	text-indent: -9999px;
	margin-right: 1em;
}
.facebook {
	background-image:url(images/global/facebook.png);
}

/* ----- HEADERS & MEDIA QUERIES ------------ */

h1 {
	font-size:4.8em;
	line-height:1.1em;
	font-weight: 300;
	color: #c40e0c;
	text-align: center;
	letter-spacing: -0.06em;
	margin:0 0 0 0;
}

h2 {
	font-size:2em;
	line-height: 1.6em;
	letter-spacing: -0.04em;
	font-weight: 300;
	color: #000000;
	text-align: center;
	margin:0 0 0 0;
}
h2.left {
	font-size:2em;
	line-height: 1.6em;
	letter-spacing: -0.04em;
	font-weight: 300;
	color: #000000;
	text-align: left;
	margin:0 0 0 0;
}
h2.large {
	font-size:4.8em;
	line-height:1.1em;
	font-weight: 300;
	color: #c40e0c;
	text-align: center;
	letter-spacing: -0.06em;
	margin:0 0 0 0;
}
h3 {
	font-size:2.6em;
	font-weight: 300;
	color: #c40e0c;
	text-align: center;
	letter-spacing: -0.03em;
	margin:0 0 0 0;
}

h5 {
	font-size:1.7em;
	color: #fff;
	font-weight: 300;
	margin:1em 0 0 0;
}
h5.right {
	font-size:1.7em;
	text-align: right;
	color: #fff;
	font-weight: 300;
	margin:1em 0 0 0;
}
h6 {
	font-size:2em;
	font-weight: 300;
	color: #c40e0c;
	text-align: left;
	margin:.5em 0 .5em 0;
}

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

	.mainNav ul li a {
		font-size: 1.1em;
		padding:.5em .3em;
	}

	.header {
		position: relative;
		background:rgba(0,0,0,1);
	}

}

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

	input[type="text"], 
	input[type="tel"], 
	input[type="email"], 
	input[type="password"] {
		max-width: 100%;
	}

	select {
	   max-width: 100%;
		width:88%;
	 }
	
	 .info {
		position: absolute;
		margin:5px;
		right:0;
		top:0;
	}

	.grid_1,
	.grid_2,
	.grid_3,
	.grid_4,
	.grid_5,
	.grid_6,
	.grid_7,
	.grid_8,
	.grid_9,
	.grid_10,
	.grid_11,
	.grid_12 {
		width:100%;
	}
	.container {
		width:96%;
	}

	h1 {
		font-size:4em;
	}
	h2 {
		font-size:1.6em;
	}
	h2.left {
		font-size:1.6em;
	}
	h2.large {
		font-size:4em;
	}
	h3 {
		font-size:1.6em;
	}
	h4 {
		font-size:1.5em;
	}
	h5 {
		font-size:1.5em;
	}
	h6 {
		font-size:1.4em;
	}

	.alpha{margin-right: 0;}
	.omega{margin-left: 0;}

	.section {
		padding:1em 0;
	}


	.header {
		padding-bottom:1em;

	}
	.mainNav ul {
		font-size: 1.1em;
		padding: 0;
		text-align: center;
	}
	.mainNav > ul {
		display: none
	}
	.mainNav ul li {
		display: block;
	}

	.mainNav ul li a {
		border-top:solid 1px #666666;
		padding:.3em 0;
		display: block;
	}

	.mainNav ul li a:hover {
		color:#ffdb83;
	}
	.mainNav ul ul {
		margin-top:0;
		width:100%;
		display: block;
		position: relative;
		border:0;
	}
	.mainNav ul ul li {
		float:none;
		width:auto;
		
	}
	.mainNav ul ul li a {
		float:none;
		width:auto;
		background:#303030;
	}
	.menuToggle { 
		display: block;
	}
	.banner h1 {
		font-size: 1.4em
	}
	.blocks h3 {
		font-size: 1.4em
	}

	.footer {
		font-size: 1em
	}

}

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

	.mainNav ul li a {
		font-size: 1em;
	}
h1 {
		font-size:2.5em;
	}
h2 {
		font-size:1.4em;
	}
h2.large {
		font-size:2.5em;
	}
}
