/* Global variables */

:root {
    --zea-rgb-yellow: 207, 151, 34;
    --zea-rgb-light-yellow: 250, 173, 70;
    --zea-rgb-dark-blue: 33, 42, 83;
    --zea-rgb-grey: 69, 72, 74;

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

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

/* General styles */

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

    &.waiting * {
        cursor: progress !important;
    }
}

main {
    .main-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/assets/images/fondo-collage.png') center/cover;
        filter: opacity(10%);
        z-index: -1;
    }
}

/* 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: rgba(var(--zea-rgb-yellow), 0.85);
        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-background {
        position: absolute;
        z-index: -1;
        top: -5vh;
        left: -3vw;
        width: 62vh;
        height: 32.6156vh;
        background: url("/assets/images/PLECA-01.svg") center/cover;
        transform: scaleY(0);
        transform-origin: top;
        transition: translate .6s ease 0s;
    }

    .logo-link {
        display: block;
        width: min(60vmin, 380px);
        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(--zea-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;
        text-align: right;
    }

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

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

        .active {
            border-bottom: 2px solid rgb(var(--zea-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: 5vh;
            left: 3vw;
            width: 40vh;
        }

        .logo-background {
            transform: none;
        }

        .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(--zea-text-shadow);
            text-wrap: nowrap;
            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(--zea-rgb-white));
            box-shadow: var(--zea-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-background {
            translate: -120% 0;
        }

        .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: 180px;
                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: 150px 0 100px;
    font-size: 1.25rem;

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

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

    .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 h1,
    .section-title h2,
    .section-title h3,
    .section-title h4,
    .section-title h5,
    .section-title h6 {
        font-size: calc(5.5vw + 0.875rem);
        font-weight: 700;
        font-style: italic;
        color: rgb(var(--zea-rgb-white));
        text-transform: uppercase;
        margin: 0 0 0 0.6em;

        span {
            font-weight: 700;
        }

        @media (min-width: 1200px) {
            font-size: 5rem;
        }
    }

    p {
        margin: 0.5rem 0;
        text-align: justify;

        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(--zea-rgb-white));
    --bs-btn-bg: rgb(var(--zea-rgb-dark-blue));
    --bs-btn-border-color: rgb(var(--zea-rgb-dark-blue));
    --bs-btn-hover-color: rgb(var(--zea-rgb-dark-blue));
    --bs-btn-hover-bg: rgb(var(--zea-rgb-white));
    --bs-btn-hover-border-color: rgb(var(--zea-rgb-white));
    --bs-btn-focus-shadow-rgb: rgb(var(--zea-rgb-dark-blue));
    --bs-btn-active-color: rgb(var(--zea-rgb-dark-blue));
    --bs-btn-active-bg: rgb(var(--zea-rgb-white));
    --bs-btn-active-border-color: rgb(var(--zea-rgb-white));
    --bs-btn-active-shadow: inset 0 3px 5px rgba(var(--zea-rgb-black), 0.125);
    --bs-btn-disabled-color: rgb(var(--zea-rgb-white));
    --bs-btn-disabled-bg: rgb(var(--zea-rgb-grey));
    --bs-btn-disabled-border-color: rgb(var(--zea-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(--zea-rgb-white));
        vertical-align: middle;
    }

    .hero-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        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 {

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

    .card-img img,
    .card-img video {
        width: 100%;
        height: 100%;
        padding: 0.75rem;
        border-top-left-radius: 6rem;
        border-bottom-right-radius: 6rem;
        border: 7px solid rgb(var(--zea-rgb-light-yellow));
        object-fit: cover;
    }

    .card-title {
        margin: 0;
        text-align: center;
        text-transform: uppercase;
        color: rgb(var(--zea-rgb-light-yellow));

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-weight: 600;
        }
    }

    hr {
        border-width: 0.375rem;
        color: rgb(var(--zea-rgb-light-yellow));
        opacity: 75%;
    }

    .card-body {
        padding: 2rem 2rem 0;
    }

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

    li {
        padding-left: 1em;
    }
}

/* Colophon */

.colophon {
    display: flex;
    align-items: center;
    background-color: rgb(var(--zea-rgb-grey));
    color: rgb(var(--zea-rgb-white));
    font-size: 14px;
    text-align: center;

    .container-fluid {
        display: grid;
        padding: 0 3.5vw;
    }

    .colophon-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .colophon-small-logo {
        max-height: 50px;
    }

    h5 {
        text-align: center;
        text-transform: uppercase;
    }

    p {
        margin-bottom: 0;
    }

    #colophon-socials {
        svg {
            height: 40px;
            width: 40px;
        }

        div:nth-of-type(2) a:nth-child(1) svg {
            height: 40px;
            width: 50px;
        }
    }

    #colophon-socials a {
        margin: 0 2px;
    }

    .colophon-socials-group {
        display: flex;
    }

    @media (max-width: 767.98px) {
        .row {
            width: 100%;
            justify-self: center;
        }

        .colophon-col {
            padding-top: 5px;
            padding-bottom: 5px;
        }

        h5 {
            font-size: 24px;
            align-self: center;
            padding-top: 15px;
            margin-bottom: 0;
        }

        .colophon-logo {
            width: 50vw;
            max-width: 200px;
            padding-top: 15px;
        }

        #colophon-rights {
            padding-top: 35px !important;
            padding-bottom: 15px !important;
        }

        #colophon-links {
            padding-bottom: 15px !important;
        }
    }

    @media (min-width: 768px) {
        height: 350px;
        text-align: left;

        h5 {
            font-size: 2.6vw;
            align-self: flex-end;
        }

        .colophon-logo {
            max-width: 20vw;
            padding-bottom: 15px;
        }

        .colophon-header {
            height: 70px;
        }

        #colophon-socials {
            svg {
                height: 30px;
                width: 30px;
            }

            div:nth-of-type(2) a:nth-child(1) svg {
                height: 30px;
                width: 37.5px;
            }
        }

        #colophon-rights,
        #colophon-links {
            height: 128px;
        }

        #colophon-logos,
        #colophon-socials {
            height: 80px;
        }

        .colophon-body {
            display: flex;
            flex-direction: column;
            padding-top: 20px;
        }

        #colophon-socials>.row {
            height: 80px;
        }

        .colophon-border-top {
            border-top: rgb(var(--zea-rgb-yellow)) solid 3px;
        }

        .colophon-border-bottom {
            border-bottom: rgb(var(--zea-rgb-yellow)) solid 3px;
        }

        .colophon-border-left {
            border-left: rgb(var(--zea-rgb-yellow)) solid 3px;
        }

        .colophon-border-right {
            border-right: rgb(var(--zea-rgb-yellow)) solid 3px;
        }
    }

    @media (min-width: 1200px) {
        #colophon-socials {    
            svg {
                height: 40px;
                width: 40px;
            }

            div:nth-of-type(2) a:nth-child(1) svg {
                height: 40px;
                width: 50px;
            }
        }
    }

    @media (min-width: 1600px) {
        h5 {
            font-size: 2.5rem;
        }
    }
}

/* 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;
    }
}