:root {
    --main-color: #d3ad7f;
    --black: #13131a;
    --bgColor: #010103;
    --border: 0.1rem solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: 0;
    text-decoration: none;
    text-transform: capitalize;
    transition: 0.2 linear;
    font-family: "Gravitas One", serif;
}

body {
    background-color: var(--bgColor);
    overflow-x: hidden;
}

.header {
    background-color: var(--bgColor);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    border-bottom: var(--border);
    overflow: hidden;
}

#menu-toggle {
    display: none; /* Esconde o botão por padrão */
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

section {
    padding: 3rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.header section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    overflow: hidden;
}

.nav a {
    font-family: "Poppins", sans-serif;
    margin: 0 1rem;
    font-size: 1rem;
    color: #fff;
    transition: 0.2s ease-in-out;
    overflow: hidden;
}

.nav a:hover {
    transition: 0.3s ease-in-out ;
    color: var(--main-color);
    border-bottom: 0.1rem solid var(--main-color);
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
    overflow: hidden;
}

.icons img{
    margin: 1rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.icons img:hover {
    height: 40px;
    width: 40px;
    transition: 0.3s ease-in-out;
}

.btn {
    background-color: var(--main-color);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    padding: 0.8rem 2.7rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
    display: inline-block;
    transition: 0.2s ease-in-out;
}

.btn:hover {
    font-size: 1.2rem;
    transition: 0.3s ease-in-out;
}

.home-container {
    background: url("img/home-img.jpg");
    background-position: center;
    background-size: cover;
}

.home-container section {
    display: flex;
    min-height: 100vh;
    align-items: center;
}

.content {
    max-width: 40rem;
}

.content h3 {
    color: #fff;
    font-size: 3.8rem;
}

.content p {
    color: #fff;
    font-weight: 100;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 1rem 0;
    text-align: justify;
    font-family: "Poppins", sans-serif;
}

/*SEÇÃO SOBRE NOS*/
.title {
    font-size: 3rem;
    font-weight: 400;
    color: var(--main-color);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 3rem;
    position: relative;
    z-index: 3;
}

.title span {
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
}

.about {
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background-image: url(img/graos-cafe.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 2rem;
}


/* Overlay */
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.about .row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    padding: 2rem;
    gap: 2rem;
    border-radius: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.about .row .content {
    flex: 1;
    padding: 2rem;
}

.about .row .container-img {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .row .container-img img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    display: block;
}

.about .row .content h3 {
    font-size: 1.8rem;
    color: #fff;
}

.about .row .content p {
    color: #fff;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 1rem 0;
    text-align: justify;
    font-family: "Poppins", sans-serif;
}

/* SEÇÃO DO MENU */

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.5rem;
}

.menu .box-container .box {
    text-align: center;
    border: var(--border);
    border-radius: 5px;
    padding: 3rem;
    vertical-align: top;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.menu .box-container .box img {
    height: 8rem;
}

.menu .box-container .box h3 {
    color: #fff;
    font-size: 1.6rem;
    padding: 1rem 0;
}

.menu .box-container .box .price {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: 1.4rem;
    padding: 0.5rem 0;
}

.menu .box-container .box .price span {
    font-family: "Poppins", sans-serif;
    text-decoration: line-through;
    font-size: 1rem;
    opacity: 0.3;
}

.menu .box-container .box .btn-menu {
    background-color: var(--main-color);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

.menu .box-container .box .btn-menu:hover {
    font-size: 1.2rem;
    transition: 0.3s ease-in-out;
}

.menu .box-container .box:hover {
    transition: 0.6s ease-in-out;
    background-color: #ffffff;
}

.menu .box-container .box:hover >* {
   color: #000;
}


/* SEÇÃO DE AVALIAÇÕES*/

.review .box-container .box {
    border: var(--border);
    text-align: center;
    padding: 3rem 2rem;
}


.review .box-container .box p {
    font-family: "Poppins", sans-serif;
    text-align: justify;
    font-size: 1rem;
    font-weight: 200;
    color: #fff;
    padding: 2rem 0;
    line-height: 1.8;
}

.review .box-container .box h3 {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    padding: 2rem 0;
}

.review .box-container .box .cliente {
    height: 6rem;
    width: 6rem;
    border-radius: 50%;
}

/* SEÇÃO ENDEREÇO */

.address {
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* SEÇÃO FOOTER*/

.footer {
    text-align: center;
}

.footer .share {
    padding: 1rem o;
}

.footer .share img {
    margin: 0.3rem;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.5rem;

    transition: 0.3s ease-in-out
}

.footer .share img:hover {
    transition: 0.3s ease-in-out;
    background-color: var(--main-color);
}

.whats-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 9999;
}

section[id] {
    scroll-margin-top: 100px; /* Isso compensa a altura do seu header fixo */
}

/* --- Estilos para o Menu Off-Canvas --- */
.offcanvas {
    height: 100%;
    width: 0; /* Começa fechado */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--black);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    border-right: var(--border);
}

.offcanvas ul {
    list-style: none;
    padding: 20px;
}

.offcanvas ul li {
    padding: 15px 0;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
}

.offcanvas ul li a {
    color: white;
    font-size: 1.5rem;
    font-family: "Poppins", sans-serif;
    display: block;
}

#close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    background: none;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 758px) {

    .nav {
        display: none; /* Esconde o menu de texto */
    }

    #menu-toggle {
        display: block; /* Aparece no celular */
        order: 3;
        background: transparent;
    }

    .about {
        width: 100%;
        max-width: 100%;
        left: auto;
        right: auto;
        margin: 0;
        padding: 2rem 0;
        overflow-x: visible;
    }

    .about .row {
        width: calc(100% - 2rem);
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 4rem; 
    }

    .icons {
        order: 2; 
        margin-right: 0;
    }

    .header .icons {
        margin-right: 0;
    }

    .header section {
        display: flex;
        justify-content: space-between; /* Espalha Logo, Ícones e Menu */
        align-items: center;
        padding: 1rem 2rem;
    }

    .home-container section {
        min-height: 80vh; /* Diminui a altura no celular para não ficar tão longo */
        background: none; /* Remove a regra duplicada que estava dando erro */
        background-color: rgba(19, 19, 26, 0.5); /* Adiciona uma cor de fundo para melhor legibilidade */
    }

    .home-container {
        background-attachment: scroll; /* Melhor performance em celulares */
        background-position: center;
        background-size: cover; /* Garante que a imagem preencha sem repetir */

    }
    
    .content h3 {
        font-size: 2rem;
    }
     
    .content p {
        font-size: 1rem;
        font-weight: 200;
    }

    /* SEÇÃO SOBRE NOS "MOBILE FRIENDLY" */

    .about .row {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
        gap: 1.5rem;
        width: 80%;
    }

    .about .row .container-img {
        width: 90%;
        max-width: 280px;
        align-items: 90%;
        padding: 0;
    }

    .about .row .content {
        flex: none;
        padding: 1rem;
        width: 100%;
    }

    .about .row .content h3 {
        font-size: 1.5rem;
    }
    .about .row .content p {
        font-size: 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    /* SEÇÃO ENDEREÇO MOBILE */
    .address iframe {
        width: 100% !important;
        max-width: 100%;
        height: 300px !important;
    }

}