/* 
 * HTML5 ✰ Boilerplate
 *
 * What follows is the result of much research on cross-browser styling. 
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 *
 * Detailed information about this CSS: h5bp.com/css
 * 
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 13px; line-height: 1.231; }

body, button, input, select, textarea { font-family: sans-serif; color: #222; }

/* 
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection { background: #990000; color: #fff; text-shadow: none; }
::selection { background: #990000; color: #fff; text-shadow: none; }


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e 
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9 
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */

table button, table input { *overflow: auto; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/* 
 * Remove inner padding and border in FF3/4: h5bp.com/l 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* 
 * 1. Remove default vertical scrollbar in IE6/7/8/9 
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* ==|== primary styles =====================================================
   Author: Kurt Gawinowicz
   ========================================================================== */

/* ----- General ----- */
html {
	background-color: #000;
	-webkit-tap-highlight-color: rgba(153,0,0,.4);
}
body {
	background: #DDD url(/img/background_tile.jpg);	
	border-top: 10px solid #1A1A1A;
	color: #1A1A1A;
	font: 112.5%/1.5 Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", Georgia, serif;
	text-rendering: optimizeLegibility;
}
.ie6 body {
	font-size: 100%;
}
h1, h2, h3 {
	font-weight: normal;
	line-height: 1;
}
h1 {
	font-size: 2.666666666666667em;
}
h2 {
	font-size: 2em;
	margin: 0.5em 0;
	
}
h3 {
	font-size: 1.333333333333333em;
	margin: 0.75em 0;
}
ul, ol {
	margin-left: 1em;
	padding: 0;
}
a {
	border-bottom: 1px dashed;
	color: #1A1A1A;
	text-decoration: none;
	-webkit-transition: all 150ms;
	   -moz-transition: all 150ms;
	        transition: all 150ms;
}
a:hover, a:focus {
	border-bottom: 1px solid;
}

/* ----- Header ----- */
.header {
	border-bottom: 1px solid #D9D9D9;
	border-top: 1px solid #CCC;
	margin: 0 3%;
	padding: 2em 0;
}
.header h1, .header h2 {
	font-weight: normal;
	line-height: 1;
	text-align: center;
    text-shadow: 0 2px 3px #FFFFFF;
	text-transform: uppercase;
}
.header h1 {
	margin: 0;
	font-size: 1em;
	letter-spacing: 0.166666666666667em;
	color: #B02424;	
}
.header h2 {
	margin: 0;
	font-size: 0.666666666666667em;
}

/*----- Content ----- */
#main {
	padding: 0 3%;
}
.section {
	border-bottom: 1px solid #D9D9D9;
	border-top: 1px solid #F2F2F2;
}

/*----- Intro ----- */
.intro p {
	margin: 0;
	padding: 0.666666666666667em 0;
	font-size: 1.166666666666667em;
	line-height: 1.1;
}

/*----- Services ----- */
.services li {
	margin-bottom: 0.333333333333333em;
}

/*----- Testimonials ----- */
.testimonials blockquote {
	margin: 0 0 1.166666666666667em;
}
.testimonials blockquote p {
	margin: 0 0 0.5em;
}
.quote {
	position: relative;
	display: inline-block;
	font-size: 1.166666666666667em;
	font-style: italic;
}
.open-quote, .close-quote {
	color: #AAA;
	font-weight: bold;
}
.proofreader-name {
	color: #900;
}

