html {
    font-size: 16px;
    width: 100vw;
    overflow-x: hidden;
}

html.scrollOff {
    overflow-y: hidden;
    height: 100vh;
}

ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #000;
}

figure {
    margin: 0;
}

/*     HERO     */

.hero {
    height: 80vh;
    background:linear-gradient(0deg, rgba(40, 40, 40, 0.7), rgba(40, 40, 40, 0.7)), url(../assets/images/about-us/hero.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1rem;
    box-sizing: border-box;
}

.hero-title {
    color: #fff;
    font-family: Avenir, sans-serif;
    font-weight: 300;
    text-transform: capitalize;
    text-align: center;
    max-width: 80vw;
    font-size: 2rem;
}

.hero-title::after{
    content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 129' xmlns:xlink='http://www.w3.org/1999/xlink' enable-background='new 0 0 129 129' fill='%23ffffff'%3E%3Cg%3E%3Cpath d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z'/%3E%3C/g%3E%3C/svg%3E%0A");
    height: 1rem;
    scale: .1;
    display: block;
}

/*     PHRASE SECTION     */

.phrase-section {
    font-family: Avenir, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5vw;
    flex-direction: column;
    height: fit-content;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.big-phrase {
    margin: 0;
    text-align: center;
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.big-phrase span {
    color: #EA0029;
    font-family: Cunia, sans-serif;
    font-weight: 700;
    margin: 0;
}

.thin-phrase {
    margin: 0;
    text-align: center;
    font-weight: 300;
    font-size: 1.2rem;
}

/*     PHRASE SECTION     */

.mv-container {
    padding: 0 5%;
    display: grid;
    grid-gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center;
    align-items: center;
}

.mv-content {
    display: grid;
    grid-gap: 1rem;
    align-items: center;
    justify-items: center;
    padding-bottom: 3rem;
}

.mv-separator {
    height: 2px;
    width: 80%;
    margin: auto;
    background-color: #F5B335;
}

.mv-title {
    color: #282828;
    font-family: Cunia, sans-serif;
    font-weight: 700;
    margin: 0;
    position: relative;
    text-align: center;
    width: fit-content;
}

.mv-title::after {
    content: '';
    width: 100%;
    height: 1px;
    background-color: #F5B335;
    position: absolute;
    right: 0;
    bottom: 0;
}

.mv-text {
    text-align: center;
    width: 80vw;
    position: relative;
    margin: 0;
    font-family: Avenir, sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

.values-roulette .button-container {
    display: none;
}

.values-roulette {
    position: relative;
    height: fit-content;
    width: 100vw;
    padding: 3rem 10vw;
    display: flex;
    overflow: scroll;
    box-sizing: border-box;
}

.values-roulette .value-container {
    width: 80vw;
    flex-shrink: 0;
    height: fit-content;
    border-radius: 10px;
    overflow: hidden;
    transition: all 400ms ease-in-out;
    z-index: -1;
    margin-right: 1rem;
    box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
}

.values-roulette .value-container:last-of-type {
    margin-right: 0;
}

.value-container .value-image {
    width: 100%;
    object-fit: cover;
    position: relative;
    transition: all .5s ease-out;
    aspect-ratio: 3 / 2;
}

.value-container .value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    display: block;
}

.value-content {
    padding-top: 1rem;
    overflow: hidden;
    transition: all .5s ease-in-out;
    height: 10rem;
}

.value-title {
    color: #EA0029;
    font-family: Cunia, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    width: fit-content;
    margin: 0;
    transition: opacity 300ms ease-in-out;
    padding: 0 10%;
}

.value-text {
    padding: 1rem 10%;
    font-family: Avenir, sans-serif;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    font-size: .9rem;
}


@media only screen and (min-width: 425px) {
    .hero-title {
        font-size: 1.8rem;
    }
    

    .big-phrase {
        font-size: 2rem;
        width: 70vw;
    }
    
    .thin-phrase {
        font-size: 1.3rem;
    }

    .value-content {
        height: 8.5rem;
    }
}

@media only screen and (min-width: 600px) {

    .phrase-section {
        padding: 0 10vw;
        height: 70vh;
    }

    .mv-title {
        font-size: 2rem;
    }
    
    .mv-text {
        font-size: 1rem;
    }

    .values-roulette .value-container {
        width: 50vw;
    }

    .value-content {
        height: 9rem;
    }

}

@media only screen and (min-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .big-phrase {
        font-size: 2.3rem;
    }
    
    .thin-phrase {
        font-size: 1.5rem;
    }

    .mv-container {
        grid-gap: 3rem;
        margin-bottom: 3rem;
    }

    .mv-title {
        text-align: left;
    }

    .mv-content:nth-of-type(2n) .mv-title {
        text-align: right;
    }
    
    .mv-text {
        font-size: 1.2rem;
    }

    .values-roulette {
        position: relative;
        height: 100vh;
        padding: 0;
        overflow: hidden;
    }

    .values-roulette .value-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 15rem;
        height: 15rem;
        border-radius: 10px;
        overflow: hidden;
        transition: all 400ms ease-in-out;
        z-index: -1;
        opacity: 0;
    }

    .value-container .value-image {
        width: 100%;
        max-width: 100%;
        object-fit: cover;
        position: relative;
        transition: all .5s ease-out;
        aspect-ratio: 1 / 1;
    }

    .value-container .value-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
        display: block;
    }

    .value-container.prev {
        z-index: 0;
        opacity: 1;
        transform: translate(-125%, -50%) scale(.9);
    }

    .value-content {
        max-height: 0;
        overflow: hidden;
        transition: all .5s ease-in-out;
        height: fit-content;
    }

    .value-title {
        color: #fff;
        font-family: Cunia, sans-serif;
        font-weight: 700;
        font-size: 1.2rem;
        width: fit-content;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        transition: opacity 300ms ease-in-out
    }

    .value-text {
        padding: 0 10%;
        font-family: Avenir, sans-serif;
        font-weight: 400;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        display: none;
        font-size: .9rem;
    }

    .value-container.next {
        z-index: 0;
        opacity: 1;
        transform: translate(25%, -50%) scale(.9);
    }

    .value-image::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(40, 40, 40, .75);
        opacity: .7;
        transition: all 300ms ease-in-out;
    }

    .values-roulette .button-container {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        z-index: 2;
    }

    .button-container .button {
        color: #ccc;
        font-size: 3rem;
        cursor: pointer;
        position: relative;
        opacity: 0.75;
        transition: all 300ms ease-in-out;
    }

    .button-container .button svg{
        height: 3rem;
        transition: all 300ms ease-in-out;
    }

    .button-container .button:hover {
        opacity: 1;
    }

    .button-container .button:hover svg{
        transform: scale(1.2);
    }

    .button-container .button:nth-child(1) {
        float: left;
    }

    .button-container .button:nth-child(2) {
        float: right;
    }

    .value-container.active {
        opacity: 1;
        z-index: 1;
        box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
        background-color: #fff;
        max-height: 100vh;
    }

    .value-container.active.opened {
        height: 23rem;
    }

    .value-container.active.opened .value-content {
        max-height: 100rem;
    }

    .value-container.active .value-title {
        opacity: 0;
    }

    .value-container.active.closing .value-title {
        opacity: 0;
        position: relative;
    }

    .value-container.active.opening .value-title, .value-container.active.opened .value-title {
        opacity: 1;
        color: #EA0029;
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        padding: 0 10%;
        max-height: 100vh;
        padding-top: 10%;
    }

    .value-container.active.opening .value-text, .value-container.active.opened .value-text{
        display: block;
        max-height: 100vh;
        padding-bottom: 10%;
    }
    .value-container.active.opened .value-image {
        aspect-ratio: 2 / 1;
    }

    .value-container.active .value-image::after {
        background-color: rgba(40, 40, 40, .75);
        opacity: 0;
    }
}

