/* 
 * Sistema: Meu Kit Certo - Stylesheet Master V23.0
 * Foco: Menu Premium & Correção de Layout Institucional
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Paleta Boutique */
    --bg-body: #F9F7F2;      /* Bege Claro */
    --bg-card: #FFFFFF;      /* Branco */
    --primary: #4A3B32;      /* Marrom Café */
    --primary-hover: #3E2C26;
    --accent: #C5A059;       /* Dourado */
    --text-main: #3E2C26;
    --text-light: #8D8075;
    --border: #EAE5D9;
    --success: #27AE60;
    --radius: 16px;
    --mp-blue: #009EE3;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; outline: none; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    height: 100vh; 
    height: 100dvh; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary); font-weight: 700; }
h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 10px; }
p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }

/* --- HEADER --- */
.app-header {
    background: var(--bg-card);
    padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(74, 59, 50, 0.05);
    z-index: 100; flex-shrink: 0; 
    height: 80px; 
}
.menu-toggle { background: transparent; border: none; font-size: 2rem; color: var(--primary); cursor: pointer; padding: 5px; }
.app-logo-img { height: 55px; width: auto; display: block; }

/* --- SIDEBAR PREMIUM --- */
.sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(60, 47, 37, 0.6); z-index: 900; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(3px); }
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.app-sidebar { 
    position: fixed; top: 0; left: 0; height: 100%; width: 280px; 
    background: var(--bg-card); z-index: 1000; 
    transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    padding: 30px 20px; box-shadow: 5px 0 30px rgba(0,0,0,0.1); 
    display: flex; flex-direction: column; 
}
.app-sidebar.active { transform: translateX(0); }

