/* =========================================================
   RESET E VARIÁVEIS
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

:root {
    --chaim-green: #689f38;
    --chaim-dark-green: #33691e;
    --chaim-orange: #ff9800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #fbfbfb;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* =========================================================
   ESTRUTURA GERAL
========================================================= */
.full-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.subtitle {
    display: inline-block;
    color: var(--chaim-orange);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--chaim-dark-green);
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-orange { background-color: var(--chaim-orange); color: white; }
.btn-green { background-color: var(--chaim-green); color: white; }

/* =========================================================
   NAVBAR (MENU)
========================================================= */
.navbar {
    width: 100%;
    background-color: #fff9c4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    position: relative; /* Essencial para alinhar o botão na direita do desktop */
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--chaim-dark-green);
}

.logo-img { width: 45px; margin-right: 10px; }
.logo-text { font-size: 1rem; line-height: 1.1; }
.logo-text b { font-size: 1.3rem; color: var(--chaim-orange); }

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza perfeitamente os textos */
    flex: 1; /* Ocupa o restante do espaço da barra */
    gap: 10px;
}

.nav-links a:not(.btn) {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-links a:not(.btn):hover {
    background-color: rgba(104, 159, 56, 0.1);
    color: var(--chaim-dark-green);
}

.btn-erp {
    position: absolute; /* Tira o botão do grupo central de links */
    right: 20px; /* Fixa-o encostado na borda direita da caixa */
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--chaim-dark-green);
    cursor: pointer;
}

/* =========================================================
   INÍCIO (HERO)
========================================================= */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 80vh;
}

.hero-text { flex: 1; min-width: 0; }
.hero-text h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--chaim-dark-green); line-height: 1.1; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; line-height: 1.6; color: var(--text-light); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { width: 100%; max-width: 500px; height: auto; }

/* =========================================================
   HISTÓRIA
========================================================= */
.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-images { flex: 1; min-width: 0; }
.about-text { flex: 1; min-width: 0; }

.founder-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.founder-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-destaque { height: 300px; margin-bottom: 15px; }

.history-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.img-galeria { height: 150px; }

.tag-historia {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,152,0,0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.about-text h2 {
    color: var(--chaim-dark-green);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-badges { display: flex; gap: 15px; }
.badge { padding: 15px 25px; border-radius: 10px; color: white; text-align: center; font-size: 1.5rem; font-weight: bold; flex: 1; }
.badge small { display: block; font-size: 0.9rem; font-weight: normal; margin-top: 5px; }
.orange-badge { background: var(--chaim-orange); }
.green-badge { background: var(--chaim-green); }

/* =========================================================
   CLUBE APP
========================================================= */
.clube-section { max-width: 100%; padding: 0; background: var(--chaim-green); }
.clube-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}
.clube-text { flex: 1; color: white; }
.clube-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.clube-text p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
.clube-subtitle { color: #ffde59; }

.clube-image { flex: 1; text-align: center; }
.phone-mockup {
    width: 260px;
    height: 520px;
    margin: 0 auto;
    background: #222;
    border: 12px solid white;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.app-screen { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   ENCARTE DIGITAL
========================================================= */
.encarte-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}
.encarte-page-mock {
    flex: 0 0 300px;
    height: 400px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: #888;
    scroll-snap-align: center;
}
.encarte-container::-webkit-scrollbar { height: 8px; }
.encarte-container::-webkit-scrollbar-thumb { background: var(--chaim-orange); border-radius: 4px; }

/* =========================================================
   OFERTAS
========================================================= */
.products-section { background: var(--bg-light); max-width: 100%; }
.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.btn-cat {
    padding: 10px 20px;
    border: 2px solid var(--chaim-green);
    background: transparent;
    color: var(--chaim-dark-green);
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-cat.active, .btn-cat:hover {
    background: var(--chaim-green);
    color: white;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   WHATSAPP
========================================================= */
.whatsapp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.whatsapp-card {
    padding: 40px;
    border-radius: 15px;
    color: white;
    text-align: center;
}
.whatsapp-card h3 { font-size: 1.8rem; margin: 15px 0; }
.whatsapp-card p { font-size: 1.1rem; line-height: 1.5; margin-bottom: 25px; }
.whatsapp-icon { font-size: 3rem; }
.comunidade { background: linear-gradient(135deg, #128C7E, #075E54); }
.delivery { background: linear-gradient(135deg, #FF9800, #E65100); }

/* =========================================================
   RESPONSIVO (MOBILE E TABLET)
========================================================= */
@media (max-width: 992px) {
    /* Menu Mobile */
    .menu-toggle { display: block; }
    
    .nav-content { position: relative; flex-wrap: wrap; }
    
    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        background: #fff9c4;
        padding: 15px 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        gap: 5px;
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links a:not(.btn) { 
        text-align: center; 
        padding: 12px; 
        width: 100%;
    }
    
    .btn-erp {
        position: static; /* Volta o botão para o fluxo normal no celular */
        margin: 10px 20px;
        text-align: center;
        justify-content: center;
    }

    /* Ajustes das Seções em Telas Menores */
    .hero-section, .about-section, .clube-content, .whatsapp-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons { justify-content: center; }
    .about-text p { text-align: left; }
    .feature-badges { justify-content: center; }
}

@media (max-width: 600px) {
    .full-width { padding: 50px 20px; }
    .hero-text h1 { font-size: 2.2rem; }
    .about-text h2 { font-size: 2rem; }
    .whatsapp-grid { grid-template-columns: 1fr; }
    .history-gallery { grid-template-columns: 1fr; }
}
