/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* Navegação */
header {
    background: #fff;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8b4513;
    font-weight: bold;
}

.logo > img{
    max-width: 150px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    margin-left: 2rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #d2691e;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/Pão_Padaria.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #d2691e;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #a0522d;
}

/* Seções e Grid */
.container {
    padding: 4rem 10%;
    text-align: center;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #5d2e0a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#espaço-gallery{
    padding: 2rem 2%;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1.5rem;
}

/* Galeria da Loja */
.bg-light {
    padding: 4rem 10%;
    text-align: center;
    background: #fdf5e6;
}

.main-img {
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    margin-top: 20px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.sociais > a > img{
    max-width: 50px;
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */

/* Celulares e Tablets Pequenos (até 768px) */
@media screen and (max-width: 768px) {
    
    /* Menu Mobile */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    nav{
        display: block;
    }

    .logo{
        text-align: center;
    }
    
    .logo > img{
        max-width: 150px;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%; /* Escondido fora da tela */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-list.active {
        left: 0; /* Desliza para dentro da tela */
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

    .nav-list li a {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* Estilo das barras do hambúrguer */
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #8b4513;
        transition: 0.3s;
    }

    /* Ajustes de Texto Hero */
    .hero h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    /* Ajustes de Grid (Fotos) */
    .grid {
        grid-template-columns: 1fr; /* Uma coluna apenas no celular */
        padding: 0 10px;
    }

    .container {
        padding: 3rem 5%;
    }
}

/* Telas Médias/Tablets (entre 769px e 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* Duas colunas em tablets */
    }
}