/*
Theme Name: Optical Guidance Systems
*/

/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
	overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
	-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
	-ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
body {
	background: #fff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
	outline: 0;
}
a img {
	border: 0;
}

#footer-web {
	display:none;
}


/* =Global
----------------------------------------------- */

body,
button,
input,
select,
textarea {
	color: #404040;
	font-family: sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
	clear: both;
}
hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

/* Text elements */
p {
	margin-bottom: 1.5em;
}
ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
dt {
	font-weight: bold;
}
dd {
	margin: 0 1.5em 1.5em;
}
b, strong {
	font-weight: bold;
}
dfn, cite, em, i {
	font-style: italic;
}
blockquote {
	margin: 0 1.5em;
}
address {
	margin: 0 0 1.5em;
}
pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 1.6em;
	padding: 1.6em;
	overflow: auto;
	max-width: 100%;
}
code, kbd, tt, var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
mark, ins {
	background: #fff9c0;
	text-decoration: none;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 125%;
}
figure {
	margin: 0;
}
table {
	margin: 0 0 1.5em;
	width: 100%;
}
th {
	font-weight: bold;
}
img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}
button,
input,
select,
textarea {
	font-size: 100%; /* Corrects font size not being inherited in all browsers */
	margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
	vertical-align: baseline; /* Improves appearance and consistency in all browsers */
	*vertical-align: middle; /* Improves appearance and consistency in all browsers */
}
button,
input {
	line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid #ccc;
	border-color: #ccc #ccc #bbb #ccc;
	border-radius: 3px;
	background: #e6e6e6;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
	color: rgba(0, 0, 0, .8);
	cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
	-webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
	font-size: 12px;
	line-height: 1;
	padding: .6em 1em .4em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa #bbb;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02);
}
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
html input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	border-color: #aaa #bbb #bbb #bbb;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15);
}
input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
	padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type="search"] {
	-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
	-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
	-moz-box-sizing:    content-box;
	box-sizing:         content-box;
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
	-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
	border: 0;
	padding: 0;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
	color: #111;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"] {
	padding: 3px;
}
textarea {
	overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
	padding-left: 3px;
	vertical-align: top; /* Improves readability and alignment in all browsers */
	width: 98%;
}

/* Links */
a {
	color: #da2828;
}
a:visited {
	color: #da2828;
}
a:hover,
a:focus,
a:active {
	color: #B11616;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/* Clearing */
.clear:before,
.clear:after,
[class*="content"]:before,
[class*="content"]:after,
[class*="site"]:before,
[class*="site"]:after {
	content: '';
	display: table;
}

.clear:after,
[class*="content"]:after,
[class*="site"]:after {
	clear: both;
}


/* Headings */

h1 {
	font-size: 38px;
	margin-bottom: 10px;
}

h2 {
	font-size: 32px;
	margin-bottom: 10px;
}

h3 {
	font-size: 28px;
	margin-bottom: 10px;
}

h4 {
	font-size: 22px;
	margin-bottom: 10px;
}

h5 {
	font-size: 18px;
	margin-bottom: 10px;
}

h6 {
	font-size: 16px;
	margin-bottom: 10px;
}

#footer-web {
	display: none;
}

/* =Begin
-------------------------------------------------------------- */


body {
	background: #292929;
	font-family: 'Open Sans', sans-serif;
}

.grid {
	width: 940px;
	margin: 0 auto;
}

/* =Header
-------------------------------------------------------------- */

header#main-header {
	background: #fff;
}

header#main-header h1 {
	margin: 0;
}

header#main-header h1 a {
	display: block;
	float: left;
	background: url(imgs/sprite.png) -5px -5px no-repeat;
	width: 354px;
	height: 95px;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
}

/* search */

form#search-form {
	float: right;
	margin-top: 35px;
	background: #e4e4e4;
	width: 160px;
}

form#search-form input[type="text"] {
	background: #e4e4e4;
	border-radius: none;
	border: none;
	height: 26px;
	padding: 5px 10px 3px;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 13px;
	width: 135px;
    font-family: 'EurostileRegular';
}

form#search-form input[type="submit"] {
	display: inline-block;
	background: #e4e4e4;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 2px;
	text-shadow: none;
	background: url(imgs/sprite.png) -369px -8px no-repeat;
	width: 15px;
	height: 15px;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	margin: 0 5px 0 0;
}

form#search-form ::-webkit-input-placeholder {
   color: #696969;
}

form#search-form :-moz-placeholder { /* Firefox 18- */
   color: #696969;  
}

