/* ==========================================================================
   Grupo AS — Blog
   Usa a MESMA identidade visual do site principal: preto, slate, azul.
   ========================================================================== */

:root {
  --black: #000000;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --blue-900: #1e3a8a;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-400: #60a5fa;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--slate-900);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- topo, igual ao header do site ---------- */
.blog-topbar {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}
.blog-topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.blog-topbar .brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
}
.blog-topbar .back {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color .2s ease, color .2s ease;
}
.blog-topbar .back:hover {
  background: var(--slate-700);
  color: var(--white);
}

/* ---------- hero, mesmo degradê usado nas seções principais do site ---------- */
.blog-hero {
  background: linear-gradient(to bottom right, var(--black), var(--slate-900), var(--blue-900));
  padding: 72px 0;
  text-align: center;
}
.blog-hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin: 0 0 14px;
}
.blog-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
}
.blog-hero p {
  color: var(--gray-300);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- lista de artigos: cards, igual ao resto do site ---------- */
.article-list {
  padding: 64px 0 96px;
}
.article-grid {
  display: grid;
  gap: 24px;
}
.article-card {
  display: block;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 12px;
  padding: 32px;
  transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.article-card:hover {
  background: #24324a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.3);
}
.article-card .tag {
  display: inline-block;
  background: rgba(37,99,235,.15);
  color: var(--blue-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--white);
}
.article-card .excerpt {
  color: var(--gray-300);
  font-size: 15.5px;
  margin: 0 0 16px;
}
.article-card .foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-400);
  font-size: 13px;
}
.article-card .read {
  color: var(--blue-400);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- página de artigo ---------- */
.article-header {
  background: linear-gradient(to right, var(--black), var(--slate-900));
  padding: 56px 0 44px;
}
.article-header .tag {
  display: inline-block;
  background: rgba(37,99,235,.15);
  color: var(--blue-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.article-header h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
.article-header .info {
  color: var(--gray-400);
  font-size: 14px;
}

.article-body {
  background: var(--slate-900);
  padding: 48px 0 8px;
  font-size: 17px;
}
.article-body p {
  margin: 0 0 22px;
  color: var(--gray-300);
}
.article-body h2 {
  font-size: 25px;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 16px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 30px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--gray-300);
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--white); }
.article-body blockquote {
  border-left: 3px solid var(--blue-600);
  margin: 32px 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--gray-300);
  font-size: 18px;
}

.article-footer {
  padding: 40px 0 96px;
  background: var(--slate-900);
}
.cta-box {
  background: linear-gradient(to right, var(--blue-700), var(--blue-600));
  padding: 40px;
  border-radius: 12px;
  text-align: center;
}
.cta-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--white);
}
.cta-box p {
  color: #dbeafe;
  margin: 0 0 22px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-box .btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background-color .2s ease;
}
.cta-box .btn:hover { background: #f1f5f9; }
