/*
Theme Name: RPH
Theme URI: http://www.rphconsulting.co.nz
Author: Randy Jensen & Randy Hoyt
Author URI: http://www.handcraftedwp.com
Description: HTML5 starter theme based off Ian Stewart's HTML5 Toolbox Theme with other goodies added plus chunks of Paul Irish's HTML5 Boilerplate mixed in for good measure. Shake well. 
Version: 0.9.1
*/

/*
Future release
- css3 script is hardcoded, need to make dynamic, in functions.php
*/

/* html5doctor.com Reset Stylesheet \\v1.6.1 \\ Last Updated: 2010-09-17 \\ http://richclarkdesign.com \\ @rich_clark */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,t
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin:0;
  padding:0;
  border:0;
  outline:0;
  font-size:100%;
  vertical-align:baseline;
  background:transparent;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display:block; }
nav ul { list-style:none; }
blockquote, q { quotes:none; padding: 12px 12px 22px 12px; }
blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; }
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
ins { background-color:#ff9; color:#000; text-decoration:none; }
mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0; }
hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
input, select { vertical-align:middle; }

/*
 *
 * Base Typography 
 *
 */

body { 
	color: #444;
	font-size:14px;
	line-height: 1.61;
	*font-size:small; /*IE fix*/
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
    font-weight: 300;
   
   }
select, input, textarea, button { 
    background: #fff!important;
	font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
    font-weight: 300;
}

pre, code, kbd, samp { font-family: monospace, sans-serif; }

@font-face {
    font-family: 'univers_lt_std_47_cn_ltbold';
    src: url('fonts/universltstd-boldcn.eot');
    src: local('☺'), 
    	 url('fonts/universltstd-boldcn.eot?#iefix') format('embedded-opentype'),
         url('fonts/universltstd-boldcn.woff') format('woff'),
         url('fonts/universltstd-boldcn.ttf') format('truetype'),
         url('fonts/universltstd-boldcn.svg#univers_lt_std_47_cn_ltbold') format('svg');
    font-weight: normal;
    font-style: normal;
}

/*
 *
 * Base Styles 
 *
 */
body, select, input, textarea { 
  /* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */ 
	background: #E2E2E2;
  /* set your base font here, to apply evenly */
  /* font-family: Georgia, serif;  */   
}
/* Headers (h1,h2,etc) have no default font-size or margin,
   you'll want to define those yourself. */ 
h1,h2,h3,h4,h5,h6 { font-weight: bold; }
/* always force a scrollbar in non-IE */ 
html { overflow-y: scroll; }
/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }
a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }
ul, ol { margin-left: 1.8em; }
ol { list-style-type: decimal; }
/* Remove margins for navigation lists */
nav ul, nav li { margin: 0; } 
small { font-size: 85%; }
strong, th { font-weight: bold; }
td, td img { vertical-align: top; } 
sub { vertical-align: sub; font-size: smaller; }
sup { vertical-align: super; font-size: smaller; }
pre { 
  padding: 15px; 
  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  white-space: pre; /* CSS2 */
  white-space: pre-wrap; /* CSS 2.1 */
  white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
  word-wrap: break-word; /* IE */
}
textarea { overflow: auto; } /* thnx ivannikolic! www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */
.ie6 legend, .ie7 legend { margin-left: -7px; } /* thnx ivannikolic! */
/* align checkboxes, radios, text inputs with their label
   by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }
/* hand cursor on clickable input elements */
label, input[type=button], input[type=submit], button { cursor: pointer; }
/* webkit browsers add a 2px margin outside the chrome of form elements */  
button, input, select, textarea { margin: 0; }
/* colors for form validity */
input:valid, textarea:valid   {  }
input:invalid, textarea:invalid { 
      border-radius: 1px;
    -moz-box-shadow: 0px 0px 5px red; 
 -webkit-box-shadow: 0px 0px 5px red; 
         box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, 
.no-boxshadow textarea:invalid { background-color: #f0dddd; }
/* These selection declarations have to be separate.
   No text-shadow: twitter.com/miketaylr/status/12228805301 
   Also: hot pink. */
::-moz-selection{ background: #E89000; color:#fff; text-shadow: none; }
::selection { background:#E89000; color:#fff; text-shadow: none; } 
/*  j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #E89000; } 
/* make buttons play nice in IE:    
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {width: auto; overflow: visible;}
/* bicubic resizing for non-native sized IMG: 
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img {-ms-interpolation-mode: bicubic;}

/*
 *
 * Nonsemantic Base Styles 
 *
 */
/* for image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
/* Hide for both screenreaders and browsers
   css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; } 
/* Hide only visually, but have it available for screenreaders 
   www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden  */
.visuallyhidden { position: absolute !important;    
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px); }
/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }
/* >> The Magnificent CLEARFIX: Updated to prevent margin-collapsing on child elements << j.mp/bestclearfix */
.clearfix:before, .clearfix:after {
  content: "\0020"; display: block; height: 0; visibility: hidden;	
} 
.clearfix:after { clear: both; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }
.expander {clear: both;}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
}
.alignright {
	display: inline;
	float: right;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.textcenter {text-align: center; display: block; }

/*tables*/
table.comparison {margin: 0 auto;}

table.comparison th {margin: 12px; padding: 6px; text-align: center; }
table.comparison td {padding: 0 15px 28px 15px;
margin: 0 20px 28px 20px;}

table td.title-box {  background: #05509d; color: #fff; display: block;padding: 12px 15px; } 


/*
 *
 * Base Print Styles, inline to save the HTTP request
 *
 */
@media print {
  * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a:after { content: " (" attr(href) ")"; } 
  abbr:after { content: " (" attr(title) ")"; }
  .ir a:after { content: ""; }  /* Don't show links for images */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */ 
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }

}


/*
 *
 * Link style
 *
 */
a, a:link {
	color: #607890;
	text-decoration: none;
}
a:hover, 
a:active {
	color: #093867;
	text-decoration: underline;
}


/*
 *
 * Structure
 *
 */
#page {
	background: white;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
	display: block;
	margin: 6px auto;
	padding: 20px;
	width: 940px;
}
#primary {
	float: left;
	margin: 0;
	width: 100%;
	padding-bottom: 24px;
}
#primary.thin {
	margin: 0 -220px 0 0;
	width: 684px;
}
#primary h2 {
	font-size: 20px;
	line-height: 28px;
	}