form#search-form ::-moz-placeholder {  /* Firefox 19+ */
   color: #696969;  
}

form#search-form :-ms-input-placeholder {  
   color: #696969;  
}


/* =Navigation
-------------------------------------------------------------- */


#nav-wrapper {
	background: #292929;
}

#nav-wrapper .grid {
	width: 970px;
}

#nav-wrapper ul {
	margin: 0;
	list-style-type: none;
}

nav#main-nav {
	float: left;
	width: 860px;
}

#nav-wrapper li {
	float: left;
}

nav#main-nav a {
	display: block;
	padding: 21px 20px 20px;
	color: #fff;
    font-family: 'EurostileRegular';
    text-transform: uppercase;
    font-size: 13px;
    line-height: 13px;
    text-decoration: none;
    letter-spacing: 1px;
    background: transparent;
	-webkit-transition: background 200ms;
			transition: background 200ms;
}

nav#main-nav a:hover {
	background: #da2828 !important;
}

nav#main-nav ul ul {
	display: none;
}

nav#main-nav li.current_page_item a,
nav#main-nav li.current_page_parent a,
nav#main-nav li.current-page-ancestor a {
	background: #da2828;
}

nav#main-nav > div > ul > li.current_page_item:first-child a {
	background: none;

}

/* social nav */

nav#social-nav {
	float: right;
	width: auto;
}

nav#social-nav a {
	display: block;
	margin: 17px;
	height: 17px;
	width: 17px;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	opacity: .8;
	-webkit-transition: opacity 200ms;
			transition: opacity 200ms;
}

nav#social-nav a:hover {
	opacity: 1;
}

li.fb a {
	background: url(imgs/sprite.png) -369px -30px no-repeat;
}


/* =Slider
-------------------------------------------------------------- */

.slide-content {
	position: absolute;
	width: 700px;
	height: 300px;
	top: 50%;
	left: 50%;
	/*background: rgba(0,0,0,.8);*/
	padding: 50px;
	box-sizing: border-box;
	margin-left: -350px;
	margin-top: -150px;
	color: #fff;
	text-align: center;
	text-shadow: 2px 2px 2px rgba(0,0,0,.6);
	font-style: 'Open Sans', sans-serif;
	font-weight: 300;
}

.slide-content p {
	text-shadow: 1px 1px 1px rgba(0,0,0,.8);
}

.slide-content h2 {
	font-size: 46px;
	line-height: 56px;
}

.img-overlay {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.2);
}

a.learn-more {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 30px;
	border: 1px solid #fff;
	text-decoration: none;
	color: #fff;
	text-shadow: none;
	background: rgba(0,0,0,.6);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 12px;
	-webkit-transition: background 200ms;
			transition: background 200ms;
}

a.learn-more:hover {
	background: rgba(218,40,40,1);
}


/* =Front Page
-------------------------------------------------------------- */

#clients {
	margin: 30px auto;
}

#clients h3 {
	text-transform: uppercase;
	font-family: 'EurostileRegular';
	font-size: 16px;
	text-align: center;
	letter-spacing: 1px;
	margin-bottom: 30px;
}

body.home #container {
	display: table;
	margin-bottom: 30px;
}

body.home #content {
	display: table-cell;
	width: 620px;
	box-sizing: border-box;
	padding: 30px;
	background: #fff;
}

.spacer {
	display: table-cell;
	width: 20px;
}

body.home #sidebar {
	display: table-cell;
	width: 300px;
	box-sizing: border-box;
	background: #fff;
	padding: 30px;
}

#sidebar h3,
#content h3 {
	color: #da2828;
	text-transform: uppercase;
	font-family: 'EurostileRegular';
	font-size: 16px;
    letter-spacing: 1px;
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 1px solid #da2828;
    margin-bottom: 20px;
}

#sidebar,
#content {
	font-size: 13px;
	line-height: 22px;
}

/* facebook feed */


.fb-update {
	width: 201px;
	float: right;
}

.fb-icon {
	background: url(imgs/sprite.png) -369px -56px no-repeat;
	width: 24px;
	height: 24px;
	float: left;
	margin-top: 5px;
}

.fb-time {
	font-size: 11px;
	color: #a3a3a3;
	font-style: italic;
	margin-bottom: 5px;
}

.fb-update img {}

/* temporary facebook button */

a#fb-button {
	display: block;
	background: url(imgs/facebook_button.gif) -1px -1px no-repeat;
	background-size: 100%;
	width: 240px;
	height: 100px;
}


/* =Page
-------------------------------------------------------------- */


