/* Blog — BRA Solutions 3D. Carregado depois de style.css nas páginas /blog/. */

.page-blog { background: var(--paper); }
.page-blog .site-header { background: rgba(8,21,34,.97); }
.page-blog main { padding-top: 82px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; font-size: .76rem; font-weight: 700; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--muted); }

/* ---------- listagem ---------- */
.blog-hero { padding: 72px 0 56px; background: var(--ink); color: var(--white); }
.blog-hero .breadcrumbs a { color: #8dc0ff; }
.blog-hero .breadcrumbs [aria-current] { color: rgba(255,255,255,.6); }
.blog-hero .section-index { color: #8dc0ff; margin-bottom: 18px; }
.blog-hero h1 { max-width: 980px; margin-bottom: 24px; font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.blog-hero-lead { max-width: 680px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.blog-topics li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.82); font-size: .74rem; font-weight: 700; }

.blog-list { padding: 64px 0 96px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e3e9ee; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { padding: 22px 22px 26px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.post-card-meta span { color: var(--blue); }
.post-card h2, .post-card h3 { margin-bottom: 12px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--blue); }
.post-card-body > p:last-child { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }

.post-card-featured { display: grid; grid-template-columns: 1.15fr .85fr; margin-bottom: 28px; }
.post-card-featured .post-card-media { aspect-ratio: auto; min-height: 380px; }
.post-card-featured .post-card-body { padding: clamp(28px, 4vw, 52px); align-self: center; }
.post-card-featured h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); letter-spacing: -.035em; }
.post-card-featured .post-card-body > p:last-child { font-size: .95rem; }

.blog-band { padding: 46px 0; background: var(--blue); color: var(--white); }
.blog-band .section-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.blog-band p { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; }
.blog-band .button-primary { background: var(--ink); }
.blog-band .button-primary:hover { background: #13293b; }

/* ---------- artigo ---------- */
.post-header { padding: 64px 0 36px; }
.post-category { margin-bottom: 14px; color: var(--blue); font-family: var(--display); font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.post-category::before { content: ""; width: 34px; height: 3px; background: var(--orange); }
.post-header h1 { max-width: 1020px; margin-bottom: 24px; font-size: clamp(2.5rem, 5.2vw, 4.9rem); font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.post-lead { max-width: 760px; margin-bottom: 22px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.6; }
.post-meta { margin: 0; color: var(--muted); font-size: .78rem; }
.post-meta strong { color: var(--text); }

.post-hero { margin-top: 0; margin-bottom: 0; }
.post-hero img { width: 100%; max-height: 620px; object-fit: cover; background: #e3e9ee; }
.post-hero figcaption, .post-figure figcaption { padding-top: 10px; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); padding: 56px 0 40px; }
.post-body { max-width: 760px; font-size: 1.04rem; line-height: 1.78; }
.post-body > p:first-child { padding: 22px 24px; background: var(--white); border-left: 4px solid var(--blue); }
.post-body h2 { margin: 54px 0 18px; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; scroll-margin-top: 100px; }
.post-body h3 { margin: 30px 0 10px; font-size: 1.4rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 20px; }
.post-body ul, .post-body ol { padding-left: 1.25em; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--blue); font-weight: 700; }
.post-body a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--blue); }
.post-body a.button { color: var(--white); text-decoration: none; }
.post-figure { margin: 34px 0; }
.post-figure img { width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #e3e9ee; }

.post-cta { margin: 40px 0; padding: 28px 30px; background: var(--ink); color: var(--white); }
.post-cta-kicker { margin: 0 0 8px; color: var(--orange); font-family: var(--display); font-size: .82rem; font-weight: 700; }
.post-cta-title { margin: 0 0 20px; font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.2; }
.post-cta-final { background: var(--blue); }
.post-cta-final .post-cta-kicker { color: var(--ink); }
.post-cta-final .button-primary { background: var(--ink); }

.post-faq { margin-top: 56px; }
.post-faq .faq-list summary { font-size: 1.2rem; }
.post-disclaimer { margin-top: 28px; color: var(--muted); font-size: .76rem; line-height: 1.6; }

.post-aside { position: relative; }
.post-aside-inner { position: sticky; top: 110px; }
.post-toc { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-toc > p, .post-aside-card > p { margin-bottom: 12px; font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.post-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.post-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .8rem; line-height: 1.4; }
.post-toc li a:hover { color: var(--blue); border-left-color: var(--blue); }
.post-aside-card { padding: 24px; background: var(--white); border: 1px solid var(--line); }
.post-aside-card span { display: block; margin-bottom: 18px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.post-aside-card .button { width: 100%; }

.related { padding: 56px 0 96px; border-top: 1px solid var(--line); }
.related > h2 { margin-bottom: 30px; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; }

.blog-footer .footer-inner { padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-posts { padding-top: 24px; }
.footer-posts p { margin: 0 0 10px; color: rgba(255,255,255,.75); font-size: .74rem; font-weight: 700; }
.footer-posts ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-posts a { color: rgba(255,255,255,.55); font-size: .74rem; text-decoration: none; }
.footer-posts a:hover { color: var(--white); text-decoration: underline; }
.blog-footer .footer-inner p a { color: inherit; }

@media (max-width: 1050px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { grid-template-columns: 1fr; }
    .post-aside { display: none; }
    .post-body { max-width: none; }
}

@media (max-width: 820px) {
    .page-blog main { padding-top: 72px; }
    .blog-hero { padding: 44px 0 40px; }
    .blog-list { padding: 40px 0 64px; }
    .post-card-featured { grid-template-columns: 1fr; }
    .post-card-featured .post-card-media { min-height: 0; aspect-ratio: 16 / 10; }
    .blog-band .section-shell { flex-direction: column; align-items: stretch; text-align: center; }
    .post-header { padding: 40px 0 26px; }
    .post-layout { padding: 36px 0 24px; }
    .post-body { font-size: 1rem; }
    .post-body > p:first-child { padding: 18px; }
    .post-cta { padding: 22px; }
    .post-cta .button { width: 100%; }
    .related { padding: 40px 0 72px; }
}

@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; gap: 20px; }
    .post-header h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}