#secondary {
margin: 0 12px 36px 12px;
width: 200px;
overflow: hidden;
float: right;
background: #ededed;
padding: 12px 12px 24px 12px;
}
#secondary h3 {text-align: center; margin: 6px;}
#secondary a, #secondary a:link, #secondary a:visited {
	color: #3e5770;
	text-decoration: none;
}
#secondary ul {
margin-bottom: 6px;
padding: 12px;
}
#secondary ul.services-list { margin-left: 0; list-style: none;}
#secondary ul.services-list li ul {
margin-top: 0;
margin-bottom: 0;
padding-top: 4px;
padding-bottom: 4px;
}
#secondary a:hover, 
#secondary a:active {
	color: #093867;
	text-decoration: underline;
}
#searchform {
padding-top: 8px;
border-top: solid 1px #aaa;
}
#searchform input[type=submit] {
	background: #EFEFEF !important;
	width: auto;
	border: solid 1px #999;
	margin: 12px auto 0 auto;
	font-size: 12px;
	border-radius: 2px;
	-moz-radius: 2px;
	-webkit-radius: 2px;
	padding: 8px 18px 10px;
}
#searchform input[type=submit]:hover {
background: #ddd !important; 
color: #333
}
#content {
	padding: 0 22px;
}
#main .widget-area {
	float: right;
	overflow: hidden;
	width: 220px;
}
#colophon {
	clear: both;
	display: block;
	width: 100%;
}
#supplementary {

}
/* Increase the size of the content area for templates without sidebars */
.full-width #content,
.image-attachment #content,
.error404 #content {
	margin: 0;
}


/*
 *
 * Header
 *
 */
#branding {
	background: url('images/rph-logo.png') no-repeat left top;
	height:120px;
}
#rph-logo {
	display: block;
	float: left;
	height: 88px;
	width: 479px;

	
}
#site-title {
	font-size: 2em;
	font-weight: bold;
	margin: .67em 0;
}
#site-description {
	font-size: 1em;
	font-weight: normal;
	margin: 0 0 1em;
}


/*
 *
 * Menu
 *
 */
#utility {
	float: right;
} 
 
#access {
	border-bottom: 3px solid #004e9c;
	color: #000;
	display: block;
	float: left;
	font-family: 'univers_lt_std_47_cn_ltbold', arial, Sans-Serif;
	margin: 12px auto;
	width: 100%;
}

#access ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
#access li {
	float: left;
	position: relative;
}

#access ul ul {
	box-shadow: 0 3px 3px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
	-webkit-box-shadow: 0 3px 3px rgba(0,0,0,0.2);
	display: none;
	float: left;
	position: absolute;
	top: 2em;
	left: 0;
	z-index: 99999;
}
#access ul ul ul {
	left: 100%;
	top: 0;
}
#access ul ul a {
	background: #333;
	color: #fff;
	line-height: 1em;
	padding: .5em .5em .5em 1em;
	width: 10em;
	height: auto;
}
#access a {
	display: block;
	line-height: 2em;
	padding: 0 1em;
	text-decoration: none;
	color: #000;
}
#access  a:link {}
#access  a:visited {}
#access a:focus {}
#access a:hover {
	*background: #808285;
	*color: #fff;
}

