﻿/* =======================================================
   SMARTCMV - CSS UNIFICADO (Todas as Páginas)
   Versão: 2.0 - Completa e Refatorada
   ======================================================= */

/* 1. VARIÁVEIS E RESET GLOBAL */
:root {
    --primary: #25D366;
    --primary-dark: #1faa51;
    --dark: #111827;
    --gray: #4b5563;
    --light-gray: #f3f4f6;
    --bg: #f8fafc;
    --border: #e5e7eb;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    scroll-behavior: smooth;
}

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

a { text-decoration: none; }


/* ======================================================= */
/* 2. NAVBAR E FOOTER (COMPONENTES GLOBAIS) */

/* NAVBAR */
.navbar { 
    background: white; 
    width: 100%; 
    top: 0; 
    position: fixed; 
    z-index: 1000; 
    transition: all 0.4s ease-in-out; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
}
.navbar.scrolled { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.nav-container { 
    display: flex; justify-content: space-between; align-items: center; 
    max-width: 1200px; margin: 0 auto; padding: 25px 5%; width: 100%; 
    transition: all 0.4s ease-in-out; 
}
.navbar.scrolled .nav-container { padding: 10px 5%; }
.logo img { height: 75px; transition: all 0.4s ease-in-out; }
.navbar.scrolled .logo img { height: 40px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--gray); font-weight: 500; transition: 0.3s; font-size: 15px;}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active-link { color: var(--primary); font-weight: 600; }
.mobile-menu-btn { display: none; font-size: 32px; color: var(--dark); cursor: pointer; }

/* FOOTER */
.footer { background: white; padding: 50px 5%; text-align: center; border-top: 1px solid var(--border); margin-top: 50px;}
.footer img { height: 35px; opacity: 0.5; margin-bottom: 15px; }
.footer p { color: var(--gray); font-size: 14px; }


/* ======================================================= */
/* 3. BOTÕES GERAIS */

.btn-criar { 
    background: var(--primary); color: white !important; padding: 10px 24px; 
    border-radius: 8px; font-weight: 600 !important; transition: 0.3s; 
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2); 
}
.btn-criar:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-large { 
    background: var(--primary); color: white; padding: 15px 30px; 
    border-radius: 10px; font-size: 16px; font-weight: 600; 
    display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; 
    box-shadow: 0 10px 15px rgba(37, 211, 102, 0.25); border: none; cursor: pointer;
}
.btn-large:hover { background: var(--primary-dark); transform: translateY(-3px); }

.btn-outline { 
    background: white; color: var(--dark); border: 2px solid var(--border); 
    padding: 15px 30px; border-radius: 10px; font-size: 16px; 
    font-weight: 600; transition: 0.3s; 
}
.btn-outline:hover { border-color: var(--dark); }

.btn-cta { 
    background: var(--primary); color: white; padding: 16px 35px; 
    border-radius: 10px; font-size: 18px; font-weight: 600; 
    display: inline-block; transition: 0.3s; 
}
.btn-cta:hover { background: var(--primary-dark); transform: scale(1.05); }

.btn-criar-cta { 
    background: var(--primary); color: white; padding: 16px 35px; 
    border-radius: 10px; font-size: 18px; font-weight: 600; 
    display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; 
    box-shadow: 0 10px 15px rgba(37, 211, 102, 0.25);
}
.btn-criar-cta:hover { background: var(--primary-dark); transform: translateY(-3px); }


/* ======================================================= */
/* 4. HEROS (PÁGINA INICIAL E PÁGINAS INTERNAS) */

/* Hero Index */
.hero { padding: 180px 5% 100px; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 50px; }
.hero-text { flex: 1; }
.hero-badge { background: #fee2e2; color: #b91c1c; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; display: inline-block; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;}
.hero-text h1 { font-size: 46px; line-height: 1.15; margin-bottom: 20px; color: var(--dark); font-weight: 800; letter-spacing: -1px; }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 18px; color: var(--gray); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap;}
.hero-img { flex: 1; text-align: right; position: relative;}
.hero-img img { width: 100%; max-width: 550px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: perspective(1000px) rotateY(-5deg); transition: 0.5s;}
.hero-img img:hover { transform: perspective(1000px) rotateY(0deg); }

