img{
    max-width: auto;
    height: auto;
}

a{
    transition: all .3s ease;
}

a, a:hover, a:active, a:focus{
    color: inherit;
}

body{
    font-size: 18px;
    line-height: 1.6;
    color: #4c4c4c;
    background-color: #fff;
}

#header, #footer, #main, .main-section{
    position: relative;
}

#header, .main-section{
    min-height: 100vh;
}

.main-section{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

.main-section .container{
    /* width: 480px; */
    /* margin-left: 10%; */
    background-color: #fff;
    overflow: hidden;
    /* width: 25vw; */
    /* width: calc(10vw + 40vh); */
    max-width: 480px;
    /* min-width: 320px; */
    width: calc(13vw + 43vh);
    margin-left: 5%;
    max-width: 576px;
}

#header{
    /* position: fixed; */
    top: 0;
    z-index: 2;
    min-height: 0;
    width: 100%;
    left: 0;
    position: sticky;
    margin-top: 15vh;
}

#main{
    z-index: 1;
    /* max-height: 100vh; */
    margin-top: calc(-320px - 15vh);
    margin-bottom: -2rem;
}

#main .main-section .container{
    min-height: 100vh;
    box-shadow: 0 0 2.5em rgba(0,0,0,.2);
    /* background-color: rgba(255, 255, 255, .9); */
}

#main .main-section .container > *{
    margin-top: 2em;
}

#main .main-section:first-child .container{
    min-height: 85vh;
    margin-top: 15vh;
}

#main .main-section:first-child .container > *{
    margin-top: 320px;
    /* transform: translateY(-13vh); */
}

/* #main .main-section + .main-section .container > *{
    padding-top: 320px;
} */

#main .main-section:last-child .container{
    margin-bottom: 15vh;
}

.section-id{
    display: block;
    position: absolute;
    top: 0;
    /* top: 320px; */
}

p{
    margin-bottom: 2rem;
}

h2{
    font-weight: 300;
    margin-bottom: .5em;
}

blockquote{
    font-weight: 300;
    font-size: 155%;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.logo{
    margin-top: 5vh;
}

#logo{
    /* width: 260px; */
    width: 40vh;
    max-width: 260px;
    min-width: 160px;
}

.tagline{
    display: block;
    /* font-size: 80%; */
    font-size: 1.75vh;
    letter-spacing: .075em;
}

@media only screen and (max-height: 639px){
    .tagline{
        font-size: .6em;
        letter-spacing: .1em;
    }
}

.logo, #navigation-menu{
    margin-bottom: 3vh;
}

#navigation-menu .nav-link{
    opacity: .3;
}

#navigation-menu .nav-link:hover, 
#navigation-menu .nav-link.mPS2id-highlight-first{
    opacity: .6;
}

.menu-item-icon{
    width: auto;
    /* height: 32px; */
    height: 5vh;
    max-height: 32px;
    min-height: 18px;
}

#header > .container{
    position: relative;
    transition: background-color .3s ease-out;
}

#header > .container::after{
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    height: 1px;
    border-bottom: 1px dashed #fff;
    transition: border-color .3s ease-out;
    width: auto;
    left: 15px;
    right: 15px;
}

@media only screen and (min-height: 720px){
    .scrolled #header > .container::after{
        border-bottom-color: #ccc;
    }
}

/* .scrolled #header > .container{
    background-color: #f5f5f5;
} */

/* #header, #header .container{
    overflow: visible;
} */

#main .main-section + .main-section .container > *:first-child{
    padding-top: 3em;
    margin-top: -3em;
}

#location-map iframe{
    max-width: 100%;
}

#languages{
	position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    margin: 1rem;
}

.language-link{
	display: inline-block;
	margin: 0 .25em;
	border-radius: 24px;
    border: 5px solid rgba(255,255,255,.3);
	line-height: 1;
}

.language-link:hover{
	border-color: rgba(255,255,255,.6);
}

.language-icon{
	width: 24px;
}

#header .grad{
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 15vh;
    opacity: 0;
    transition: opacity .3s ease-out;
}

.scrolled #header .grad{
    opacity: 1;
}

#grad1, #grad2, #grad3{ height: 300px; }
#grad1 {
    background: linear-gradient(
        #fff 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.15) 65%, rgba(255, 255, 255, 0.075) 75.5%, rgba(255, 255, 255, 0.037) 82.85%, rgba(255, 255, 255, 0.019) 88%, rgba(255, 255, 255, 0) 100%
    );
}
#grad2 {
    background: linear-gradient(
        rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.16) 50%, rgba(0, 0, 0, 0.08) 65%, rgba(0, 0, 0, 0.03) 75.5%, rgba(0, 0, 0, 0.015) 82.85%, rgba(0, 0, 0, 0.008) 88%, rgba(0, 0, 0, 0) 100%
    );
}
#grad3 {
    background: linear-gradient(
        rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.07) 50%, rgba(0, 0, 0, 0.03) 65%, rgba(0, 0, 0, 0.015) 75.5%, rgba(0, 0, 0, 0.008) 82.85%, rgba(0, 0, 0, 0.004) 88%, rgba(0, 0, 0, 0) 100%
    );
}