#access li:hover > a,
#access ul ul :hover > a {
	background: #808285;
	color: #fff;
}
#access ul ul a:hover {
	background: #000;
}
#access ul li:hover > ul {
	display: block;
}
#access  a:active {}



/*
 *
 * Content
 *
 */
 
 /*home page*/
 
div.entry-content {float: none;} 
 
ul.home-services-list {
	margin-left: 0;
}
ul.home-services-list li {
	font-weight: bold;
	list-style: none;
}
ul {}
 
#slideshow {
	background: url('images/slideshow1.jpg') no-repeat;
	height: 265px;
	margin: 8px 0 12px 0;
	*margin-top: 25px;
}
#slideshow.about {background: url('images/slideshow2.jpg') no-repeat;}
#slideshow h3 {
	background: rgba(241,241,242,0.6);
	background: #fff\9;
	margin: 8px 0;
	padding: 8px;
	width: 626px;
float: left;
}

/*All content tags styled in here!*/

h1, h2, h3, h4, h5, h6 {
	color: #03509d;
	text-transform: uppercase;
margin-bottom: 8px;
}

.entry-title {
	font-size: 24px; 
	line-height: 42px;
	text-align: center;
margin-bottom: 6px;
}


p {
	margin-bottom: 1em;
}

.one-half {
	margin: 12px 2% 16px 0;
	width: 46%;
} 
.one-quarter {
	margin: 16px 2%;
	width: 21%;
}

#content nav {
	display: block;
	overflow: hidden;
}
#content nav .nav-previous {
	float: left;
	width: 50%;
}
#content nav .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}
#content #nav-above {
	display: none;
}
.paged #content #nav-above,
.single #content #nav-above {
	display: block;
}
#nav-below {
	margin: 1em 0 0;
}
.page-link {
	margin: 0 0 1em;
}
body.blog .post
{
	border-bottom: solid 1px #CCC;
	padding-bottom: 12px;
	margin-bottom: 8px;
	}
body.search .page
 {
	border-top: solid 1px #CCC;
	padding-top: 12px;
	margin-top: 8px;
}



/*list styles*/
.entry-content ul {margin-bottom: 18px;}

.entry-content ul li ul {margin-bottom: 6px; margin-top: 6px;}
/*
 *
 * Images
 *
 */
/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
.widget-area img {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
img.alignleft {
	margin-right: 32px;
}
img.alignright {
	margin-left: 32px;
}
.wp-caption {
	padding: 18px;
	text-align: center;
}
.wp-caption img {
	margin: .25em;
}
.wp-caption .wp-caption-text {
	margin: .5em;
}

/* Forms - Class for labelling required form items */
.required {
	color: #cc0033;
}
/*
 *
 * Single post
 *
 */
.page-header {font-size: 13px;}
.page-title author {}
.entry-meta {font-size: 12px;}

/*
 *
 * Comments
 *
 */
article.comment {
	display: block;
}
#respond {
width: 100%;
margin: 12px auto;
}
#respond input[type=text] {
	float: left;

	margin: 0 1em 0 0;
}
#respond .comment-form-comment label {
	display: none;
}
#respond textarea {
	margin: 0 1em 1em 0;
	float: left;
	width: 80%;
}
#respond .form-allowed-tags {
	clear: both;
	width: 80%;
}
#respond .form-allowed-tags code {
	display: block;
}

.form-allowed-tags {display: none;}
.form-submit input[type="submit"] {
color: #333;
background: #EFEFEF !important;
width: 170px;
border: solid 1px #999;
height: 42px;
margin: 0 auto;
font-size: 16px;
border-radius: 2px;

}

.form-submit input[type="submit"]:hover {
background: #ddd !important; 
color: #333;
}
ol.commentlist {
margin-left: 32px;
margin-top: 12px;
}

/*contact-box*/
.contact-box {
width: 330px;
margin: 0 auto;
}


/*
 *
 * Footer
 *
 */
#colophon {
	border-top: solid 1px #ccc;
	padding: 1em 0 0;
}
#site-generator {
	text-align: center;
}

/*admin*/
.edit-link {

}



/*
 *
 * Media queries for responsive design
 * These follow after primary styles so they will successfully override. 
 *
 */
 
@media all and (orientation:portrait) { 
  /* Style adjustments for portrait mode goes here */
}
@media all and (orientation:landscape) { 
  /* Style adjustments for landscape mode goes here */
}
/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome)  
   Consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {  
  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you
     j.mp/textsizeadjust 
  html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}

