/* ===== GLOBAL SETTINGS ===== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,700;1,300&family=Montserrat:wght@400;500&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #3485D7;
    --green: #00BE8A;
    --light-blue: #EAF2FB;
    --dark-blue: #003281;
    --white: #FFFFFF;
    --black: #242424;
    --grey: #3F3F3F;
    /* this attribute turns 1rem into 10px */
    font-size: 62.5%;
    --width: 76.8rem;
}

body {
    min-width: 100vw;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--grey);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    margin-bottom: 1.6rem;
    color: var(--black);
}

h1 {
    font-size: 3.6rem;
}

h2,
cite {
    font-size: 2.4rem;
}

p,
cite {
    line-height: 1.4;
}

@media (max-width: 500px) {
    h1 {
        font-size: 2.4rem;
    }
    h2,
    cite {
        font-size: 1.8rem;
    }
    h3,
    p {
        font-size: 1.6rem;
    }
}

button {
    display: flex;
    font: 1.6rem "Lato", sans-serif;
    font-weight: 700;
    align-items: center;
    text-transform: uppercase;
    padding: 1.6rem;
    gap: .8rem;
    border: none;
    border-radius: 1rem;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    background: var(--blue);
}

.bg-green {
    background: var(--green);
}

img {
    max-width: 100%;
}

.image {
    border-radius: 1rem;
}

iframe {
    border-radius: 1rem;
}

.white-color {
    color: var(--white);
}


/* Video Wrapper */

.video-wrapper {
    position: relative;
    /* Preserves 16:9 ratio */
    padding-bottom: 56.25%;
}

.inner-video-wrapper>video {
    border-radius: 15px;
    max-width: 768px;
    position: relative;
}

iframe {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Hero Background */

.hero-background {
    position: absolute;
    width: 100vw;
    height: 50rem;
    top: 0;
    background-color: var(--blue);
    z-index: -1;
}

@media (max-width: 500px) {
    .hero-background {
        height: 40rem;
    }
}


/* ===== POSITION ====== */

main {
    display: grid;
    grid-template-columns: calc(50vw - calc(var(--width) / 2)) repeat(3, 1fr) calc(50vw - calc(var(--width) / 2));
}

section {
    display: grid;
    place-items: center;
    grid-column: 1 / -1;
    padding: 6rem 0;
}

@media (max-width: 500px) {
    section {
        padding: 4rem 0;
    }
}

.section-wrapper {
    grid-column: 2 / -2;
    max-width: var(--width);
}

@media (max-width: 768px) {
    .section-wrapper {
        grid-column: 1 /-1;
        padding: 0 8vw;
    }
    .slider .slide-track {
        width: 100vw !important;
        animation: scroll-mobile 20s linear infinite !important;
    }
}

footer {
    grid-column: 1 / -1;
}


/* Videos */

#videos {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#videos article {
    margin-bottom: 4rem;
}

#videos .video-wrapper {
    margin-bottom: 8rem;
}

#videos button {
    justify-self: center;
}

@media(max-width: 500px) {
    #videos article {
        margin-bottom: 2rem;
    }
    #videos .video-wrapper {
        margin-bottom: 4rem;
    }
    .inner-video-wrapper>video {
        border-radius: 15px;
        max-width: 320px;
        position: relative;
    }
}


/* Attributes */

#attributes {
    background: var(--light-blue);
}

#attributes .box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

#attributes article {
    max-width: 50%;
}

#attributes figure {
    max-width: 40%;
}

#attributes .cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 768px) {
    #attributes {
        padding: 4rem 4vw;
    }
    #attributes .box {
        flex-direction: column;
    }
    #attributes .box.reverse {
        flex-direction: column-reverse;
    }
    #attributes article,
    #attributes figure {
        max-width: 90%;
        text-align: center;
    }
    #attributes .cta {
        flex-direction: column;
        gap: 1.6rem
    }
    #attributes .cta button {
        width: 100%;
        justify-content: center;
    }
}

@keyframes btn-highlight {
    from {
        box-shadow: 0 0 0 0 #3b94ee;
    }
    to {
        box-shadow: 0 0 20px 5px #3b94ee;
    }
}

@keyframes shake {
    12.5% {
        transform: translateX(-8px);
    }
    25% {
        transform: translateX(8px);
    }
    37.5% {
        transform: translateX(-8px);
    }
    50% {
        transform: translateX(8px);
    }
    62.5% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
    87.5% {
        transform: translateX(-8px);
    }
}

.shake {
    animation-name: shake;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-direction: normal;
}

.btn {
    transition-duration: 1s;
}

.btn:hover {
    box-shadow: 0 0 20px 5px #3b94ee;
}

.btn-highlight {
    animation-name: btn-highlight;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}


/* Testimonials */

#testimonials {
    background: var(--blue);
    color: var(--white);
}

@media (max-width: 768px) {
    #testimonials .section-wrapper {
        max-width: 90vw;
    }
}

