﻿/**
    fonts
    header
    footer
    color
    logo
    responsive
**/

@font-face {
    font-family: 'apercu';
    src: url("../fonts/apercu/ApercuPro.woff2") format("woff");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'apercumedium';
    src: url("../fonts/apercu/ApercuPro-Medium.woff2") format("woff");
    font-weight: 500;
    font-style: normal
}

/* Colours */
:root {
    --primarycolor: #142c52;
    --secondarycolor: #ff426f;
    --tertiarycolor: #9d7cfe;
    --fontcolor: #142c52;
    --darkcolor: #1b1b1b;
    --lightcolor: white;
}

body {
    font-family: apercu, sans-serif;
    font-size: 1rem;
    color: var(--fontcolor);
    background-color: #fdfffc;
}

nav{
    transition: all .4s ease;
}

.header__logo {
    height: auto;
    width: 200px;
    color: #531a9c;
}


.header__icon {
    display: none;
    height: auto;
    width: 50px;
    color: #531a9c;
}

.header-has-scrolled {
    background: #fff;
    border-bottom: 1px solid #142c52;
    padding-top: 5px;
    padding-bottom: 5px;
    transition: all .4s ease;
}

    .header-has-scrolled .header__logo {
        display: none;
        transition: all .4s ease;
    }

    .header-has-scrolled .header__icon {
        display: block;
        transition: all .4s ease;
    }

.navbar-nav {
    margin-top: 20px;
}

.nav-item {
    margin: 0 0 0 22px;
    padding: 0;
}

    .nav-item a {
        color: #191716;
        font-family: apercumedium, sans-serif;
        font-weight: 500;
        line-height: 1rem;
        padding: 0 0 2px 0 !important;
        display: inline-block;
        position: relative;
        transition: color .3s;
    }

        .nav-item a:hover, .nav-item a:active {
            color: #142c52;
        }

    .nav-item:not(.cta-button) a:before {
        background: rgba(20,44,82,.5);
        bottom: -2px;
        content: "";
        height: 1px;
        left: auto;
        position: absolute;
        right: 0;
        transition: width .4s ease;
        width: 0;
    }

    .nav-item:not(.cta-button) a:hover:before {
        left: 0;
        right: auto;
        transition: width .4s ease;
        width: 100%;
    }


a.cta-button {
    --initialTextColor: #fdfffc;
    --slideTextColor: #fdfffc;
    --initialBgColor: #ff426f;
    --slideBgColor: #cc3558; /**/
    color: var(--initialTextColor);
    background-image: linear-gradient(90deg, var(--initialBgColor) 0%, var(--initialBgColor) 50%, var(--slideBgColor) 50%, var(--slideBgColor) 100%);
    background-size: 200%;
    transition: background-position .5s cubic-bezier(.4,0,.2,1), color .5s cubic-bezier(.4,0,.2,1);
    border-radius: 5px;
    color: #fdfffc;
    cursor: pointer;
    display: inline-block;
    font-family: apercumedium, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    overflow: hidden;
    padding: 18px 25px !important;
    position: relative;
    text-decoration: none !important;
    display: inline-block;
    margin-top: -13px;
}

    a.cta-button:hover {
        color: var(--slideTextColor);
        cursor: pointer;
        background-position: -100% 100%;
    }


/**FOOTER**/
.grid--no-row-gap {
    row-gap: 0;
}
.grid {
    display: grid;
    gap: 52px;
    grid-template-columns: repeat(12,1fr);
    grid-row-gap: 20px;
}
.footer {
    background: #9d7cfe;
    color: #fdfffc;
    margin: 0;
    padding: 80px 0 0;
    margin-top: 100px;
}
.subfooter {
    background: #9d7cfe;
    color: #fdfffc;
    margin: 0;
    padding-top: 38px;
}
@media (max-width: 650px) {
    .footer {
        padding: 100px 0 40px
    }
}
.footer .grid {
    align-items: center
}
@media (max-width: 992px) {
    .subfooter .grid,
    .footer .grid {
        align-items: flex-start
    }
    .footer {
        padding: 30px 20px 20px 20px;
    }
    .subfooter {
        padding: 30px 20px 40px 20px;
    }
}

