* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

header{
    display: flex;
    margin: 1rem;
    margin-bottom: 2rem;
}

body {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    margin: 0;
    position: relative;
    padding: 20px 100px 0 100px;
    background-image: url("../img/fundo.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.conteudo{
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
}

.itens-esquerda{
    width: 100%;
    min-height: 100%;
    position: relative;
    /* LARGURA */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.caixa-textos {
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
    width: 50%;
}

h2 {
    color: #fff;
    font-weight: 600;
    /*Espessura da fonte */
    font-size: 3.4rem;
}

.texto-starbucks {
    color: #017143;
    font-weight: 900;
    font-size: 4.3rem;
}

.paragrafo {
    font-size: 1rem;
    color: #fff;
}

button {
    background-color: #017143;
    color: #fff;
    margin-top: 30px;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.5s;
}

button:hover {
    background-color: #00b368;
}

.logo {
    width: 8%;
}

.itens-direita{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    width: 50%;
    min-height: 100%;
}

.caixa-imagem {
    position: relative; /* Ela agora é a referência para os copos */
    width: 100%;        /* Ocupa a largura do pai */
    height: 80%;       /* Altura que você quer que os copos ocupem */
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.imagem-copo {
    position: absolute; /* Empilha um sobre o outro */
    bottom: 0;         /* Todos grudados na base da .caixa-imagem */
    max-height: 100%;  /* Não deixa o copo ser maior que a moldura */
    width: 80%;
    opacity: 0;        /* Esconde por padrão */
    bottom: 1.5rem;
}

.imagem-copo.ativo {
    opacity: 1;        /* Só mostra o que tiver a classe ativo */
    position: relative; /* O copo ativo ajuda a dar volume à caixa */
}

.caixa-menu {
    display: flex;
    justify-content: flex-end;
    position: relative;
    padding: 10px;
    min-width: 100%;
    padding-right: 4rem;
}

.botao-menu {
    position: relative;
    width: 100px;
    margin: 0 10px;
    bottom: 1rem;
    cursor: pointer;
    transition: all ease 0.3s;
}

.botao-menu:hover{
    transform: translateY(-10px);
}

/*
EXPLICAÇÃO do clip-path: circle(600px at right 800px);

1. circle(600px ...)

Define um círculo de raio 600px.

Tudo fora desse círculo fica oculto.

Tudo dentro do círculo permanece visível.

2. at right 800px

Aqui você está dizendo onde o centro do círculo vai ficar dentro do elemento.

right → o centro fica alinhado ao lado direito do elemento.

800px → deslocamento vertical a partir do topo.
*/

.circulo {
    background-color: var(--corCirculo, #017143);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    clip-path: circle(50% at right bottom);
    z-index: -1;
}

/* RESPONSIVIDADE */

img { 
    max-width: 100%; height: auto; 
}

/* Tablets
@media (min-width: 768px) and (max-width: 1023px) {
    .imagem-copo {
        position: relative;
        width: 300px;
        top: 180px;
        right: -50px;
    }

    .caixa-textos h2, .texto-starbucks{
        font-size: 2.8rem;
    }

    .paragrafo{
        font-size: 14px;
        background-color: rgba(0,0,0,0.5);
        padding: 1rem;
        border-radius: 8px;
    }
    
    .circulo {
        clip-path: circle(450px at right 740px);
    }

}*/

/* Celulares */
@media (max-height:800px){

    .caixa-textos{
        width: 60%;
    }

    h2 {
        font-size: 2.5rem;
    }

    .texto-starbucks {
        font-size: 3.4rem;
    }

    .paragrafo {
        font-size: 0.8rem;
    }

    .caixa-menu{
        bottom: 0;
    }
}

@media (max-width: 992px) {

    body{
        height: auto;
        position: relative;
        margin: 0;
        padding: 0;
        background-attachment:unset;
        overflow: visible;
    }

    .conteudo{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 10px;
    }

    .itens-direita, .itens-esquerda{
        align-items: center;
        justify-content: center;
        display: contents;
    }
    
    .caixa-imagem {
        order: 1;
        width: 80%;
        min-height: 32rem;
    }
    .caixa-menu{
        order: 2;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    header{
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .logo {
        width: 15%;
    }

    .caixa-textos{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 80%;
    }

    .caixa-textos h2{
        font-size: 2.5rem;
    }

    .caixa-textos button{
        font-size: 1.5rem;
        padding: 1rem;
    }

    .texto-starbucks {
        font-size: 3rem;
    }

    .paragrafo{
        background-color: rgba(0,0,0,0.5);
        padding: 1rem;
        border-radius: 8px;
    }

    .circulo {
        clip-path: circle(600px at 50% 100%);
    
    }

}
