/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1e3a8a;
  --primary-blue-dark: #1e40af;
  --secondary-yellow: #fbbf24;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

/* Header e Navegação */
header {
  background-color: var(--primary-blue);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  color: white;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background-color: var(--bg-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-blue);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Section */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  text-align: center;
}

/* Blog Cards */
.blog-card {
  background-color: var(--bg-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.category-essencial {
  background-color: #dbeafe;
  color: #1e40af;
}

.category-noticia {
  background-color: #fef3c7;
  color: #92400e;
}

.category-alerta {
  background-color: #fee2e2;
  color: #991b1b;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  background-color: var(--bg-light);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  background-color: #1f2937;
  color: white;
  padding: 3rem 1rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Profile Card */
.profile-card {
  background-color: var(--bg-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.profile-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.profile-credential {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Box */
.content-box {
  background-color: var(--bg-white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 2rem auto;
}

.content-box h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  text-align: center;
}

.content-box h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.content-box h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.content-box p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-box ul, .content-box ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-box li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-box a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.content-box a:hover {
  color: var(--primary-blue-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
}


/* Estilos da Calculadora Reforma */
.calculadora-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.calculadora-tabs button {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
.calculadora-tabs button.active {
  color: var(--primary-blue);
  border-bottom: 3px solid var(--primary-blue);
}
.calculadora-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .calculadora-content {
    grid-template-columns: 1fr;
  }
}
.dados-apuracao {
  padding: 1rem;
  border-right: 1px solid var(--border-color);
}
@media (max-width: 768px) {
  .dados-apuracao {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}
.dados-apuracao h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.input-group {
  margin-bottom: 1rem;
}
.input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.input-group input[type="number"], .input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.input-group .input-label {
  font-weight: 600;
  color: var(--text-primary);
}
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.checkbox-group input {
  margin-right: 0.5rem;
}
.resultado-calculadora {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}
.resultado-calculadora .placeholder-icon {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 1rem;
}
.resultado-calculadora h4 {
  color: var(--text-secondary);
  font-weight: 400;
}
.btn-calcular-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.btn-calcular-group .btn-primary {
  width: 100%;
}
.btn-limpar {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-limpar:hover {
  text-decoration: underline;
}
/* Fim Estilos da Calculadora Reforma */
.calculadora-container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}
.calculadora-container h2 {
  color: #002855;
  border-bottom: 2px solid #002855;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}
.form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}
.btn-calcular {
  background-color: #002855;
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background-color 0.3s;
  width: 100%;
}
.btn-calcular:hover {
  background-color: #001a38;
}

/* Estilos do Resultado */
#resultado-simulacao {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}
.resultado-titulo {
  text-align: center;
  color: #002855;
  margin-bottom: 1rem;
}
.tabela-comparacao {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.tabela-comparacao table {
  width: 100%;
  border-collapse: collapse;
}
.tabela-comparacao th, .tabela-comparacao td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}
.tabela-comparacao th {
  background-color: #002855;
  color: white;
}
.resumo-comparacao {
  padding: 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}
.resultado-positivo {
  background-color: #d1fae5; /* Verde claro */
  color: #065f46; /* Verde escuro */
  border: 1px solid #34d399;
}
.resultado-negativo {
  background-color: #fee2e2; /* Vermelho claro */
  color: #991b1b; /* Vermelho escuro */
  border: 1px solid #f87171;
}
.resultado-neutro {
  background-color: #fef3c7; /* Amarelo claro */
  color: #92400e; /* Amarelo escuro */
  border: 1px solid #fbbf24;
}
.mensagem-final {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.aviso-simulacao {
  font-size: 0.8rem;
  color: #666;
  margin-top: 1rem;
  text-align: center;
}
/* Fim Estilos da Calculadora Reforma */
Reforma */


/* ========================================
   ESTILOS DA CALCULADORA DA REFORMA TRIBUTÁRIA
   ======================================== */

/* Abas de Regime Tributário */
.calculadora-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.calculadora-tabs button {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculadora-tabs button:hover {
  color: #1e3a8a;
  background-color: #f9fafb;
}

.calculadora-tabs button.active {
  color: #1e3a8a;
  border-bottom-color: #1e3a8a;
  background-color: #f9fafb;
}

/* Layout da Calculadora */
.calculadora-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .calculadora-content {
    grid-template-columns: 1fr;
  }
}

/* Dados da Apuração */
.dados-apuracao {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dados-apuracao h3 {
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Campos de Entrada */
.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Botões */
.btn-calcular-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1e3a8a;
  color: white;
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-limpar {
  background-color: #f3f4f6;
  color: #6b7280;
  padding: 0.875rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-limpar:hover {
  background-color: #e5e7eb;
  color: #1f2937;
}

/* Resultado da Calculadora */
.resultado-calculadora {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  min-height: 400px;
}

.placeholder-resultado {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: #6b7280;
}

.placeholder-icon {
  margin-bottom: 1rem;
}

/* Cards de Resultado */
.resultado-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-resultado {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
}

.card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card-header .subtitulo {
  font-size: 0.9rem;
  opacity: 0.9;
}

.card-atual .card-header {
  background: linear-gradient(135deg, #002855 0%, #1e3a8a 100%);
}

.card-reforma.card-negativo .card-header {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.card-reforma.card-positivo .card-header {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.card-body {
  padding: 1.5rem;
  background: white;
}

.valor-destaque {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.valor-destaque .label {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 600;
}

.valor-destaque .valor {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e3a8a;
}

.impacto {
  text-align: center;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.impacto-negativo {
  background-color: #fee2e2;
  color: #dc2626;
}

.impacto-positivo {
  background-color: #d1fae5;
  color: #059669;
}

.info-fase {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Detalhamento de Tributos */
.detalhamento {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.item-tributo {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #f3f4f6;
}

.item-tributo:last-child {
  border-bottom: none;
}

.item-tributo.destaque-novo {
  background-color: #dbeafe;
  padding: 0.75rem;
  margin: 0.25rem 0;
  border-radius: 4px;
  font-weight: 600;
  color: #1e40af;
}

.item-tributo.excluido {
  color: #9ca3af;
  text-decoration: line-through;
  opacity: 0.6;
}

.detalhamento-extra {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e5e7eb;
}

.detalhamento-extra h4 {
  font-size: 1rem;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
}

/* Nota sobre a Reforma */
.nota-reforma {
  background: #eff6ff;
  border-left: 4px solid #1e3a8a;
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 1.5rem;
}

.nota-reforma h4 {
  color: #1e3a8a;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.nota-reforma p {
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
  .calculadora-tabs {
    flex-direction: column;
  }
  
  .calculadora-tabs button {
    border-bottom: 1px solid #e5e7eb;
    border-left: 3px solid transparent;
  }
  
  .calculadora-tabs button.active {
    border-left-color: #1e3a8a;
    border-bottom-color: #e5e7eb;
  }
  
  .valor-destaque {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .dados-apuracao,
  .resultado-calculadora {
    padding: 1rem;
  }
.content-box a.btn-primary {
  color: #ffffff !important;
  text-decoration: none;
  }
}

/* =========================================
   FORÇA BOTÕES DENTRO DOS ARTIGOS (CONTENT-BOX)
   Corrige cor, fundo e comportamento
========================================= */

.content-box a.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

/* Botão azul */
.content-box a.btn-primary {
  background-color: #1e3a8a !important;
  color: #ffffff !important;
  border: none !important;
}

.content-box a.btn-primary:hover {
  background-color: #1e40af !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Botão secundário */
.content-box a.btn-secondary {
  background-color: #e5e7eb !important;
  color: #111827 !important;
  border: none !important;
}

.content-box a.btn-secondary:hover {
  background-color: #d1d5db !important;
}

