@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset e fonte padrão */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Rolagem suave ao clicar nos links internos */
html{
    scroll-behavior: smooth;
}

body{
    background-color: #180d0d;
    color: #fff;
}

/* Trava a rolagem enquanto a tela de carregamento aparece */
body.carregando{
    overflow: hidden;
}

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

/* ---------- Tela de carregamento ---------- */
.loader{
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: #180d0d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    overflow: hidden;
}

.loader-logo{
    width: 180px;
    height: auto;
}

/* Barra de progresso */
.barra{
    width: 240px;
    height: 10px;
    border-radius: 10px;
    border: 2px solid #fff;
    overflow: hidden;
}

.barra-preenchida{
    display: block;
    width: 0%;
    height: 100%;
    background-color: #c87d00;
    transition: width 0.1s linear;
}

/* Faixa laranja que sobe e cobre a tela */
.faixa{
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    top: 100%;
    background-color: #c87d00;
}

/* Quando o carregamento termina: faixa sobe e cobre tudo */
.loader.cobrindo .faixa{
    top: 0;
    transition: top 0.5s ease-in-out;
}

/* Depois a tela inteira sobe, revelando o site */
.loader.saindo{
    transform: translateY(-100%);
    transition: transform 0.6s ease-in-out;
}

/* ---------- Cabeçalho ---------- */
header{
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.logo h2{
    color: #fff;
    font-size: 24px;
    letter-spacing: 2px;
}

.pedir{
    display: inline-block;
    margin-left: 20px;
    font-size: 18px;
    transition: all 0.3s ease;
    outline: 2px solid #bd4c00;
    padding: 10px 15px;
    border-radius: 40px;
    color: #f37d2e;
}

.pedir:hover{
    transform: translateY(-5px);
    background-color: #e65c00;
    color: #fff;
}

/* ---------- Tela inicial ---------- */
main{
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    /* brilho laranja suave atrás da logo */
    background: radial-gradient(circle at center, rgba(189, 76, 0, 0.25), #180d0d 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.logo-hero{
    width: 300px;
    max-width: 80%;
    height: auto;
    animation: flutuar 4s ease-in-out infinite;
}

/* Logo sobe e desce devagar */
@keyframes flutuar{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-12px); }
}

.slogan{
    font-size: 18px;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 20px;
}

.botoes{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.pedido,
.delivery{
    display: inline-block;
    width: 260px;
    text-align: center;
    font-size: 18px;
    padding: 12px 0;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.pedido{
    background-color: #bd4c00;
}

.pedido:hover{
    transform: translateY(-5px);
    background-color: #e65c00;
}

.delivery{
    background-color: rgba(255, 255, 255, 0.1);
    outline: 2px solid #fff;
}

.delivery:hover{
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Seção de pratos ---------- */
.pratos{
    padding: 80px 50px;
    background-color: #180d0d;
    /* evita que o header cubra o título ao rolar */
    scroll-margin-top: 70px;
}

.titulo{
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #f37d2e;
    letter-spacing: 2px;
}

/* Cards lado a lado, quebram linha em telas menores */
.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card{
    width: 300px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(189, 76, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover{
    transform: translateY(-8px);
    border-color: #e65c00;
    box-shadow: 0 10px 30px rgba(230, 92, 0, 0.25);
}

.card img{
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover; /* corta a foto sem distorcer */
}

.card h3{
    padding: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

/* ---------- Rodapé ---------- */
.footer{
    padding: 25px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    color: #bbb;
}

/* ---------- Celular ---------- */
@media (max-width: 600px){
    header{
        padding: 15px 20px;
    }
    .logo h2{
        font-size: 18px;
    }
    .pedir{
        font-size: 15px;
        margin-left: 0;
    }
    .pratos{
        padding: 60px 20px;
    }
}
