/* --- Variáveis e Reset --- */
:root {
    /* Cores - Tema Dark (Padrão) */
    --bg-body: #0f1115;
    --bg-card: #161b22;
    --bg-alt: #12151a;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --primary: #d4af37; /* Dourado */
    --primary-hover: #b5952f;
    --border: #30363d;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    
    /* Fontes */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Espaçamento */
    --container: 1120px;
    --radius: 8px;
    --header-height: 70px;
}

[data-theme="light"] {
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --bg-alt: #f0f2f5;
    --text-main: #1f2328;
    --text-muted: #656d76;
    --primary: #c5a059;
    --primary-hover: #a88746;
    --border: #d0d7de;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utilitários --- */
.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    width: 100%; 
}
.section-padding { padding: 4rem 0; }
.bg-alt { background-color: var(--bg-alt); }
.text-center { text-align: center; }
.max-width-800 { max-width: 800px; margin: 0 auto; }

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-primary { background-color: var(--primary); color: #000; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: #000; }
.full-width { width: 100%; }

/* Badge */
.badge {
    background-color: rgba(212, 175, 55, 0.15); color: var(--primary);
    padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

/* --- Header --- */
#header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: rgba(15, 17, 21, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); z-index: 1000;
    display: flex; align-items: center;
}
[data-theme="light"] #header { background: rgba(255, 255, 255, 0.95); }

.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    font-weight: 700; 
    white-space: nowrap; 
    padding-right: 1rem; 
    display: flex; align-items: center;
}
.logo span { color: var(--primary); }

.header-actions { 
    display: flex; 
    gap: 1.2rem; 
    align-items: center; 
    margin-left: auto;
}

#theme-toggle, #mobile-btn { 
    background: none; 
    border: none; 
    color: var(--text-main); 
    font-size: 1.6rem; 
    cursor: pointer; 
    padding: 5px; 
    display: flex; align-items: center; justify-content: center;
}

/* --- CONTROLE DE VISIBILIDADE RESPONSIVA --- */

/* Por padrão (Mobile First), menu é escondido e botões desktop também */
#nav-menu { display: none; }
.desktop-only { display: none !important; } /* Esconde o botão do header no celular */
.mobile-view-btn { display: block; margin-top: 1rem; } /* Mostra o botão dentro do menu no celular */

/* --- MENU MOBILE (TELA CHEIA) --- */
#nav-menu.mobile-active {
    display: flex; 
    position: fixed; 
    top: var(--header-height); 
    left: 0; 
    width: 100%;
    height: calc(100vh - var(--header-height)); /* Ocupa a tela toda abaixo do header */
    background: var(--bg-body); 
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    z-index: 999;
    overflow-y: auto;
}

#nav-menu.mobile-active ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaço generoso entre os links */
    text-align: center;
    width: 100%;
}

#nav-menu.mobile-active a {
    font-size: 1.2rem; /* Texto maior para toque */
    display: block;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05); /* Linha sutil separando */
}

/* --- DESKTOP (Telas acima de 900px) --- */
@media (min-width: 900px) {
    #nav-menu { display: block; }
    #nav-menu ul { display: flex; gap: 1.5rem; align-items: center; }
    #nav-menu a { border-bottom: none; font-size: 1rem; padding: 0; }
    #nav-menu a:hover { color: var(--primary); }
    
    /* Configurações Desktop */
    #mobile-btn { display: none; } /* Esconde hambúrguer */
    .desktop-only { display: inline-flex !important; } /* Mostra botão no header */
    .mobile-view-btn { display: none; } /* Esconde botão de dentro do menu */
}

/* --- Hero --- */
#hero {
    min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: var(--header-height);
    overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; width: 100%; }
#hero h1 {
    font-family: var(--font-serif); font-size: 2.5rem; line-height: 1.2; margin: 1.5rem 0;
}
@media (max-width: 480px) {
    #hero h1 { font-size: 2rem; }
}
#hero h1 span { color: var(--primary); }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-stats { 
    display: flex; gap: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; flex-wrap: wrap; 
}
.stat-item strong { display: block; font-size: 1.2rem; color: var(--primary); }
.stat-item span { font-size: 0.9rem; color: var(--text-muted); }

.hero-bg-glow {
    position: absolute; width: 400px; height: 400px; background: var(--primary);
    filter: blur(150px); opacity: 0.15; top: 10%; right: -100px; z-index: 1; pointer-events: none;
}

