@charset "UTF-8";
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: "elza", sans-serif;
	color:#485ab3;
	margin: 0;
	padding: 0 1.5em 2em;
	/*min-width: 390px;*/
	font-weight: 300;
	font-size: 1.2em;
    background-image: url(../img/dots.png);
    background-repeat: no-repeat;
    background-position: top; 
    background-size: 90%;
	background-attachment: fixed;
}
body a:link, body a:visited {
	text-decoration: none;
	color:#485ab3;
	transform: scale(1,1) !important;
}
body a:hover, body a:active {
	color: #000;
}
.visuallyhidden {
	position: absolute;
	overflow: hidden;
	clip: rect(0 0 0 0);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
}
#logoWrapper {
	width: 100%;
	margin: 1em 0;
	padding: 0;
	z-index: 10;
}
#logo {
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	position: relative;
}
#tagline {
	font-size: 2em;
	text-align: center;
	line-height: 1em;
    margin: 0.5em;
	letter-spacing: -0.02rem;
    font-weight: 300;
}
h2 {
	font-family: "elza", sans-serif;
	font-size: 1.8em;
	font-weight: 300;
	color: #485ab3;
	letter-spacing: -0.02em;
}
h1, h2, h3, h4, h5, h6 {
	font-weight: 300;
	line-height: 1;
}
h2, h3 {text-align: left;}
h2.secondary {
	padding-top: 0.5em;
	border-top: 1px solid #bbb;
	margin-bottom: 0.75em;
}
h3 {
	font-size: 1.6em;
	padding-top: 0.25em;
	border-top: 1px solid #bbb;
	margin-top: 0.5em;
}
#mainContent.services-pg {
	max-width: 1000px;
	margin: 0 auto;
}
ul li {
	text-align: left;
	line-height: 1.4em;
	margin-bottom: 1em;;
}
ul li strong {
	color: #555;
}
#mainContent p.cta {
	font-weight: 400;
	color: #485ab3;
	margin-top: 1em;
	text-wrap: balance;
	text-align: center;
}
p.teaser {
	max-width: max-content;
	padding: 0.5em;	
	line-height: 1.1;
	margin: 2em auto 0;
	font-weight: 500;
	border-top: 1px solid #bbb;
	background-color: #fff;
	text-wrap: balance;
	text-align: center;
}
p.teaser:hover {
	background-color: #eef0f9;
}

/* <<<<<-----  NAVIGATION --->>>>  */

#mainContent p.link-list {
	max-width: none;
	font-size: 1em;
	margin-left: 0;
}
#mainContent p.link-list a {
	margin: 0 0.5em;
}

/* Style for the scalable divs */
.f-block {
	/*height: 620px;*/ /* Height of each div */
	max-width: 1400px;
	background-color: #fff;;
	margin: 0 auto;
	padding: 1em 1em 3em;
	border-top: 1px solid #9aa6df;
	transform: scale(0.8); /* Initial scale is 80% */
	opacity: 0.3; /* Initial opacity */
	transition: transform 0.1s ease-out, opacity 0.1s ease-out; /* Smooth scale and opacity transition */
	transform-origin: center center; /* Scale from the center */
	box-shadow: -2px -5px 10px rgba(0,0,0,0.15);
}
#mainContent .f-block p {
	max-width: none;
	margin: 0 0 1.5em;
	padding-left: 0;
}
.f-block p a.lined {text-decoration: underline;}

/* Extra space at the bottom to allow the last section to scroll into the center */
.end-padding {
	height: 40vh; 
}
.services {
	max-width: 1000px;
	margin: 0 auto;
}

/* ////// FOR FLICKITY ////// */

* { box-sizing: border-box; }

.flickity-viewport {
	height: auto;
	min-height: 200px;
}

.carousel {
  background: #FFF;
  margin-top: 0;
}
.carousel-cell {
  width: 100%;
  min-height: 350px;
  margin-right: 10px;
  background: #FFF;
  border-radius: 5px;
  counter-increment: carousel-cell;
}
div.flickity-slider img, .carousel img {
	max-height: 600px;
}
#mainContent .carousel-cell p.caption {
	text-align: center;
	padding: 0.5em 0 1em;
	margin-top: 0.5em;
	text-wrap: balance;
}
#mainContent .carousel-cell p.caption a {text-decoration: underline;}
.flickity-page-dots {
	bottom: -1em;
	position: relative;
}
.flickity-page-dot {
	border: 2px solid #485ab3;
	background: #fff;
	width: 1em;
	height: 1em;
}
.flickity-page-dot.is-selected {
	background-color: #485ab3;
}
/* fade in image when loaded */
#mainContent .carousel-cell img {
	transition: opacity 0.4s;
	opacity: 0;
}
#mainContent .carousel-cell img.flickity-lazyloaded,
#mainContent .carousel-cell img.flickity-lazyerror,
#mainContent .carousel-cell.is-selected img {
	opacity: 1;
}
div.intro p a, #mainContent p.cta a {text-decoration: underline;}
/* <<<<<-----  CONTENT --->>>>  */