/*----- Contact ----- */
.contact {
	border-bottom: none;
}
.contact div {
	margin: 0 0 0.5em;
}
.contact label {
	display: block;
}
.contact input, .contact textarea {
    display: block;
    border-color: #A9A9A9 #CCCCCC #CCCCCC #A9A9A9;
    border-style: solid;
    border-width: 1px;
    padding: 0.5em;
    width: 94%;
    background-color: #F4F4F4;
    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
    -webkit-box-shadow: 1px 1px 4px #CCCCCC inset;
       -moz-box-shadow: 1px 1px 4px #CCCCCC inset;
            box-shadow: 1px 1px 4px #CCCCCC inset;
    font: 1em/1 Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", Georgia, serif;
}
.contact input:focus, .contact textarea:focus {
	border: 1px solid;
	border-color: #BBB #DDD #DDD #BBB;
	-webkit-box-shadow: 0 0 10px #FFF inset;
	   -moz-box-shadow: 0 0 10px #FFF inset;
	        box-shadow: 0 0 10px #FFF inset;
	outline: none;
}
#submit {
	border: 1px solid #666;
	margin: 0.5em 0 1em;
	padding: 0.5em 1em;
	width: auto;
	background: #900; /* Old browsers */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b12323), color-stop(100%,#811a1a)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #b12323 0%,#811a1a 100%); /* Chrome10+,Safari5.1+ */
	background:    -moz-linear-gradient(top, #b12323 0%, #811a1a 100%); /* FF3.6+ */
	background:     -ms-linear-gradient(top, #b12323 0%,#811a1a 100%); /* IE10+ */
	background:      -o-linear-gradient(top, #b12323 0%,#811a1a 100%); /* Opera 11.10+ */
	background:         linear-gradient(to bottom, #b12323, #811a1a);
	-webkit-box-shadow: none;
	   -moz-box-shadow: none;
	        box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", Georgia, serif;
	-webkit-transition: all 50ms;
	   -moz-transition: all 50ms;
	        transition: all 50ms;
}
#submit:hover, #submit:focus {
	background: #bb2d2d; /* Old browsers */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bb2d2d), color-stop(100%,#8b2424)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #bb2d2d 0%,#8b2424 100%); /* Chrome10+,Safari5.1+ */
	background:    -moz-linear-gradient(top, #bb2d2d 0%, #8b2424 100%); /* FF3.6+ */
	background:     -ms-linear-gradient(top, #bb2d2d 0%,#8b2424 100%); /* IE10+ */
	background:      -o-linear-gradient(top, #bb2d2d 0%,#8b2424 100%); /* Opera 11.10+ */
	background:         linear-gradient(to bottom, #bb2d2d, #8b2424);
}
#submit:active {
	background: #900; /* Old browsers */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b12323), color-stop(100%,#811a1a)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #b12323 0%,#811a1a 100%); /* Chrome10+,Safari5.1+ */
	background:    -moz-linear-gradient(top, #b12323 0%, #811a1a 100%); /* FF3.6+ */
	background:     -ms-linear-gradient(top, #b12323 0%,#811a1a 100%); /* IE10+ */
	background:      -o-linear-gradient(top, #b12323 0%,#811a1a 100%); /* Opera 11.10+ */
	background:         linear-gradient(to bottom, #b12323, #811a1a);
	-webkit-box-shadow: 0 0 10px rgba(0,0,0,.5) inset;
	   -moz-box-shadow: 0 0 10px rgba(0,0,0,.5) inset;
	        box-shadow: 0 0 10px rgba(0,0,0,.5) inset;	
}
.success, .warning {
	padding: 0.5em;
	color: #FFF;
}
.success {
	background-color: #333;
}
.warning {
	background-color: #900;
}

/*----- Footer ----- */
.footer {
	background-color: #000;
	border-top: 1px solid #CCC;
	padding: 1.166666666666667em 0;
	color: #FFF;
	text-align: center;
}
.footer p {
	margin: 0;
	font-size: 0.666666666666667em;
}
.footer a {
	color: #FFF;
}

/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }



/* ==|== media queries ======================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 569px) {
  /* Style adjustments for viewports 569px and over go here */

	/* ----- Header ----- */
	.header h1 {
		font-size: 2em;
		letter-spacing: 0.166666666666667em;
	}
	.header h2 {
		font-size: 1em;
		letter-spacing: 0.222222222222222em;
	}
	
	/*----- Intro ----- */
	.intro p {
		padding: 0.5em 0;
		font-size: 2em;
	}
	
	/*----- Testimonials ----- */
	blockquote {
		padding: 0 2em;
	}
	.open-quote,
	.close-quote {
		font-size: 2.666666666666667em;
		font-weight: normal;
		line-height: 1;
		position: absolute;
	}
	.open-quote {
		left: -0.75em;
		top: -0.15em;
	}
	.close-quote {
		padding: 0.15em 0 0 0.15em;
	}
	.ie7 blockquote {
		padding: 0;
	}
	.ie7 .open-quote,
	.ie7 .close-quote {
		font-size: 1em;
		font-weight: bold;
		position: static;
	}
	
	/*----- Footer ----- */
	.footer p {
		font-size: 0.888888888888889em;
	}

}

@media only screen and (min-width: 960px) {
  	/* Style adjustments for viewports 960px and over go here */
  	
  	/* ----- General ----- */
  	ul, ol {
		margin-left: 0;
	}
  	#container {
		max-width: 1200px;
		margin: 0 auto;
	}
	.ie6 #container {
		width: 1000px;
	}

	/*----- Intro ----- */
	.intro p {
		font-size: 2.666666666666667em;
	}
  	
  	/*----- Content ----- */
  	.section {
		border: none;
	}
  	.intro, .row {
  		border-bottom: 1px solid #D9D9D9;
		border-top: 1px solid #F2F2F2;
  	}
  	.row {
  		overflow: hidden;
  	}
  	.row:last-child, .oldie .row.last {
  		border-bottom: none;
  	}
	.services, .testimonials, .about, .contact {
		float: left;
		margin: 0 2%;
		padding: 0 2%;
		width: 42%;
	}
	.ie7 .services, .ie7 .testimonials, .ie7 .about, .ie7 .contact {
		width: 41%;
	}
	.ie6 .services, .ie6 .testimonials, .ie6 .about, .ie6 .contact {
		margin: 0 1%;
		padding: 0 1%;
	}
	
	/*----- Testimonials ----- */
	blockquote {
		padding: 0;
	}
	
	/*----- Footer ----- */
	.footer {
		position: relative;
		top: 1em;
	}
	.ie6 .footer {
		clear: both;
	}
	
}



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}
