/* ═══════════════════════════════════════════
   AXIA CONTABILIDADE CONSULTIVA — style.css
   Estilos compartilhados entre todas as páginas
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #f8fafc; color: #1a2744; }
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }

/* ─── Gradientes ─── */
.gradient-main  { background: linear-gradient(135deg, #002f6c 0%, #0050a0 50%, #1a6bbf 100%); }
.gradient-dark  { background: linear-gradient(160deg, #001f4d 0%, #003580 60%, #005cbf 100%); }
.gradient-light { background: linear-gradient(135deg, #e8f4fd 0%, #c4e0f7 100%); }

/* ─── Navbar ─── */
.navbar-white,
#navbar.always-white {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,80,160,0.10);
}
#navbar.always-white .nav-link { color: #0050a0 !important; }
#navbar.always-white #logo-text { color: #002f6c !important; }
#navbar.always-white #logo-sub  { color: #1a6bbf !important; }
.navbar-scroll {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,80,160,0.10);
}

/* ─── Hero hexagonal pattern ─── */
.hex-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='70' viewBox='0 0 60 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
  pointer-events: none;
}

/* ─── Blog cards ─── */
.blog-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1.5px solid rgba(0,80,160,0.09);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,80,160,0.14);
}

/* ─── Destaque card ─── */
.destaque-card {
  transition: box-shadow 0.3s, transform 0.3s;
}
.destaque-card:hover {
  box-shadow: 0 24px 56px rgba(0,80,160,0.18);
  transform: translateY(-4px);
}

/* ─── Categoria badge ─── */
.cat-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Search input ─── */
.search-input {
  border: 1.5px solid #c4e0f7;
  border-radius: 14px;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a2744;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.search-input:focus {
  border-color: #0050a0;
  box-shadow: 0 0 0 3px rgba(0,80,160,0.10);
}
.search-input::placeholder { color: #9bb8d4; }

/* ─── Categoria sidebar ─── */
.cat-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b6282;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.cat-filter-btn:hover { background: #e8f4fd; color: #0050a0; }
.cat-filter-btn.active { background: #0050a0; color: #fff; }
.cat-filter-btn .cat-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,80,160,0.12);
  color: #0050a0;
  padding: 2px 8px;
  border-radius: 999px;
}
.cat-filter-btn.active .cat-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ─── Paginação ─── */
.page-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid #c4e0f7;
  background: #fff;
  color: #0050a0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.page-btn:hover { background: #e8f4fd; border-color: #0050a0; }
.page-btn.active { background: #0050a0; color: #fff; border-color: #0050a0; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Animações de entrada ─── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── WhatsApp float ─── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 9000;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.whatsapp-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }

/* ─── Scroll top ─── */
#scrollTop {
  position: fixed; bottom: 100px; right: 28px;
  width: 44px; height: 44px;
  background: #0050a0; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 8999;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  border: none; box-shadow: 0 4px 16px rgba(0,80,160,0.3);
}
#scrollTop.show { opacity: 1; transform: translateY(0); }
#scrollTop:hover { background: #003d8f; }

/* ─── Mobile menu ─── */
#mobileMenu {
  display: none; position: fixed; inset: 0;
  background: rgba(0,47,108,0.97); z-index: 9500;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
#mobileMenu.open { display: flex; }
#mobileMenu a {
  font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: #fff; text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s;
}
#mobileMenu a:hover { color: #93c8ee; }

/* ─── Footer Map ─── */
.footer-map { border-radius: 14px; overflow: hidden; border: 2px solid rgba(255,255,255,0.08); }

/* ─── Empty state ─── */
#emptyState { display: none; }

/* ─── Imagens de capa ─── */
.card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.card-img-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.7);
}

/* ─── Cores de categoria (badges) ─── */
.cat-Fiscal       { background: #dbeafe; color: #1d4ed8; }
.cat-Tributário   { background: #fef3c7; color: #92400e; }
.cat-DP           { background: #dcfce7; color: #166534; }
.cat-Consultivo   { background: #ede9fe; color: #5b21b6; }
.cat-Compliance   { background: #fce7f3; color: #9d174d; }
.cat-Legalização  { background: #ffedd5; color: #9a3412; }
.cat-Contábil     { background: #e0f2fe; color: #0369a1; }

/* ─── Backgrounds de card por categoria ─── */
.card-bg-Fiscal      { background: linear-gradient(135deg, #002f6c, #0050a0); }
.card-bg-Tributário  { background: linear-gradient(135deg, #78350f, #b45309); }
.card-bg-DP          { background: linear-gradient(135deg, #14532d, #15803d); }
.card-bg-Consultivo  { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.card-bg-Compliance  { background: linear-gradient(135deg, #881337, #db2777); }
.card-bg-Legalização { background: linear-gradient(135deg, #7c2d12, #c2410c); }
.card-bg-Contábil    { background: linear-gradient(135deg, #0c4a6e, #0284c7); }
.card-bg-default     { background: linear-gradient(135deg, #002f6c, #1a6bbf); }

/* ─── Section divider ─── */
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, #0050a0, #3a8fd4);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ─── Artigo: Banner ─── */
.article-banner {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.article-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,0.92) 0%, rgba(0,40,100,0.55) 50%, rgba(0,30,80,0.25) 100%);
}
.article-banner-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Artigo: Prosa ─── */
.article-prose {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2c3e50;
}
.article-prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #002f6c;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8f4fd;
}
.article-prose h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #003d8f;
  margin: 2rem 0 0.75rem;
}
.article-prose p { margin-bottom: 1.25rem; }
.article-prose ul, .article-prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-prose li { margin-bottom: 0.5rem; }
.article-prose strong { color: #002f6c; }
.article-prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #0050a0;
  background: #e8f4fd;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #003d8f;
}
.article-prose .highlight-box {
  background: linear-gradient(135deg, #e8f4fd, #c4e0f7);
  border: 1.5px solid #93c8ee;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-prose .highlight-box p { margin: 0; color: #003d8f; font-weight: 500; }

/* ─── Artigo: sidebar cards relacionados ─── */
.related-card {
  transition: all 0.2s;
  border: 1.5px solid rgba(0,80,160,0.09);
}
.related-card:hover {
  transform: translateX(4px);
  border-color: rgba(0,80,160,0.25);
  box-shadow: 0 4px 16px rgba(0,80,160,0.10);
}

/* ─── Artigo: Share buttons ─── */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  transition: all 0.2s; text-decoration: none;
}

/* ─── Artigo: Barra de progresso de leitura ─── */
#readingProgress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #0050a0, #3a8fd4);
  z-index: 10000; transition: width 0.1s;
  width: 0%;
}
