/* Variáveis de Cores */
:root {
    --primary-color: #4a2c2a; /* Marrom Chocolate */
    --secondary-color: #f4e8d3; /* Creme */
    --accent-color: #e67e22; /* Laranja Caramelo */
    --whatsapp-green: #25D366;
    --text-dark: #333;
    --text-light: #fff;
    --badge-color: #e74c3c; /* Vermelho Foguinho */
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navegação */
header {
    background-color: var(--primary-color);
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 5px;
    display: block;
}

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--accent-color);
}

/* Seção Início (Hero) */
/* Seção Início (Hero) */
#inicio {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    /* Chamando a nova imagem de fundo */
    background: url('imagens/fundo_padaria.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Mantém o efeito de rolagem suave (parallax) */
    color: var(--text-light);
    margin-top: 60px;
    position: relative;
}

/* Pode APAGAR ou COMENTAR o bloco #inicio::before antigo, 
pois não precisamos mais escurecer o fundo inteiro */


/* Atualizando a caixa de texto para dar destaque sobre o fundo desenhado */
.hero-content {
    position: relative;
    z-index: 2;
    /* Fundo da caixa com a mesma cor principal, com um pouco de transparência */
    background: rgba(74, 44, 42, 0.95); 
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); /* Sombra para "soltar" a caixa do fundo */
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#inicio h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#inicio p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Seções Gerais */
section {
    padding: 5rem 5%;
}

.bg-light {
    background-color: #fff;
}

h2.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Seção Sobre */
#sobre p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Seção Produtos (Galeria com Scroll Horizontal) */
.swipe-hint {
    display: none;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
    opacity: 0.8;
}

.gallery {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 10px 10px 30px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
    height: 10px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.product-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative; /* Necessário para posicionar o badge do foguinho */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Badge Foguinho */
.badge-queridinho {
    position: absolute;
    top: 15px;
    left: -5px;
    background-color: var(--badge-color);
    color: white;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 0 20px 20px 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.badge-queridinho i {
    color: #ffd700; /* Dourado/Amarelo no fogo */
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Localização e Horários */
.loc-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.loc-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.info-box i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.loc-map {
    flex: 1.5;
    min-width: 300px;
    min-height: 350px;
}

/* Rodapé / Contato */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 5% 2rem;
}

.footer-content {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: white;
    padding: 5px;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.cnpj {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* RESPONSIVIDADE (Mobile) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(74, 44, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease-in-out;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav a {
        font-size: 1.5rem;
    }

    #inicio h1 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-whatsapp, .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .swipe-hint {
        display: block;
    }
    
    .product-card {
        flex: 0 0 260px;
    }

    .loc-container {
        flex-direction: column;
    }
    
    .loc-map {
        min-height: 300px;
    }
}