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

:root {
  --green: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --max-w: 760px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}
.site-header__logo img {
  height: 32px;
  width: auto;
  display: block;
}
.site-header__logo-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.site-header__nav a { color: var(--gray-500); }
.site-header__nav a:hover { color: var(--gray-900); text-decoration: none; }
.btn-header {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}
.btn-header:hover { background: var(--green-dark); text-decoration: none !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--green-dark); text-decoration: none; }
.breadcrumb-sep { color: var(--gray-200); }

/* ── HERO DO ARTIGO ── */
.article-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 2.5rem 1.5rem 2rem;
}
.article-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.article-hero__cat {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}
.article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.article-hero__meta strong { color: var(--gray-700); }

/* ── LAYOUT ARTIGO ── */
.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
}

/* ── CONTEÚDO ── */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 2rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gray-200);
}
.article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1.5rem 0 0.5rem;
}
.article-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-700);
}
.article-body ul, .article-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.article-body li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.65;
}
.article-body strong { color: var(--gray-900); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 2rem 0;
}
.article-body a { color: var(--green-dark); font-weight: 500; }

/* TABELA */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  display: block;
}
.article-body th {
  background: var(--gray-900);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.article-body td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.article-body tr:nth-child(even) td { background: var(--gray-50); }

/* CALLOUT / DESTAQUE */
.callout {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; color: var(--gray-900); }

/* CTA INLINE */
.cta-box {
  background: var(--gray-900);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}
.cta-box h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.cta-box p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1rem; }
.btn-cta {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  text-decoration: none !important;
}
.btn-cta:hover { background: var(--green-dark); }

/* FAQ */
.faq { margin-top: 2rem; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-body { padding: 0 1.1rem 1rem; color: var(--gray-700); font-size: 0.95rem; }

/* ── SIDEBAR ── */
.article-sidebar { position: sticky; top: 76px; }
.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}
.sidebar-cta {
  background: var(--green);
  border-color: var(--green);
  text-align: center;
}
.sidebar-cta h4 { color: rgba(255,255,255,0.7); }
.sidebar-cta p { color: var(--white); font-size: 0.875rem; margin-bottom: 1rem; }
.btn-sidebar {
  display: block;
  background: var(--white);
  color: var(--green-dark) !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 7px;
  text-align: center;
  text-decoration: none !important;
}
.btn-sidebar:hover { opacity: 0.9; text-decoration: none !important; }
.related-list { list-style: none; }
.related-list li { margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--gray-200); }
.related-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.related-list a { font-size: 0.875rem; color: var(--gray-700); font-weight: 500; line-height: 1.4; }
.related-list a:hover { color: var(--green-dark); text-decoration: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-900);
  color: #9ca3af;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}
.site-footer a { color: var(--green); }
.site-footer__inner { max-width: 1100px; margin: 0 auto; }
.site-footer p { font-size: 0.875rem; margin-bottom: 0.4rem; }
.site-footer__logo { height: 28px; width: auto; margin: 0 auto 1rem; display: block; opacity: 0.85; filter: brightness(0) invert(1); }
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #9ca3af;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.site-footer__social a:hover {
  background: var(--green);
  color: var(--white);
}

/* ── BLOG HOME ── */
.blog-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.blog-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.blog-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; }

.blog-grid {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.7rem;
}
.post-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  flex: 1;
}
.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.post-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
}
.post-card__link::after { content: ' →'; }
