/* Welcome header */

#welcome {
    display: flex;
    height: 500px;
    width: 100%;
    background-image: linear-gradient(90deg, #000000 50%, #ffffff00 100%);
}

#welcome-msg {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;

    height: 100%;
    width: 100%;
    margin-left: 40px;
    position: relative;
    margin-right: -200px;
}

#welcome-h1,
#welcome-h2 {
    height: auto;
    width: fit-content;
    max-width: 560px;
    align-content: center;
    color: white;
}

#welcome-h1 {
    font-size: 54px;
    font-weight: 900;
}

#welcome-h2 {
    font-size: 42px;
    font-weight: 300;
}

#welcome-h2:hover {
    color: red;
}

#welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

/* "Sobre nós" section */

#sobre-nos {
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    margin: 50px 100px;
}

#sobre-img {
    width: 20vw;
}

#sobre-texto {
    width: 35vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

#sobre-h2 {
    color: red;
}

#sobre-h3 {
    color: red;
    font-weight: 400;
}

.sobre-li {
    margin-bottom: 8px;
}

#sobre-link {
    color: red;
    background-color: black;
    padding: 8px 24px;
    font-weight: 700;
}

#sobre-info {
    height: fit-content;
    width: 300px;
    background-color: red;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
}

.info-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: 20px;
    height: fit-content;
    color: white;
}

#info-h2 {
    text-transform: capitalize;
    font-weight: 900;
}

#info-p {
    font-size: 14px;
    text-align: center;
}

/* "Nossos produtos" section */

#nossos-produtos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: fit-content;
    color: white;
    background-color: #333;
    padding: 20px 100px;
}

#produtos-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#produtos-h2 {
    color: red;
}

#produtos-p {
    width: 60%;
    color: white;
    text-align: center;
    margin-bottom: 17px;
}

#produtos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: auto;
    width: fit-content;
}

.linhas-produtos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    height: fit-content;
    width: fit-content;
    padding: 20px;
    border-radius: 10px;

    color: white;
    background-color: black;
}

.produtos-h4 {
    color: red;
    text-align: center;
}

.link-saiba-mais {
    color: white;
    font-weight: 600;
    text-align: center;
}

.link-saiba-mais::before {
    content: "→ ";
}

.linhas-produtos:hover {
    transform: translateY(-12px);
    transition-duration: 400ms;

    .link-saiba-mais {
        color: red;
    }
}

.produtos-grid-img {
    height: 144px;
}

/* "Nossos clientes" section */

#nossos-clientes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    height: fit-content;
    color: black;
    background-color: white;
    padding: 20px 100px;
}

/* Grid de imagens */

#img-slider {
    display: flex;
    flex-direction: column;
}

#img {
    height: 90px;
    width: 180px;
    border: 1px solid #333;
    border-radius: 10px;
    margin-top: 10px;
}

#slide {
    height: 100%;
    object-fit: cover;
}

#placeholder {
    margin-top: 5px;
}

#slider-buttons {
    button {
        position: relative;
        top: -60px;

        height: 32px;
        width: 32px;
        font-size: 20px;

        background-color: transparent;
        border-color: #333;
        border-radius: 20px;
    }

    button:hover {
        opacity: 50%;
    }
}

#back-btn {
    right: 100px;
}

#front-btn {
    left: 100px;
}

/* "Entre em Contato Conosco" section */

#contato {
    display: flex;
    flex-direction: column;
    align-items: center;

    height: fit-content;
    color: white;
    background-color: red;
    padding: 20px 100px;
}

#contato-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    margin-top: 15px;
}

#maps-iframe {
    border-radius: 10px;
}

#contato-email {
    width: 25vw;

    label {
        color: white;
        font-weight: 600;
        text-align: center;
    }

    input,
    textarea {
        height: 30px;
        width: 100%;
        border: 1px solid black;
        border-radius: 5px;
        margin-bottom: 5px;
        outline: none;
    }

    input::placeholder,
    textarea::placeholder {
        color: #333;
        font-size: 16px;
    }

    button {
        font-size: 14px;
        font-weight: 600;
        padding: 10px;

        color: white;
        background-color: #333;
        border: 1px solid transparent;
        border-radius: 7px;

        margin-bottom: 5px;
    }

    button:hover,
    input:hover,
    textarea:hover {
        border: 2px solid black;
    }
}

/* Small PC monitors */

@media (max-width: 1280px) {
    /* "Entre em Contato Conosco" section */

    #maps-iframe {
        width: 480px;
    }
}

/* Big Tablets */

@media (max-width: 920px) {
    /* "Sobre nós" section */

    #sobre-nos {
        margin: 50px;
    }

    #sobre-img {
        display: none;
    }

    #sobre-texto {
        gap: 15px;
    }

    #info-p {
        font-size: 14px;
    }

    /* "Nossos produtos" section */

    .produtos-h6 {
        font-size: 18px;
    }

    .link-saiba-mais {
        font-size: 16px;
    }

    .produtos-grid-img {
        height: 108px;
    }

    /* "Nossos clientes" section */

    #img-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* "Entre em Contato Conosco" section */

    #maps-iframe {
        width: 360px;
    }
}

/* Small Tablets */

@media (max-width: 720px) {
    /* Welcome header */

    #welcome-h1 {
        font-size: 42px;
    }

    #welcome-h2 {
        font-size: 30px;
    }

    /* "Sobre nós" section */

    #sobre-nos {
        flex-direction: column;
        align-items: center;
    }

    #sobre-texto,
    #sobre-info {
        width: fit-content;
    }

    #sobre-img {
        height: 50%;
    }

    /* "Nossos produtos" section */

    #produtos-grid {
        gap: 10px;
    }

    .linhas-produtos {
        gap: 8px;
        padding: 15px;
    }

    /* "Nossos clientes" section */

    #img-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* "Entre em Contato Conosco" section */

    #contato-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 15px;
    }

    #maps-iframe {
        width: 360px;
    }

    #contato-email {
        width: 360px;
    }
}

/* Mobile (smartphones) */

@media (max-width: 640px) {

    /* Welcome header */
    #welcome {
        background-image: linear-gradient(90deg, #000000 20%, #ffffff00 100%);
    }

    #welcome-msg {
        margin-right: -400px;
    }

    #welcome-h1,
    #welcome-h2 {
        max-width: 300px;
    }

    #welcome-h1 {
        font-size: 42px;
    }

    #welcome-h2 {
        font-size: 30px;
    }

    #welcome-img {
        margin-left: 50px;
    }

    /* "Sobre nós" section */

    #sobre-nos {
        display: flex;
        flex-direction: column;
    }

    /* "Nossos produtos" section */

    #nossos-produtos {
        padding: 30px 20px;
    }

    #produtos-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .produtos-grid-img {
        height: 144px;
    }

    /* "Nossos clientes" section */

    #nossos-clientes {
        padding: 30px 20px;
    }

    #slider-buttons {
        button {
            top: -65px;

            height: calc(32px * 1.2);
            width: calc(32px * 1.2);
            font-size: calc(20px * 1.2);

            border-radius: calc(20px * 1.2);
        }
    }

    /* "Entre em Contato Conosco" section */

    #contato {
        text-align: center;
        padding: 20px 30px;
    }

    #contato-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }

    #maps-iframe {
        width: 90vw;
    }

    #contato-email {
        width: 90vw;
        button {
            font-size: 20px;
            font-weight: 600;
            padding: 10px;
            margin-top: 10px;
        }
    }
}