@media (max-width: 650px) {
    .grid {
        gap: 26px;
        grid-template-columns: repeat(4,1fr);
        row-gap: 0px;
    }
} 

.footer__home {
    display: inline-block;
    grid-column: span 2;
    margin: -2px 0 18px 0;
}
@media (max-width: 1200px) {
    .footer__home {
        grid-column: span 12;
        margin: 0 0 24px
    }
}
.footer__logo {
    height: auto;
    width: 147px;
    color: #fdfffc;
}
.footer__socials {
    display: flex;
    grid-column: 3/span 4;
    margin-bottom: 1rem;
}
@media (max-width: 1200px) {
    .footer__socials {
        grid-column: 1/span 4
    }
}
@media (max-width: 992px) {
    .footer__socials {
        flex-direction: column
    }
}
@media (max-width: 480px) {
    .footer__socials {
        grid-column: 1/span 6
    }
}
.footer__socials a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    color: #fdfffc;
}
.footer__social {
    font-size: 16px;
    font-weight: 500;
    font-family: apercumedium, sans-serif;
    margin: 0 22px 0 0;
    color: #fdfffc;
    text-decoration: none;
}
@media (max-width: 992px) {
    .footer__social {
        margin: 0 0 12px
    }
}
.footer__nav {
    grid-column: 7/span 6;
    text-align: right
}
    .footer__nav .menu {
        display: flex;
        justify-content: flex-end;
        list-style-type: none;
    }
@media (max-width: 992px) {
    .footer__nav .menu {
        align-items: baseline;
        flex-direction: column
    }
}
@media (max-width: 1200px) {
    .footer__nav {
        grid-column: 5/span 8
    }
}
@media (max-width: 480px) {
    .footer__nav {
        grid-column: 7/span 6
    }
}
.footer__nav .menu-item {
    margin: 0 0 0 22px
}
@media (max-width: 1200px) {
    .footer__nav .menu-item {
        margin: 0 22px 0 0
    }
        .footer__nav .menu-item:last-child {
            margin-right: 0
        }
}
@media (max-width: 992px) {
    .footer__nav .menu-item {
        margin: 0 0 12px
    }
}
.footer__nav .menu-item a {
    font-size: 16px;
    font-weight: 500;
    font-family: apercumedium, sans-serif;
    white-space: nowrap;
    color: #fdfffc;
    text-decoration: none;
}
    .footer__nav .menu-item a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
        color: #fdfffc;
    }
.footer__divider {
    background: #531a9c;
    height: 1px;
    width: 100%;
}
.footer__small-print {
    align-items: center;
    display: flex;
    grid-column: 1/span 8
}
@media (max-width: 1200px) {
    .footer__small-print {
        grid-column: span 8;
        margin: 0;
    }
}
@media (max-width: 992px) {
    .footer__small-print {
        display: block
    }
    ul#menu-policies-menu {
        padding-left: 0;
    } 
}
@media (max-width: 480px) {
    .footer__small-print {
        grid-column: span 12
    }
}
.footer__copyright {
    font-size: 16px;
    font-weight: 500;
    font-family: apercumedium, sans-serif;
    margin-right: 20px;
    opacity: .7;
    white-space: nowrap
}
@media (max-width: 992px) {
    .footer__copyright {
        margin-bottom: 20px
    }
}
.footer__policies {
    opacity: .7
}
    .footer__policies .menu {
        display: flex;
        list-style-type: none;
    }
    .footer__policies .menu-item {
        margin: 0 22px 0 0
    }
        .footer__policies .menu-item a {
            font-size: 16px;
            font-weight: 500;
            font-family: apercumedium, sans-serif;
            white-space: nowrap;
            color: #fdfffc;
            text-decoration: none;
        }
            .footer__policies .menu-item a:hover {
                text-decoration: underline;
                text-decoration-thickness: 2px;
                text-underline-offset: 4px
            }

