/*
Theme Name: Thorndon Chambers
Description: Custom theme for Thorndon Chambers
Version: 1.0
Author: Lee ter Wal
Author URI: http://leeterwal.com/
*/

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; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.3; }

::-moz-selection { background: #d5d4e1; text-shadow: none; }
::selection { background: #d5d4e1; text-shadow: none; }

a { color: #547399; text-decoration: none; }
a:visited { color: #726ba8; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

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; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
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%; }

sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

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; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

svg:not(:root) { overflow: hidden; }

figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
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, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }


/* ===== Primary Styles ========================================================
   Author: ksuyin
   ========================================================================== */
/* layout */
body {
	background: #2e272e;
	font-family: 'Calibri', 'Optima', Arial, sans-serif;
}
header, #main, footer {	width: 100%;}


/* typography */
h1,h2 {
	font-family: 'Lora', 'Cambria', Georgia, serif;
	color: #666;
	font-style: italic;
}
h2 {
	font-size: 1.2em;
}

h3 {
	color:#333;
	font-size: 1.1em;
	font-weight: normal;
}
/* header */
header {	
	background: #2e272e url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat;
	background: -moz-linear-gradient(top,  #2e272e 0%, #474659 100%) url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat; /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2e272e), color-stop(100%,#474659)) url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat; /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #2e272e 0%,#474659 100%) url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat; /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #2e272e 0%,#474659 100% url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #2e272e 0%,#474659 100%) url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat; /* IE10+ */
	background: linear-gradient(to bottom,  #2e272e 0%,#474659 100%) url('/wp-content/themes/thorndon/images/header-bg.png') 50% 0 no-repeat; /* W3C */
	border-bottom: 7px solid #d5d4e1;
}
.logo {
	background: url('/wp-content/themes/thorndon/images/logo.png') no-repeat;
	background-size: 100%;
	height: 77px;
	max-width: 257px;
	width: 30%;
}

/* nav */
#primary {
	border-bottom: 7px solid #abcfec;
	height: 90px;
	padding: 0 0 5px;
	position: relative;
	top: 7px;
}
.page-id-6 #primary {
	border-bottom: 7px solid #d66644;
}
.page-id-9 #primary {
	border-bottom: 7px solid #dff149;
}
.page-id-11 #primary, .page-child #primary {
	border-bottom: 7px solid #aa7bf0;
}
#primary ul {
	position: relative;
	top: 71px;
	margin: 0 20px;
	}
#primary li {
	float: left;
	display: inline-block;
	margin: 0 20px;
}
#primary li {
	float: left;
	margin: 0;
}
#primary li a{
	color:#abcfec;
	font-weight: bold;
	font-size: 1.15384615384615em;
	padding: 3px 18px;
}
#primary li:nth-child(2) a{
	color:#d66644;
}
#primary li:nth-child(2) a:hover{
	background:#d66644;
}
#primary li:nth-child(3) a{
	color:#dff149;
}
#primary li:nth-child(3) a:hover{
	background:#dff149;
	color: #2e272e;
}
#primary li:nth-child(4) a{
	color:#aa7bf0;
}
#primary li:nth-child(4) a:hover{
	background:#aa7bf0;
}
#primary li a:hover{
	background: #abcfec;
	color: #fafafa;
}
.home article {
	width: 38%;
}
.home article .wp-post-image {
	max-width: 263%;
	margin-bottom: 20px;
}
.home aside {
	background: none;
	padding: 0 0 20px;
	margin:210px 0 0;
	width: 58%;
	max-width: none;
	min-width: none;
}
.home aside h2{
	margin-bottom: 5px;
}
.home aside ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.home aside li {
	float: left;
	font-size: 0.85em;
	line-height: 1em;
	height: 100px;
	margin: 0 20px 40px 0;
	width: 70px;
}
.home aside li img {
	margin-bottom: 5px;
	max-height: 86px;
	max-width: 62px;
}
/* main content */
#main {	background: #fafafa;}
article {
	width: 60%;
}
.page-id-6 article, .page-id-9 article {
	width: 100%;
}
.practice-box {
	width: 30%;
}
.practice-box h3{
	margin-bottom: 5px;
}
.practice-box ul{
	margin: 0 0 20px;
	padding: 0;
}
.practice-box li{
	font-size: 1em;
	list-style: none;
}
.practice-box li a {
	color: #d66644;
}
.page-id-9 .practice-box li a {
	color: #afbc34;
}
.practice-box li a:hover {
	text-decoration: underline;
}
/* sidebar */
aside {
	margin: 20px 0 10px;
	padding: 20px;
	min-width: 24%;
	max-width: 30%;
	width: 90%;
	background: #fff;
}
aside img {
	margin: 0 0 10px;
	text-align: center;
}
.page iframe {
	width: 100%;
}
.page-id-9 aside {display: none;}

