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

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

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


/* Attributes */

#attributes {
    padding: 8rem 16rem;
    grid-column: 1 / -1;
    background: var(--light-blue);
    text-align: left;
    gap: 4rem;
}

#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;
    }
}


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

.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 */

#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: 2.4rem 0;
    background: var(--black);
    color: var(--white);
}