#wrapper {
	background: #ededed;
}

#middle {
	position: relative;
	min-height: 213px;
}

#middle img {
	width: 100%;
	min-height: 213px;
	display: block;
	min-width: 1227px;
}

#middle-content {
	position: absolute;
	margin: 0 auto;
	top: 50%;
	left: 50%;
	margin-top: -50%;
	margin-left: -50%;
	/*background: rgba(0,0,0,.5);*/
	padding: 15px 30px;
	color: #fff;
	box-sizing:border-box;
}

#middle-content h1 {
	font-size: 46px;
	font-weight: 300;
	line-height: 42px;
	margin: 0;
	text-shadow: 2px 2px 2px rgba(0,0,0,.6);
}

#container {
	display: table;
	margin: 20px 0;
}

#container.full-width {
	display: block;
}

#container.full-width #content {
	width: 100%;
	display: block;
}

#sidebar {
	width: 220px;
	display: table-cell;
	box-sizing: border-box;
	padding: 30px;
	background: #fff;
}

nav#sidebar-nav > ul {
	margin: 0 !important;
}

nav#sidebar-nav > ul > li > a,
nav#sidebar-nav > ul > li > ul > li.page_item_has_children > a {
	/*margin: 0 !important;*/
	font-family: 'EurostileBold';
}

nav#sidebar-nav a {
	color: #000;
	text-decoration: none;
	font-family: 'EurostileRegular';
	font-size: 15px;
	margin-bottom: 5px;
	display: block;
}

nav#sidebar-nav a:hover {
	text-decoration: underline;
}

nav#sidebar-nav li.current_page_item > a {	
	color: #da2828;
	font-family: 'EurostileBold';
}

nav#sidebar-nav li {
	margin-bottom: 5px;
}

nav#sidebar-nav ul {
	list-style-type: none;
	margin: 0 0 15px 15px;
}

nav#sidebar-nav ul ul ul ul {
	margin-bottom: 0;
}

#content {
	width: 700px;
	display: table-cell;
	box-sizing: border-box;
	padding: 30px;
	background: #fff;
}


/* =Search
-------------------------------------------------------------- */

.result {
	margin-bottom: 30px;
}

.result h2 {
	margin-bottom: 20px;
}

.result h2 a {
	color: #da2828;
	text-decoration: none;
}

.result h2 a:hover {
	text-decoration: underline;
}


/* =Shortcodes
-------------------------------------------------------------- */

ul.ogs-telescope {
	margin: 0;
	list-style-type: none;
	display: table;
	width: 100%;
	margin-bottom: 80px;
}

li.ogs-telescope {
	display: table-row;
}

li.ogs-telescope:hover {
	background: #dbdbdb;
}

li.ogs-telescope > div {
	display: table-cell;
	vertical-align: middle;
	padding: 10px;
	border-bottom: #b7b7b7 1px solid;
}

li.ogs-telescope:last-child > div {
	border-bottom: none;
}

.telescope-image img {
	display: block;
}

a.telescope-pdf {
	background: url(imgs/pdf-icon.png) no-repeat;
	display: block;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	width: 54px;
	height: 53px;
}


/* =Footer
-------------------------------------------------------------- */

footer {
	background: #292929;
	padding: 30px 0 38px;
}

#copyright {
	color: #a4a4a4;
	font-family: 'EurostileRegular';
	font-size: 12px;
	letter-spacing: 1px;
	text-align: center;
	margin-bottom: 28px;
}

#copyright a {
	color: #a4a4a4;
	text-decoration: none;
}

#copyright a:hover {
	text-decoration: underline;
}

#footer-logo {
	background: url('imgs/sprite.png') -411px -3px no-repeat;
	width: 217px;
	height: 98px;
	margin: 0 auto;
}

/* =Fonts
-------------------------------------------------------------- */


@font-face {
    font-family: 'EurostileRegular';
    src: url('fonts/eurosti-webfont.eot');
    src: url('fonts/eurosti-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/eurosti-webfont.woff') format('woff'),
         url('fonts/eurosti-webfont.ttf') format('truetype'),
         url('fonts/eurosti-webfont.svg#EurostileRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EurostileBold';
    src: url('fonts/eurostib-webfont.eot');
    src: url('fonts/eurostib-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/eurostib-webfont.woff') format('woff'),
         url('fonts/eurostib-webfont.ttf') format('truetype'),
         url('fonts/eurostib-webfont.svg#EurostileBold') format('svg');
    font-weight: normal;
    font-style: normal;
}