/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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.
 
 * Boilerplate used for streamlining clean codebase, custom authored code tested,
 * troubleshooted, and refined by Steve Chittenden, cbscreative.com.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/**************** global styles *****************/

h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, Sans-Serif; }

h1 { color: #34267e; }

h2 {color: #00a651;
	font-style: italic;
	}

h3 {color: #34267e;
	margin: 5px 0px 7px 0px;
	}

h4 { color: #00386c; }

h5 {color: #7c7884;
	font-weight: normal;
	}

h6 {color: #333333;
	font-weight: normal;
	}

p {color: #333333;
	font-family: Verdana, Arial, Helvetica, Sans-Serif;
	}

li {color: #333333;
	font-family: Verdana, Arial, Helvetica, Sans-Serif;
	padding-bottom: 10px;
	}

blockquote {color: #0e4c4e;
	font-family: Verdana, Arial, Helvetica, Sans-Serif;
	}

a { color: #00a651; text-decoration: none;}

a:hover { color: #ac2818; text-decoration: underline; }

.unbold { font-weight: normal; }

.right { float: right; margin: 0 0 7px 10px; }

.left { float: left; margin: 0 10px 7px 0; }

/* page banner uses right and left classes, below is for images on pages changed at 680px screens*/
.rightpic { float: right; margin: 0 0 7px 10px; }
.leftpic { float: left; margin: 0 10px 7px 0; }

.clear { clear:both; display:block; font-size:0; height:0; line-height:0; width:100%; }

.onethird {
	float: left;
	width: 30%;
	padding: 1.5%;
	}

.onehalf {
	float: left;
	width: 47%;
	padding: 1.5%;
	}


/**************** header styles *****************/

#header {
	background-color: #272360;
	margin: 0;
	width: 100%;
	border-top: 5px solid #00a651;
	}

#header #top {
	background-color: #272360;
	max-width: 1170px;
	min-height: 125px;
	margin: 0 auto;
	padding: 0;
	position: relative; /* Necessary to keep #contact and #share inside container */
	}

#logo {
	display: inline-block;	
	float: left;
	margin: 12px;
	}

#contact {
	right: 12px;	
	position:absolute; top:0px;		
	display: inline;
	/*color: #d91e25;*/
	font-size: 1.6em;
	font-weight: bold;
	}

#contact li {
	list-style-type: none;
	float: left;
	margin-left: 20px;
	}

#contact .phone a { color: #fff; }

#contact .phone a:hover { text-decoration: none; }

#share {
	right: 12px;	
	position: absolute; top:3.5em; height:32px;		
	display: inline-block;
	color: #fff;
	}

/**************** header nav *****************/

#nav {
	width: 100%;
	min-height: 2em;
	text-align: center;
	background: #00a651; /* Show a solid color for older browsers */
	background: -moz-linear-gradient(#272360, #00a650, #00a651);
	background: -o-linear-gradient(#272360, #00a650, #00a651);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#272360), to(#00a651)); /* older webkit syntax */
	background: -webkit-linear-gradient(#272360, #00a650, #00a651);
	}

#nav #navcontainer {
	max-width: 1170px;
	margin: .3em auto;
	display: inline-block;
	font-size: .9em;
	}

#nav li{
	margin: .5em .75em 0;	
	display: inline-block;		
	padding: 0;
	font-weight: 600;
	text-align: left;
	text-transform: uppercase;
	}

#nav #temptag { /* Temporary tagline for preview page, delete after site goes live */
	color: #fff;
	font-size: 1.2em;
	font-weight: bold;
	line-height: normal;
	}

#nav ul a{
	color: #fff;
	font-size: 1em;
	line-height: 1.5em;
	text-decoration: none;
	}

#nav ul ul a{
	font-weight: normal;
	border-top: none;
	}

#nav ul li.sfHover a,
#nav ul li a:hover,
#nav ul li:hover {
	text-decoration: none;
	color: #ff0;	
	}

/* Dropdowns */

