/* 
-----------------------------------------
BASE
-----------------------------------------
*/

::selection {
    background-color: #065397;
    color: #fff;
}

[type=button], [type=reset], [type=submit], button {
    -webkit-appearance: none;
}

ul {
    padding-left: 1rem;
}

img {
    display: block;
    max-width: 100%;
}

figure {
    margin-bottom: 0;
}

html {
    scroll-behavior: smooth;
}

body, p, li {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #34434B;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin-bottom: 1rem;
}

p strong {
    font-weight: 500;
}

h1, h2, h3 {
    text-transform: none;
    color: #25316A;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-decoration: underline;
}

a,
a:link,
a:hover,
a:visited {
    color: #25316A;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h1 + h2, p + h2, ul + h2, p + h3, ul + h3 {
    margin-top: 2rem;
}

h2 + h3 {
    margin-top: 1.5rem;
}

p.ingress {
    font-weight: 500;
    font-size: 1.125rem;
}

/* ---------- Padding x space ---------- */

.padding-x-space {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 992px) {
    .padding-x-space {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1200px) {
    .padding-x-space {
        padding-left: calc(50vw - 500px);
        padding-right: calc(50vw - 500px);
    }
}

@media (min-width: 1700px) {
    .padding-x-space {
        padding-left: calc(50vw - 580px);
        padding-right: calc(50vw - 580px);
    }
}


/* ---------- Padding y space ---------- */

@media (min-width: 992px) {
    .padding-y-space {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }
}


/* ---------- Button ---------- */

a.btn, button.btn {
    display: inline-block;
    font-size: 0.875rem;
    background-color: #9D8955;
    padding: 0.5rem 2rem;
    color: #FFF;
    font-weight: 500;
    transition: all ease 0.2s;
    border: 2px solid #9D8955;
    border-radius: 100px;
}

a.btn:hover,
a.btn:focus,
a.btn:active {
    background-color: #9D8955;
    filter: brightness(90%);
    outline: none;
    box-shadow: none;
}

a.btn-white {
    color: #FFFFFF;
    border-color: #FFFFFF;
    background: transparent;
}

a.btn-white:hover {
    color: #9D8955;
    border-color: #9D8955;
    background: transparent;
}

@media screen and (min-width: 1200px) {

    a.btn {
        padding: 0.5rem 3rem;
    }
}

/*
-----------------------------------------
NAVBAR
-----------------------------------------
*/

.navbar {
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    top: 0;
    z-index: 1200;
    background-color: #243169
}

@media screen and (min-width: 992px) {
    .navbar {
        background-color: #FFFFFF;
        border-top: 5px solid #25316a;
        align-items: center;
    }
}

/* ---------- Navbar logo ---------- */

.navbar-logo {
    padding: 0.375rem 1rem 0.75rem 0;
    flex-basis: calc(100% - 60px);
    flex-grow: 0;
    flex-shrink: 0;
}

.navbar-logo a {
    font-size: 1.5rem;
    color: #FFFFFF;
    text-decoration: none;
}

.navbar-logo p.top-link-lower  {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: #FFFFFF;
    line-height: 1.3;
    margin-top: 0;
}

@media screen and (min-width: 992px) {

    .navbar-logo {
        padding: 0;
        flex-basis: 45%;
    }

    .navbar-logo a {
        font-size: 2.375rem;
        color: #25316A;
        text-decoration: none;
    }
    
    .navbar-logo p.top-link-lower  {
        font-size: 1.125rem;
        margin-bottom: 0;
        color: #25316A
    }    
}

/* ---------- Mobile menu button ---------- */

.navbar-toggler:focus {
    outline: none;
}

.navbar .navbar-toggler {
    width: 35px;
    height: 28px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
    border: none;
    z-index: 1032;
    flex-basis: 35px;
    flex-grow: 0;
    flex-shrink: 0;
    margin-top: 1rem;
    margin-left: 1rem;
}

.navbar-toggler {
    position: relative;
    width: 30px;
    height: 22px;
    border: none;
}

.navbar-toggler span {
    display: block;
    position: absolute;
    height: 3px;
    width: 28px;
    background: #FFFFFF;
    opacity: 1;
    left: 0;
}

.navbar-dark .navbar-toggler span {
    background: #FFFFFF;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    border: none;
    outline: none;
    box-shadow: none;
}

.navbar-toggler span:nth-child(1) {
    top: 0;
}

.navbar-toggler span:nth-child(2) {
    top: 9px;
}

.navbar-toggler span:nth-child(3) {
    top: 18px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    display: none;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
}

@media screen and (min-width: 992px) {

    .navbar-toggler {
        display: none;
    }
}

/* ---------- Mobile menu ---------- */

.main-menu-mobile {
    background-color: #243169;
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.5);
}

