/*
 * HTML5 Boilerplate
 *
 * 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.
 */

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

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

body {
    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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

* {
    position: relative;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    
    /* ref: http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
    box-sizing: border-box; 
    *behavior: url('/wp-content/themes/scaffold/js/vendor/boxsizing.htc');
}

html, body { 
    /* fix for bootstrap responsive adding padding */
    padding: 0px !important;
}

body {
    font-size: 62.5%;
    
    /* ref: http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ */
    line-height: 1.4;
    font-family: "gesta",sans-serif;
    font-style: normal;
    font-weight: 300;
    color: #707170;
}

h1 {
	font-size: 2.6em;
	letter-spacing: 0.02em;
}

p {
	font-size: 1.5em;
	line-height: 1.56;
	margin: 0 0 23px;
}

a {
	text-decoration: underline;
	color: #707170; 
}

a:hover {
	color: #000;
}

main {
    display: block;
}

img {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

input[type="text"]:focus {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}


.readmore {
	border-top: 5px solid #0073ac;
	margin-bottom: 10px;
}

	.readmore a {
		margin: 0 auto;
		display: block;
		width: 21.328125%;
		text-decoration: none;
		cursor: pointer;
		line-height: 0;
	}
	
	.readmore a span {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		text-align: center;
		color: #fff;
		font-size: 1.1em;
		line-height: 2.0em;
		display: inline-block;
		text-transform: uppercase;
		-webkit-transition: all 0.2s linear;
		-moz-transition: all 0.2s linear;
		-o-transition: all 0.2s linear;
		-ms-transition: all 0.2s linear;
		transition: all 0.2s linear;
	}
	
.back {
	text-align: center;
	display: block;
	font-size: 1.3em;
	color: #000;
	margin-bottom: 20px;
}


/* ===HEADER=== */

.header {
	min-width: 320px;
    max-width: 1280px;
    margin: 0 auto;
    clear: both;
    overflow: hidden;
}

    .header__logo {
        width: 35%;
        float: left;
        padding: 12px 0 36px 5%;
    }
        
        .header__logo a {
            display: block;
        }
    
    .header__slogan {
        width: 65%;
        float: right;
        padding: 51px 5% 36px 0;
        text-align: right;
    }


/* ===MAIN=== */

.main {
	min-width: 320px;
	max-width: 1280px;
	margin: 0 auto;
}

    .main__feature {
        background-color: #cce2ee;
        padding: 26px 1.25%;
    }
    
        .main__feature__item {
            display: block;
            text-decoration: none;
            margin: 0 2.844551282051%;
            width: 27.644230769231%;
            float: left;
        }

    .main__article { padding: 26px 0 20px 0; }
    
        .main__article h1 { 
            text-transform: uppercase; 
            color: #0072AD; 
            text-align: center; 
            margin-bottom: 20px;
        }
        
        .main__article__column {
        	width: 58%;
        	margin: 0 19%;
        	-webkit-transition: all 0.2s linear;
	        -moz-transition: all 0.2s linear;
	        -o-transition: all 0.2s linear;
	        -ms-transition: all 0.2s linear;
	        transition: all 0.2s linear;
        }
        
        .main__article__column--left { 
            width: 29%;
			margin-left: 19%;
			margin-right: 2%;
            float: left; 
            -webkit-transition: all 0.2s linear;
	        -moz-transition: all 0.2s linear;
	        -o-transition: all 0.2s linear;
	        -ms-transition: all 0.2s linear;
	        transition: all 0.2s linear;
        }
        
        .main__article__column--right { 
            width: 29%;
			margin-left: 2%;
			margin-right: 19%; 
            float: right; 
            -webkit-transition: all 0.2s linear;
	        -moz-transition: all 0.2s linear;
	        -o-transition: all 0.2s linear;
	        -ms-transition: all 0.2s linear;
	        transition: all 0.2s linear;
        }
        

/* ===FOOTER=== */

.footer {
	min-width: 320px;
    max-width: 1226px;
    margin: 0 auto;
    clear: both;
    overflow: hidden;
    border-top: 3px solid #0072AD;
    padding: 18px 0;
    font-size: 1.3em;
    letter-spacing: 0.02em;
}

    .footer .point {
        font-size: 1.5em;
		display: inline-block;
		width: 9px;
		height: 9px;
		line-height: 0.5;
		overflow: hidden;
		margin: 0 4px 0 3px;
		padding: 0;
    }
    
    .footer .point.first {}

    .footer__address { 
        width: 70%; 
        float: left;
        -webkit-transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -o-transition: all 0.2s linear;
        -ms-transition: all 0.2s linear;
        transition: all 0.2s linear; 
    }
    
    .footer__info { 
        width: 30%; 
        float: right; 
        text-align: right; 
        -webkit-transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -o-transition: all 0.2s linear;
        -ms-transition: all 0.2s linear;
        transition: all 0.2s linear;
    }



/* ===FLEXSLIDER=== */

.interactive {}

    .interactive .slides {
		list-style: none;
		margin: 0;
		position: relative;
		overflow: hidden;
		width: 100%;
		height: 100%;
	}
         
		.interactive .slides li {
			width: 100%;
			height: 100%;
			position: relative;
			overflow: hidden;
			margin: 0;
			padding: 0;
			float: left;
			line-height: 0;
		}
         
			.scaleImage {
                display: none;
			}
			
			.scaleImage a {
                display: block;
			}
         
			.scaleImage.currentSlide {
                display: block;
			}
         
				.scaleImage img {
                    max-width: none; /* reset bootstrap */
				}
         
				.scaleImage img.abs {
					position: absolute;
					top: 0;
					left: 50%;
				}
				
			.scaleImage .caption {
				height: 44px;
				position: absolute;
				bottom: 0px;
				left: 0px;
				width: 100%;
				padding: 0 2.5%;
				background: url('../img/bg-caption.png');
			}
			
                .scaleImage .caption span {
                    display: inline-block;
                    height: 100%;
                    text-transform: uppercase;
                    color: #fff;
                    font-size: 1.5em;
                    line-height: 2.9em;
                }

.flex-control-paging {
	bottom: 0px;
	position: absolute;
	right: 0px;
	margin-right: 2.03125%;
}

    .flex-control-paging li {
        display: block;
        width: 24px;
        height: 44px;
        float: left;
    }

	.flex-control-paging a {
		width: 18px;
		height: 18px;
		border-radius: 4px;
		display: block;
		background-color: #fff;
		text-indent: -9999px;
		top: 13px;
		left: 0px;
		background: url('../img/sprites.png') no-repeat;
        background-position: -23px 0px;
	}
	
	.flex-control-paging a.flex-active {
	   background-position: 0 0;
	}


a.back.top { display: none; }
.page-privacy-policy a.back.top { display: block; }

@media all and (max-width : 1226px) {
	.footer__address { margin-left: 3%; width: 54%; }
	.footer__info { margin-right: 3%; width: 40% }
}

@media all and (max-width : 1024px) {
	.readmore a span { font-size: 1.0em; line-height: 1.8em; }
}

@media all and (max-width : 856px) {
	.readmore a span { display: none; }
}

@media all and (max-width : 768px) {
	.header__slogan { padding: 22px 5% 5% 5%; width: 100%; float: none; text-align: center; }
    .header__logo { padding: 12px 5% 0 5%; width: 100%; float: none; text-align: center; }
	
    .main__feature__item { float: none; width: 100%; text-align: center; margin: auto; }
        .main__feature__item__photo { display: none; }
        
    .main__article__column { width: 80%; margin: 0 10%; }    
    .main__article__column--left { width: 38%; margin-left: 10%; }   
    .main__article__column--right { width: 38%; margin-right: 10%; } 
    
    .footer { font-size: 1.1em; }
}

@media all and (max-width : 568px) {
	p { font-size: 1.4em; }
	
	.header__slogan { display: none; }
	.header__logo { padding: 12px 5% 7% 5%; }
	   .header__logo img { width: 36.971830985915%; }
	
    .main h1 { width: 320px; line-height: 1.2; text-align: center; margin: 10px auto 20px auto; letter-spacing: 0em; }

	.main__article__column--left { width: 80%; margin-right: 10%; float: none; }   
    .main__article__column--right { width: 80%; margin-left: 10%; float: none; } 
    
    .footer { font-size: 1.3em; }
        .footer__address { float: none; margin-right: 3%; width: 94%; text-align: center; }
        .footer__info { float: none; margin-left: 3%; width: 94%; text-align: center; margin-top: 20px; }
        .point.first { display: block; text-indent: -9999px; line-height: 0; height: 0px; }
    
    .flex-control-paging li { height: 38px; }
        .flex-control-paging a { top: 10px; }
        
    .scaleImage .caption { height: 38px; }
        .scaleImage .caption span { font-size: 1.4em; line-height: 2.9em; }
}

@media all and (max-width : 320px) {
    .main__feature { padding: 20px 1.25% 0 1.25%; }
	.main__feature__item__photo { display: block; width: 80%; margin: 0 auto 30px auto; }
}



/* ==========================================================================
   Login styles
   ========================================================================== */

.wp-core-ui #loginform input[type="text"],
.wp-core-ui #loginform input[type="password"] {
    height: auto;
}


/* ==========================================================================
   Target Webkit browsers
   ========================================================================== */

@media screen and (-webkit-min-device-pixel-ratio: 0) {}


/* ==========================================================================
   Target Mozilla browsers
   ========================================================================== */

@media only screen and (min--moz-device-pixel-ratio: 0) {}


/* ==========================================================================
   Target IE10 browsers
   ========================================================================== */

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {}


/* ==========================================================================
   Apple media queries - http://stephen.io/mediaqueries/
   ========================================================================== */

/* iPad Portrait & Landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {}

/* iPad Landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {}

/* iPad Portrait */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {}

/* iPad Mini Portrait & Landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1)  {}

/* iPad Mini Landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1)  {}

/* iPad Mini Portrait */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1)  {}