@media only screen and (min-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .phrase-section {
        height: 80vh;
    }

    .big-phrase {
        font-size: 2.5rem;
    }

    .thin-phrase {
        font-size: 1.8rem;
    }

    .values-roulette .value-container {
        width: 20rem;
        height: 20rem;
    }

    .value-title {
        font-size: 1.5rem;
    }

    .value-text {
        font-size: 1rem;
    }

    .value-container.active.opened {
        height: 25rem;
    }
}

@media only screen and (min-width: 1200px) {
    .big-phrase {
        font-size: 3rem;
    }

    .thin-phrase {
        font-size: 2rem;
    }


    .values-roulette .button-container {
        width: 80%;
    }
}

@media only screen and (min-width: 1300px) {

    .values-roulette .button-container {
        width: 70%;
    }
}






/*       ANIMATIONS        */

.slide-in {
    -webkit-animation-name: slide-in;
    -webkit-animation-duration: .5s;
    animation-name: slide-in;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes slide-in {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes slide-in {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.slide-out {
    -webkit-animation-name: slide-out;
    -webkit-animation-duration: .5s;
    animation-name: slide-out;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes slide-out {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

@-webkit-keyframes slide-out {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

.slide-down {
    -webkit-animation-name: slide-down;
    -webkit-animation-duration: 1s;
    animation-name: slide-down;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}

@keyframes slide-down {
    from {
        max-height: 0%;
    }
    
    to {
        max-height: 100%;
    }
}

@-webkit-keyframes slide-down {
    from {
        max-height: 0%;
    }
    
    to {
        max-height: 100%;
    }
}

.slide-up {
    -webkit-animation-name: slide-up;
    -webkit-animation-duration: 1s;
    animation-name: slide-up;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}

@keyframes slide-up {
    from {
        max-height: 100%;
    }
    
    to {
        max-height: 0%;
    }
}

@-webkit-keyframes slide-up {
    from {
        max-height: 100%;
    }
    
    to {
        max-height: 0%;
    }
}

.fade-in {
    -webkit-animation-name: fade-in;
    -webkit-animation-duration: .5s;
    animation-name: fade-in;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@-webkit-keyframes fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}

.fade-out {
    -webkit-animation-name: fade-out;
    -webkit-animation-duration: .5s;
    animation-name: fade-out;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@-webkit-keyframes fade-out {
    from {opacity: 1;}
    to {opacity: 0;}
}

@keyframes fade-out {
    from {opacity: 1;}
    to {opacity: 0;}
}

.carousel-in-left{
    -webkit-animation-name: carousel-in-left;
    -webkit-animation-duration: .5s;
    animation-name: carousel-in-left;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-in-left {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes carousel-in-left {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.carousel-in-right{
    -webkit-animation-name: carousel-in-right;
    -webkit-animation-duration: .5s;
    animation-name: carousel-in-right;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-in-right {
    from {
        transform: translateX(-100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes carousel-in-right {
    from {
        transform: translateX(-100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.carousel-out-left {
    -webkit-animation-name: carousel-out-left;
    -webkit-animation-duration: .5s;
    animation-name: carousel-out-left;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-out-left {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(-100vw);
    }
}

@-webkit-keyframes carousel-out-left {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(-100vw);
    }
}

.carousel-out-right {
    -webkit-animation-name: carousel-out-right;
    -webkit-animation-duration: .5s;
    animation-name: carousel-out-right;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-out-right {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

@-webkit-keyframes carousel-out-right {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}


/*     FONTS     */

@font-face {
    font-family: 'Avenir';
    font-weight: 900;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Black.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Medium.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    font-weight: 400;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Roman.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    font-weight: 300;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Light.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Cunia';
    font-weight: 700;
    font-style: normal;
    src: url(../assets/fonts/Cunia.ttf);
    font-display: swap;
}