/* ============================================
   SIMPLES-IA — CSS GLOBAL
   Identidade visual baseada na logo oficial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --azul-escuro: #1a3a6b;
  --azul: #2563b8;
  --azul-turquesa: #4ab8d4;
  --azul-claro: #e8eef5;
  --azul-medio: #b8d0e8;
  --verde: #059669;
  --verde-claro: #ecfdf5;
  --laranja: #d97706;
  --laranja-claro: #fffbeb;
  --roxo: #3b5fa0;
  --roxo-claro: #eef2fa;
  --teal: #4ab8d4;
  --teal-claro: #e6f7fb;
  --text: #1a3a6b;
  --muted: #5a7299;
  --border: #c8d8e8;
  --bg: #f0f4f8;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(26,58,107,0.08);
  --shadow-hover: 0 8px 32px rgba(26,58,107,0.14);
}

html {
  scroll-behavior: smooth;
}

#categorias, #destaque, #artigos, #newsletter {
  scroll-margin-top: 90px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ─── HEADER ─── */
header {
  background: var(--white);
  border-bottom: 2px solid var(--azul-medio);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,58,107,0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 70px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-fallback {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--azul-escuro);
  letter-spacing: -0.5px;
}

.logo-fallback span {
  color: var(--azul-turquesa);
}

nav {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.15s;
}

nav a:hover, nav a.ativo {
  color: var(--azul);
  background: var(--azul-claro);
}

.nav-cta {
  margin-left: auto;
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  font-weight: 800 !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 12px rgba(26,58,107,0.25);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--azul), var(--azul-turquesa)) !important;
  transform: translateY(-1px);
}

/* ─── LAYOUT ─── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.artigo-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ─── SEÇÃO ─── */
.section { margin-bottom: 56px; }

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--azul-escuro);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #e8eef5 0%, #d4e4f0 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  margin: 36px 0 56px;
  border: 1px solid var(--azul-medio);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  display: none;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-logo img {
  height: 64px;
  width: auto;
}

.hero-logo-fallback {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--azul-escuro);
  letter-spacing: -0.5px;
}

.hero-logo-fallback span {
  color: var(--azul-turquesa);
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--azul-escuro);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge-azul { background: white; color: var(--azul-escuro); border: 1.5px solid var(--azul-medio); }
.badge-verde { background: var(--verde-claro); color: var(--verde); border: 1.5px solid #a7f3d0; }
.badge-laranja { background: var(--laranja-claro); color: var(--laranja); border: 1.5px solid #fde68a; }

/* ─── CATEGORIAS ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cat-card {
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  display: block;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.cat-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.cat-name { font-size: 0.88rem; font-weight: 800; display: block; margin-bottom: 4px; }
.cat-count { font-size: 0.75rem; font-weight: 600; }

.cat-basico { background: #e8eef5; border-color: #b8d0e8; }
.cat-basico .cat-name { color: #1a3a6b; }
.cat-basico .cat-count { color: #4ab8d4; }

.cat-ferramentas { background: #ecfdf5; border-color: #a7f3d0; }
.cat-ferramentas .cat-name { color: #059669; }
.cat-ferramentas .cat-count { color: #34d399; }

.cat-profissao { background: #eef2fa; border-color: #c8d4ee; }
.cat-profissao .cat-name { color: #3b5fa0; }
.cat-profissao .cat-count { color: #7a9fd4; }

.cat-dinheiro { background: #fffbeb; border-color: #fde68a; }
.cat-dinheiro .cat-name { color: #d97706; }
.cat-dinheiro .cat-count { color: #fbbf24; }

.cat-novidades { background: #e6f7fb; border-color: #a8dce8; }
.cat-novidades .cat-name { color: #2a8fa8; }
.cat-novidades .cat-count { color: #4ab8d4; }

/* ─── DESTAQUE ─── */
.destaque-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.destaque-card:hover { box-shadow: var(--shadow-hover); }

.destaque-img {
  width: 280px;
  min-height: 220px;
  background: linear-gradient(135deg, #e8eef5, #b8d0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  flex-shrink: 0;
}

.destaque-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}

.pill-basico { background: #e8eef5; color: #1a3a6b; border: 1px solid #b8d0e8; }
.pill-ferramentas { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.pill-profissao { background: #eef2fa; color: #3b5fa0; border: 1px solid #c8d4ee; }
.pill-dinheiro { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.pill-novidades { background: #e6f7fb; color: #2a8fa8; border: 1px solid #a8dce8; }

.destaque-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--azul-escuro);
  line-height: 1.3;
  margin-bottom: 12px;
}

.destaque-desc {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}

.destaque-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
  align-self: flex-start;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  color: white;
  box-shadow: 0 4px 14px rgba(26,58,107,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--azul), var(--azul-turquesa));
  transform: translateX(3px);
}

/* ─── FILTROS ─── */
.filtros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filtro-btn {
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Nunito', sans-serif;
}

.filtro-btn:hover, .filtro-btn.ativo {
  border-color: var(--azul-escuro);
  color: var(--azul-escuro);
  background: var(--azul-claro);
}

/* ─── CARDS DE ARTIGO ─── */
.artigos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.art-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--azul-medio);
}

.art-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--azul-escuro);
  line-height: 1.4;
}