.main-menu-mobile .nav-link {
    color: #FFFFFF;
    text-decoration: none;
}

.main-menu-mobile .dropdown-menu {
    background-color: transparent;
    margin: 0;
    padding: 0 1rem;
    border: none;
}

.main-menu-mobile .dropdown-menu .nav-link:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.main-menu-mobile .dropdown-toggle::after {
    margin-left: 0.5em;
}

/* ---------- Desktop menu ---------- */

#desktopMenu {
    display: none;
}

@media screen and (min-width: 992px) {

    #desktopMenu {
        display: flex;
        flex-basis: 55%;
        flex-grow: 0;
        flex-shrink: 0;
    }
}

#main-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;;
    width: 100%;
}

#main-menu .nav-item {
    position: relative;
    margin: 0 0 0 2px;
    flex-basis: 194px;
    flex-grow: 0;
    flex-shrink: 1;
}

#main-menu .nav-link {
    width: 100%;
    display: inline-flex;
    background-color: #25316A;
    color: white;
    padding: 0.5em 1em;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: none;
    font-size: 1.125rem;
    text-align: center;
}

#main-menu .nav-link:hover {
    background-color: #0071BC;
}

#main-menu > .nav-item:last-child > .nav-link {
    margin-right: 0;
}

/* Desktop dropdown menus */

#main-menu .dropdown-toggle::after {
    margin-left: 0.5em;
}

#main-menu .dropdown:hover .dropdown-menu {
    display: block;
}

#main-menu .dropdown-menu {
    width: 100%;
    background-color: #25316A;
    border: none;
    border-radius: 0;
    position: absolute;
    top: 100%;
    padding: 0;
    box-shadow: none;
    text-align: center;
    hyphens: auto;
}

#main-menu .dropdown-menu .nav-item {
    margin: 0;
}

#main-menu .dropdown-menu .nav-link {
    color: #FFFFFF;
    font-weight: 400;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.5);
    line-height: 1;
}

#main-menu .dropdown-menu .nav-item:last-child .nav-link {
    border-bottom: none;
}

#main-menu .measuring-data-link {
    cursor: pointer;
}


/*
-----------------------------------------
Content section
-----------------------------------------
*/

.content-section {
    padding: 1rem 1rem 2rem;
}

@media screen and (min-width: 992px) {

    .content-section {
        padding: 2.5rem 0;
    }
}

.start-image {
    margin-top: 1.5rem;
}

/*
-----------------------------------------
Footer buttons
-----------------------------------------
*/

a.footer-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75em 2em;
    background-color: #0071BC; 
    color: #FFFFFF;
    flex-grow: 1;
    flex-shrink: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(1.25rem, 1.012rem + 1.189vw, 1.75rem);
    flex-basis: 100%;
}

a.footer-button:nth-child(2n) {
    background-color: #25316A;
}

a.footer-button:nth-child(2n+1) {
    background-color: #0071BC; 
}

/* 3 or more buttons */

.footer-buttons.count-3 .footer-button:nth-child(3n+1) {
    background-color: #0071BC; 
}

.footer-buttons.count-3 .footer-button:nth-child(3n+2) {
    background-color: #065397;
}

.footer-buttons.count-3 .footer-button:nth-child(3n+3) {
    background-color: #0071BC; 
    background-color: #25316A; 
}


@media screen and (min-width: 576px) {

    a.footer-button {
        flex-basis: 50%;
    }
}

@media screen and (min-width: 768px) {

    a.footer-button {
        flex-basis: 33.33%;
    }
}

@media screen and (min-width: 992px) {

    a.footer-button {
        flex-basis: 25%;
    }
}

/*
-----------------------------------------
Measurements data page
-----------------------------------------
*/

.graph-box + .graph-box {
    margin-top: 2rem;
}


/*
-----------------------------------------
Landing page
-----------------------------------------
*/

.home-page-wrap {
    text-align: center;
    margin-top: 3vw;
}

.home-page-wrap p {
    color: #25316A;
    font-size: 3rem;
    text-align: center;
}

.home-page-wrap .footer-buttons {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto 0;
}


/*
-----------------------------------------
404 page
-----------------------------------------
*/

.four-o-four-page-wrap {
    background-color: #F8F8F8;
    min-height: 100vh;
    text-align: center;
    padding-top: 3rem;    
}

.four-o-four-page-wrap h1 {
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(2.75rem, 2.46rem + 1.449vw, 4rem);
}

.four-o-four-page-wrap p {
    color: #25316a;
    font-size: clamp(1.25rem, 1.192rem + 0.29vw, 1.5rem);
}

