/* ============================================================
   article.css — Lucas Januário Imóveis
   Estilos exclusivos das páginas de artigos do blog
   Depende de global.css (carregado antes)
============================================================ */

/* ── Hero ── */
.art-hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #040c24;
}
.art-hero img { width:100%; height:100%; object-fit:cover; opacity:.72; display:block; }
.art-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,12,36,.88) 0%, rgba(4,12,36,.30) 60%, transparent 100%);
}
.art-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 40px;
}
.art-cat {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: #4CAF50; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 10px;
}
.art-hero h1 {
  font-size: clamp(22px,4vw,38px); font-weight: 900;
  color: #fff; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px;
}
.art-meta {
  font-size: 13px; color: rgba(255,255,255,.60); font-weight: 600;
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ── Layout artigo + sidebar ── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { order: -1; }
  .art-hero { height: 280px; }
  .art-hero-content { padding: 20px; }
}

/* ── Corpo do artigo ── */
.art-body { font-size: 16px; color: #334155; line-height: 1.85; }

.art-breadcrumb {
  font-size: 13px; color: #94a3b8; font-weight: 600;
  padding-bottom: 20px; border-bottom: 1px solid #f1f5f9;
  margin-bottom: 28px;
}
.art-breadcrumb a { color: #4CAF50; text-decoration: none; }

.art-body h2 {
  font-size: clamp(19px,2.5vw,24px); font-weight: 900; color: #040c24;
  letter-spacing: -.02em; line-height: 1.25;
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 4px solid #4CAF50;
}
.art-body h3 { font-size: 18px; font-weight: 800; color: #040c24; margin: 28px 0 10px; }
.art-body p  { margin: 0 0 18px; }
.art-body strong { color: #040c24; font-weight: 800; }

.art-body a {
  color: #388E3C; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  font-weight: 600;
}
.art-body a:hover { color: #4CAF50; }

.art-body ul,
.art-body ol { margin: 4px 0 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.art-body li { line-height: 1.7; }

.art-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
  border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(4,12,36,.08);
}
.art-body table th {
  background: #040c24; color: #fff; padding: 14px 18px;
  text-align: left; font-weight: 800; font-size: 13px; letter-spacing: .03em;
}
.art-body table td {
  padding: 12px 18px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 14px;
}
.art-body table tr:nth-child(even) td { background: #f8fafc; }
.art-body table td strong { color: #040c24; }

.art-body blockquote {
  border-left: 4px solid #4CAF50; background: #e8f5e9;
  margin: 28px 0; padding: 18px 22px; border-radius: 0 14px 14px 0;
  font-size: 15px; color: #1b5e20; font-weight: 600; line-height: 1.7;
}

/* ── CTAs inline ── */
.cta-inline {
  background: linear-gradient(135deg, #040c24, #0a1f44);
  border-radius: 16px; padding: 28px; margin: 32px 0;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta-inline-text h4 { color: #fff; font-size: 17px; font-weight: 900; margin: 0 0 4px; }
.cta-inline-text p  { color: rgba(255,255,255,.65); font-size: 14px; margin: 0; }
.cta-inline-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 800;
  font-size: 14px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.cta-green { background: #25D366; color: #fff !important; }
.cta-lime  { background: #4CAF50; color: #fff !important; }

@media (max-width: 600px) {
  .cta-inline { flex-direction: column; }
  .cta-inline-btn { width: 100%; justify-content: center; }
}

/* ── Highlight boxes ── */
.highlight-box {
  background: #fff3e0; border: 1px solid #ffcc80;
  border-radius: 14px; padding: 18px 20px; margin: 24px 0;
  font-size: 14px; color: #bf360c; font-weight: 600; line-height: 1.65;
}
.highlight-box-green { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }

/* ── Passos ── */
.steps-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 28px; }
.step-row {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px;
}
.step-circle {
  width: 40px; height: 40px; border-radius: 50%; background: #4CAF50;
  color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-row h4 { font-size: 15px; font-weight: 800; color: #040c24; margin: 0 0 4px; }
.step-row p  { font-size: 14px; color: #64748b; line-height: 1.6; margin: 0; }

/* ── FAQ ── */
.faq-section { margin-top: 40px; }
.faq-section h2 { border-left: 4px solid #4CAF50; padding-left: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; padding: 18px 20px;
  font-family: inherit; font-size: 15px; font-weight: 800; color: #040c24;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left;
}
.faq-q:hover { background: #f8fafc; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
  transition: transform .2s, background .15s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: #4CAF50; color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px; color: #64748b; line-height: 1.7; padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ── CTA final ── */
.art-cta {
  background: linear-gradient(135deg, #040c24, #0a1f44);
  border-radius: 20px; padding: 36px 32px; text-align: center; margin-top: 48px;
}
.art-cta h3 { color: #fff; font-size: 22px; font-weight: 900; margin: 0 0 10px; }
.art-cta p  { color: rgba(255,255,255,.70); font-size: 15px; margin: 0 0 24px; }
.art-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Sidebar ── */
@media (min-width: 901px) { .art-sidebar { position: sticky; top: 90px; } }
.toc-box {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px; margin-bottom: 20px;
}
.toc-box h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #94a3b8; margin: 0 0 14px;
}
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  font-size: 14px; font-weight: 600; color: #64748b; text-decoration: none;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
  padding: 6px 8px; border-radius: 8px; transition: background .15s, color .15s;
}
.toc-list a:hover { background: #f1f5f9; color: #040c24; }
.toc-list a .toc-num { color: #4CAF50; font-weight: 800; flex-shrink: 0; }
.sidebar-cta {
  background: #4CAF50; border-radius: 14px; padding: 20px;
  text-align: center; text-decoration: none; display: block; transition: background .15s;
}
.sidebar-cta:hover { background: #388E3C; }
.sidebar-cta p { color: rgba(255,255,255,.80); font-size: 13px; margin: 0 0 12px; font-weight: 500; }
.sidebar-cta strong { color: #fff; font-size: 15px; font-weight: 800; display: block; margin-bottom: 12px; }
.sidebar-cta .btn-s {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #388E3C; padding: 10px 18px;
  border-radius: 8px; font-weight: 800; font-size: 13px;
}