#nav ul ul {
	padding: 20px 0 0 !important;
	margin-top: -10px;
	background: #fdfdfd;
	border: 1px solid #dedede;
	-moz-box-shadow: 0 0px 6px rgba(0,0,0,0.1);
	-webkit-box-shadow: 0 0px 6px rgba(0,0,0,0.1);
	box-shadow: 0 0px 6px rgba(0,0,0,0.1);
	}
	

#nav ul ul ul {	
	padding-top: 20px !important;
	margin-left: -1.25em;
	margin-top: -5px;	
	}

#nav ul ul li {	
	float: none;
	background: none;	
	margin: 0 5px 10px 15px !important;		
	}

#nav ul ul li a {
	padding: 0px 0 10px 0;
	font-weight: normal;
	border: none !important;
	}

/* See also sf-menu.css */

#nav ul li.sfHover ul a { color: #7b7b7b !important; }

#nav ul li.sfHover ul a:hover { color: #000 !important; }

/** arrow **/

#nav .sf-menu a.sf-with-ul {
	position: relative;
	min-width:		1px;
	}

#banner {
	position: relative;
	max-width: 1170px;
	margin: 0 auto -5px;
	display: block;
	}

.lbanner { margin: 0; width: 50%; height: auto; }

.rbanner { margin: 0; width: 50%; height: auto; }

.spacer { margin: 0 0 9px; width: 100%; height: 32px; }

#bannerpic { width: 100%; height: auto; }

.sf-sub-indicator {
	position: absolute;
	bottom: 0px;	
	display: block;
	width: 100%;
	text-indent: -999em;
	overflow: hidden;
	z-index: 200;
	height: 40px;
	}

.sfHover .sf-sub-indicator {
	bottom: -10px;	
	}

#nav .sf-menu li ul .sf-sub-indicator {
	display: none;
	}

#nav .sf-menu li ul .sfHover .sf-sub-indicator {	
	position: absolute;
	top: 0;
	right: -1px;
	left: none;
	display: block;	
	}

.sfHover a.sf-with-ul .sf-sub-indicator {
	height: 2em;
	}

.children .sf-sub-indicator {
	display: none;
	}



/**************** pageheading and pagebody styles *****************/

/* pageheading used on top of internal pages instead of Home slider */
#pageheading {
	padding: 9px 0;
	margin: 0 0 30px;
	border-top: 1px solid #dfdfde;
	border-bottom: 1px solid #dfdfde;
	}

#pageheading h1 {
	font-size: 2em;
	line-height: normal;
	padding: 0;
	margin: 0 5%;
	display: block;
	}

#pageheading p {
	margin: 0!important;
	padding: 10px 0 0 0!important;
	line-height: 1em;
	}

#pagebody {
	max-width: 1170px;
	margin: 12px auto;
	}

#pagebody a name {
	color: inherit; /* Prevents named anchors from looking like href in some browsers */
	}

#pagebody .featured {
	width: 100%;
	margin: 20px auto;
	}


#pagebody .featured h3 {
	font-size: 1.9em;
	text-align: center;
	margin-bottom: 0;
	}

#pagebody .content {
	max-width: 1140px;
	margin: 40px auto 0;
	padding: 0 1em;
	}

/* The 3 vid classes below are a standard for formatting responsive embedded YouTube video content */
#pagebody .vidcontainer { /* This container wraps nested .vid to avoid issues */
	max-width: 1140px;
	margin: 0 auto;
	}

#pagebody .vid { /* Responsive video container */
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
	}

#pagebody .vid iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	}



/**************** footer styles *****************/

#footer {
	width: 100%;
	background: #272360;
	border-top: 5px solid #00a651;
	padding: 12px 0;
	margin: 60px 0 0;
	color: #eee;
	}

#footer .inside { background: #272360; }

#footer h5, h6 {
	font-weight: normal;
	}

#footer a:hover { /* footer using same a color but subject to change with customizing */
	color: #eee;
	text-decoration: underline;
	}

#footer #ftrcontainer, #related {
	max-width: 1170px;
	margin: 0 auto;
	text-align: center;
	}

