/*---- Style sheet document

Author: Clive Walker
Company: CVW Web Design Ltd
Website: http://www.cvwdesign.co.uk

-----------*/

/*---- Reset everything ----*/

* {
  	margin: 0;
  	padding: 0;
}

/*--- Main styles ---*/

body {
	margin: 0;
	padding: 0;
	background: #FFF;
	color: #000;
	font: 76%/1.7em Arial, Helvetica, sans-serif;
	border-top: 5px solid #009534;
}

body { overflow: -moz-scrollbars-vertical; } /* fix for Firefox scrollbar jump*/

/*--- Main divs and descendants ---*/

#header {
	float: left;
	padding: 20px 0;
	background: #FFF url(../images/red-orange-green-icons.jpg) no-repeat 500px 23px;
	color: #FFF;
	width: 100%
}
	
.container {
	width: 740px;
	margin: 0 auto;
}

#logo {
	float: left;
	margin-left: 0;
}

/*--- Navigation tabs ---*/

#main-nav {
	clear: both;
	margin: 0 0 20px 0;
	background: #AED0B3;
}

#main-nav ul {
	margin:0;
	padding:5px 10px 0 0;
	list-style:none;
}
    
#main-nav li {
      display:inline;
      margin:0;
      padding:0;
}

#main-nav a {
      float:left;
      background:url("../images/tableft.gif") no-repeat left top;
      margin:0;
      padding:0 0 0 5px;
      text-decoration:none;
}

#main-nav a span {
      float:left;
      display:block;
      background:url("../images/tabright.gif") no-repeat right top;
      padding:5px 15px 4px 6px;
      color:#24618E;
}
    
	/* Commented Backslash Hack hides rule from IE5-Mac \*/
    #main-nav a span {float:none;}
    /* End IE5-Mac hack */

#main-nav a:hover, #home #nav-home a, #clients #nav-clients a, #haulage #nav-haulage a, 
#about #nav-about a, #contact #nav-contact a, #home2 #nav-home a   {/*this is the left section of the tab on hover or specific page*/
      background-position:0 -42px;
}

#main-nav a:hover span, #home #nav-home a span, #clients #nav-clients a span, #haulage #nav-haulage a span, 
#about #nav-about a span, #contact #nav-contact a span, #home2 #nav-home a span { /*this is the right section on hover or specific page*/
      background-position:100% -42px;
	  color:#FFF;
}

/* --- Main content divs ---*/

#secondary-content {
	float: left;
	width: 200px;
	margin: 0 0 20px;
	padding: 5px 10px 10px;
	background: #EFEFEF url(../images/secondarybg.gif) no-repeat 10px 25px;
	line-height: 2.2em;
	border-top: 3px solid #AED0B3;
	border-right: 1px solid #CCC;
	border-bottom: 3px solid #AED0B3;
	border-left: 1px solid #CCC;
}

#secondary-content img {
	margin-top: 1.5em;
}

#secondary-content ul {
	margin: 20px 0 0;
	padding: 0;
}

#secondary-content li {
	margin: 0;
	padding: 0 0 0 15px;
	list-style: none;
	background: url(../images/green-bullet.gif) no-repeat 0px 0.65em;
}

#main-content {
	float: right;
	width: 495px;
	margin: 0 0 20px 20px;
	padding-bottom: 20px;
}

#footer {
	clear: both;
	background: #474747;
	color: #FFF;
	text-align: center;
	margin-top: 20px;
	padding: 10px;
	}

/*--- Images ---*/

.main-img {
	float: left;
	border: 4px solid #D8DEDD;
	margin-right: 10px;
}

.fleft {
	float: left;
	margin-right: 20px;
}

.fright {
	float: right;
	margin-left: 20px;
	margin-bottom: 10px;
}

.fl {
	float: left;
}

/*--- Headings and paragraphs*/

h1, h2, h3 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #EFEFEF;
	color: #0B5180;
	margin-bottom: .5em;
}

h1 {
	font-size: 200%;
	padding-left: 0;
	padding-top: 10px;
}

h2 {
	font-size: 160%;
}

h3 {
	font-size: 130%;
}

#secondary-content h2 {
	padding-bottom: 0;
	border-bottom-style: none;
}

p {
	margin: 1.2em 0;
}

.dropcap:first-letter {
	float: left;
	font-size: 400%;
	line-height: 50px;  /*set this in pixels not ems to avoid disappearing border bug in IE7*/
	border: 1px solid #D8DEDD;
	padding: 2px;
	color: #0B5180;
	margin-right: 5px;
}
.center {
	text-align: center;
}


/*--- Links ---*/

a {
	color: #009534;
}

a:hover {
	text-decoration: none;
}

#footer a {
	color: #CCC;
	margin-left: 2em;
}

img a, #secondary-content a img {
	border: none;
}

#secondary-content a.text {
	padding-left: 20px;
	background: url(../images/link-arrow.gif) no-repeat left center;
}


/*--- Other styles ---*/

hr {
	background:#E5E5E5;
	height:1px;
	color:#DFDFDF;
	border:none;
	margin-bottom: .5em;
}

.cta {
	padding: 10px;
	background: #DFECE1;
	border: 1px dashed #579360;
}

.clearleft {
	clear:left;
}

.clearright {
	clear: right;
}

/*--- Contact form ---*/

#ContactForm  {  /* set width in form, not fieldset (still takes up more room w/ fieldset width */
	margin: 0;
	padding: 0;
	/*min-width: 500px;*/
	max-width: 600px;
	width: 98%;
	font-size: 100%;
}

#ContactForm fieldset {
	padding: 10px;        /* padding in fieldset support spotty in IE */
	margin: 0;
	border: 3px solid #AED0B3;
}

#ContactForm label { 
	display: block;  /* block float the labels to left column, set a width */
	float: left; 
	width: 150px; 
	padding: 0; 
	margin: 5px 0 0; /* set top margin same as form input - textarea etc. elements */
	text-align: right; 
}

#ContactForm fieldset legend {
	font-size:1.1em; /* bump up legend font size, not too large or it'll overwrite border on left */
	color: #009534;
                       /* be careful with padding, it'll shift the nice offset on top of border  */
}

#ContactForm input, #ContactForm textarea, #ContactForm select {
	/* display: inline; inline display must not be set or will hide submit buttons in IE 5x mac */
	width:auto;      /* set width of form elements to auto-size, otherwise watch for wrap on resize */
	margin:5px 0 0 10px; /* set margin on left of form elements rather than right of
                              label aligns textarea better in IE */
}

#ContactForm input#reset {
	margin-left:0; /* set margin-left back to zero on reset button (set above) */
}

#ContactForm textarea { overflow: auto; }

#ContactForm small {
	display: block;
	margin: 0 0 5px 160px; /* instructions/comments left margin set to align w/ right column inputs */
	padding: 1px 3px;
	font-size: 88%;
	color: #666666;
}

#ContactForm .required {
	font-weight:bold;} /* uses class instead of div, more efficient */

#ContactForm br {
	clear:left; /* setting clear on inputs didn't work consistently, so brs added for degrade */
}
