
/* CONFIGURAÇÕES GERAIS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #FBF7EF;
    color: #493326;
}

/* CABEÇALHO */

header {
    width: 100%;
    padding: 22px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFDF8;
    position: relative;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(70, 45, 25, 0.08);
}

.logo h1 {
    font-family: Georgia, serif;
    font-size: 28px;
    color: #75472D;
}

.logo span {
    font-size: 10px;
    letter-spacing: 3px;
    color: #B18A5A;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: #493326;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #B77A3D;
}

/* BOTÕES */

.botao-header,
.botao-principal {
    display: inline-block;
    text-decoration: none;
    background-color: #8B5738;
    color: #FFFDF8;
    padding: 14px 24px;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.botao-header:hover,
.botao-principal:hover {
    background-color: #B77A3D;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 87, 56, 0.25);
}

/* DESTAQUE PRINCIPAL */

.hero {
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background:
        linear-gradient(
            90deg,
            rgba(35, 22, 14, 0.82),
            rgba(35, 22, 14, 0.25)
        ),
        url("image/padaria-banner.webp") center/cover no-repeat;
}

.hero-conteudo {
    max-width: 600px;
    color: #FFFDF8;
}

.subtitulo {
    color: #E8C18D;
    font-size: 13px;
    letter-spacing: 4px;
}

.hero h2 {
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 1.15;
    margin: 22px 0;
}

.hero p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 480px;
}

/* PRODUTOS */

.produtos {
    padding: 100px 10%;
    text-align: center;
}

.titulo-secao span,
.historia-conteudo span,
.contato span {
    color: #B77A3D;
    font-size: 12px;
    letter-spacing: 3px;
}

.titulo-secao h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    margin: 15px 0;
}

.titulo-secao p {
    color: #806C5B;
}

.grade-produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.produto {
    background-color: #FFFDF8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(70, 45, 25, 0.08);
    transition: 0.4s;
}

.produto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(70, 45, 25, 0.15);
}

.produto-imagem {
    height: 230px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.produto:nth-child(1) .produto-imagem {
    background-image: url("image/paes.webp");
}

.produto:nth-child(2) .produto-imagem {
    background-image: url("image/bolos.webp");
}

.produto:nth-child(3) .produto-imagem {
    background-image: url("image/doces.webp");
}

.produto h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    margin: 22px 15px 10px;
}

.produto p {
    color: #806C5B;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 20px 25px;
}

/* NOSSA HISTÓRIA */

/* NOSSA HISTÓRIA */

.historia {
    padding: 100px 10%;
    background-color: #EFE4D3;
}

.historia-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

.historia-conteudo {
    max-width: 520px;
}

.historia h2 {
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1.2;
    margin: 20px 0;
}

.historia p {
    font-size: 16px;
    line-height: 1.9;
    color: #806C5B;
}

.historia-imagem {
    width: 100%;
    height: 420px;
    background-image: url("image/historia.webp");
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(70, 45, 25, 0.18);
}

/* CONTATO */

.contato {
    padding: 100px 10%;
    text-align: center;
}

.contato h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    margin: 18px 0;
}

.contato p {
    color: #806C5B;
    margin-bottom: 30px;
}
/* INFORMAÇÕES DE CONTATO */

.informacoes-contato {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 45px auto;
    flex-wrap: wrap;
}

.info-item {
    min-width: 240px;
    padding: 25px 30px;
    background-color: #FFFDF8;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(70, 45, 25, 0.08);
    transition: 0.3s;
}

.info-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(70, 45, 25, 0.13);
}

.info-item h3 {
    font-family: Georgia, serif;
    font-size: 19px;
    margin-bottom: 15px;
    color: #75472D;
}

.info-item p {
    font-size: 14px;
    line-height: 1.8;
    color: #806C5B;
}

/* RODAPÉ */


/* RODAPÉ */

footer {
    padding: 60px 10% 25px;
    background-color: #493326;
    color: #FFFDF8;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 45px;
}

.footer-marca h2 {
    font-family: Georgia, serif;
    font-size: 30px;
    margin-bottom: 12px;
}

.footer-marca p {
    color: #E8C18D;
    line-height: 1.7;
}

.footer-links,
.footer-contato {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3,
.footer-contato h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    margin-bottom: 8px;
    color: #E8C18D;
}

.footer-links a {
    color: #FFFDF8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #E8C18D;
    transform: translateX(4px);
}

.footer-contato p {
    color: #C7B5A3;
    font-size: 14px;
    line-height: 1.7;
}

.footer-final {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 25px;
    color: #C7B5A3;
    font-size: 12px;
}

/* RESPONSIVIDADE */


@media (max-width: 768px) {

    .historia-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .historia-conteudo {
        max-width: 100%;
    }

    .historia h2 {
        font-size: 32px;
    }

    .historia-imagem {
        height: 300px;
    }

    .grade-produtos {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .produto {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .produto-imagem {
        height: 230px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 5%;
        position: relative;
    }

    .menu-toggle {
    display: block !important;
}

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav.menu-aberto {
    display: flex;
    width: 100%;
    padding: 20px;
    background-color: #FFFDF8;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(70, 45, 25, 0.10);
    animation: aparecerMenu 0.3s ease;
}

@keyframes aparecerMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    .botao-header {
        margin-top: 5px;
    }
        .informacoes-contato {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .info-item {
        width: 100%;
        max-width: 350px;
        min-width: unset;
    }
        .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-links,
    .footer-contato {
        align-items: center;
    }

    .footer-final {
        flex-direction: column;
        align-items: center;
        text-align: center;
        line-height: 1.7;
    }
}
/* MENU HAMBÚRGUER */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #75472D;
    font-size: 30px;
    cursor: pointer;
}

/* DIVISOR DE TRIGO */
.divisor-trigo {
    position: relative;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
}




.divisor-trigo img {
    position: absolute;
    left: -180px;
    width: 250px;
    height: 130px;
    object-fit: contain;
    animation: atravessarTrigo 16s linear infinite,
               balancarTrigo 4s ease-in-out infinite;
}



@keyframes atravessarTrigo {
    from {
        left: -180px;
    }
    to {
        left: calc(100% + 180px);
    }
}


@keyframes balancarTrigo {
    0% {
        transform: rotate(-3deg) translateY(2px);
    }

    25% {
        transform: rotate(2deg) translateY(-3px);
    }

    50% {
        transform: rotate(5deg) translateY(1px);
    }

    75% {
        transform: rotate(0deg) translateY(-2px);
    }

    100% {
        transform: rotate(-3deg) translateY(2px);
    }
}

/* ANIMAÇÃO DE ENTRADA DAS SEÇÕES */
.revelar {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.revelar.visivel {
    opacity: 1;
    transform: translateY(0);
}
/* ANIMAÇÃO DOS CARDS DE PRODUTOS */

.produto {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.revelar.visivel .produto {
    opacity: 1;
    transform: translateY(0);
}

.revelar.visivel .produto:nth-child(1) {
    transition-delay: 0.2s;
}

.revelar.visivel .produto:nth-child(2) {
    transition-delay: 0.4s;
}

.revelar.visivel .produto:nth-child(3) {
    transition-delay: 0.6s;
}
/* ANIMAÇÃO DA SEÇÃO NOSSA HISTÓRIA */

.historia-conteudo,
.historia-imagem {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.revelar.visivel .historia-conteudo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.revelar.visivel .historia-imagem {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}
/* ANIMAÇÃO DOS ELEMENTOS DE CONTATO */

.info-item,
.contato .botao-principal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.revelar.visivel .info-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.revelar.visivel .info-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.revelar.visivel .contato .botao-principal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

