/* ============================================================
   L|M Lucas & Máximo Advocacia · Blog
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #161513;
  --black-3: #232118;
  --gold: #d4af6a;
  --gold-bright: #e6c585;
  --gold-dark: #b08949;
  --cream: #f7f0e0;
  --beige-light: #f8f3e8;
  --beige-soft: #f1ead7;
  --white: #ffffff;
  --gray-200: #e8e2d2;
  --gray-400: #9a8f73;
  --gray-600: #5a5648;
  --gray-800: #2a2820;
  --shadow-soft: 0 6px 30px rgba(20, 18, 10, 0.07);
  --shadow-deep: 0 20px 60px rgba(20, 18, 10, 0.15);
  --shadow-gold: 0 12px 40px rgba(212, 175, 106, 0.25);
  --radius: 10px;
  --radius-lg: 20px;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1280px;
  --container-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ============================================================
   HEADER (igual ao site principal)
   ============================================================ */
.topbar {
  background: var(--black);
  color: var(--gray-400);
  font-size: 0.78rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--black-3);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.topbar-inner span { display: flex; align-items: center; gap: 0.4rem; }
.topbar a { color: var(--gold-bright); }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,106,0.25);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-link { display: flex; align-items: center; gap: 0.7rem; }
.logo-link img { height: 52px; width: auto; display: block; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--black-2);
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.2rem;
  font-weight: 600;
}
.nav-blog ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-blog a {
  color: #f5e9c8;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-blog a:hover { color: var(--gold-bright, #e4c480); }
.btn-whatsapp-header {
  background: #25d366;
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-whatsapp-header:hover { color: white; background: #1ebe5a; }

@media (max-width: 860px) {
  .nav-blog { display: none; }
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.article-hero {
  background:
    radial-gradient(ellipse at top, rgba(212,175,106,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--beige-light) 100%);
  padding: 4rem 1.5rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
}
.article-hero-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--gray-400); margin: 0 0.4rem; }
.article-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--black-2);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.article-hero h1 em {
  color: var(--gold-dark);
  font-style: italic;
}
.article-lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 680px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-600);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-meta-item strong { color: var(--black-2); font-weight: 600; }
.article-meta-item svg { width: 16px; height: 16px; color: var(--gold-dark); }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.article-body p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}
.article-body p strong { color: var(--black-2); font-weight: 600; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--black-2);
  margin: 3rem 0 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 1.2rem;
}
.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 4px;
  background: var(--gold);
  border-radius: 4px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--black-2);
  margin: 2.2rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 em {
  color: var(--gold-dark);
  font-style: italic;
}
.article-body ul, .article-body ol {
  margin: 1.2rem 0 1.8rem;
  padding-left: 0;
  list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-800);
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.article-body ol {
  counter-reset: ol-counter;
}
.article-body ol li {
  counter-increment: ol-counter;
}
.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}
.article-body blockquote {
  background: var(--beige-light);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gray-800);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote strong { font-style: normal; color: var(--black-2); }

.callout {
  background: linear-gradient(135deg, rgba(212,175,106,0.08) 0%, rgba(212,175,106,0.03) 100%);
  border: 1px solid rgba(212,175,106,0.3);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.callout-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.callout-content strong {
  display: block;
  color: var(--black-2);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.callout-content p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Tabela */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body table thead {
  background: var(--black-2);
  color: var(--gold-bright);
}
.article-body table th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.article-body table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table tr:nth-child(even) td { background: var(--beige-light); }

/* CTA inline no artigo */
.inline-cta {
  background: linear-gradient(135deg, var(--black) 0%, var(--black-2) 100%);
  color: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,175,106,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.inline-cta h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  color: var(--cream);
  position: relative;
  z-index: 1;
}
.inline-cta h3 em {
  color: var(--gold-bright);
  font-style: italic;
}
.inline-cta p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  font-size: 1rem;
}
.inline-cta .btn {
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-whatsapp {
  background: #25d366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

/* Author bio */
.author-bio {
  background: var(--beige-light);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--gray-200);
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
}
.author-info strong {
  display: block;
  color: var(--black-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.author-info span {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}
.author-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .author-bio { flex-direction: column; text-align: center; }
}

/* Related articles */
.related {
  background: var(--beige-light);
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.related-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.related h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--black-2);
  text-align: center;
  margin-bottom: 2.5rem;
}
.related h2 em { color: var(--gold-dark); font-style: italic; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
  border-color: var(--gold);
}
.related-card-img {
  height: 160px;
  background:
    linear-gradient(135deg, rgba(212,175,106,0.85), rgba(10,10,10,0.85));
  position: relative;
}
.related-card-img.alt-1 {
  background:
    linear-gradient(135deg, rgba(20,20,20,0.85), rgba(212,175,106,0.55));
}
.related-card-img.alt-2 {
  background:
    linear-gradient(135deg, rgba(212,175,106,0.7), rgba(40,30,15,0.85));
}
.related-card-body {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.related-card-tag {
  font-size: 0.7rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black-2);
  margin-bottom: 0.7rem;
  line-height: 1.3;
  flex: 1;
}
.related-card a {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}
.related-card a:hover { color: var(--gold); }
.related-card a span { transition: transform 0.2s; }
.related-card a:hover span { transform: translateX(3px); }

@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER (resumido para blog)
   ============================================================ */
.footer-blog {
  background: var(--black);
  color: var(--gray-400);
  padding: 3rem 1.5rem 2rem;
  border-top: 3px solid var(--gold);
}
.footer-blog-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-blog h4 {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.footer-blog p, .footer-blog li { font-size: 0.88rem; line-height: 1.7; }
.footer-blog ul { list-style: none; }
.footer-blog ul li { margin-bottom: 0.4rem; }
.footer-blog a { color: var(--gray-400); }
.footer-blog a:hover { color: var(--gold-bright); }
.footer-blog-bottom {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--black-3);
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
}
.footer-blog-bottom a { color: var(--gold-bright); }

@media (max-width: 860px) {
  .footer-blog-inner { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2.3s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
}