/* --- Seções Gerais --- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); }

/* Grid de Soluções */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card-solucao {
    background: var(--bg-card); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border);
    transition: 0.3s;
}
.card-solucao:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.icon-box { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.card-solucao h3 { margin-bottom: 0.5rem; }
.card-solucao p { color: var(--text-muted); font-size: 0.95rem; }

/* Ferramentas */
.filters-container {
    display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; align-items: center;
}
#search-input {
    padding: 0.8rem; width: 100%; max-width: 400px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main);
}
.category-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.filter-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 0.5rem 1rem; border-radius: 50px; cursor: pointer; transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
}
.product-body { padding: 1.5rem; flex: 1; }
.product-category { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; font-weight: 600; }
.product-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-alt); display: flex; justify-content: space-between; align-items: center; }

/* Planos */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.plan-card {
    background: var(--bg-card); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius);
    text-align: center; position: relative; transition: 0.3s;
}
.plan-card:hover { transform: translateY(-5px); }
.plan-card.highlight { border-color: var(--primary); box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); }
.plan-price { font-size: 2rem; font-weight: 700; margin: 1rem 0; color: var(--text-main); }
.plan-features { margin: 1.5rem 0; text-align: left; }
.plan-features li { margin-bottom: 0.5rem; color: var(--text-muted); display: flex; gap: 0.5rem; }
.plan-features li i { color: var(--primary); min-width: 20px; }
.disclaimer { margin-top: 2rem; font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* Sobre */
.about-wrapper { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .about-wrapper { grid-template-columns: 1.5fr 1fr; } }
.about-image { text-align: center; }
.img-container { width: 100%; max-width: 300px; height: 300px; margin: 0 auto; overflow: hidden; border-radius: var(--radius); border: 2px solid var(--primary); }
.img-container img { width: 100%; height: 100%; object-fit: cover; }
.author-caption { display: block; margin-top: 1rem; }
.mission-values { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 480px) { .mission-values { grid-template-columns: 1fr 1fr; } }
.mv-item h4 { color: var(--primary); margin-bottom: 0.5rem; }

/* Depoimentos */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testi-card { background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.stars { color: var(--primary); margin-bottom: 1rem; }
.author { margin-top: 1rem; font-weight: 600; display: flex; flex-direction: column; }
.author small { font-weight: 400; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; text-align: left; padding: 1.2rem 0; background: none; border: none;
    color: var(--text-main); font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between;
}
.faq-answer { display: none; padding-bottom: 1.2rem; color: var(--text-muted); }
.faq-item.active .faq-answer { display: block; animation: fadeIn 0.3s; }
.faq-item.active .faq-question { color: var(--primary); }

/* Contato */
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .contact-wrapper { grid-template-columns: 1fr 1fr; } }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.contact-btn {
    padding: 1rem; border-radius: var(--radius); text-align: center; font-weight: 600;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.whatsapp { background: #25D366; color: white; }
.email { background: var(--bg-card); border: 1px solid var(--border); }
.linkedin { background: #0077B5; color: white; }
.calendly { background: #42495d; color: white; border: 1px solid var(--border); }
.calendly:hover { background: var(--primary); color: #000; }

.attendance-pref { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tags span { background: var(--bg-alt); padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; border: 1px solid var(--border); }

/* Formulário */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
input, select, textarea {
    width: 100%; padding: 0.8rem; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-main); border-radius: var(--radius); font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }

/* Footer */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 4rem 0 0 0; margin-top: 4rem; }
.footer-content { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2rem; }
@media(min-width: 768px) {
    .footer-content { flex-direction: row; justify-content: space-between; }
}
.footer-links a { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { background: var(--bg-alt); padding: 1.5rem 0; text-align: center; font-size: 0.9rem; color: var(--text-muted); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.modal-content {
    background: var(--bg-card); width: 90%; max-width: 500px; position: relative; z-index: 2010;
    border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-header { margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.modal-body ul { margin: 1rem 0; padding-left: 1.2rem; list-style: disc; color: var(--text-muted); }
.modal-meta { display: flex; justify-content: space-between; margin: 1.5rem 0; font-size: 0.9rem; }
.modal-footer { text-align: right; margin-top: 1rem; }

/* Animações */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fade-in { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