/* Hero Páginas Internas */
.page-hero, .about-hero { 
    padding: 200px 5% 100px; 
    text-align: center;
    color: white;
    border-bottom: 1px solid #1f2937;
    background-size: cover !important;
    background-position: center !important;
}
.page-hero h1, .about-hero h1 { font-size: 48px; font-weight: 800; color: white; letter-spacing: -1px; margin-bottom: 15px; }
.page-hero h1 span, .about-hero h1 span { color: var(--primary); }
.page-hero p, .about-hero p { font-size: 18px; color: #d1d5db; max-width: 700px; margin: 0 auto; }


/* ======================================================= */
/* 5. SEÇÕES DO INDEX E GERAIS */

.problem-section { background: white; padding: 80px 5%; text-align: center; border-bottom: 1px solid var(--border);}
.problem-container { max-width: 800px; margin: 0 auto; }
.problem-title { font-size: 28px; color: var(--dark); font-weight: 700; margin-bottom: 20px; }
.problem-text { font-size: 16px; color: var(--gray); margin-bottom: 30px;}
.problem-highlight { background: #fffbeb; color: #b45309; padding: 15px 25px; border-radius: 12px; font-weight: 600; border: 1px solid #fde68a; font-size: 18px;}

.section-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; color: var(--dark);}
.section-sub { color: var(--gray); font-size: 16px; margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Grid de Passos (Index) */
.steps-section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; text-align: center;}
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px;}
.step-card { position: relative; }
.step-number { background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 15px; box-shadow: 0 4px 10px rgba(37,211,102,0.3);}
.step-card h3 { font-size: 20px; margin-bottom: 10px;}

/* Funcionalidades (Index) */
.features { background: white; padding: 100px 5%; text-align: center; }
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card { background: var(--bg); padding: 40px 30px; border-radius: 16px; text-align: left; transition: 0.3s; border: 1px solid transparent; }
.feature-card:hover { background: white; border-color: var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-5px); }
.feature-icon { background: #dcfce7; color: var(--primary); width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--dark); }
.feature-card p { color: var(--gray); font-size: 14px; }

/* Pricing (Index) */
.pricing { padding: 100px 5%; text-align: center; background-size: cover !important; background-position: center !important;}
.pricing .section-title { color: white; }
.pricing .section-sub { color: #d1d5db; }
.pricing-card { background: white; color: var(--dark); max-width: 450px; margin: 0 auto; padding: 50px 40px; border-radius: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); position: relative; }
.pricing-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 8px 20px; border-radius: 20px; font-weight: 700; font-size: 14px; letter-spacing: 1px; box-shadow: 0 4px 6px rgba(37,211,102,0.3); white-space: nowrap;}
.price { font-size: 60px; font-weight: 800; line-height: 1; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.price span { font-size: 20px; color: var(--gray); font-weight: 500; margin-top: 20px;}
.pricing-list { list-style: none; margin: 30px 0; text-align: left; }
.pricing-list li { margin-bottom: 15px; font-size: 15px; color: var(--gray); display: flex; align-items: center; gap: 10px; font-weight: 500;}
.pricing-list li i { color: var(--primary); font-size: 20px; }


/* ======================================================= */
/* 6. QUEM SOMOS */
.story-section { padding: 80px 5%; background: white; }
.story-container { max-width: 900px; margin: 0 auto; }
.story-block { margin-bottom: 40px; }
.story-block h2 { font-size: 32px; color: var(--dark); font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px;}
.story-block p { font-size: 17px; color: var(--gray); margin-bottom: 20px; line-height: 1.8; }
.story-block strong { color: var(--dark); }
.highlight-quote { background: #f8fafc; border-left: 4px solid var(--primary); padding: 30px; border-radius: 0 12px 12px 0; font-size: 20px; font-weight: 600; color: var(--dark); margin: 40px 0; font-style: italic; box-shadow: 0 4px 6px rgba(0,0,0,0.02);}

.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px;}
.mission-card { background: var(--bg); padding: 40px 30px; border-radius: 16px; text-align: center; border: 1px solid var(--border); transition: 0.3s;}
.mission-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: var(--primary); }
.mission-icon { background: #dcfce7; color: var(--primary); width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; margin: 0 auto 20px; }
.mission-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--dark); }
.mission-card p { color: var(--gray); font-size: 15px; }