#mainContent {
	/*width:100%;*/
	margin:0 auto;
	text-align: center;
	color: #000;
	line-height: 1.1em;
}
#mainContent p {
	padding: 0;
	max-width: 700px;
	margin: 0 auto 0.5em;
	line-height: 1.2em;
	font-size: 1.4rem;
	letter-spacing: -0.03em;
	vertical-align: middle;
	text-align: left;
}
div.intro {
	max-width: 1600px;
	margin: 0 auto 20px;
	}
div.intro p {
	font-size: 1.2em;
	line-height: 1.4;
	letter-spacing: -0.01em;
	max-width: 1000px;
	margin: 0 auto;
}


/* <<<<<-----  TABS --->>>>  */

.tabs, .tabs-content {
	border: none;
	background: transparent;
}
.tabs-title > a {
	font-size: 1.3rem;
	padding: 0.7em;
	margin-top: 0.5em;
}
li.tabs-title.is-active a {
	background-color: transparent;
	border: 1px solid #485ab3;
	color: #485ab3;
	font-size: 1.2em;
	padding: 0.7rem;
	
}
.tabs-panel {padding: 0.5em 0 0;}

/* <<<<<-----  FOOTER --->>>>  */

footer {
	margin: 2em auto 1em;
    /*width: 25em;*/
    border-top: 1px solid #bbb;
    padding-top: 1em;
    text-align: center;
}

/* /////////////// SERVICES //////////////////// */


.services .services-cell, .services .services-cell h2, .services .services-cell p {
	text-align: center;
	min-height: auto;
}
.services .services-cell h2, .services .services-cell p, div.intro p, h1#tagline {
	text-shadow: 1px 1px 3px #fff, -1px -1px 3px #fff, 0px 0px 3px #fff, 0px 0px 5px #fff;
}

.services p {line-height: 1.1;}

.services {
	position: relative;
	width: 100%;
	/*height: 100vh;*/
	min-height: 130px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	margin: 2em auto 0;
	/*border-top: 1px solid #bbb;
	border-bottom: 1px solid #bbb;*/
	padding: 0.5em 0;
	background: rgb(255,255,255,0.3);
	/*background: linear-gradient(0deg, rgba(72,90,179,0.1) 0%, rgba(72,90,179,0) 20%, rgba(72,90,179,0) 75%, rgba(72,90,179,0.1) 100%);*/
	background: linear-gradient(0deg, rgba(72,90,179,0.2) 0%, rgba(255,255,255,0.5) 25%, rgba(255,255,255,0.5) 75%, rgba(72,90,179,0.2) 100%);
}

.services-cell {
	position: absolute;
	text-align: center;
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transform: translateY(100%);
	transition: all 0.5s ease;
	padding: 0;
}

/* Active slide styling */
.services-cell.visible {
	opacity: 1;
	transform: translateY(0);
	transform: translateX(0);
}

/* Exiting slide styling */
.services-cell.exit {
	opacity: 0;
}
.services-cell.exit h2 {
	transform: translateX(-100%);
	opacity: 0;
}

.services-cell.exit p {
	transform: translateX(100%);
	opacity: 0;
}

.services-cell h2 {
	margin: 0;
	font-size: 2rem;
	opacity: 0;
	transform: translateY(-300%);
	transition: all 0.5s ease;
}

.services-cell p {
	margin: 10px 0 0;
	font-size: 1.2rem;
	opacity: 0;
	transform: translateY(100%);
	transition: all 0.5s ease;
}

/* Animate text on entrance */
.services-cell.visible h2,
.services-cell.visible p {
	opacity: 1;
	transform: translateY(0);
	transform: translateX(0);
}


/* ********************* MEDIA QUERIES ************************** */

@media screen and (max-width: 500px) {
    #logoWrapper {
        left: -10px;
    }
}

/*@media screen and (min-width: 1024px) {
	#mainContent .carousel-cell .grid-container p.caption {
		text-align: left;
	}
}*/

@media screen and (max-width: 780px) {
	#mainContent p {
		margin:0 1em;
	}
}

@media screen and (min-width: 800px) {
    body {
        background-size:60%;
    }
	h2 {
		font-size: 2em;
	}
}

@media screen and (min-width: 1200px) {
    body {
        background-size:45%;
    }
}