/* Global variables */

:root {

    --aqu-rgb-light-blue: 118, 190, 233;
    --aqu-rgb-dark-blue: 28, 46, 90;
    --aqu-rgb-red: 208, 32, 39;
    --aqu-rgb-grey: 93, 97, 98;

    --aqu-rgb-black: 0, 0, 0;
    --aqu-rgb-white: 255, 255, 255;

    --aqu-text-shadow: 0px 0px 0.2em rgb(var(--aqu-rgb-black)), 0px 0px 1em rgb(var(--aqu-rgb-black));
}

/* General styles */

body {
    font-family: 'Montserrat', sans-serif;
}

main {
    background-color: rgb(var(--aqu-rgb-white));
}

.framed-left {
    border-radius: 6rem 0;
}

.framed-right {
    border-radius: 0 6rem;
}

/* Navbar */

header.navbar {
    .inline-navbar {
        height: 100px;
        padding: 0;
        justify-content: space-between;
        transition: all .6s ease 0s;
    }

    .navbar-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/assets/images/navbar-background.png') 50% 100%/cover;
        opacity: 0;
        transition: all .6s ease 0s;
    }

    .navbar-logo {
        display: flex;
        position: relative;
        top: 10vh;
        width: 100%;
        align-self: start;
        justify-content: center;
        transition: all .6s ease 0s;
    }

    .logo-link {
        display: block;
        width: min(75vmin, 450px);
        transition: all .6s ease 0s;
    }

    .logo-img {
        width: 100%;
    }

    .navbar-menu {
        position: absolute;
        top: 35px;
        right: 22px;
        z-index: 2000;
        transition: all .6s ease 0s;
    }

    .menu-button {
        border-style: none;

        &:focus {
            box-shadow: none;
        }
    }

    .menu-icon {
        display: inline-flex;
        position: relative;
        height: 30px;
        width: 30px;
        overflow: hidden;
        vertical-align: middle;
    }

    .icon-open {
        position: absolute;
        height: 100%;
        width: 100%;

        i {
            height: 2px;
            position: absolute;
            left: 0;
            background: rgb(var(--aqu-rgb-white));
            transition: all .5s ease 0s;
        }

        i:nth-of-type(1) {
            top: 6px;
            width: 30px;
        }

        i:nth-of-type(2) {
            top: 14px;
            width: 23px;
        }

        i:nth-of-type(3) {
            top: 22px;
            width: 30px;
        }
    }

    .navbar-menu.is-open {
        .icon-open {
            i:nth-of-type(1) {
                top: 14px;
                rotate: 45deg;
            }

            i:nth-of-type(2) {
                width: 0 !important;
            }

            i:nth-of-type(3) {
                top: 14px;
                rotate: -45deg;
            }
        }
    }

    .offcanvas {
        width: 200px;
        height: 100vh;
    }

    .offcanvas-header {
        height: 70px;
        padding: 0px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: end;
    }

    .nav-item {
        display: flex;
        flex-direction: row;

        a {
            margin: 5px 10px 0 10px !important;
            padding: 0 !important;
            color: rgb(var(--aqu-rgb-white));
            font-size: 1.125rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .active {
            border-bottom: 2px solid rgb(var(--aqu-rgb-white));
        }
    }

    @media (min-width: 576px) {
        .navbar-menu {
            top: 35px;
            right: 31px;
        }

        .offcanvas {
            width: 220px;
        }

        .offcanvas-body {
            padding: 1rem 25px;
        }
    }

    @media (min-width: 768px) {
        .navbar-logo {
            top: 10vh;
            left: 5vw;
            width: 50vh;
        }

        .logo-link {
            width: 100%;
        }

        .offcanvas {
            position: relative;
            top: 20px;
            right: 15px;
            flex: 0;
            align-self: start;
            transition: right .6s, flex .6s ease 0s
        }

        .navbar-nav {
            justify-content: end;
            transition: all .6s ease 0s;
        }

        .nav-item a {
            text-shadow: var(--aqu-text-shadow);
            transition: all .6s ease 0s;
        }
    }

    @media (min-width: 992px) {
        .offcanvas {
            top: 0;
            align-self: center;
        }

        .navbar-nav {
            flex-direction: row;
        }

        .nav-item:not(:last-child)::after {
            content: "";
            width: 0.1875rem;
            background-color: rgb(var(--aqu-rgb-white));
            box-shadow: var(--aqu-text-shadow);
        }
    }

    &.has-scrolled {
        .inline-navbar {
            padding: 0 22px;
            backdrop-filter: blur(20px);
        }

        .navbar-background {
            opacity: 1;
        }

        .navbar-logo {
            top: 0;
            width: 150px;
            align-self: center;
        }

        .logo-link {
            width: 150px;
        }

        .navbar-menu {
            top: 35px;
            right: 22px;
        }

        @media (min-width: 576px) {
            .inline-navbar {
                padding: 0 31px;
            }

            .navbar-logo {
                width: 100%;
            }

            .navbar-menu {
                top: 35px;
                right: 31px;
            }
        }

        @media (min-width: 768px) {
            .inline-navbar {
                padding: 0 5vw;
            }

            .navbar-logo {
                top: 0;
                left: 0;
                width: 260px;
                align-self: center;
            }

            .logo-link {
                width: 100%;
            }

            .offcanvas {
                top: 0;
                right: 0;
                flex: 1;
                align-self: center;
            }

            .navbar-nav {
                flex-direction: row;
                justify-content: center;
            }

            .nav-item a {
                text-shadow: none;
            }
        }

        @media (min-width: 992px) {
            .nav-item:not(:last-child)::after {
                content: none;
            }
        }
    }
}

