/* CSS Document for Screens */

@import 'https://fonts.googleapis.com/css?family=Roboto+Condensed';

/* Style Outlines to Define Page and Keep Footer at Bottom */

html, body {
	height:100%;
	margin:0; padding:0;
	}
	
#page {
	position:relative;
	max-width: 1000px; min-height:100%;
	margin:0 auto; padding:0;
	}

#header {
	}

#content {
	display: block;
	padding-bottom: 40px;   /* Height of the footer element */
	}
	
#content:after { content:''; display: block; clear: both; }

#footer {
	position:absolute;
	width: 100%; height: 40px; bottom:0; left:0;
	}
		
	
/* Site Specific Styles */

body {
	font-family: 'Roboto Condensed', sans-serif;
	background-color: #fff; color: #555;
	margin: 0; padding: 0;
	}

/* Text */

h1, h2, h3, h4 {
	color: #cc0000;
	}

h1 {
	margin: 0 0 1em 0;
	font-size: 2em;
	font-weight: 700;
	}

h2 {
	margin: 0 0 0.5em 0;
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.1em;
	}

h3 {
	margin: 0 0 0.5em 0;
	font-size: 1.3em;
	font-weight: 700;
	}

h4 {
	margin: 0 0 1.5em 0;
	font-size: 1em;
	font-weight: 700;
	}

p {
	margin: 0 0 1em 0;
	}

a {
	color: #c00;
	}

a:visited {
	color: #c00;
	}

a:hover {
	color: #c00;
	}

h4 a {
	text-decoration: none;
	}

/* Header */

#header {
	height: 190px;
	background: url(../images/bg-header.png) no-repeat left top;
	position: relative;
	}

#header a.logo {
	z-index: 1;
	position: absolute;
	display: block;
	width: 415px;
	height: 190px;
	background: url(../images/staniforth-consulting.svg) no-repeat 0 0;
	background-size: contain;
	top: 0;
	right: 0;
	}

#header a.logo span {
	display: none;
	}

/* content */

section {
	padding: 30px 0 40px 0;
	}

section::after { content: ''; display: block; clear: both; margin-bottom: 40px;}

section  li {
	padding-bottom: 1em;
	}
	
section blockquote.quote p {
	font-style: italic;
	}
	

/* Contact Form */

fieldset {
	width: 25em;
	margin-bottom: 3em;
	padding: 1em;
	border: 1px solid #c00;
	border-radius: 0.4em;
	}
	
legend {
	padding: 0.4em 1em;
	border: 1px solid #c00;
	color: #c00;
	font-size: 110%;
	border-radius: 0.4em;
	}
	
p.field label {
	display: block;
	float: left;
	width: 10em;
	margin-right: 0.5em;
	text-align: right;
	}
	
p.field input, p.field textarea {
	width: 20em;
	}
	
.submit input {
	width: 10em;
	padding: 1em;
	margin-left: 10em;
	font-size: 100%;
	}
	
p.formnote {
	margin-left: 11.5em;
	font-size: 90%;
	}
	
aside.clientlogos {
	width: 180px;
	padding-top: 20px;
	}
	
.clientquote {
	width: 50%;
	margin: 20px;
	padding-top: 20px;
	border-top: 1px dashed #cc0000;
	font-size: 90%;
	}
	
.clientquote p {
	font-style: italic;
	}
	
.clientquote h3 {
	text-align: right;
	font-weight: normal;
	font-style: italic;
	font-size: smaller;
	}
	
.clientquote h3 a, .clientquote h3 a:visited {
	font-size: smaller;
	}
	
.clientquote h4 {
	text-align: right;
	font-weight: normal;
	font-style: italic;
	font-size: smaller;
	}
	
#quotes {
	margin-bottom: 60px;
	padding-bottom: 60px;
	}
	
#quotes:after { content:''; display: block; clear: both; }
	

/* Aside */
	
aside {
	display: block;
	width: 238px;
	float: right;
	margin: 26px 0 0 26px;
	padding: 26px;
	}
	
aside:after { content:''; display: block; clear: both; }


/* Navigation */

nav {
	/* background-color: #c00; */
	position: absolute;
	top: 0px;
	left: 0px;
	padding: 147px 0 0 0;
	width: 100%;
	font-size: 0.8em;
	}
	
nav:after { content: ''; display: block; clear: both; }
	
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	}
	
nav ul li:hover {
	background-color: #c00;
	}
	
nav ul li:hover > ul {
	display: block;
	}
	
nav ul li a {
	display: inline-block;
	color: #fff;
	padding: 10px 20px;
	text-decoration: none;
	width: 120px;
	position: relative;
	}
	
nav ul li a:visited {
	color: #fff;
	}
	
nav ul li a:hover {
	background-color: #f00;
	color: #fff;
	}
	
nav ul ul {
	position: absolute;
	top: 100%;
	background-color: #c00;
	display: none;
	}
	
nav ul ul li {
	position: relative;
	}
	
nav ul ul ul {
	left: 100%;
	top: 0px;
	}
	
nav > ul {
	padding-left: 0;
	}
	
