:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --primary-color: #fc044c;
  --secondary-color: #c40239;
  --accent-color: #f4f4f4;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button Component */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--primary-color); /* Borda mais fina */
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color); /* Mantém opaco, apenas escurece */
  border-color: var(--secondary-color);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #45290F; /* Borda mais fina */
  color: #45290F;
}

.btn-outline:hover {
  background-color: transparent; /* Fundo não altera no hover */
  border-color: #fc044c;         /* Feedback visual mudando a borda para vermelho */
  color: #fc044c;                /* Texto acompanha o tom da borda */
}

.tag {
  display: inline-block;
  background-color: transparent;
  border: 1px solid #45290F;
  color: #45290F;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin: 1rem 0.5rem 0.5rem 0;
}

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

section {
  padding: 5rem 0;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--accent-color);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
  transition: var(--transition);
}

.social-icon:hover {
  fill: var(--primary-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Featured Section */
.featured {
  background-color: var(--accent-color);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-content h2 {
  font-size: 2rem;
}

.featured-content .subtitle {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.featured-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Seção Sobre */
.about h2, .about p {
  color: #45290F; /* Toda a tipografia da seção definida em castanho */
}

/* Stats Section & Cards style */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Força 2 colunas nativamente */
  gap: 2.5rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.stat-item {
  background-color: transparent; /* Remove o fundo cinza, herda o fundo da página */
  padding: 1.5rem 0.5rem;
  border-top: 4px solid var(--primary-color); /* Linha decorativa superior vermelha */
}

.stat-item h3 {
  font-size: 3.5rem;
  color: #45290F;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: #45290F;
  margin: 0;
  font-weight: 500;
}

/* Layout Responsivo para o Lado a Lado */
@media (min-width: 768px) {
  .about .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem 5rem;
    align-items: center;
  }
  
  .about h2 { 
    grid-column: 1; 
    grid-row: 1; 
  }
  
  .about p:nth-of-type(1) { 
    grid-column: 1; 
    grid-row: 2; 
  }
  
  .about p:nth-of-type(2) { 
    grid-column: 1; 
    grid-row: 3; 
  }
  
  .about .stats-grid { 
    grid-column: 2; 
    grid-row: 1 / span 3; 
    grid-template-columns: repeat(2, 1fr); /* Garante o formato 2x2 do layout do print */
    margin-top: 0;
  }
}

/* Team Section */
.team {
  border-top: 1px solid #e0e0e0;
}

/* Grid da Equipe */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 4rem 2.5rem; /* Aumentado espaçamento vertical e lateral */
  margin-top: 3rem;
}

.team-member img {
  width: 100px;                  /* Tamanho um pouco menor para dar leveza */
  height: 100px;
  border-radius: 50%;            /* Redondo padrão */
  -webkit-border-radius: 50%;    /* Correção mandatória para motores WebKit antigos e Safari */
  will-change: transform;        /* Evita bugs de anti-aliasing e quebra do raio no Safari */
  margin: 0 auto 1.25rem;
  object-fit: cover;
  background-color: var(--accent-color);
  display: block;
}

.team-member h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.team-member p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--accent-color);
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Responsive Breakpoints adicionais */
@media (min-width: 768px) {
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

/* Forçar exatamente 6 pessoas por linha em desktops */
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4.5rem 3rem; /* Máximo espaçamento interno nas linhas da equipe */
  }
}
