/* Estilos para o site de Análise dos Desafios Tributários do Brasil */

/* Variáveis CSS */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #003d7a;
  text-decoration: underline;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-bg);
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
}

h2 {
  font-size: 2rem;
  margin-top: 1.8rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

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

.site-title {
  font-size: 1.5rem;
  margin: 0;
}

/* Navegação */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Menu mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  background-color: var(--dark-bg);
  color: white;
  padding: 4rem 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Seções */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Estatísticas */
.stat-box {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--secondary-color);
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--light-bg);
  font-weight: 700;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Citações */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--secondary-color);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #003d7a;
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: #adb5bd;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  list-style: none;
  margin: 1rem 0;
  padding: 0.5rem 0;
  background-color: var(--light-bg);
  border-radius: 4px;
}

.breadcrumbs li {
  margin-right: 0.5rem;
}

.breadcrumbs li:after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--secondary-color);
}

.breadcrumbs li:last-child:after {
  content: "";
}

/* Utilitários */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

/* Estilos para gráficos */
.chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 2rem;
}

/* Estilos para referências */
.reference-list {
  list-style-type: decimal;
  padding-left: 1.5rem;
}

.reference-list li {
  margin-bottom: 1rem;
}

/* Estilos para imagens */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.rounded {
  border-radius: 5px;
}

/* Timeline para reforma tributária */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -12px;
}

.timeline-date {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
    width: 100%;
  }
  
  header {
    padding: 10px 0;
  }
  
  nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 8px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .site-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .stat-box {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .chart-container {
    height: 300px;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  th, td {
    padding: 6px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .breadcrumbs {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  /* Timeline responsivo */
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 18px;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 18px;
  }
}

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 90%;
  }
  
  .col {
    width: 48%;
  }
  
  .stat-box {
    width: 48%;
  }
  
  .chart-container {
    height: 400px;
  }
  
  .footer-section {
    width: 30%;
  }
}

/* Estilos para telas grandes */
@media (min-width: 1025px) {
  .container {
    width: 80%;
    max-width: 1200px;
  }
  
  .chart-container {
    height: 500px;
  }
}

/* Estilos para impressão */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background-color: #fff;
  }
  
  header, footer, .btn, #back-to-top {
    display: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  p, blockquote, table {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  @page {
    margin: 2cm;
  }
}