nav > ul > li {
	float: left;
	}
	
nav > ul > li > a {
	width: auto;
	padding: 10px 20px 15px 20px;
	}
	
nav a[aria-haspopup="true"]::after {
	content: '';
	display: block;
	width: 0px;
	height: 0px;
	position: absolute;
	top: 16px;
	right: 15px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 4px solid #fff;
	}
	
nav > ul > li > a[aria-haspopup="true"]::after {
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid #fff;
	left: 20px;
	right: auto;
	bottom: 6px;
	top: auto;
	}
	
	
/* Footer */

#footer {
	font-size: 0.8em;
	margin: 0;
	padding: 20px 0 10px 22px;
	background-color: #cc0000;
	color: #fff;
	}
	
#footer .footnote {
	display: inline;
	}
	
#footer a {
	margin-left: 30px;
	color: #fff;
	}
	
#footer a:visited {
	color: #fff;
	}
	
#footer a:hover {
	color: #fff;
	}
	
	

/* Media Queries */



@media screen and (max-width: 1000px) {
	
	#header {
		height: 152px;
		background: url(../images/bg-header-760.png) no-repeat left top;
		position: relative;
		}
	
	#header a.logo {
		z-index: 1;
		position: absolute;
		display: block;
		width: 332px;
		height: 152px;
		background: url(../images/staniforth-consulting.svg) no-repeat 0 0;
		background-size: contain;
		top: 0;
		right: 0;
		}
	
	#content {
		padding: 0 20px;
		}
		
	#quotes {
		font-size: 0.9em;
		}

	nav {
		position: absolute;
		top: 0px;
		left: 0px;
		padding: 108px 0 0 0;
		width: 100%;
		font-size: 0.8em;
		}
	
	nav > ul > li > a {
		width: auto;
		padding: 10px 15px 15px 15px;
		}
		
	
	
	}



@media screen and (max-width: 760px) {
	
	
	#header {
		height: 119px;
		background: url(../images/bg-header-625.png) no-repeat left top;
		position: relative;
		}
	
	#header a.logo {
		z-index: 1;
		position: absolute;
		display: block;
		width: 260px;
		height: 119px;
		background: url(../images/staniforth-consulting.svg) no-repeat 0 0;
		background-size: contain;
		top: 0;
		right: 0;
		}
	
aside.clientlogos img {
	width: 150px;
	}
		

	nav {
		position: absolute;
		top: 0px;
		left: 0px;
		padding: 84px 0 0 0;
		width: 100%;
		font-size: 0.8em;
		}
	
	nav > ul > li > a {
		width: auto;
		padding: 6px 15px 9px 15px;
		}
	
nav a[aria-haspopup="true"]::after {
	content: '';
	display: block;
	width: 0px;
	height: 0px;
	position: absolute;
	top: 10px;
	right: 10px;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 4px solid #fff;
	}
	
nav > ul > li > a[aria-haspopup="true"]::after {
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid #fff;
	left: 15px;
	right: auto;
	bottom: 2px;
	top: auto;
	}
		
	span {
		display: none;
		}
	
	#content {
		padding: 0 20px;
		}
			
	aside {
		display: block;
		width: 200px;
		float: right;
		margin: 20px 0 0 20px;
		padding: 20px;
		}
		
	
	
	}



@media screen and (max-width: 625px) {
	
	
	#header {
		background: none;
		}
	
	#header a.logo {
		z-index: 1;
		position: absolute;
		display: block;
		width: 100%;
		background: url(../images/staniforth-consulting.svg) no-repeat top right;
		background-size: contain;
		top: 0;
		right: 0;
		}
	
	/* Navigation */
	
	/* Static positioning moves it "back" into its true HTML position, resetting width back to overides the earlier settings for top positioned dynamic menu */
	
	nav { position: static; width: auto; padding: 20px 15px 60px 15px; background-color: #cc0000; }

	nav ul, nav ul ul, nav ul ul ul { 
		display: block;
		position: static;
		}
		
	nav > ul {padding: 0; }
	
	nav > ul > li { float: none; margin-top: 25px; }
	
	nav ul li:hover {background: none; }
	
	nav ul li a {
		width: auto;
		display: block;
		margin: 8px 10px;
		padding: 8px 15px;
		border: 1px solid rgba(255,255,255,0.25);
	 	}
		
	nav ul li a:hover { 
		background-color: rgba(255,255,255,0.2);
		}
		
	nav ul ul { background: none; }
	
	nav ul ul li a { margin-left: 30px; }
	nav ul ul ul li a { margin-left: 60px; }
	
	nav a[aria-haspopup="true"]::after { display: none; }
	
	nav ul li:nth-child(5) { display: none; }
	
	
	}
	

@media screen and (max-width: 425px) {
	
	
aside.clientlogos {
	width: 90px;
	padding-top: 10px;
	}
	
aside.clientlogos img {
	width: 90px;
	}
	
aside.Slides {
	display:none;
	}
	
aside.photo {
	display:none;
	}
	

	
#footer a {
	margin-left: 0;
	}
	
#footer .footnote {
	display: block;
	}
	
	
}