/* Sections */

.site-section {
    position: relative;
    width: 100%;
    padding: 100px 0 50px;
    color: rgb(var(--aqu-rgb-grey));
    font-size: 1.25rem;

    &:nth-child(1 of .site-section) {
        padding-top: 150px;
    }

    &:nth-last-child(1 of .site-section) {
        padding-bottom: 150px;
    }

    .section-banner {
        position: absolute;
        width: 100%;
        height: 350px;

        + div {
            padding-top: 300px;
        }
    }

    .section-container {
        display: flex;
        flex-direction: column;
        row-gap: 1.25rem;
        column-gap: 1.25rem;
        width: 100%;
        max-width: 1488px;
        margin: auto;
        padding: 0 1.5rem;
    }

    .section-title .framed-left,
    .section-title .framed-right {
        padding: 2rem 4rem;
        background-color: rgb(var(--aqu-rgb-dark-blue));
        text-align: center;
        color: rgb(var(--aqu-rgb-white));

        @media (min-width: 768px) {
            width: max-content;
            max-width: 100%;
        }
    }

    .section-title h1,
    .section-title h2,
    .section-title h3,
    .section-title h4,
    .section-title h5,
    .section-title h6 {
        color: rgb(var(--aqu-rgb-grey));
        text-transform: uppercase;
        margin: 0;

        span {
            font-weight: 700;
        }
    }

    p {
        margin: 0.5rem 0;

        span {
            font-weight: 700;
            font-variant-caps: small-caps;
        }
    }

    .section-img {
        overflow: hidden;
        aspect-ratio: 1 / 1;
    }

    .section-img img,
    .section-img video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .section-map {
        aspect-ratio: 1 / 1;
    }

    .section-map iframe {
        width: 100%;
        height: 100%;
    }
}

/* Grid */

