/* ============================================
   E-law Blog — estilos compartilhados
   Paleta e tipografia herdadas do site principal
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-dark: #2D2560;
  --purple-mid: #6B5CE7;
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --cream: #F5F2ED;
  --cream-dark: #EDE8E0;
  --white: #FFFFFF;
  --text-dark: #1A1520;
  --text-mid: #4A4560;
  --text-muted: #8A87A0;
  --border: rgba(45,37,96,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.75;
}

.serif { font-family: 'Playfair Display', serif; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5vw;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--purple-dark);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.logo span { color: var(--gold); }

.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple-dark); }
.nav-cta {
  background: var(--purple-dark);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--purple-mid) !important; }

@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(.nav-cta-li) { display: none; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 5vw;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple-dark); }

/* ── ARTICLE ── */
article.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 5vw 80px;
}

.post-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.post h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--purple-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--purple-dark);
  margin: 44px 0 16px;
}

.post h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.post p { margin-bottom: 18px; color: var(--text-mid); }
.post p strong { color: var(--text-dark); }

.post ul, .post ol { margin: 0 0 18px 22px; color: var(--text-mid); }
.post li { margin-bottom: 8px; }

.post blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--purple-dark);
  font-family: 'Playfair Display', serif;
  font-size: 19px;
}

/* ── CTA BOX ── */
.post-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.post-cta p { color: var(--text-dark); margin-bottom: 16px; }
.post-cta .btn-primary {
  display: inline-block;
  background: var(--purple-dark);
  color: var(--white);
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.post-cta .btn-primary:hover { background: var(--purple-mid); }

/* ── RELATED ── */
.related {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 5vw 80px;
}
.related h3 { font-family: 'Playfair Display', serif; color: var(--purple-dark); margin-bottom: 16px; }
.related ul { list-style: none; }
.related li { margin-bottom: 10px; }
.related a { color: var(--purple-mid); text-decoration: none; font-size: 15px; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* ── BLOG INDEX ── */
.blog-hero {
  background: var(--purple-dark);
  color: var(--white);
  padding: 80px 5vw 56px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 14px;
}
.blog-hero p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 540px; margin: 0 auto; }

.post-grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 5vw 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: 0 8px 28px rgba(45,37,96,0.1); transform: translateY(-2px); }
.post-card .post-eyebrow { margin-bottom: 14px; }
.post-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  color: var(--purple-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}
.post-card p { color: var(--text-mid); font-size: 14px; margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 5vw 28px;
  text-align: center;
  font-size: 13px;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: var(--gold); }
footer .logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