.sidebar-header { text-align: center; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.sidebar-logo { max-width: 120px; margin-bottom: 10px; }

/* Links do Menu (Visual Novo) */
.nav-link { 
    display: flex; align-items: center; padding: 16px 20px; 
    color: var(--text-light); text-decoration: none; 
    font-weight: 500; border-radius: 12px; margin-bottom: 10px; 
    transition: all 0.3s ease;
    border-left: 4px solid transparent; /* Preparo para o hover */
}

.nav-link span { 
    margin-right: 15px; font-size: 1.3rem; width: 25px; text-align: center;
}

/* Efeito Hover e Active */
.nav-link:hover, .nav-link.active { 
    background-color: #FAF8F5; 
    color: var(--primary); 
    font-weight: 700;
    border-left-color: var(--accent); /* Borda Dourada */
    padding-left: 25px; /* Desliza para a direita */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* --- CONTAINER GERAL (HOME) --- */
.main-container { 
    flex: 1; 
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 30px 25px; 
    overflow-y: auto;
}

/* --- APP VIEWS --- */
.app-container { flex: 1; position: relative; width: 100%; max-width: 500px; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; }
.view { display: none; flex: 1; flex-direction: column; padding: 20px; animation: fadeIn 0.4s ease-out; overflow: hidden; }
.view.active { display: flex; }
.view-content { flex: 1; overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; -ms-overflow-style: none; }
.view-content::-webkit-scrollbar { display: none; }
.view-footer { flex-shrink: 0; padding-top: 15px; background: var(--bg-body); z-index: 10; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- ELEMENTOS GERAIS --- */
.btn-app { background: var(--primary); color: white; border: none; padding: 16px; width: 100%; border-radius: 50px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 10px 25px rgba(74, 59, 50, 0.2); transition: transform 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-app:active { transform: scale(0.98); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); box-shadow: none; margin-top: 10px; }

.hero-img { width: 100%; height: 40vh; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; box-shadow: 0 15px 40px rgba(74, 59, 50, 0.1); }
.home-title { font-size: 2rem; line-height: 1.2; margin-bottom: 15px; text-align: center; }
.home-text { text-align: center; margin-bottom: 30px; }

/* --- SIZE SELECTOR --- */
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.size-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 10px; text-align: center; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.size-card.selected { border-color: var(--accent); background: #FFF; box-shadow: 0 0 0 2px var(--accent); }
.size-card h3 { font-size: 1rem; margin-bottom: 5px; font-family: 'Montserrat', sans-serif; }
.size-card .price { font-size: 1.3rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }

/* --- MOCKUP --- */
.preview-area { background: var(--bg-card); padding: 40px 20px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(74, 59, 50, 0.05); text-align: center; margin-bottom: 20px; }
.azulejo-wrapper { position: relative; width: 220px; height: 220px; margin: 0 auto 30px; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1)); }
.azulejo-frame { width: 100%; height: 100%; background: #fff; border-radius: 4px; overflow: hidden; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
#preview-img { width: 100%; height: 100%; object-fit: cover; display: none; }
.suporte-pes { position: absolute; bottom: -15px; left: 0; width: 100%; z-index: 10; display: flex; justify-content: space-between; padding: 0 35px; pointer-events: none; }
.pe-suporte { width: 18px; height: 50px; background: #1a1a1a; border-radius: 4px; box-shadow: 4px 6px 12px rgba(0,0,0,0.4); }
.pe-L { transform: rotate(-5deg); }
.pe-R { transform: rotate(5deg); }
.upload-btn-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.upload-btn-wrapper input[type=file] { font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; height: 100%; width: 100%; }

/* --- CHECKOUT WIZARD --- */
.checkout-progress { display: flex; justify-content: space-between; margin-bottom: 25px; padding: 0 5px; }
.progress-step { width: 32%; height: 6px; background: var(--border); border-radius: 3px; transition: 0.3s; }
.progress-step.active { background: var(--accent); }
.checkout-step { display: none; animation: fadeIn 0.3s; }
.checkout-step.active { display: block; }

.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; background: var(--bg-card); font-family: 'Montserrat', sans-serif; color: var(--primary); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1); }
.form-control.readonly { background-color: #f0f0f0; color: #777; }

.qty-selector { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 20px auto; background: var(--bg-card); padding: 8px; border-radius: 50px; width: fit-content; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.qty-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg-body); font-size: 1.2rem; font-weight: bold; color: var(--primary); cursor: pointer; }
.qty-val { font-size: 1.4rem; font-weight: 700; width: 40px; text-align: center; color: var(--primary); }

/* Toggle Frete */
.shipping-toggle { display: flex; gap: 10px; margin-bottom: 15px; }
.shipping-opt { flex: 1; padding: 15px; border: 1px solid var(--border); border-radius: 12px; text-align: center; cursor: pointer; background: #fff; transition: 0.3s; }
.shipping-opt.selected { border-color: var(--accent); background: #fffbf0; box-shadow: 0 0 0 2px var(--accent); }
.shipping-opt h4 { font-size: 0.9rem; margin-bottom: 5px; color: var(--primary); }
.shipping-opt small { font-size: 0.75rem; color: var(--text-light); }

.shipping-alert { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; padding: 12px; border-radius: 8px; font-size: 0.85rem; text-align: center; margin-bottom: 15px; display: none; animation: fadeIn 0.5s; }
.shipping-alert.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }

.address-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
#address-fields { display: none; margin-top: 15px; border-top: 1px dashed var(--border); padding-top: 15px; }

/* Checkout MP Style */
.mp-checkout-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 0; margin-bottom: 20px; overflow: hidden; }
.mp-header { padding: 15px; border-bottom: 2px solid #000; font-weight: 700; color: #333; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.mp-option { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: 0.2s; }
.mp-option:last-child { border-bottom: none; }
.mp-option:hover { background: #f9f9f9; }
.mp-option.selected { background: #f5faff; }
.mp-radio { width: 20px; height: 20px; border: 2px solid #ccc; border-radius: 50%; margin-right: 15px; position: relative; display: flex; align-items: center; justify-content: center; }
.mp-option.selected .mp-radio { border-color: var(--mp-blue); }
.mp-option.selected .mp-radio::after { content: ''; width: 10px; height: 10px; background: var(--mp-blue); border-radius: 50%; }
.mp-icons { display: flex; gap: 8px; align-items: center; }
.mp-icon-img { height: 24px; width: auto; object-fit: contain; }
.mp-btn-finalizar { background: #009EE3; color: white; border: none; padding: 16px; width: 100%; border-radius: 6px; font-size: 1.1rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 158, 227, 0.3); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.mp-btn-finalizar:hover { background: #0081ba; }
.mp-security { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; color: #666; font-size: 0.8rem; }
.mp-shield { color: var(--success); font-size: 1.2rem; }
#pix-area { background: #fff; padding: 20px; border-radius: 12px; border: 2px solid var(--success); text-align: center; margin-bottom: 20px; animation: fadeIn 0.5s; display: none; }
#pix-copy-paste { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.8rem; background: #f9f9f9; color: #555; margin-bottom: 10px; }

/* --- UPLOAD PÓS-VENDA --- */
.upload-extra-box { background: #fff; padding: 25px; border-radius: var(--radius); border: 2px dashed var(--accent); text-align: center; margin-top: 30px; }
.upload-extra-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.upload-extra-box p { font-size: 0.9rem; margin-bottom: 20px; }

/* =========================================
   --- MODO SITE (PARCEIROS & QUEM SOMOS) ---
   ========================================= */

/* CORREÇÃO DE LAYOUT: Scroll e Espaçamento */
.partner-container {
    padding: 0;
    max-width: 100%;
    margin: 0;
    /* Altura total menos o header para permitir scroll interno */
    height: calc(100vh - 80px); 
    overflow-y: auto; 
    display: block; /* Garante que não seja flex column que esconde conteúdo */
    background-color: var(--bg-body);
}

.partner-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px; /* Espaçamento generoso */
    width: 100%;
}

/* Títulos e Textos */
.partner-title { font-size: 2.4rem; line-height: 1.1; margin-bottom: 20px; color: var(--primary); text-wrap: balance; text-align: center; }
.partner-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; font-weight: 400; text-align: center; }
.highlight-gold { color: var(--accent); }

/* Imagens */
.partner-img, .about-img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); object-fit: cover; }

/* Botões Site */
.btn-partner { background: var(--accent); color: var(--primary); border: none; padding: 18px 30px; width: 100%; border-radius: 50px; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 8px 20px rgba(198, 164, 93, 0.3); display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; margin-top: 20px; transition: transform 0.2s; }
.btn-partner:hover { transform: translateY(-3px); }

/* Cards e Grids */
.partner-grid { display: flex; flex-direction: column; gap: 30px; margin-bottom: 50px; }
.steps-grid-partner { display: flex; flex-direction: column; gap: 20px; }

.step-card-partner { background: #fff; padding: 40px 25px; border-radius: var(--radius); box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-bottom: 0; position: relative; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-badge { background: var(--accent); color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; position: absolute; top: -15px; left: 20px; box-shadow: 0 4px 10px rgba(198, 164, 93, 0.4); }
.step-icon-large { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; display: block; }

.benefit-list { list-style: none; padding: 0; margin: 30px 0; }
.benefit-item { display: flex; gap: 15px; margin-bottom: 15px; background: #fff; padding: 15px; border-radius: 12px; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.02); font-size: 0.95rem; }
.check-icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }

.audience-card { background: #fff; border-radius: var(--radius); overflow: hidden; margin-bottom: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.audience-img { width: 100%; height: 200px; object-fit: cover; }
.audience-content { padding: 25px; }

.testimonial-card { background: #fff; padding: 25px; border-radius: var(--radius); border-left: 4px solid var(--accent); margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9rem; }

.urgency-section { background: var(--primary); color: #fff; padding: 30px 20px; border-radius: var(--radius); text-align: center; margin: 50px 0; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.urgency-title { color: var(--accent); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; margin-top: 0; }
.countdown-grid { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.count-box { background: rgba(255,255,255,0.1); padding: 15px; border-radius: 12px; min-width: 75px; }
.count-num { font-size: 2rem; font-weight: 700; color: var(--accent); display: block; line-height: 1; margin-bottom: 5px; }
.count-label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }

.faq-item { margin-bottom: 15px; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.faq-summary { padding: 15px; cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: '+'; font-size: 1.5rem; color: var(--accent); }
details[open] .faq-summary::after { content: '-'; }
.faq-content { padding: 0 15px 20px; color: var(--text-light); font-size: 0.9rem; line-height: 1.6; border-top: 1px solid #f0f0f0; margin-top: 5px; padding-top: 10px; }

/* --- QUEM SOMOS (ESPECÍFICO) --- */
.about-hero { text-align: center; margin-bottom: 50px; }
.about-hero h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.about-hero p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.about-section { margin-bottom: 60px; }
.about-section h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; position: relative; display: inline-block; }
.about-section h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); margin-top: 8px; border-radius: 2px; }

.mvv-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.mvv-card { background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: transform 0.3s ease; }
.mvv-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.mvv-icon { font-size: 2rem; margin-bottom: 15px; display: block; }
.mvv-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); }
.mvv-card p { font-size: 0.9rem; margin-bottom: 0; }

.emotional-quote { text-align: center; padding: 60px 20px; background: var(--primary); color: #fff; border-radius: var(--radius); margin-top: 40px; position: relative; overflow: hidden; }
.emotional-quote h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-style: italic; color: var(--accent); margin-bottom: 0; line-height: 1.4; }
.emotional-quote::before, .emotional-quote::after { content: '"'; font-size: 5rem; position: absolute; color: rgba(255,255,255,0.1); font-family: serif; }
.emotional-quote::before { top: -10px; left: 20px; }
.emotional-quote::after { bottom: -40px; right: 20px; }

/* --- FOOTER PREMIUM --- */
.partner-footer { margin-top: 0; padding: 50px 20px; background-color: var(--primary); color: var(--bg-body); text-align: center; border-top: 4px solid var(--accent); width: 100%; flex-shrink: 0; }
.partner-footer p { margin: 0; color: rgba(249, 247, 242, 0.9); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.5px; }
.partner-footer strong { font-family: 'Playfair Display', serif; color: var(--accent); font-size: 1.1rem; }
.footer-cnpj { display: block; margin-top: 15px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.6; font-weight: 300; }

/* Responsividade Desktop */
@media (min-width: 768px) {
    .partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
    .steps-grid-partner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; }
    .partner-title { font-size: 3.5rem; } 
    .btn-partner { width: auto; display: inline-flex; padding: 18px 40px; }
    .mvv-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
    .about-hero h1 { font-size: 3rem; }
    .emotional-quote h3 { font-size: 2.2rem; }
}