/* ============================================
   LAVES ADVOCACIA — Blog Post Styles
   Complementa o Tailwind. Segue o mesmo design
   system das landing pages.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --brand:      #1e3756;
    --brand-light:#2a4d78;
    --gold:       #b8960c;
    --gold-light: #d4af37;
    --cream:      #f8f6f1;
    --dark:       #1a1a1a;
    --muted:      #6b7280;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}

::selection { background: var(--gold-light); color: #fff; }

/* ============================================
   NAVBAR (simplificado — só logo + CTA)
   ============================================ */

#blog-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: all 0.4s ease;
    background: rgba(248, 246, 241, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

#blog-navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(30, 55, 86, 0.08);
    box-shadow: 0 1px 20px rgba(30, 55, 86, 0.06);
}

.blog-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 11px 22px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: #25d366;
    opacity: 0;
    animation: waPulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes waPulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50%       { transform: scale(1.12); opacity: 0.18; }
}

.btn-whatsapp:hover {
    background: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 50px;
}

/* ============================================
   HERO DO ARTIGO
   ============================================ */

.article-hero {
    padding-top: 68px; /* altura do navbar */
    background: var(--cream);
    position: relative;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.article-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s;
}

.breadcrumb a:hover { color: var(--brand); }

.breadcrumb-sep {
    color: rgba(107,114,128,0.4);
    font-size: 0.7rem;
}

/* Tag / categoria */
.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(184, 150, 12, 0.1);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.article-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

/* Título principal */
.article-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 780px;
}

/* Meta (data + tempo de leitura) */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item svg {
    flex-shrink: 0;
    opacity: 0.55;
}

/* Imagem do artigo */
.article-cover-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    aspect-ratio: 16 / 7;
}

.article-cover-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* placeholder quando não há imagem */
.article-cover-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

/* ============================================
   CORPO DO ARTIGO
   ============================================ */

.article-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: start;
    padding-top: 56px;
    padding-bottom: 80px;
}

/* Coluna de conteúdo */
.article-content {
    min-width: 0; /* evita overflow em grid */
}

/* Tipografia do corpo */
.article-body {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body strong {
    color: var(--brand);
    font-weight: 600;
}

/* Subtítulo H2 */
.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Lista de benefícios */
.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 1.5rem 0 2rem;
}

.benefit-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
    background: var(--cream);
    border: 1px solid rgba(30, 55, 86, 0.07);
    border-left: 3px solid var(--gold-light);
    border-radius: 12px;
    padding: 18px 20px;
    transition: box-shadow 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 4px 20px rgba(30, 55, 86, 0.07);
}

.benefit-icon {
    width: 40px; height: 40px;
    background: rgba(184, 150, 12, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 20px; height: 20px;
    stroke: var(--gold);
}

.benefit-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Callout / destaque */
.article-callout {
    background: linear-gradient(135deg, rgba(30, 55, 86, 0.04) 0%, rgba(212, 175, 55, 0.06) 100%);
    border: 1px solid rgba(184, 150, 12, 0.2);
    border-left: 4px solid var(--gold-light);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 2rem 0;
}

.article-callout p {
    font-size: 0.95rem;
    color: var(--brand);
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

/* Divisória interna */
.article-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,150,12,0.3), transparent);
    margin: 2.5rem 0;
}

/* CTA dentro do artigo */
.article-cta-block {
    background: linear-gradient(135deg, var(--brand) 0%, #162d4a 100%);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.article-cta-block::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
}

.article-cta-block::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}

.article-cta-block > * { position: relative; z-index: 1; }

.article-cta-block p.label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.article-cta-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-cta-block p.sub {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 28px;
}

.article-cta-block .btn-whatsapp {
    font-size: 0.95rem;
    padding: 14px 32px;
}

/* ============================================
   SIDEBAR
   ============================================ */

.article-sidebar {
    position: sticky;
    top: 84px; /* navbar + folga */
}

.sidebar-card {
    background: var(--cream);
    border: 1px solid rgba(30, 55, 86, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30,55,86,0.08);
}

/* Sumário */
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-list a {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.25s;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    background: rgba(30,55,86,0.06);
    color: var(--brand);
    padding-left: 14px;
}

/* CTA sidebar */
.sidebar-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}

.sidebar-cta p.label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.sidebar-cta p.title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 8px;
}

.sidebar-cta p.sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin-bottom: 20px;
}

.sidebar-cta .btn-whatsapp {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 12px 18px;
}

/* ============================================
   FOOTER (igual às landing pages)
   ============================================ */

footer {
    background: #0f1e2e;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--gold-light) !important;
}

/* ============================================
   MODAL WHATSAPP
   ============================================ */

.modal-box {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-box.modal-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding-top: 40px;
        padding-bottom: 60px;
        gap: 40px;
    }

    .article-sidebar {
        position: static;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-cta-block {
        padding: 32px 24px;
    }

    .article-cta-block h3 {
        font-size: 1.35rem;
    }

    .benefit-item {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .blog-nav-inner {
        padding: 0 16px;
    }

    .article-hero-inner {
        padding: 40px 16px 0;
    }

    .article-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Botão CTA nunca vaza do container em telas muito pequenas */
    .btn-whatsapp-lg {
        width: 100%;
        justify-content: center;
        white-space: normal;
        word-break: break-word;
        padding: 14px 20px;
        font-size: 0.875rem;
    }

    .article-cta-block {
        padding: 28px 20px;
    }
}