.cta-section { padding: 100px 5%; text-align: center; background: var(--bg); }
.cta-box { background: var(--dark); padding: 60px 40px; border-radius: 24px; max-width: 900px; margin: 0 auto; color: white; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.cta-box h2 { font-size: 36px; margin-bottom: 20px; color: white;}
.cta-box p { font-size: 18px; color: #9ca3af; margin-bottom: 30px; }


/* ======================================================= */
/* 7. COMO FUNCIONA (TELAS DE MOCKUP) */
.step-row { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 100px auto; padding: 0 5%; gap: 60px; }
.step-row.reverse { flex-direction: row-reverse; }
.step-text { flex: 1; }
.step-badge { background: var(--dark); color: white; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; display: inline-block; margin-bottom: 20px; }
.step-text h2 { font-size: 34px; margin-bottom: 20px; color: var(--dark); line-height: 1.2;}
.step-text p { font-size: 16px; color: var(--gray); margin-bottom: 25px; line-height: 1.7;}
.step-list { list-style: none; }
.step-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; color: var(--dark); font-weight: 500;}
.step-list li i { color: var(--primary); font-size: 22px; margin-top: 2px;}

.step-visual { flex: 1; position: relative; perspective: 1000px; }
.mockup-window { background: white; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); border: 1px solid var(--border); overflow: hidden; transform: rotateY(-5deg) rotateX(5deg); transition: 0.5s ease-in-out; }
.step-row.reverse .mockup-window { transform: rotateY(5deg) rotateX(5deg); }
.mockup-window:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-10px); box-shadow: 0 35px 60px -15px rgba(37,211,102,0.2); }

.mockup-header { background: #f1f5f9; padding: 12px 15px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ef4444; } .dot-y { background: #f59e0b; } .dot-g { background: #10b981; }
.mockup-body { padding: 30px; background: #fafafa;}

.ui-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.02);}
.ui-card-left h4 { font-size: 16px; color: var(--dark); margin-bottom: 5px; }
.ui-card-left p { font-size: 13px; color: var(--gray); }
.ui-badge { background: #dcfce7; color: #166534; font-size: 11px; padding: 4px 8px; border-radius: 6px; font-weight: 600; display: inline-block; margin-top: 8px;}
.ui-btn { background: var(--bg); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; color: var(--dark); font-size: 13px; font-weight: 500; cursor: pointer;}

.ui-recipe-title { font-size: 18px; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 8px;}
.ui-add-box { background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--primary); margin-bottom: 25px; box-shadow: 0 10px 20px rgba(37,211,102,0.1); position: relative;}
.ui-label { font-size: 11px; color: var(--gray); font-weight: 600; text-transform: uppercase; margin-bottom: 5px; display: block;}
.ui-input-group { display: flex; gap: 10px; margin-bottom: 15px;}
.ui-input { flex: 2; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; background: white;}
.ui-input.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,211,102,0.2);}
.ui-input-qtd { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; text-align: center; }
.ui-unit { background: var(--light-gray); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--gray);}
.ui-dropdown { position: absolute; top: 75px; left: 20px; width: 60%; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 10;}
.ui-dropdown-item { padding: 12px 15px; border-bottom: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; cursor: pointer;}
.ui-dropdown-item:hover { background: var(--bg); }
.ui-dropdown-item span { font-size: 13px; color: var(--dark); font-weight: 500;}
.ui-dropdown-item small { color: var(--primary); font-weight: 600; font-size: 12px;}
.ui-btn-add { width: 100%; background: var(--dark); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 5px;}
.ui-recipe-item { display: flex; justify-content: space-between; padding: 10px 15px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--gray); background: white;}
.ui-recipe-item strong { color: var(--dark); }

.ui-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.ui-metric { background: white; border: 1px solid var(--border); padding: 20px; border-radius: 12px; text-align: center; }
.ui-metric span { display: block; font-size: 12px; color: var(--gray); text-transform: uppercase; font-weight: 600; margin-bottom: 5px;}
.ui-metric strong { font-size: 28px; color: var(--dark); line-height: 1;}
.metric-green strong { color: var(--primary); }
.ui-alert { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-top: 15px; display: flex; gap: 8px; align-items: center;}