@media all and (min-width: 1001px) { /*default width*/
  		#page {}
  		#branding {} 
  		#primary {}
  		#slideshow {}
}
@media all and (max-width: 1001px) and (min-width: 768px) {
  		#page {
  			margin: 0 auto;
			padding: 12px;
			width: 98%;
  		}
  		#slideshow {width: 100%; overflow: hidden;}
  		.contact-box {width: 400px; margin: 0 30px;}
}
@media all and (max-width: 768px) and (min-width: 640px) {
  		#page {
  			margin: 0 auto;
			padding: 12px 0;
			width: 98%;
}
  		#branding {
  			background: url('images/rph-logo.png') no-repeat center top;
} 
  		#primary {padding: 12px;}
  		.entry-content {width: 95%;}
  		#access {font-size: 16px;}
  		#utility {
  			float: left; 
  			height: 60px; 
  			margin: 0 auto; 
  			width: 100%; 
  			font-size: 12px; 
  			text-align: center;
  		}
  		#rph-logo {width: 100%;}
  		#slideshow {width: 90%; overflow: hidden; margin: 0 auto; clear: both; display: block;}
  		#slideshow h3 {width: 100%;}
  		.one-half {float: left; width: 100%;}
  		#utility {float: right;}
  		.contact-box {width: 400px; margin: 0 auto;}
  		#secondary {
  		margin: 0 auto 36px auto;
		width: 400px;
		float: none;
  		}

table.comparison {margin: 0; padding: 0;}
table.comparison th, 
table.comparison td,
table.comparison tr {display: block; width: 80%;}
td.comparison-other {display: none !important;}
}
@media all and (max-width: 640px) and (min-width: 320px) {
		body, p {font-size: 16px;}
  		 #page {
  			margin: 0 auto;
			padding: 12px 0;
			width: 98%;
  		}
  		#branding {
  			background: url('images/rph-logo-320.png') no-repeat center top;
  		} 
  		#rph-logo {height: 65px;}
  		#primary {padding: 8px;}
  		.entry-content {width: 95%;}
  		#access {font-size: 16px;}
  		#utility {
  			float: left; 
  			height: 60px; 
  			margin: 0 auto; 
  			width: 100%; 
  			font-size: 12px; 
  			text-align: center;
  		}
  		#rph-logo {width: 100%;}
  		#slideshow {width: 100%; overflow: hidden; margin: 0 auto; clear: both; padding: 0; display: block;}
  		#slideshow h3 {width: 100%;}
  		.one-half {float: left; width: 100%; margin-bottom: 12px;}
  		#utility {float: right;}
  		#secondary {
  		font-size: 18px;
  		color: #000;
  		margin: 0 auto 36px auto;
		width: 90%;
		float: none;
  		}
table.comparison {width: 100%; margin: 0; padding: 0;}
table.comparison th, 
table.comparison td,
table.comparison tr {display: block; width: 80%;}
td.comparison-other {display: none !important;}
  }

@media all and (max-width: 320px) and (min-width: 200px) {
		body, p {font-size: 18px;}
  		 #page {
  			margin: 0 auto;
			padding: 12px 0;
			width: 98%;
  		}
  		#branding {
  			background: url('images/rph-logo-small.png') no-repeat center top; 
  			height: 300px; 
  		} 
  		#rph-logo {height: 250px;} 
  		#primary {padding: 8px; clear: both;}
  		.entry-content {width: 95%;}
  		#access {font-size: 16px;}
  		#access a {
  			padding:  12px 16px;
  		}
  		#utility {
  			float: right; 
  			height: 60px; 
  			margin: 0 auto; 
  			width: 100%; 
  			font-size: 18px; 
  			text-align: center;
  			border-bottom: 1px solid #ccc;
  			margin-bottom: 12px;
  		}
  		#rph-logo {width: 100%;}
  		#slideshow {display: none;}
  		#slideshow h3 {width: 100%;}
  		.one-half {float: left; width: 100%;  margin-bottom: 12px;}
  		#utility {clear: both; display: block;}
  	 		#access {display: block; clear: both;}
table.comparison {width: 80%; margin: 0; padding: 0;}
table.comparison th, 
table.comparison td,
table.comparison tr {display: block; width: 80%;}
td.comparison-other {display: none !important;}
  }

@media all and (max-width: 200px) {
  		body {}
 		#utility {clear: both; display: block;}
 		#access {display: block; clear: both;}
table.comparison {width: 80%; margin: 0; padding: 0;}
table.comparison th, 
table.comparison td,
table.comparison tr {display: block; width: 80%;}
td.comparison-other {display: none !important;}
 }
  /* contact form */

.wpcf7 input, .wpcf7 textarea {width: 320px !important;}
.wpcf7 input[type=submit] {width: 120px !important;}