@import './reset.css';

.hero__container--about {
    position: relative;
    width: 100%;
    min-height: 13.2rem;
    background: url(../images/img/img-about.jpeg) center center no-repeat;
    background-size: cover;
    color: var(--text-color-white);
    top: 0;
    left: 0
}

.hero__container--about:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(32, 32, 32, .69);
    background-size: inherit;
    left: 0;
    top: 0;
    z-index: 1
}

.about__text,
.about__title,
.hero__text,
.hero__title {
    display: inline-block;
    z-index: 10;
    position: relative;
    width: 100%
}

.hero {
    padding: 1.4rem
}

.about__title,
.hero__title {
    font-family: var(--font-title);
    font-size: var(--size-title-mobile);
    font-weight: 500;
    margin: 8px 0 18px
}

.about__text,
.hero__text {
    font-family: var(--font-text);
    font-size: var(--size-text-mobile);
    font-weight: 300;
    margin-bottom: 8px;
    text-align: justify
}

.about {
    width: 100%;
    padding: 0 1.4rem
}

.about__card {
    position: relative;
    min-width: 197px;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: -6px 6px 22px var(--box-shadow-color);
    box-shadow: -6px 6px 22px var(--box-shadow-color);
    border-radius: 5px;
    margin: 6rem 0;
    /* background-color: var(--background-card-color); */
}

.about__image {
    display: none
}

.about__card .about__title {
    position: absolute;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: var(--secondary-color0);
    width: auto;
    padding: .5rem 2.5rem;
    border-radius: 5px;
    margin: 0
}

.about__card:nth-child(1) .about__title {
    left: 1.4rem
}

.about__card:nth-child(2) .about__title {
    right: 1.4rem
}

.about__text {
    padding: 3rem 1.4rem;
    color: var(--text-card-color);

}

@media screen and (min-width:31rem) {
    .hero {
        min-height: 18.5rem;
        padding: 2.5rem 2rem
    }

    .hero__title {
        margin: 16px 0 24px
    }

    .hero__text {
        margin-bottom: 16px
    }
}

@media screen and (min-width:48rem) {
    .hero {
        padding: 5vw 3.5rem
    }

    .about__card {
        height: auto;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex
    }

    .about__text {
        width: 60%
    }

    .about__card:first-child .about__image {
        border-radius: 0 5px 5px 0;
        background: url(../images/img/img-about-value.jpeg)
    }

    .about__card:last-child .about__image {
        background-image: url(../images/img/img-about-mission.jpeg);
        border-radius: 5px 0 0 5px
    }

    .about .about__card .about__image {
        display: block;
        width: 40%;
        background-position: center;
        background-size: cover
    }
}

@media screen and (min-width:64rem) {

    .about,
    .hero {
        max-width: 1300px;
        margin: 0 auto
    }

    .about__card {
        border-radius: 1rem;
        min-height: 18.375rem
    }

    .about__text {
        width: 40%;
        padding: 5rem 3rem
    }

    .about .about__card .about__image {
        width: 60%
    }

    .about__card:first-child .about__image {
        border-radius: 0 1rem 1rem 0
    }

    .about__card:last-child .about__image {
        border-radius: 1rem 0 0 1rem
    }
}