#testimonials h1,
#testimonials h2,
#testimonials h3 {
    color: var(--white);
}

.swiper {
    margin-top: 4rem;
    max-width: var(--width);
}

.swiper-slide {
    cursor: default;
}

.content-flex {
    display: flex;
    align-self: center;
    flex-flow: row;
    width: 100% !important;
}

.swiper-wrapper {
    width: 80vw !important;
}

@media (max-width: 768px) {
    .img-content {
        border-radius: 15px;
        object-fit: cover;
        max-width: 30rem;
        align-self: center;
    }
    .content-flex {
        flex-flow: column !important;
    }
    .txt-content {
        margin-top: 1rem !important;
        background: linear-gradient(180deg, #eaf2fbd0, #ffffffcb) !important;
    }
    .txt-content h2 {
        font-size: 1rem;
    }
    .txt-content p {
        font-size: 1rem;
    }
}

.swiper-button-next,
.swiper-button-prev {
    user-select: none;
    cursor: pointer;
    opacity: 0.01;
    transition-duration: 1s;
}

.section-wrapper:hover .swiper-button-next,
.section-wrapper:hover .swiper-button-prev {
    opacity: 1;
}

.txt-content {
    padding: 1rem;
    display: inline-flex;
    flex-flow: column;
    justify-content: center;
    background: linear-gradient(90deg, #eaf2fbd0, #ffffffcb);
    border-radius: 15px;
}

.txt-content.left {
    justify-content: flex-start !important;
    text-align: left !important;
}

.txt-content h2 {
    font-size: 2.15rem;
}

.txt-content p {
    font-size: 1.75rem;
}

.img-content {
    border-radius: 15px;
    object-fit: cover;
    max-height: 40rem;
    max-width: 40rem;
}

.swiper-slide h2 {
    margin-bottom: 2.4rem;
}

.swiper-slide h3 {
    margin-top: 2.4rem;
}

.swiper-pagination {
    position: relative !important;
}

.swiper-pagination-bullet-active {
    background: var(--white) !important;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
}

#faq {
    grid-column: 1 / -1;
    background: var(--dark-blue);
    color: var(--white);
    text-align: left;
}

#faq h1 {
    color: var(--white);
    margin-bottom: 4rem;
    text-align: center;
}

#faq button {
    text-align: left;
}

#faq .question {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1.6rem 0;
    border-radius: 0;
    border-bottom: 0.5px solid var(--white);
    background: none;
    opacity: .5;
    text-transform: none;
    transition: opacity 0.2s;
}

#faq .question:hover {
    opacity: 1;
}

#faq .question h3 {
    font-weight: 400;
    margin-bottom: 0;
    color: var(--white);
}

#faq .question img {
    transition: all 0.2s ease-in-out;
}

#faq .answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    line-height: 1.4;
    transition: all 0.2s ease-in-out;
}

#faq .question.active {
    opacity: 1;
}

#faq .question.active img {
    transform: rotate(180deg);
}

#faq .answer.active {
    max-height: 100rem;
    padding: 1.6rem 0;
    border-bottom: 0.5px solid var(--white);
}


/* Footer */

footer {
    padding: 2rem !important;
    background: var(--black);
    color: var(--white);
}

footer .footer-container {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-evenly;
}

footer .footer-container .separator {
    border-bottom: solid 1px var(--light-blue);
    width: 20vw;
    margin: 1rem;
}

footer .footer-container .badge img {
    object-fit: cover;
    max-width: 12rem !important;
    width: auto !important;
    max-height: 6rem !important;
    height: auto !important;
}

@media (max-width: 768px) {
    footer .footer-container .badge img {
        max-width: 8rem !important;
    }
    footer .footer-container p {
        font-size: 1.5rem !important;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100vw);
    }
}

@keyframes scroll-mobile {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-350vw);
    }
}

section#partners {
    background-color: var(--light-blue);
}

section#partners-video {
    background-color: var(--dark-blue);
}

section#map {
    background-color: var(--light-blue);
}


/* =============== MAP ANIMATION ===============*/

.map-description {
    width: 100%;
    text-align: center;
    position: absolute;
    transition-duration: 1s;
    opacity: 0;
    z-index: 1001;
}

.map-description>span {
    font-weight: bold;
    padding: 1rem;
    border-radius: 15px;
    background-color: #003181d5;
    color: #EAF2FB;
    backdrop-filter: blur(15px);
}

.map-description.show {
    opacity: 1 !important;
}

.map-marker {
    transition-duration: 300ms;
    width: auto;
    height: auto;
    transform: scale(1);
    z-index: 1000;
}

.map-marker:hover {
    animation-name: jump-marker;
    animation-duration: 350ms;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: forwards;
}

.map-marker:not(.show) {
    transform: scale(0) !important;
}

@keyframes jump-marker {
    from {
        transform: translateY(0);
    }
    to {
        transform: scale(1.5) translateY(-3px);
    }
}