.footer__back-to-top {
    grid-column: 11/span 2;
    justify-self: end;
    margin: -7px 0 20px 0;
    text-align: center;
    width: 170px;
    --initialTextColor: #fdfffc;
    --slideTextColor: #531a9c;
    --initialBgColor: #531a9c;
    --slideBgColor: #ffffff;
    color: var(--initialTextColor);
    background-image: linear-gradient(90deg, var(--initialBgColor) 0%, var(--initialBgColor) 50%, var(--slideBgColor) 50%, var(--slideBgColor) 100%);
    background-size: 200%;
    transition: background-position .5s cubic-bezier(.4,0,.2,1), color .5s cubic-bezier(.4,0,.2,1);
    border-radius: 5px;
    display: inline-block;
    font-family: apercumedium, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    overflow: hidden;
    padding: 14px 20px;
    position: relative;
    text-decoration: none;
    max-height: 52px;
}
    .footer__back-to-top:hover {
        color: var(--slideTextColor);
        cursor: pointer;
        background-position: -100% 100%;
    }
@media (max-width: 1200px) {
    .footer__back-to-top {
        grid-column: 9/span 4;
        margin-top: 0
    }
}
@media (max-width: 992px) {
    .footer__back-to-top {
        margin: 15px 0 32px 0;
    }
}
@media (max-width: 768px) {
    .footer__back-to-top {
        display: block;
        grid-column: 1/span 12;
        margin-bottom: 0;
        text-align: center;
        width: 100%
    }
}

@media screen and (max-width:992px){
    .header__menu-button span {
        background: #531a9c;
        display: inline-block;
        height: 2px;
        top: 50%;
        transition: height .1s .3s,background .25s;
        width: 25px;
        z-index: 3;
    }

        .header__menu-button span:after, .header__menu-button span:before {
            background: #531a9c;
            content: "";
            display: block;
            height: 2px;
            position: relative;
            top: 5px;
            transition: top .25s,transform .25s,width .2s,background .25s;
            width: 25px;
        }

        .header__menu-button span:before {
            top: -7px;
        }

    .header__menu-button[aria-expanded=true] span {
        background: transparent !important;
    }

        .header__menu-button[aria-expanded=true] span:after {
            top: -2px;
            transform: rotate(-45deg);
            background: white;
        }

        .header__menu-button[aria-expanded=true] span:before {
            top: 0;
            transform: rotate(45deg);
            background: white;
        }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-nav {
        text-align: center;
        font-size: 3rem;
        line-height: 82px;
        width: 100%;
        overflow: auto
    }

    .nav-item:not(.cta-button) a:hover:before {
        left: 0;
        right: auto;
        transition: none;
        width: 0;
    }
    .dropdown-menu {
        background-color: rgba(20,44,82,0.4);
        border: none;
        text-align: center;
    }
    .dropdown-menu a {
        font-size: 2.4rem;
        text-align: center;
    }
    .nav-item {
        margin: 0;
    }

    .navbar-nav .cta-button {
        font-size: 1.5rem;
        margin-top: 42px;
    }

    .mobopen .header__icon,
    .mobopen .header__logo {
        color: white;
        transition: all .4s ease;
    }

    body.mobopen {
        overflow: hidden;
    }

    .navbar .navbar-collapse {
        background: rgba(20,44,82,.98) !important;
        opacity: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transition: opacity 0.4s ease;
        display: flex;
        flex-direction: column;
        align-content: center;
        text-align: center !important;
        overflow-y: scroll;
        overflow-x: hidden;
        overflow: hidden;
        z-index: -1;
    }
    .navbar .navbar-collapse.collapse {
        display: flex;
        opacity: 0;
        pointer-events: none
    }
    .navbar .navbar-collapse.collapsing[style*="height"] {
        opacity: 1;
        height: 100vh !important;
    }
    .navbar .navbar-collapse.collapsing {
        opacity: 0;
        height: 100vh
    }
    .navbar .navbar-collapse.collapse.show {
        opacity: 1;
        pointer-events: auto
    }
    .navbar .navbar-collapse .navbar-nav {
        margin-right: initial !important;
        margin-top: auto;
        margin-bottom: auto;
        padding-top: 139px;
    }
    .navbar-nav {
        margin-left: initial !important;
    }
} 