﻿/*-------------------------------------------

             Project:  invigoreight
               Usage:  Global layout
              Author:  Ian Yang
             Updated:  2009-01-17

---------------------------------------------*/


/*===================TOC=====================

                1. Reset
                2. Containers
                3. Skip Links
                4. Branding
                5. Site Navigation
                6. Client Login
                7. Content
                8. Color Switch
                9. Site Info

=============================================*/



/* 1. Reset
---------------------------------------------*/
* {
	margin: 0;
	padding: 0;
	}

* html {
	border-width: 2px 0 0;
	}

body {
	line-height: 1;
	}

ol, ul {
	list-style: none;
	}

a {
	text-decoration: none;
	}

img, fieldset {
	border: none;
	}

img {
	vertical-align: top;
	}

legend {
	display: none;
	}


/* 2. Containers
---------------------------------------------*/
html {
	display: inline;
	background: url(../images/sub_html_bg.gif) repeat-x top left;
	visibility: hidden;
	}

body {
	position: relative;
	margin: 0 auto;
	padding-top: 129px;
	width: 854px;
	overflow-x: hidden;
	font-family: Helvetica, Arial, sans-serif;
	}

#home {
	background: url(../images/home_body_bg.jpg) no-repeat 100% 69px;
	}


/* 3. Skip Links
---------------------------------------------*/
#skip-links {
	position: absolute;
	left: -500em;
	}


/* 4. Branding
---------------------------------------------*/
#branding {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	width: 176px;
	height: 92px;
	}

#branding h1 {
	height: 100%;
	background: #E11260;
	}

.blue  #branding h1 { background: #09F; }
.green #branding h1 { background: #9C3; }

#branding h1 a {
	display: block;
	padding-top: 44px;
	width: 176px;
	height: 48px;
	overflow: hidden;
	color: white;
	font: 0.95em 'Myriad Pro', sans-serif;
	text-align: center;
	text-shadow: #E11260 0 1px 1px;
	}

html:not(:first-of-type) #branding h1 a {   /* for WebKit */
	padding-top: 46px;
	height: 46px;
	}

.blue  #branding h1 a { text-shadow: #09F 0 1px 1px; }
.green #branding h1 a { text-shadow: #9C3 0 1px 1px; }


/* 5. Site Navigation
---------------------------------------------*/
#site-nav {
	position: absolute;
	top: 10px;
	left: 197px;
	width: 520px;
	}

#site-nav h3 {
	position: absolute;
	left: -500em;;
	}

#site-nav ul li {
	float: left;
	display: inline;
	margin-right: 22px;
	}

#site-nav ul #site-nav-1 {
	position: absolute;
	left: -500em;
	}

#site-nav ul li a {
	color: #606060;
	font-size: 0.75em;
	}

#about    #site-nav ul #site-nav-2 a,
#approach #site-nav ul #site-nav-3 a,
#start    #site-nav ul #site-nav-4 a,
#contact  #site-nav ul #site-nav-5 a,
#site-nav ul li a:hover {
	color: #E11260;
	}

.blue #about    #site-nav ul #site-nav-2 a,
.blue #approach #site-nav ul #site-nav-3 a,
.blue #start    #site-nav ul #site-nav-4 a,
.blue #contact  #site-nav ul #site-nav-5 a,
.blue #site-nav ul li a:hover {
	color: #09F;
	}

.green #about    #site-nav ul #site-nav-2 a,
.green #approach #site-nav ul #site-nav-3 a,
.green #start    #site-nav ul #site-nav-4 a,
.green #contact  #site-nav ul #site-nav-5 a,
.green #site-nav ul li a:hover {
	color: #9C3;
	}


/* 6. Client Login
---------------------------------------------*/
#login {
	position: absolute;
	top: 10px;
	right: 0;
	}

#login h4 {
	position: absolute;
	left: -500em;
	}

#login a {
	color: #E11260;
	font-size: 0.75em;
	}

.blue  #login a { color: #09F; }
.green #login a { color: #9C3; }


/* 7. Content
---------------------------------------------*/
#content {
	position: relative;
	}

#home #content h2 {
	margin-bottom: 20px;
	padding: 0;
	font-weight: normal;
	font-size: 2.5em;
	text-shadow: #ECECEC 0 1px 1px;
	}

#about    #content h2,
#approach #content h2,
#start    #content h2,
#contact  #content h2 {
	margin-bottom: 22px;
	padding-top: 3px;
	font-weight: normal;
	font-size: 2.2em;
	}

#content p {
	color: #666;
	font-size: 0.8em;
	line-height: 1.65em;
	}

#content a:hover {
	color: #E11260;
	}

.blue  #content a:hover { color: #09F; }
.green #content a:hover { color: #9C3; }

#content:after {
	content: ".";
	display: block;
	clear: both;
	height: 0;
	visibility: hidden;
	}


/* 8. Color Switch
---------------------------------------------*/
#color {
	position: absolute;
	bottom: 32px !important;
	bottom: 33px;
	left: 10px;
	z-index: 2;
	padding-left: 1px;
	line-height: 1em;
	}

* + html #home #color {
	bottom: 10px !important;
	}

#color h5 {
	display: inline;
	color: #999;
	font-weight: normal;
	font-size: 0.7em;
	}

#color ul {
	display: inline;
	margin-left: 13px;
	cursor: default;
	}

:root #color ul {   /* for modern browsers except IE */
	margin-left: 9px;
	}

#color ul li {
	display: inline;
	}

#color ul li a {
	position: relative;
	top: 1px;
	display: inline-block;
	margin-right: 6px;
	width: 24px;
	height: 14px;
	overflow: hidden;
	text-indent: -500em;
	}

#color > /**/ ul li a {
	top: 3px;
	}

#color ul #sl-1 { color: #E11260; background: #E11260; }
#color ul #sl-2 { color: #09F;    background: #09F; }
#color ul #sl-3 { color: #9C3;    background: #9C3; }


/* 9. Site Info
---------------------------------------------*/
#siteinfo {
	position: relative;
	z-index: 1;
	padding: 11px 9px 0 0;
	width: 845px;
	height: 46px;
	border-top: 1px solid #999;
	color: #999;
	font-size: 0.7em;
	line-height: 1em;
	text-align: right;
	}

* + html #siteinfo {
	padding-top: 13px;
	height: 44px;
	}