.art-desc {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  flex: 1;
}

.art-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* ─── SOBRE ─── */
.sobre-box {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
}

.sobre-icon { font-size: 2.8rem; flex-shrink: 0; }
.sobre-box h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; color: var(--azul-escuro); }
.sobre-box p { font-size: 0.88rem; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* ─── NEWSLETTER ─── */
.newsletter-box {
  background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul) 60%, var(--azul-turquesa) 100%);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.newsletter-box h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 10px;
}

.newsletter-box p {
  color: #bfdbfe;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 20px;
  border-radius: 100px;
  border: none;
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  outline: none;
  color: var(--text);
}

.newsletter-form button {
  padding: 13px 28px;
  background: var(--laranja);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: #b45309; }
.newsletter-disclaimer { font-size: 0.78rem; color: #93c5fd; margin-top: 14px; font-weight: 600; }

/* ─── FOOTER ─── */
footer {
  background: var(--azul-escuro);
  color: #93c5fd;
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
}

.footer-logo span { color: var(--azul-turquesa); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #93c5fd; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.8rem; color: #64748b; }

/* ─── ARTIGO ─── */
.artigo-header { margin: 36px 0 32px; }
.artigo-cat { margin-bottom: 14px; }
.artigo-titulo {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--azul-escuro);
  line-height: 1.25;
  margin-bottom: 16px;
}

.artigo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.artigo-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 36px;
  border: 1px solid var(--border);
}

.artigo-corpo { font-family: 'Lora', serif; font-size: 1.05rem; line-height: 1.85; color: #2d3748; }
.artigo-corpo p { margin-bottom: 1.4em; }
.artigo-corpo h2 { font-family: 'Nunito', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--azul-escuro); margin: 2em 0 0.8em; line-height: 1.3; }
.artigo-corpo h3 { font-family: 'Nunito', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--azul); margin: 1.6em 0 0.6em; }
.artigo-corpo ul, .artigo-corpo ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.artigo-corpo li { margin-bottom: 0.5em; }
.artigo-corpo strong { font-weight: 700; color: var(--azul-escuro); }
.artigo-corpo em { font-style: italic; }
.artigo-corpo a { color: var(--azul); text-decoration: underline; }
.artigo-corpo a:hover { color: var(--azul-turquesa); }
.artigo-corpo hr { border: none; border-top: 2px solid var(--border); margin: 2.5em 0; }

.artigo-corpo .indice {
  background: var(--azul-claro);
  border-left: 4px solid var(--azul);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 2em;
  font-family: 'Nunito', sans-serif;
}

.artigo-corpo .indice p { font-weight: 800; color: var(--azul-escuro); margin-bottom: 10px; font-size: 0.95rem; font-family: 'Nunito', sans-serif; }
.artigo-corpo .indice ul { margin-bottom: 0; }
.artigo-corpo .indice li { font-size: 0.9rem; font-family: 'Nunito', sans-serif; }
.artigo-corpo .indice a { color: var(--azul); text-decoration: none; font-weight: 600; }
.artigo-corpo .indice a:hover { text-decoration: underline; }

.artigo-corpo .destaque-box {
  background: var(--azul-claro);
  border: 1px solid var(--azul-medio);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 1.5em 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
}

.artigo-corpo .cta-box {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-top: 2.5em;
  text-align: center;
}

.artigo-corpo .cta-box p { color: white; font-family: 'Nunito', sans-serif; font-size: 1rem; margin-bottom: 0; }
.artigo-corpo .cta-box strong { color: #bfdbfe; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin: 24px 0 0;
}

.breadcrumb a { color: var(--azul); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ─── ANIMAÇÕES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-2 { animation: fadeUp 0.5s ease 0.1s both; }
.fade-up-3 { animation: fadeUp 0.5s ease 0.2s both; }
.fade-up-4 { animation: fadeUp 0.5s ease 0.3s both; }

/* ─── RESPONSIVO ─── */
@media (max-width: 768px) {
  .hero { padding: 32px 24px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .destaque-card { flex-direction: column; }
  .destaque-img { width: 100%; min-height: 160px; }
  .artigos-grid { grid-template-columns: 1fr; }
  .newsletter-box { padding: 32px 24px; }
  .newsletter-form { flex-direction: column; }
  .artigo-titulo { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { gap: 16px; }
  nav { display: none; }
}