/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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.
 */
 
 /* rubik-regular - latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/rubik-v8-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Rubik'), local('Rubik-Regular'),
       url('../fonts/rubik-v8-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/rubik-v8-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/rubik-v8-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/rubik-v8-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/rubik-v8-latin-regular.svg#Rubik') format('svg'); /* Legacy iOS */
}
/* rubik-700 - latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/rubik-v8-latin-700.eot'); /* IE9 Compat Modes */
  src: local('Rubik Bold'), local('Rubik-Bold'),
       url('../fonts/rubik-v8-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/rubik-v8-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/rubik-v8-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/rubik-v8-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/rubik-v8-latin-700.svg#Rubik') format('svg'); /* Legacy iOS */
}

/* oswald-regular - latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/oswald-v17-latin-regular.eot'); /* IE9 Compat Modes */
  src: local('Oswald Regular'), local('Oswald-Regular'),
       url('../fonts/oswald-v17-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/oswald-v17-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/oswald-v17-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/oswald-v17-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/oswald-v17-latin-regular.svg#Oswald') format('svg'); /* Legacy iOS */
}
/* oswald-500 - latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/oswald-v17-latin-500.eot'); /* IE9 Compat Modes */
  src: local('Oswald Medium'), local('Oswald-Medium'),
       url('../fonts/oswald-v17-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/oswald-v17-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/oswald-v17-latin-500.woff') format('woff'), /* Modern Browsers */
       url('../fonts/oswald-v17-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/oswald-v17-latin-500.svg#Oswald') format('svg'); /* Legacy iOS */
}

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

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

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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




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
















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

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, 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;
}

 
/* ==========================================================================
   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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/* Custom CSS */
body, html{
	font-family:'Rubik','Source Sans Pro', Arial, sans-serif;
}

h1,h2,h3,h4,h5, #nav-main li a{
	font-family:'Oswald', Arial, sans-serif;
}
h1,h2,h3,h4,h5{
	margin-bottom:.5em;
}

.btn{
	border-radius:30px;
	border:none;
	padding:7px 17px;
	transition:all 0.4s ease;
}
.btn:hover{
	transform:scale(1.1);
}

.btn-primary{
	background-color:#465ca6;
	border-color:#465ca6;
}
.btn-primary:hover{
	background-color:#28386f;
	border-color:#28386f;
}

img{
	max-width:100%;
}

.light-background{
	background:#f6f6f9;
}


#header{
	height:100vh;
	width:100%;
	position:relative;
	/*background:url("../img/bg-header.jpg") no-repeat top center;
	background-size:cover;*/
	background-color:#000;
	background:url("../img/bg-header-2.jpg") no-repeat left top;
	background-size:cover;
	overflow:hidden;
}


#header:before{
		content:"";
		display:block;
		background:rgba(0,0,0,0.3);
		z-index:20;
		position:absolute;
		top:0;
		left:0;
		right:0;
		bottom:0;
}

#header #logo{
	position:absolute;
	right:1em;
	left:70%;
	transform:translateX(-50%);
	max-width:50%;
	top:30%;
	z-index:21;	
	width:auto;
}
#header #logo:hover{
	cursor:pointer;
}
#header #icons{
	position:absolute;
	z-index: 21;
     right: 1em;
    transform: none;
    top: 1em;
    text-align: center;
}
#header #icons a{
	display:inline-block;
	padding:0 .25em;
	transition:all 0.4s ease;
}
#header #icons a:hover{
	transform:scale(1.1);
}
#header #icons img{
	width:30px;
	z-index:21;
	
}



#nav-main{
	position: absolute;
    top:30%;
    left: 70%;
	width:auto;
    /*transition:all 0.4s ease;*/
    z-index:21;
    margin-top:10rem;
    transform:translateX(-50%);
}
#nav-main .container{
	padding:0;
}
#nav-main ul{
	padding:0;
	margin:10px 0;
	text-align: center;
	
}
#nav-main ul li{
	color:#fff;
	list-style-type:none;
	padding:3px 0px;
	display:block;
}
#nav-main ul li:last-child{
	border:none;
}
#nav-main ul li a{
	color:#fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
}
#nav-main ul li a:hover{
	text-decoration: underline;
}
#nav-main .logo, #header #logo-mobile{
	display:none;
}


#nav-main.fixed{
	position: fixed;
	left:0;
	right:0;
	background: #282a2f;
	top:0;
	bottom:auto;
	height:70px;
	margin:0;
	transform:none;
}

#nav-main.fixed ul{
	display:flex;
	justify-content: center;
	padding-left:20%;
	margin:0;
	height:70px;
}
#nav-main.fixed ul li{
	padding:23px 10px;
}
#nav-main.fixed > .container{
	position:relative;
	height:100%;
}
#nav-main.fixed .logo{
	position:absolute;
	left:1em;
	top:.25em;
	width:80px;
	display:block;
	z-index:21;
	transition:all 0.4s ease;
}

#nav-toggler{
	display:none;
	position: absolute;
    right: 1em;
    background: none;
    padding: 0;
    border: none;
    top: 50%;
    transform:translateY(-50%);
    text-transform: uppercase;
    color: #fff;
}
#nav-toggler img{
	width: 20px;
    margin-top: -4px;
    margin-left:4px;
}

@media (max-width:991px){
	
	#header #logo{
		max-width:100%;
		padding:0 2em;
		left:50%;
	}
	
	#nav-main{
		left:50%;
		margin-top:40vw;
	}
	#nav-main.fixed{
		background:#282a2f;
	}
	#nav-main.fixed ul{
		display:none;
		text-align: right;
		
	}
	#nav-main.fixed ul li a{
		text-transform: none;
		letter-spacing: 0;
		font-family:'Rubik','Source Sans Pro', Arial, sans-serif;
	}
	#nav-main.fixed #nav-toggler{
		display:block;
	}
	#nav-main.fixed ul.active{
		display: block;
	    position: absolute;
	    z-index: 20;
	    background: #282a2f;
	    background:#383a40;
	    height: auto;
	    padding: 0;
	    right: 0;
	    left:0;
	    top: 70px;
	    margin:0;
	}
	#nav-main.fixed ul.active li{
		padding:10px 1em;
	}
}




#content section{
	padding:4em 0;
}


/* FOOTER */
footer{
	background:#465ca6;
	padding:3em 0;
	text-align:center;
}

footer .copyright, footer .copyright a{
	color:#fff;
	font-size:.8rem;
}
footer .copyright.icons p, footer .copyright.icons a{
	color:#212529;
	font-size:.8rem;
	margin-bottom:0;
}
footer .copyright a{
		text-decoration: underline;
}

@media (min-width:980px){
	#section-2 .col-1{
		padding-top:6em;
	}
}


@media (max-width:768px){
	#header #logo{
		
	}
}

@media (max-width:620px){
	#header:before{
		background:rgba(0,0,0,.75);
	}
	#header #logo{
		display:none;
	}
	#header #logo-mobile{
		display:block;
		position:absolute;
		z-index: 21;
	    top: 10%;
	    left: 50%;
	    transform: translateX(-50%);	
	}
	
	#header #nav-main{
		left:0;
		right:0;
		transform:none;
	}
	
	#header #icons{
		top:auto;
		bottom:1em;
		left:0;
		right:0;
	}
}

