/* merriweather-sans-300 - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 300;
  src: local(''),
       url('./merriweather-sans-v20-latin/merriweather-sans-v20-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('./merriweather-sans-v20-latin/merriweather-sans-v20-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* merriweather-sans-regular - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('./merriweather-sans-v20-latin/merriweather-sans-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('./merriweather-sans-v20-latin/merriweather-sans-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* merriweather-sans-700 - latin */
@font-face {
  font-family: 'Merriweather Sans';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('./merriweather-sans-v20-latin/merriweather-sans-v20-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('./merriweather-sans-v20-latin/merriweather-sans-v20-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

:root {
    --color: rgb(25, 67, 103);
    --background: white;
    --link-color: #337ab7;

    --theme-logo-shape: white;
    /*--theme-logo-shape: #036EAD;*/

    --bar-color: rgb(176, 203, 239);
    --header-bar-width: 5px;
    --footer-bar-width: 1px;
}

html {
    overflow-y: auto;
    color: var(--color);
    font-size: var(--font-size);
}

body {
    font-family: 'Merriweather Sans';
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-weight: normal;
    font-size: 1em;
    padding: 0;
    margin: 0;
}

p {
    margin: 1em 0;
    padding: 0;
}

/* NAVBAR TOP */
nav {
    --bar-offset: 6px;
    --active-nav-offset: 5px;

    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    background-color: var(--background);
    z-index:1;
    padding-bottom: var(--bar-offset);
}

.nav-item a {
    color: var(--color);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

nav ul.list-inline {
    border-bottom: var(--header-bar-width) solid var(--bar-color);
    /*padding-bottom: var(--bar-offset);*/
}
nav ul li.nav-item {
    margin: var(--active-nav-offset);
    margin-bottom: var(--bar-offset);
}

.nav-item.active {
    background-color: var(--bar-color);
    margin: 0;
    /*margin: calc(0px - var(--active-nav-offset));*/
    /*margin-bottom: calc(0px - var(--bar-offset));*/
    padding: var(--active-nav-offset);
    padding-bottom: var(--bar-offset);
}

.nav-item i {
    margin-right: 0.5em;
    display: inline-block;
}

/* END NAVBAR TOP */

/* NAV LIST: top and bottom */
ul.list-inline {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

ul.list-inline > li {
    margin: 0;
}
/* END NAV LIST: top and bottom */

header, footer {
    background-color: white;
    width: 100vW;
    box-sizing: border-box;
}

footer {
    font-size: 1em;
    margin-top: 2em;
    padding: 10px 0 1em 0;
    border-top: var(--footer-bar-width) solid var(--bar-color);
}

header {
    font-size: var(--header-font-size);
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    display: flex;
    padding-bottom: 10px;
    padding-top: 1em;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

header svg.logo {
    width: var(--logo-width);
    flex-shrink: 0;
    flex-grow: 0;
    margin-top: 0.2em;
}

header h1 {
    font-size: 1.8em;
    font-weight: var(--header-font-weight);
}

header h1 + h1 {
    margin-top: var(--header-name-margin);
}

header h2 {
    font-size: 1.5em;
    margin-top: 0.5em;
}

section {
    hyphens: auto;
    word-break: break-word; /* break long urls in text */
}

section h1 {
    text-align: center;
    margin-top: 1.3em;
    font-size: 1.5em;
    position: relative;
}

section h1 {
    display: flex;
    align-items: center;
    text-align: center;
}

section h1:before, section h1:after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color);
}

section h1:before {
    margin-right: .25em;
}

section h1:after {
    margin-left: .25em;
}

section h2 {
    margin-top: 1em;
    font-size: 1.3em;
}

section a {
    color: var(--link-color);
    text-decoration: none;
}

address {
    margin-top: 1em;
}

address p {
    font-style: normal;
    margin: 0;
}

address p .phone {
    min-width: 4em;
    display: inline-block;
}

svg .st1 {
    fill: var(--theme-logo-shape);
}

svg .st0 {
    fill: #CE659F;
}

svg .st2 {
    fill: #9870AE;
}

svg .st3 {
    fill: #3CB2BF;
}

svg .st4 {
    fill: #F8BC51;
}

svg .st5 {
    fill: #F28D5F;
}

svg .st6 {
    fill: #EE7674;
}

/* Responsive Layout */
section, .container, ul.list-inline {
    width: var(--main-width);
    margin: 0 var(--main-x-margin);
}

:root {
    --font-size: 16px;
    --main-width: 900px;
    --main-x-margin: auto;
    --header-name-margin: 0.5em;
    --logo-width: 150px;
    --header-font-size: var(--font-size);
    --header-font-weight: bold;
}

@media (max-width: 960px) {
    :root {
        --main-width: 800px;
    }
}

@media (max-width: 860px) {
    :root {
        --main-width: 700px;
    }
}

@media (max-width: 760px) {
    :root {
        --main-width: 600px;
    }

    nav ul.list-inline {
        justify-content: stretch;
    }
    nav .nav-item {
        display: flex;
        flex-grow: 1;
        justify-content: center;
    }
    nav .nav-item .option {
        display: none;
    }

    nav .nav-item i {
        margin-right: 0;
    }
}

@media (max-width: 660px) {
    :root {
        --main-width: calc(100vW - 60px);
    }
}

@media (max-width: 600px) {
    :root {
        --main-width: calc(100vW - 60px);
        --header-name-margin: 0.5em;
        --logo-width: 100px;
        --header-font-size: 0.8rem;
        --header-font-weight: normal;
    }
}

@media (max-width: 500px) {
    footer .nav-item .option {
        display: none;
    }

    footer ul.list-inline {
        justify-content: stretch;
    }
    footer .nav-item {
        display: flex;
        flex-grow: 1;
        justify-content: center;
    }


}
@media (max-width: 480px) {
    :root {
        --logo-width: 80px;
    }
}

@media (max-width: 450px) {
    :root {
        --font-size: 14px;
        --logo-width: 80px;
    }
}

@media (max-width: 400px) {
    :root {
        --font-size: 14px;
        --logo-width: 80px;
    }
}

@media (max-width: 340px) {
    header svg {
        margin-left: -4em;
    }
}

@media (max-width: 300px) {
    :root {
        --main-width: 270px;
        --main-x-margin: 15px;
    }

    html, body {
        width: 300px;
        max-width: 300px;
    }

    header .container, nav ul.list-inline {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
        min-width: 270px;
    }

}

@media print {
    :root {
        --font-size: 12px;
    }

    header {
        position: static;
        height: auto;
    }

    body {
        padding-top: 0;
    }

    a:after {
        content: "";
        display: none;
    }

    /*section {*/
    /*  page-break-inside: avoid;*/
    /*}*/

    nav,
    footer,
    .gm-control-active.gm-fullscreen-control {
        display: none;
    }
}
