*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2.4rem;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-wrap { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; }
.logo-img { height: 3.6rem; width: auto; display: block; }
.logo-blog-tag {
  background: #2563EB;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a {
  font-size: 1.4rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color .2s;
}
.header-nav a:hover { color: #2563EB; }
.btn-back {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: .6rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all .2s;
}
.btn-back:hover { border-color: #2563EB; color: #2563EB; background: #eff6ff; }

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 84rem;
  margin: 3.2rem auto 0;
  padding: 0 2.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.3rem;
  color: #94a3b8;
  flex-wrap: wrap;
}
.breadcrumb a { color: #64748b; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #2563EB; }
.breadcrumb span:not([aria-hidden]) { color: #1e293b; font-weight: 500; }

/* ── ARTICLE HERO ── */
.article-wrap { padding-bottom: 8rem; }
.article-hero {
  position: relative;
  max-width: 100%;
  margin-top: 2.4rem;
  overflow: hidden;
}
.article-hero-img {
  width: 100%;
  height: 48rem;
  object-fit: cover;
  display: block;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.88) 0%, rgba(15,23,42,.40) 50%, rgba(15,23,42,.0) 100%);
}
.article-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4.8rem 2.4rem;
  max-width: 96rem;
  margin: 0 auto;
}
.article-category {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  padding: .4rem 1.2rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin-bottom: 1.4rem;
}
.article-title {
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  max-width: 78rem;
}

/* Category colors */
.cat-estoque { background: #2563EB; }
.cat-financeiro { background: #7c3aed; }
.cat-fiscal { background: #0891b2; }
.cat-vendas { background: #16a34a; }
.cat-gestao { background: #ea580c; }
.cat-tecnologia { background: #db2777; }
.cat-erp { background: #2563EB; }

/* ── ARTICLE CONTAINER ── */
.article-container {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

/* ── ARTICLE CONTENT ── */
.article-content { margin-top: 4.8rem; }

.article-lead {
  font-size: 1.9rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 3.2rem;
  padding-bottom: 3.2rem;
  border-bottom: 2px solid #e2e8f0;
}

.article-content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #2563EB;
  margin-top: 4rem;
  margin-bottom: 1.6rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
}

.article-content p {
  font-size: 1.7rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 2rem 2.4rem;
}

.article-content li {
  font-size: 1.7rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: .8rem;
}

.article-content strong {
  font-weight: 700;
  color: #1e293b;
}

.article-content a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  border-left: 4px solid #2563EB;
  background: #eff6ff;
  padding: 1.6rem 2.4rem;
  border-radius: 0 .8rem .8rem 0;
  margin: 2.4rem 0;
  font-size: 1.7rem;
  color: #1e40af;
  font-style: italic;
  line-height: 1.65;
}

/* ── CTA ── */
.article-cta {
  margin-top: 5.6rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563EB 50%, #3b82f6 100%);
  border-radius: 1.6rem;
  padding: 4rem;
  text-align: center;
}
.cta-content h3 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
}
.cta-content p {
  font-size: 1.7rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2.8rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 1.4rem 3.2rem;
  border-radius: .8rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.cta-btn:hover { background: #15803d; transform: translateY(-2px); }

/* ── CONTINUE READING ── */
.continue-reading { margin-top: 6.4rem; }
.continue-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 3.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid #2563EB;
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.related-card {
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(37,99,235,.14); }
.related-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related-card:hover .related-img { transform: scale(1.05); }
.related-body { padding: 1.6rem; flex: 1; }
.related-cat {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: 2rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.related-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── FOOTER ── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 2.4rem;
  text-align: center;
}
.footer-logo { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.footer-logo img { height: 2.8rem; width: auto; }
.footer-links { display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 1.4rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 1.3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-hero-img { height: 28rem; }
  .article-hero-content { padding: 2rem; }
  .article-title { font-size: 2.2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 2.8rem 2rem; }
  .cta-content h3 { font-size: 2rem; }
}