/* home */

/* footer */
footer {
background: #474659; /* Old browsers */
background: -moz-linear-gradient(top,  #474659 0%, #2e272e 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#474659), color-stop(100%,#2e272e)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #474659 0%,#2e272e 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #474659 0%,#2e272e 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #474659 0%,#2e272e 100%); /* IE10+ */
background: linear-gradient(to bottom,  #474659 0%,#2e272e 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#474659', endColorstr='#2e272e',GradientType=0 ); /* IE6-9 */
	border-top: 15px solid #d5d4e1;
	color: #a6a5b9;
	float: left;
	font-size: 0.84em;
	line-height: 1.1em;
	padding: 20px 0;
	margin-top: 20px;
}
footer .org {
	color: #fefefe;
	font-size: 1.3em;
}
footer .adr {
	margin-bottom: 12px;
}
footer a {
	color: #fefefe;
}

footer a:hover {
	color: #fefefe;
	text-decoration: underline;
}
.copyright {
	background: url('/wp-content/themes/thorndon/images/dots.png') repeat-x;
	padding-top: 40px;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {
	/* Style adjustments for viewports that meet the condition */
}
@media only screen and (max-width: 480px) {
.logo {
	height: 42px;
	width: 90px;
	background-size: 100%;
	margin-top: 5px;
}
header {
	height: 100px;
}
#primary {
	margin-top: -10px;
	height: 85px;
	top: 0;
}
#primary ul {
	margin: 0;
	float: right;
	top: 0;
	width: 65%;
}
#primary li a{
	font-size: 0.9em;
}
article, aside {
	width: 100%;
}
aside {
	width: 90%;
}
.home article .wp-post-image {
	max-width: 150%;
	margin-bottom: 0;
}
.home aside {
	margin-top: 0;
	float: none;
}
	.home aside li {
		margin-right: 17px;
		}
.practice-box {
	width: 100%;
}
footer .vcard {
	margin-bottom: 10px;
}
footer .copyright {
	clear: both;
	float: none;
}
}
@media only screen and (max-width: 670px) and (min-width: 481px) {
	.logo {
		height: 0;
		padding-top: 10%;
		width: 30%;
		background-size: 100%;
		}
	
	header {
		height: 100px;
		}
	
	#primary {
		margin-top: -10px;
		height: 85px;
		top: 0;
		}

		#primary ul {
			width: 60%;
			top: 0px;
			}
			
			#primary li a{
				font-size: 0.9em;
				}
	
}

@media only screen and (max-width: 670px) {
	
	.home article,
	.home aside {
		width: 100%;
		margin-top: 0;
	}
	.home article .wp-post-image {
		max-width: 100%;
		margin-bottom: 0;
	}
	
	aside {
		width: 90%;
		max-width: none;
	}
	
}

@media only screen and (max-width: 940px) and (min-width: 671px) {

	#primary ul {
		width: 60%;
		top: 0px;
		}
		
		.home article,
		.home aside {
			margin-top: 0;
			}
		
		.home article {
			width: 50%;
			}
			
			.home article .wp-post-image {
				max-width: 200%;
			}

		.home aside {
			width: 48%;
			margin-top: 23%;
			}

}

@media only screen and (max-width: 940px) {

}




		

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
	.logo {
		background-image: url('/wp-content/themes/thorndon/images/logo.svg');
	}	
	.copyright {
		background-image: url('/wp-content/themes/thorndon/images/dots@2x.png');
	}

}


/* =============================================================================
   Non-Semantic Helper Classes
   ========================================================================== */
.fl{float:left;}
.fr{float:right;}
.cl{clear:both;}
.center {text-align:center;}
.middle {margin:0 auto;width: 90%;max-width: 960px;}
.uppercase {text-transform:uppercase;}
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

/* =============================================================================
   Print Styles
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
  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: ""; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; }
  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; }
}
