/* ============================================================
   PONTA CONSULTORIA — Blog / Posts / Archive CSS
   Mesmo visual da home (Plus Jakarta Sans, azul #1639C1)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue:       #1639C1;
  --blue-mid:   #1e4ad4;
  --blue-dark:  #0f2a8c;
  --blue-light: #eef2ff;
  --navy:       #101c6b;
  --bg:         #f5f6fa;
  --white:      #fff;
  --text:       #0d1117;
  --text-2:     #374151;
  --text-3:     #6b7280;
  --border:     #e5e7eb;
  --max:        1200px;
  --font:       'Plus Jakarta Sans', sans-serif;
  --radius:     10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.25; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 70px;
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo-text { font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.logo-text span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: .88rem; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav-btn {
  border: 2px solid var(--blue); color: var(--blue) !important;
  font-size: .82rem !important; font-weight: 700 !important;
  padding: 9px 22px; border-radius: 8px; transition: all .2s;
}
.nav-btn:hover { background: var(--blue); color: #fff !important; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 20px 32px; flex-direction: column; z-index: 998;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 0; font-size: .95rem; font-weight: 500; border-bottom: 1px solid var(--border); color: var(--text-2); display: block; }
.mobile-nav a:last-child { border: none; }

/* ── BLOG HERO ───────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  padding: 72px 32px; text-align: center; color: #fff;
}
.blog-hero .badge {
  display: inline-block; border: 1px solid rgba(255,255,255,.35);
  border-radius: 40px; padding: 6px 18px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: clamp(26px, 4vw, 48px); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 16px; color: #fff;
}
.blog-hero p { font-size: 17px; color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ── BLOG LAYOUT ─────────────────────────────────────────── */
.blog-layout {
  max-width: var(--max); margin: 0 auto; padding: 56px 32px;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start;
}
.posts-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.posts-bar-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.posts-bar-count { font-size: .78rem; color: var(--text-3); }

/* ── POST CARDS ──────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: rgba(22,57,193,.3); box-shadow: 0 8px 28px rgba(22,57,193,.1); transform: translateY(-3px); }
.post-card.featured { grid-column: span 2; flex-direction: row; }
.post-thumb { display: block; overflow: hidden; background: var(--blue-light); aspect-ratio: 16/9; }
.post-card.featured .post-thumb { width: 45%; aspect-ratio: unset; flex-shrink: 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder { width: 100%; height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; background: var(--blue-light); font-size: 2.5rem; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--blue-light); padding: 3px 10px; border-radius: 40px; }
.post-date { font-size: .78rem; color: var(--text-3); }
.post-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.post-title a { color: inherit; transition: color .2s; }
.post-title a:hover { color: var(--blue); }
.post-card.featured .post-title { font-size: 1.35rem; }
.post-excerpt { font-size: .9rem; color: var(--text-3); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.read-more { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--blue); transition: gap .2s; }
.read-more:hover { gap: 9px; }
.read-time { font-size: .75rem; color: var(--text-3); }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-2); transition: all .2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.widget-title, .widget h3.widget-title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.widget-cta { background: linear-gradient(135deg, var(--navy), var(--blue-mid)); border: none; text-align: center; }
.widget-cta .widget-title { color: rgba(255,255,255,.6); }
.widget-cta .cta-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.widget-cta .cta-icon svg { stroke: #fff; }
.widget-cta h3 { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.widget-cta p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 20px; }
.btn-cta-white { display: inline-block; background: #fff; color: var(--blue); font-size: .8rem; font-weight: 700; padding: 11px 22px; border-radius: 8px; transition: transform .2s, box-shadow .2s; }
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.15); color: var(--blue); }
.search-form { display: flex; gap: 0; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px 0 0 8px; font-family: var(--font); font-size: .9rem; outline: none; }
.search-form input:focus { border-color: var(--blue); }
.search-form button { background: var(--blue); color: #fff; border: none; padding: 0 14px; border-radius: 0 8px 8px 0; cursor: pointer; transition: background .2s; }
.search-form button:hover { background: var(--blue-mid); }
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; color: var(--text-2); padding: 8px 0; border-bottom: 1px solid var(--border); transition: color .2s; }
.cat-list a:hover { color: var(--blue); }
.cat-badge { background: var(--blue-light); color: var(--blue); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 40px; }
.recent-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.recent-item { display: flex; gap: 12px; align-items: flex-start; }
.recent-thumb-box { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: var(--blue-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.recent-thumb-box img { width: 100%; height: 100%; object-fit: cover; }
.recent-info a { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.35; display: block; margin-bottom: 4px; transition: color .2s; }
.recent-info a:hover { color: var(--blue); }
.recent-date { font-size: .75rem; color: var(--text-3); }

/* ── SINGLE POST ─────────────────────────────────────────── */
.single-layout {
  max-width: var(--max); margin: 0 auto; padding: 56px 32px;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start;
}
.post-header { margin-bottom: 32px; }
.post-header h1 { font-size: clamp(22px, 3.5vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 20px; }
.post-lead { font-size: 18px; color: var(--text-2); line-height: 1.75; margin-bottom: 24px; }
.author-bar { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--blue-light); }
.author-name { font-size: .9rem; font-weight: 700; color: var(--text); }
.author-role { font-size: .78rem; color: var(--text-3); }
.post-stat { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-3); margin-left: auto; }
.featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.featured-image img { width: 100%; }
.post-content { font-size: 16px; line-height: 1.85; color: var(--text-2); }
.post-content h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 16px; color: var(--text); }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--blue); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--blue); padding: 16px 20px; background: var(--blue-light); border-radius: 0 8px 8px 0; margin: 24px 0; color: var(--text-2); font-style: italic; }
.post-content img { border-radius: 8px; margin: 24px 0; }
.post-content code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: .88rem; }
.post-content pre { background: #1e2a3a; color: #e2e8f0; padding: 20px 24px; border-radius: 8px; overflow-x: auto; margin: 24px 0; font-size: .9rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tag { padding: 5px 14px; border: 1px solid var(--border); border-radius: 40px; font-size: .78rem; color: var(--text-3); transition: all .2s; }
.post-tag:hover { border-color: var(--blue); color: var(--blue); }
.share-bar { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-bar span { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--white); color: var(--text-2); transition: all .2s; font-family: var(--font); }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn.wp { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.wp:hover { background: #1fba5a; border-color: #1fba5a; color: #fff; }
.share-btn.li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-btn.li:hover { background: #0858a8; border-color: #0858a8; color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 56px 32px 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: var(--text-3); line-height: 1.7; margin-top: 14px; max-width: 240px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: #25d366; display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.footer-social a:hover { opacity: .85; }
.footer-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-3); transition: color .2s; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text-3); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout, .single-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-thumb { width: 100%; }
  .blog-layout, .single-layout { padding: 32px 20px; }
  .blog-hero { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .footer { padding: 40px 20px 0; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 20px; }
}