/* iPhone 5 Portrait & Landscape */
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) {}

/* iPhone 5 Landscape */
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) {}

/* iPhone 5 Portrait */
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) {}

/* iPhone 2G-4S Portrait & Landscape */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {}

/* iPhone 2G-4S Landscape */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) {}

/* iPhone 2G-4S Portrait */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : portrait) {}


/* ==========================================================================
   Mobile Selectors
   ========================================================================== */
   
/*
    ## disable taphold callout dialog
    -webkit-touch-callout: none;
    
    ## disable taphold selection
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    ## change taphold selection color
    -webkit-tap-highlight-color: rgba(0,0,0,0);
*/










/* ==========================================================================
   404 styles /w Google Link Help (taken from HTML5 Boilerplate)
   ========================================================================== */
    
.error404 .main h1 {
    font-size: 50px;
    line-height: 50px;
    margin: 50px 0;
}

.error404 .main h1 span {
    color: #bbb;
}

.error404 .main {
    max-width: 380px;
    _width: 380px;
    margin: 0 auto 90px auto;
}

.error404 .main ul {
    list-style: disc;
    margin: 0 0 10px 25px;
}

/* google search */

#goog-fixurl ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#goog-fixurl h3 {
    font-size: 18px;
    margin: 20px 0 0 0;
    display: block;
}

#goog-fixurl form {
    margin: 0;
}

#goog-wm-qt,
#goog-wm-sb {
    border: 1px solid #bbb;
    font-size: 16px;
    line-height: normal;
    vertical-align: top;
    color: #444;
    border-radius: 2px;
}

#goog-wm-qt {
    width: 220px;
    height: 20px;
    padding: 5px;
    margin: 5px 10px 0 0;
    box-shadow: inset 0 1px 1px #ccc;
}

#goog-wm-sb {
    display: inline-block;
    height: 32px;
    padding: 0 10px;
    margin: 5px 0 0;
    white-space: nowrap;
    cursor: pointer;
    background-color: #f5f5f5;
    background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
    background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
    background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
    background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    *overflow: visible;
    *display: inline;
    *zoom: 1;
}


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

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