/* ============================================
   LICITA.PUB — GUIAS DE LICITAÇÕES
   Estilos para páginas de conteúdo /guias/
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fb;
    color: #1a1a2e;
    font-size: 15px;
    line-height: 1.7;
}

a { color: #1351b4; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TOP BAR ── */
.top-bar { background: #1351b4; padding: 13px 0; }
.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.logo { color: #fff; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo:hover { color: #fff; text-decoration: none; }
.top-bar-nav { display: flex; gap: 6px; align-items: center; }
.top-bar-nav a {
    color: rgba(255,255,255,.85);
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 5px;
}
.top-bar-nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }
.top-bar-nav .btn-login { border: 1px solid rgba(255,255,255,.4); color: #fff !important; }
.top-bar-nav .btn-cta { background: #fff; color: #1351b4 !important; font-weight: 600; }
.top-bar-nav .btn-cta:hover { background: #eef2ff; }

/* ── BREADCRUMB ── */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 0.82rem;
    color: #6b7280;
}
.breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #1351b4; }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .atual { color: #374151; }

/* ── HERO ── */
.guia-hero {
    background: linear-gradient(135deg, #1351b4 0%, #1a56d6 100%);
    padding: 44px 20px 40px;
    text-align: center;
    color: #fff;
}
.guia-hero .categoria {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.guia-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 700px;
    margin: 0 auto 14px;
}
.guia-hero .subtitulo {
    font-size: 1rem;
    opacity: .9;
    max-width: 580px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.guia-hero .meta-info {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
    opacity: .75;
}
.guia-hero .meta-info span { display: flex; align-items: center; gap: 5px; }

/* ── CONTAINER PRINCIPAL ── */
.guia-main {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 20px 48px;
}

/* ── GRID (sidebar + artigo) ── */
.guia-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}
.guia-grid--full { grid-template-columns: 1fr; }

@media (max-width: 860px) {
    .guia-grid { grid-template-columns: 1fr; }
    .guia-sidebar { display: none; }
}

/* ── SIDEBAR ── */
.guia-sidebar { position: sticky; top: 20px; }

.sidebar-toc {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.sidebar-toc h3 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-toc ol { list-style: none; }
.sidebar-toc ol li { counter-increment: toc; }
.sidebar-toc ol { counter-reset: toc; }
.sidebar-toc ol li a {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 5px 6px;
    font-size: 0.82rem;
    color: #374151;
    border-left: 2px solid transparent;
    line-height: 1.4;
    border-radius: 0 4px 4px 0;
    transition: all .12s;
}
.sidebar-toc ol li a::before {
    content: counter(toc) ".";
    color: #9ca3af;
    font-size: 0.72rem;
    flex-shrink: 0;
    min-width: 14px;
}
.sidebar-toc ol li a:hover {
    color: #1351b4;
    text-decoration: none;
    border-left-color: #1351b4;
    background: #f5f8ff;
}

.sidebar-cta-mini {
    background: linear-gradient(135deg, #1351b4, #071d41);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    text-align: center;
}
.sidebar-cta-mini i { font-size: 1.6rem; margin-bottom: 10px; opacity: .9; display: block; }
.sidebar-cta-mini p { font-size: 0.8rem; opacity: .85; margin-bottom: 14px; line-height: 1.55; }
.sidebar-cta-mini a {
    display: block;
    background: #fff;
    color: #1351b4 !important;
    font-weight: 700;
    font-size: 0.83rem;
    padding: 9px;
    border-radius: 7px;
}
.sidebar-cta-mini a:hover { background: #eef2ff; text-decoration: none; }

/* ── ARTIGO ── */
.guia-article h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 36px 0 12px;
    padding-top: 10px;
    border-top: 2px solid #e5e7eb;
    scroll-margin-top: 20px;
}
.guia-article h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.guia-article h3 {
    font-size: 1.02rem;
    font-weight: 600;
    color: #1f2937;
    margin: 22px 0 8px;
    scroll-margin-top: 20px;
}
.guia-article p { margin-bottom: 14px; color: #374151; line-height: 1.75; }
.guia-article ul, .guia-article ol { margin: 0 0 16px 22px; }
.guia-article li { color: #374151; margin-bottom: 6px; line-height: 1.65; }
.guia-article strong { color: #111827; }

/* Caixa de resposta direta (featured snippet) */
.lead-box {
    background: #f0f5ff;
    border-left: 4px solid #1351b4;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.975rem;
    color: #1e3a5f;
    line-height: 1.7;
}
.lead-box strong { color: #0c326f; }

/* ── TABELA ── */
.guia-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.875rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.guia-table th {
    background: #f0f5ff;
    color: #1e3a5f;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #c7d7f9;
}
.guia-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
}
.guia-table tr:last-child td { border-bottom: none; }
.guia-table tbody tr:hover td { background: #f8faff; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
}
.step-num {
    width: 36px;
    height: 36px;
    background: #1351b4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.step h3 { font-size: 0.95rem; font-weight: 600; color: #111827; margin: 0 0 4px; border: none; padding: 0; }
.step p { font-size: 0.875rem; color: #4b5563; margin: 0; line-height: 1.6; }

/* ── CAIXAS DE AVISO ── */
.tip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.875rem;
    line-height: 1.65;
    align-items: flex-start;
}
.tip > i { flex-shrink: 0; margin-top: 2px; font-size: 0.95rem; }
.tip-info  { background: #eff6ff; border-left: 3px solid #3b82f6; color: #1e3a5f; }
.tip-info  > i { color: #3b82f6; }
.tip-warn  { background: #fffbeb; border-left: 3px solid #f59e0b; color: #78350f; }
.tip-warn  > i { color: #f59e0b; }
.tip-ok    { background: #f0fdf4; border-left: 3px solid #22c55e; color: #14532d; }
.tip-ok    > i { color: #22c55e; }
.tip-danger{ background: #fef2f2; border-left: 3px solid #ef4444; color: #7f1d1d; }
.tip-danger> i { color: #ef4444; }

/* ── BADGE ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-primary { background: #eef2ff; color: #1351b4; }
.badge-success { background: #f0fdf4; color: #16a34a; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-neutral { background: #f3f4f6; color: #374151; }

/* ── CTA INLINE (texto corrido) ── */
.cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #1351b4 !important;
    border: 1px solid #c7d7f9;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}
.cta-inline:hover { background: #dce8ff; text-decoration: none; }

/* ── CTA BLOCO (meio da página) ── */
.cta-block {
    background: linear-gradient(135deg, #eef2ff 0%, #e0ebff 100%);
    border: 1px solid #c7d7f9;
    border-radius: 12px;
    padding: 22px 26px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-block-text h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 4px;
    border: none;
    padding: 0;
}
.cta-block-text p { font-size: 0.85rem; color: #3b5898; margin: 0; }
.cta-block-btn {
    background: #1351b4;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.cta-block-btn:hover { background: #0c326f; text-decoration: none; }

/* ── FAQ ── */
.faq-list { margin-bottom: 24px; }
details.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
details.faq-item summary {
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 12px;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-answer {
    padding: 0 18px 14px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.7;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}
details.faq-item .faq-answer p { margin-bottom: 8px; }
details.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ── CTA FINAL (faixa completa) ── */
.cta-final {
    background: linear-gradient(135deg, #1351b4 0%, #071d41 100%);
    padding: 52px 20px;
    text-align: center;
    color: #fff;
    margin-top: 20px;
}
.cta-final-inner { max-width: 600px; margin: 0 auto; }
.cta-final h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 12px; }
.cta-final p { font-size: 1rem; opacity: .9; margin-bottom: 28px; line-height: 1.6; }
.btn-cta-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1351b4 !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 8px;
    transition: background .15s;
}
.btn-cta-lg:hover { background: #eef2ff; text-decoration: none; }

/* ── GUIAS RELACIONADOS ── */
.guias-relacionados {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 36px 20px;
}
.guias-relacionados-inner { max-width: 1100px; margin: 0 auto; }
.guias-relacionados h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
}
.guias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
.guia-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: border-color .15s, box-shadow .15s, color .15s;
    background: #fff;
}
.guia-card:hover {
    border-color: #1351b4;
    box-shadow: 0 2px 8px rgba(19,81,180,.1);
    text-decoration: none;
    color: #1351b4;
}
.guia-card .guia-icone { color: #1351b4; flex-shrink: 0; width: 18px; text-align: center; }
.guia-card span { flex: 1; line-height: 1.4; }
.guia-card .guia-arrow { color: #d1d5db; font-size: 0.72rem; flex-shrink: 0; }

/* ── HUB PAGE — grade de guias ── */
.hub-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.hub-intro p { color: #4b5563; font-size: 0.975rem; line-height: 1.7; }
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.hub-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.hub-card:hover {
    border-color: #1351b4;
    box-shadow: 0 4px 16px rgba(19,81,180,.1);
    text-decoration: none;
}
.hub-card-icon {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1351b4;
    font-size: 1.1rem;
}
.hub-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0;
}
.hub-card p {
    font-size: 0.845rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.hub-card .hub-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1351b4;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── FOOTER ── */
.site-footer {
    background: #071d41;
    color: rgba(255,255,255,.65);
    padding: 28px 20px;
    text-align: center;
    font-size: 0.82rem;
}
.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.site-footer-links a { color: rgba(255,255,255,.65); }
.site-footer-links a:hover { color: #fff; text-decoration: none; }
.site-footer-copy { opacity: .45; }

/* ── RESPONSIVO ── */
@media (max-width: 600px) {
    .guia-hero h1 { font-size: 1.5rem; }
    .guia-main { padding: 0 14px 40px; }
    .cta-block { flex-direction: column; align-items: flex-start; }
    .hub-grid { grid-template-columns: 1fr; }
    .top-bar-nav .btn-login { display: none; }
}