.ui-pdf-preview { background: white; padding: 25px; border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; border-top: 8px solid var(--dark);}
.ui-pdf-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--dark); padding-bottom: 10px; margin-bottom: 15px;}
.ui-pdf-header h4 { font-size: 18px; color: var(--dark); }
.ui-pdf-badge { font-size: 10px; font-weight: 800; background: var(--dark); color: white; padding: 3px 8px; border-radius: 4px; letter-spacing: 1px;}
.ui-pdf-text { font-size: 12px; color: var(--gray); margin-bottom: 10px;}
.ui-pdf-box { background: var(--bg); padding: 12px; border-radius: 8px; margin-bottom: 20px; border: 1px dashed #ccc;}
.ui-pdf-btn { width: 100%; background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s;}
.ui-pdf-btn:hover { background: var(--primary-dark); }


/* ======================================================= */
/* 8. DÚVIDAS FREQUENTES (FAQ) */
.faq-section { padding: 80px 5% 120px; max-width: 850px; margin: 0 auto; }
.faq-category-title { font-size: 22px; color: var(--dark); font-weight: 700; margin: 40px 0 20px; display: flex; align-items: center; gap: 10px;}
.faq-item { background: white; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02);}
.faq-item:hover { border-color: var(--primary); }
.faq-item details { padding: 22px 25px; }
.faq-item summary { font-weight: 600; font-size: 16px; color: var(--dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--primary); font-weight: 400; transition: 0.3s; line-height: 1;}
.faq-item details[open] summary::after { content: '-'; color: #ef4444; }
.faq-item p { margin-top: 15px; color: var(--gray); font-size: 15px; padding-top: 15px; border-top: 1px dashed var(--border); line-height: 1.7; }
.faq-item p strong { color: var(--dark); }

.faq-cta { background: var(--dark); padding: 50px; border-radius: 24px; text-align: center; color: white; margin-top: 60px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.faq-cta h3 { font-size: 32px; margin-bottom: 15px; font-weight: 700; color: white;}
.faq-cta p { color: #d1d5db; margin-bottom: 25px; font-size: 17px; max-width: 600px; margin-left: auto; margin-right: auto;}
.faq-cta-buttons { display: flex; justify-content: center;}


/* ======================================================= */
/* 9. CONTATO */
.contact-section { padding: 100px 5%; max-width: 1200px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.contact-card { background: white; padding: 50px 30px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.02); text-align: center; transition: 0.3s; }
.contact-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary); }
.contact-card i { font-size: 45px; color: var(--primary); background: #dcfce7; padding: 20px; border-radius: 50%; margin-bottom: 25px; display: inline-block;}
.contact-card h3 { font-size: 22px; color: var(--dark); margin-bottom: 15px;}
.contact-card p { font-size: 15px; color: var(--gray); margin-bottom: 25px; line-height: 1.6; }
.mail-link { font-size: 18px; font-weight: 700; color: var(--dark); text-decoration: none; transition: 0.3s; word-break: break-all;}
.mail-link:hover { color: var(--primary); }
.time-badge { background: var(--bg); border: 1px solid var(--border); padding: 10px 20px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--dark); display: inline-block;}
.btn-faq { background: var(--dark); color: white; padding: 12px 25px; border-radius: 10px; font-weight: 600; display: inline-block; transition: 0.3s; }
.btn-faq:hover { background: var(--primary); transform: translateY(-2px);}


/* ======================================================= */
/* 10. RESPONSIVIDADE (MOBILE) */
@media(max-width: 900px) {
    /* Navbar Mobile */
    .nav-container { padding: 15px 5%; }
    .logo img { height: 45px; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 75px; 
        left: 0; 
        width: 100%; 
        background: white; 
        padding: 20px 5%; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.05); 
        gap: 20px; 
        text-align: center; 
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .btn-criar { width: 100%; text-align: center;}
    
    /* Heroes Mobile */
    .hero { flex-direction: column; text-align: center; padding-top: 140px; }
    .hero-img { text-align: center; }
    .hero-img img { transform: none; }
    .hero-buttons { justify-content: center; }
    .page-hero, .about-hero { padding: 140px 5% 60px; }
    .page-hero h1, .about-hero h1 { font-size: 34px; }
    
    /* Como Funciona Mobile */
    .step-row, .step-row.reverse { flex-direction: column; gap: 40px; margin: 60px auto; text-align: center;}
    .step-list li { justify-content: center; text-align: left;}
    .mockup-window { transform: none !important; }
    .mockup-window:hover { transform: translateY(-5px) !important; }
    
    /* FAQ Mobile */
    .faq-item details { padding: 20px; }
    .faq-cta { padding: 40px 20px; }
    .faq-cta h3 { font-size: 26px; }
    .btn-criar-cta { width: 100%; justify-content: center;}
    
    /* Contato Mobile */
    .contact-section { padding: 60px 5%; }
}