#footer #ftrcontainer #ftrcontent {
	padding: 18px;
	}

#footer #ftrcontainer #ftrcontent a {
	color: #eee;
	}

/* Social icons turned on and off based on screen width */
#footer .socialwide { display: inline-block; }
#footer .socialnarrow { display: none; }

#footer #footernav, #subnav {
	text-align: center;
	}

#footernav li {
	margin: 0 .75em;	
	display: inline-block;		
	padding: 18px 9px;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: .8em;
	}

#footernav li a { color: #bbb; }

#subnav li a { color: #eee; }

#footer #subnav { padding-bottom: 20px; }

#subnav li {
	margin: 0 0 0 1.5em;	
	display: inline-block;		
	padding: 0;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: .6em;
	}

#footer .credits {
	color: #ccc;
	border-top: 1px solid;
	}

#footer .credits h6 {
	color: #999;
	margin: 20px 0;
	}

#footer .credits h6 a { color: #eee; font-weight: bold; }


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * 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;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/***************** Custom media queries *********************/

@media only screen and (max-width: 1200px) {
	#footer .credits {
		margin: 0 12px;
		}
}

@media only screen and (max-width: 800px) {
	
	/* Social icons turned on and off based on screen size */
	#footer .socialwide { display: none; }
	#footer .socialnarrow { display: block; }
	
	#contact {
		position: relative;
		height: auto;
		float: none;
		}
}

@media only screen and (max-width: 680px) {
	.rightpic {
		display: block;
		float: none;
		clear: both;
		margin-bottom: 30px;
		margin-left: calc(100% / 6);
		margin-right: calc(100% / 6);
		}
	
	.leftpic {
		display: block;
		float: none;
		clear: both;
		margin-bottom: 30px;
		margin-left: calc(100% / 6);
		margin-right: calc(100% / 6);
		}
}

/*layouts smaller than 600px, iPhone and mobiles*/
@media only screen and (max-width: 480px), screen and (max-device-width: 480px), screen and (max-width: 600px) {

	html { -webkit-text-size-adjust: none; }
	
	h1 { font-size: 1.2em; }
	h2 { font-size: 1.1em; }
	h3 { font-size: 1.0em; }
	h4 { font-size: .9em; }
	h5 { font-size: .8em; }
	
	.onethird { clear: both; float: none; margin: 10px auto; width: 80%;}
	
	#header { text-align: center; }
	
	#header #logo { margin: 5px; }
	
	#header #logo img {
		max-width: 100%;
		height: auto;
		}
	
	#contact ul li {
		position: relative;
		top:0;
		right: 2%;
		width: 98%;
		margin: 0 10px;
		text-align: center;
		height: auto;
		}
	
	#share {
		position: relative;
		padding-top: 6px;
		top:0;
		right: 2%;
		width: 98%;
		margin: 0 10px;
		text-align: center;
		height: auto;
		}
	
	#nav {
		position: relative;
		padding: 3%;
		top: 0;
		right: 0;
		height: auto;
		}	
	
	#nav li {
		margin: 0 0 0 0!important;	
		display: inline-block;		
		padding: 7px 5px;
		float: none;
		}
	
	/*#nav .sub-menu li {		
		margin-left: 0 !important;
		padding-left: 0 !important;
		}*/
	
	#logo {
		float: none;
		margin-bottom: 10px;
		}
	
	.right { /* .right and .left in page banners are stacked and centered at this point */
		display: block;
		float: none;
		clear: both;
		margin-bottom: 30px;
		width: 75%;
		margin-left: calc(100% / 8);
		margin-right: calc(100% / 8);
		}
	
	.left {
		display: block;
		float: none;
		clear: both;
		margin-bottom: 30px;
		width: 75%;
		margin-left: calc(100% / 8);
		margin-right: calc(100% / 8);
		}
	
	#pageheading { margin: 0 0px 25px; }
	
	#pageheading h1 { font-size: 1.2em; }
}

@media only screen and (max-width: 320px) {
	.onethird { width: 92%;}
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .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; /* 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;
    }
}
