/*
Theme Name: Busca CNPJ Master
Theme URI: https://github.com/copilot-wp/busca-cnpj
Author: RM Consultoria
Description: Tema WordPress de alta performance indexador de dados públicos de CNPJ e processos judiciais, otimizado para SEO.
Version: 1.6.20
License: GNU General Public License v2 or later
Text Domain: busca-cnpj-master
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title a {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}
.site-title a span {
    color: #2563eb;
}

/* Página Inicial (Estilo Clean / Buscador) */
.home-search-section {
    min-height: calc(80vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}
.home-logo {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.home-logo span {
    color: #2563eb;
}
.home-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 500px;
}
.search-form-wrap {
    width: 100%;
    max-width: 650px;
}
.main-search-form {
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background: #fff;
    transition: all 0.3s ease;
}
.main-search-form:focus-within {
    border-color: #2563eb;
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.15);
}
.search-input {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    outline: none;
    color: #334155;
}
.search-submit {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-submit:hover {
    background-color: #1d4ed8;
}

/* Resultados da Busca */
.search-results-title {
    margin: 30px 0 20px 0;
    font-size: 22px;
    color: #0f172a;
}
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}
.cnpj-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cnpj-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-color: #cbd5e1;
}
.cnpj-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.cnpj-link {
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.cnpj-link:hover {
    text-decoration: underline;
}
.badge-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.status-ativa { background-color: #dcfce7; color: #166534; }
.status-baixada { background-color: #fee2e2; color: #991b1b; }

.cnpj-meta-row {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}
.cnpj-number {
    font-weight: 700;
    color: #334155;
}

/* Paginação */
.cnpj-pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.cnpj-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
}
.cnpj-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: bold;
}

/* Página Detalhes (Single) */
.cnpj-detail-container {
    margin-top: 40px;
    margin-bottom: 60px;
}
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}
.back-btn:hover { color: #2563eb; }

.detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.detail-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 25px;
}
.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.info-group {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #cbd5e1;
}
.info-group.accent-blue { border-left-color: #2563eb; }
.info-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 3px;
}
.info-value {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

/* === SEO / Listagens / Sócios === */
.site-nav { margin-left:auto; }
.site-nav a { color:#fff; text-decoration:none; padding:6px 12px; border:1px solid rgba(255,255,255,0.3); border-radius:6px; }
.site-nav a:hover { background:rgba(255,255,255,0.1); }
.header-wrap { display:flex; align-items:center; gap:20px; }

.bcm-breadcrumb { margin:20px 0; font-size:14px; color:#64748b; }
.bcm-breadcrumb a { color:#2563eb; text-decoration:none; }
.bcm-breadcrumb span { color:#0f172a; font-weight:600; }

.bcm-socios { margin-top:30px; padding-top:20px; border-top:1px solid #e2e8f0; }
.bcm-socios h2 { font-size:18px; margin-bottom:12px; color:#0f172a; }
.bcm-socios-list { list-style:disc; padding-left:20px; }
.bcm-socios-list li { margin-bottom:6px; }
.bcm-soc-qual, .bcm-soc-data { color:#64748b; font-size:14px; }

.bcm-resumo-seo { margin-top:30px; padding-top:20px; border-top:1px solid #e2e8f0; color:#334155; line-height:1.6; }
.bcm-resumo-seo h2 { font-size:18px; margin-bottom:10px; color:#0f172a; }

.bcm-lista-ufs, .bcm-lista-municipios, .bcm-lista-empresas { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:10px; margin:20px 0; }
.bcm-lista-ufs li, .bcm-lista-municipios li, .bcm-lista-empresas li { padding:12px 16px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; }
.bcm-lista-ufs a, .bcm-lista-municipios a, .bcm-lista-empresas a { color:#2563eb; font-weight:600; text-decoration:none; }
.bcm-count { color:#64748b; font-size:13px; margin-left:6px; }

.bcm-socios-match { background:#fff7ed; border:1px solid #fed7aa; padding:16px; border-radius:8px; margin:18px 0; }
.bcm-socios-match h3 { margin:0 0 8px 0; color:#9a3412; font-size:16px; }
.bcm-socios-match ul { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.bcm-socios-match a { background:#fff; padding:6px 12px; border:1px solid #fdba74; border-radius:20px; color:#9a3412; text-decoration:none; }

/* === Tabela de dados extras na ficha === */
.bcm-extras { margin-top:30px; padding-top:20px; border-top:1px solid #e2e8f0; }
.bcm-extras h2 { font-size:18px; margin-bottom:12px; color:#0f172a; }
.bcm-extras-table { width:100%; border-collapse:collapse; }
.bcm-extras-table th, .bcm-extras-table td { padding:8px 12px; text-align:left; border-bottom:1px solid #f1f5f9; font-size:14px; }
.bcm-extras-table th { width:230px; color:#475569; font-weight:600; background:#f8fafc; }
.bcm-extras-table td { color:#0f172a; }
