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

/* Tokens alinhados a site-brand.css / index.html */
:root {
  --sage-50: #f0f0fb;
  --sage-100: #ddddf5;
  --sage-300: #a9a4e0;
  --sage-500: #7C6FCD;
  --sage-600: #6859b8;
  --sage-700: #5245a0;
  --brand-accent: #6C5CE7;
  --cream: #F8F5F0;
  --charcoal: #1C1C1E;
  --cta: #FF6B6B;
  --muted: #64748B;
  --muted-light: #94A3B8;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --shadow-card: 0 4px 24px rgba(28, 28, 30, 0.07);
  --shadow-card-hover: 0 16px 48px rgba(82, 69, 160, 0.14);
  --radius-card: 12px;
  --radius-lg: 20px;
  --content-max: 720px;
  --wide-max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--sage-500);
  color: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage-700); }

/* ── Header ── */
.blog-header {
  background: var(--white);
  border-bottom: 1px solid rgba(124, 111, 205, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.blog-header-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.blog-logo-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.blog-logo-mente {
  font-weight: 500;
  color: var(--brand-accent);
  font-size: 1.1em;
}

.blog-logo-emdia {
  font-weight: 700;
  color: var(--charcoal);
}

.blog-logo-tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  margin-top: 0.2rem;
}

.blog-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.blog-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-nav a:hover { color: var(--sage-600); }

/* ── Hero blog listing ── */
.blog-hero {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.blog-hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-hero-pillar {
  margin-top: 1.75rem;
}

.blog-hero-pillar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-600);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  background: var(--sage-50);
  border-radius: 99px;
  border: 1px solid rgba(124, 111, 205, 0.15);
  transition: background 0.2s, border-color 0.2s;
}

.blog-hero-pillar a:hover {
  background: var(--sage-100);
  border-color: rgba(124, 111, 205, 0.3);
}

/* ── Card grid (referência: cards com imagem + badge + título + excerpt + leia mais + data) ── */
.posts-grid {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(124, 111, 205, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.post-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  line-height: 1;
}

.post-card-body {
  padding: 1.35rem 1.35rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--sage-700);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card-title a:hover { color: var(--sage-500); }

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-read {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-600);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
  transition: color 0.2s;
}

.post-card-read:hover { color: var(--cta); }

.post-card-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid rgba(124, 111, 205, 0.1);
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* ── Pillar featured card (full width) ── */
.pillar-featured {
  max-width: var(--wide-max);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.pillar-featured .post-card {
  flex-direction: row;
}

.pillar-featured .post-card-media {
  width: 42%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 260px;
}

.pillar-featured .post-card-body {
  padding: 2rem 2rem 0;
  justify-content: center;
}

.pillar-featured .post-card-title {
  font-size: 1.55rem;
}

/* ── Article page ── */
.article-wrap {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted-light);
  padding: 1.25rem 0 0.5rem;
}

.article-breadcrumb a {
  color: var(--sage-600);
  text-decoration: none;
}

.article-breadcrumb a:hover { text-decoration: underline; }

.article-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.article-featured img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.article-featured-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
}

.article-header {
  max-width: var(--content-max);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.article-header-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted-light);
}

.article-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-meta-bar span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage-300);
}

.article-meta-bar span:first-child::before { display: none; }

/* ── Prose ── */
.prose {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 1.02rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 2.5rem 0 0.85rem;
  line-height: 1.3;
}

.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-700);
  margin: 1.75rem 0 0.6rem;
}

.prose p {
  color: var(--muted);
  margin-bottom: 1.15rem;
  line-height: 1.8;
}

.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

.prose a {
  color: var(--sage-600);
  font-weight: 500;
}

.prose strong { color: var(--charcoal); font-weight: 600; }

.prose-toc {
  background: var(--white);
  border: 1px solid rgba(124, 111, 205, 0.12);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.prose-toc h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-600);
  margin: 0 0 0.75rem;
}

.prose-toc ol {
  margin: 0 0 0 1.1rem;
  list-style: decimal;
}

.prose-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.prose-toc a:hover { color: var(--sage-600); }

.checklist {
  list-style: none !important;
  margin-left: 0 !important;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-500);
}

/* ── FAQ blocks ── */
.article-faq {
  max-width: var(--content-max);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 111, 205, 0.15);
}

.article-faq > h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.faq-block {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(124, 111, 205, 0.1);
  box-shadow: 0 2px 8px rgba(28, 28, 30, 0.04);
}

.faq-block h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.45rem;
}

.faq-block p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* ── Related + CTA ── */
.related-posts {
  max-width: var(--content-max);
  margin: 2.5rem auto 0;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(124, 111, 205, 0.1);
}

.related-posts h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(124, 111, 205, 0.08);
}

.related-list li:last-child { border-bottom: none; }

.related-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sage-600);
  text-decoration: none;
}

.related-list a:hover { color: var(--sage-500); text-decoration: underline; }

.cta-box {
  max-width: var(--content-max);
  margin: 2.5rem auto 0;
  background: linear-gradient(135deg, var(--sage-500) 0%, var(--sage-700) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(82, 69, 160, 0.25);
}

.cta-box h2 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.35rem;
  line-height: 1.65;
  font-size: 0.98rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.25); }

/* ── Footer ── */
.blog-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  margin-top: 2rem;
}

.blog-footer-logo {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.blog-footer-logo .blog-logo-mente { color: #8B7FE8; }
.blog-footer-logo .blog-logo-emdia { color: var(--white); }
.blog-footer-logo .blog-logo-tag { color: rgba(255,255,255,0.4); }

.blog-footer p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.blog-footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.blog-footer-links a:hover { color: var(--sage-300); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-featured .post-card { flex-direction: column; }
  .pillar-featured .post-card-media { width: 100%; min-height: auto; aspect-ratio: 16/10; }
}

@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-nav { display: none; }
  .article-featured img { aspect-ratio: 16 / 10; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}