@media only screen and (max-width: 767px), screen and (max-height: 639px){
    body{
        font-size: 16px;
    }

    blockquote{
        font-size: 140%;
    }

    h2{
        font-size: 1.6rem;
        font-weight: 400;
    }
}

@media only screen and (max-height: 719px){
    #header{
        position: relative;
    }

    /* #main .main-section:first-child .container blockquote:first-child::before{
        display: block;
        content: "";
        position: relative;
        height: 1em;
    } */

    #main .main-section + .main-section .container > *{
        margin-top: 0 !important;
    }
}

@media only screen and (max-width: 479px){
    .main-section .container{
        max-width: 90%;
        min-width: 0;
    }

    #logo{
        min-width: 0;
        max-width: 100%;
    }

    .menu-item-icon{
        max-height: 24px;
    }
}

/* scrolling progress indicator */
#back-to-top-scroll-progress{
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: block;
    background-color: rgba(0,0,0,.6);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transition: all .4s ease;
    opacity: 0;
    transform: translateY(78px);
    z-index: 3;
}

#back-to-top-scroll-progress.active{
    opacity: .6;
    transform: translateY(0);
}

.back-to-top-icon{
    width: 60%;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: all .2s ease-out;
    opacity: .8;
}

.back-to-top-icon-uarr-out{
    stroke-width: 0;
}

.back-to-top-icon-uarr{
    fill: #fff;
}

#back-to-top-scroll-progress:hover{
    opacity: 1;
}

#back-to-top-scroll-progress:hover .back-to-top-icon{
    transform: translateY(-4px);
    opacity: 1;
}

.progress-ring{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.progress-ring__bg{
    stroke-width: 15px;
    stroke-opacity: 0;
}

.progress-ring__circle{
    stroke-width: 9px;
    /* transition: 1s stroke-dashoffset cubic-bezier(0.190, 1.000, 0.220, 1.000); */
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
/* -------------------- */

#contactForm .fields{
	position: relative;
}

.result-working .fields::after{
	position: absolute;
	content: "";
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: block;
	background: #fff;
	opacity: .75;
	cursor: progress;
}

#formResult{
	position: absolute;
    left: 10%;
    bottom: 25%;
    height: auto;
    display: none;
    z-index: 2;
    width: 80%;
    text-align: center;
	line-height: 1.3;
}

.result-working #formResult{
	display: block;
}

#formResult .display-success, #formResult .display-error, 
.result-success #formResult .display-working, .result-error #formResult .display-working{
	display: none;
}

.result-success #formResult .display-success, .result-error #formResult .display-error{
	display: block;
}

#formResult .display-success, #formResult .display-error{
	padding: .5em;
    color: #fff;
	border-radius: 5px;
}

#formResult .display-success{
	background: #1f981f;
}

#formResult .display-error{
	background: #ff4500;
}

#formResult small{
	display: inline-block;
}

#ashp{
    display: none !important;
}

.language-link.current-language{
    display: none;
}

/* Browser scrollbar styles */

@media only screen and (min-width: 992px){
    /* webkit (Chrome, Safari, Opera) */
    ::-webkit-scrollbar-button, ::-webkit-scrollbar-track-piece, ::-webkit-scrollbar-corner, ::-webkit-resizer {
        display: none;
    }
    ::-webkit-scrollbar{
        width: 8px;
        height: 8px;
        background-color: transparent;
    }
    ::-webkit-scrollbar-track{
        background-color: transparent;
        border: none;
    }
    ::-webkit-scrollbar-thumb{
        width: 8px;
        /* background: rgba(255,255,255,.3); */
        background: rgba(0,0,0,.3);
        /* border-radius: 5px; */
    }
    ::-webkit-scrollbar-thumb:hover{
        /* background: rgba(255,255,255,.4); */
        background: rgba(0,0,0,.4);
    }
    /* Edge */
    /* * {
        -ms-overflow-style: -ms-autohiding-scrollbar;
    } */
    /* Firefox */
    * {
        /* scrollbar-color: rgba(255,255,255,.4) transparent; */
        scrollbar-color: rgba(0,0,0,.4) transparent;
        scrollbar-width: thin;
    }
}

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