.grid {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: 1fr;
    row-gap: 1.25rem;
    column-gap: 1.25rem;
    align-items: center;
    width: 100%;

    @media (min-width: 992px) {
        row-gap: 0;
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Group */

.section-group,
.grid-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Button */

.btn-primary {
    --bs-btn-font-weight: 600;
    --bs-btn-color: rgb(var(--aqu-rgb-white));
    --bs-btn-bg: rgb(var(--aqu-rgb-dark-blue));
    --bs-btn-border-color: rgb(var(--aqu-rgb-dark-blue));
    --bs-btn-hover-color: rgb(var(--aqu-rgb-dark-blue));
    --bs-btn-hover-bg: rgb(var(--aqu-rgb-white));
    --bs-btn-hover-border-color: rgb(var(--aqu-rgb-white));
    --bs-btn-focus-shadow-rgb: rgb(var(--aqu-rgb-dark-blue));
    --bs-btn-active-color: rgb(var(--aqu-rgb-dark-blue));
    --bs-btn-active-bg: rgb(var(--aqu-rgb-white));
    --bs-btn-active-border-color: rgb(var(--aqu-rgb-white));
    --bs-btn-active-shadow: inset 0 3px 5px rgba(var(--aqu-rgb-black), 0.125);
    --bs-btn-disabled-color: rgb(var(--aqu-rgb-white));
    --bs-btn-disabled-bg: rgb(var(--aqu-rgb-grey));
    --bs-btn-disabled-border-color: rgb(var(--aqu-rgb-grey));
}

/* Hero */

.hero {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;

    .hero-background {
        position: absolute;
        top: 0%;
        left: 0%;
        height: 100%;
        width: 100%;
    }

    .hero-content {
        position: relative;
        height: 100%;
        width: 100%;
        color: rgb(var(--aqu-rgb-white));
        vertical-align: middle;
    }

    .hero-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        height: 100vh;
    }
}

/* Hero arrow */

.hero-arrow {
    position: absolute;
    left: 50%;
    /* sqrt(2)*20 [from animation] + (sqrt(2)-1)/2 [from 45° rotation] + actual desired spacing */
    bottom: calc(28.28px + 0.21em + 10px);
    transform: translateX(-50%);
    font-size: 0.825em;

    span {
        display: block;
        width: 1em;
        height: 1em;
        border-bottom: 0.3em solid white;
        border-right: 0.3em solid white;
        transform: rotate(45deg);
        margin-top: -10px;
        animation: home-arrow-down 2s infinite;

        &:nth-child(2) {
            animation-delay: -0.2s;
        }

        &:nth-child(3) {
            animation-delay: -0.4s;
        }
    }

    /* &:hover span {
        animation-play-state: paused;
    } */

    @media (min-width: 768px) {
        bottom: calc(28.28px + 0.21em + 20px);
        font-size: 1.25em;
    }
}

@keyframes home-arrow-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Card body */

.section-card {
    /* overflow: hidden;
    border-radius: 2rem; */
    box-shadow: rgb(var(--aqu-rgb-grey)) 0px 0px 10px;

    .card-img {
        overflow: hidden;
        aspect-ratio: 1 / 1;
    }

    .card-img img,
    .card-img video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-title {
        margin: 0;
        color: rgb(var(--aqu-rgb-dark-blue));
        text-transform: uppercase;
        font-weight: 500;
    }

    hr {
        border-width: 3px;
        color: rgb(var(--aqu-rgb-dark-blue));
        opacity: 75%;
    }

    .card-body {
        padding: 2rem;
    }

    ul {
        margin: 0;
        list-style-type: '\2B25';
    }

    li {
        padding-left: 1em;
    }
}

/* Colophon */

.colophon {
    padding-bottom: 25px;
    background-color: rgb(var(--aqu-rgb-dark-blue));
    color: rgb(var(--aqu-rgb-white));

    .floating-link {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 4.5rem;
        height: 4.5rem;
        background-color: rgb(var(--aqu-rgb-white));
        border-radius: 50%;
        align-content: center;
        text-align: center;
        font-size: 2.5rem;
        box-shadow: 2px 2px 6px rgba(var(--aqu-rgb-black),0.4);
        z-index: 1030;

        i {
            color: rgb(37, 211, 102);
        }
    }

    .colophon-rights {
        text-align: center;

        p {
            font-size: 0.75rem;
            margin: 0;
        }
    }
}

/* Animations */

[data-aos^=fade][data-aos^=fade] {
    transition-property: opacity, translate;
}

[data-aos^=fade][data-aos^=fade].aos-animate {
    translate: 0;
}

[data-aos=fade-up] {
    translate: 0 100px;
}

[data-aos=fade-down] {
    translate: 0 -100px;
}

[data-aos=fade-right] {
    translate: -100px;
}

[data-aos=fade-left] {
    translate: 100px;
}

[data-aos=fade-up-md-left] {
    translate: 0 100px;

    @media (min-width: 768px) {
        translate: 100px;
    }
}

[data-aos=fade-up-md-right] {
    translate: 0 100px;

    @media (min-width: 768px) {
        translate: -100px;
    }
}

[data-aos=fade-up-lg-left] {
    translate: 0 100px;

    @media (min-width: 992px) {
        translate: 100px;
    }
}

[data-aos=fade-up-lg-right] {
    translate: 0 100px;

    @media (min-width: 992px) {
        translate: -100px;
    }
}