:root {
  --primary: #2C345D;
  --primary-dark: #1e2545;
  --secondary: #3b82f6;
  --accent: #10b981;
  --light: #f8fafc;
  --gray: #4a5568;
  --border: #e2e8f0;
  --card-bg: #f8fafc;
  --border-color: #e2e8f0;
  --tip-color: #3b82f6;
  --attention-color: #f59e0b;
  --document-color: #10b981;
}

/* REGRAS GERAIS PARA PREVENIR OVERFLOW */
* {
  box-sizing: border-box;
  max-width: 100%; /* Garante que nada ultrapasse a largura da tela */
}

body {
  overflow-x: hidden; /* Esconde qualquer overflow horizontal */
  word-wrap: break-word; /* Força quebra de palavras longas */
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--primary);
  color: white;
  scroll-behavior: smooth;
  width: 100%;
}

/* PREVENÇÃO DE QUEBRA DE ELEMENTOS */
table, .cards-container, .container, .formulario {
  width: 100% !important;
}

/* TABELAS RESPONSIVAS */
table {
  display: block;
  overflow-x: auto; /* Permite rolagem horizontal em tabelas */
  white-space: nowrap;
}

/* TEXTOS E CONTAINERS */
p, h1, h2, h3, h4, h5, h6, li, td, th, .card-summary {
  overflow-wrap: break-word; /* Quebra palavras longas */
  hyphens: auto; /* Hifenização automática */
}

/* PADDING SEGURO PARA MOBILE */
.section, .header, .footer {
  padding-left: 15px;
  padding-right: 15px;
}

/* ELEMENTOS FLEX SEGUROS */
.container, .header {
  flex-wrap: wrap;
}

a {
  color: white;
  text-decoration: none;
}

.header {
  background: var(--primary);
  display: flex;
  flex-wrap: wrap;  
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);         
}

.menu {
  display: flex;
  gap: 1rem;
}

.menu a {
  transition: color 0.3s;
}

.menu a:hover {
  color: #BFBFBF;
}

.hero {
  text-align: center;
  padding: 3rem 1rem;
  animation: fadeIn 1.5s ease;
}

.hero-nome {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-whatsapp {
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border: none;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s;
  width: 200px;
}

.btn-whatsapp:hover {
  background: #eee;
}

.frase-impacto {
  font-style: italic;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.section {
  padding: 3rem 1rem;
  background-color: white;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

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

.gray {
  background: #f4f4f4;
  color: var(--primary);
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Estilos para a imagem */
.sobre-imagem {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sobre-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para o texto */
.sobre-texto {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.sobre-texto h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.sobre-texto h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color:#1e2545; /* Cor personalizável */
}

.sobre-texto p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Media queries para responsividade */
@media (min-width: 769px) {
    .container {
        flex-direction: row;
        text-align: left;
    }
    
    .sobre-texto h2 {
        text-align: left;
    }
    
    .sobre-texto h2::after {
        left: 0;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .sobre-texto h2 {
        text-align: center;
    }
    
    .sobre-texto h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .sobre-texto p {
        text-align: center;
    }
}

/* ===== CARDS ANTIGOS (ÁREAS DE ATUAÇÃO) ===== */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1000px;
  margin: auto;
}

.cards .card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;
}

.cards .card:hover {
  transform: translateY(-5px);
}

/* ===== CARDS NOVOS (DIREITO PREVIDENCIÁRIO) ===== */
.cards-container {
  column-count: 2;        /* duas colunas */
  column-gap: 2rem;       /* espaçamento entre as colunas */
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .cards-container {
    column-count: 1;      /* no mobile, vira 1 coluna */
    column-gap: 1rem;
    padding-left: .5rem;
    padding-right: .5rem;
  }
}

.cards-container .card {
  display: inline-block;   /* necessário pro column layout */
  width: 100%;  
  margin-bottom: 2rem;     /* espaçamento entre os cards */
  background: var(--light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border);
}

.cards-container .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cards-container .card-header {
  padding: 25px 20px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
}

.cards-container .card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.cards-container .card-icon i {
  font-size: 1.8rem;
  color: white;
}

.cards-container .card-header-content {
  flex: 1;
}

.cards-container .card-header h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.3;
}

.cards-container .card-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 5px;
  cursor: pointer;
}

.cards-container .card-summary {
  padding: 20px;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  flex-grow: 1;
}

.cards-container .card-summary p {
  margin: 0;
  line-height: 1.6;
}

.cards-container .card-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  background-color: white;
  z-index: 0;
}

.cards-container .card-content.active {
  padding: 20px;
  max-height: 10000px; /* Aumentado para evitar corte de conteúdo */
}

.cards-container .read-more-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: left;
  z-index: 10;
}

.cards-container .read-more-btn:hover {
  background-color: var(--primary-dark);
}

.cards-container .read-more-btn i {
  transition: transform 0.3s ease;
}

.cards-container .read-more-btn.active i {
  transform: rotate(180deg);
}

/* ===== CAIXAS DE DESTAQUE ===== */
.tip-box {
  background-color: #eff6ff;
  border-left: 4px solid var(--tip-color);
  padding: 1rem;
  margin: 1.2rem 0;
  border-radius: 0 4px 4px 0;
}

.attention-box {
  background-color: #fffbeb;
  border-left: 4px solid var(--attention-color);
  padding: 1rem;
  margin: 1.2rem 0;
  border-radius: 0 4px 4px 0;
}

.document-box {
  background-color: #f0fdf4;
  border-left: 4px solid var(--document-color);
  padding: 1rem;
  margin: 1.2rem 0;
  border-radius: 0 4px 4px 0;
}

/* ===== TABELAS ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table, th, td {
  border: 1px solid #cbd5e1;
}

th, td {
  padding: 0.85rem;
  text-align: left;
}

th {
  background-color: #e2e8f0;
  font-weight: 600;
  color: var(--primary);
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

/* ===== FORMULÁRIO UNIFICADO ===== */
.formulario {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario input, 
.formulario textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
}

.formulario input:focus, 
.formulario textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 52, 93, 0.1);
}

.formulario button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.formulario button:hover {
  background-color: var(--primary-dark);
}

.sucesso {
  color: var(--accent);
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--primary-dark);
  color: white;
  font-size: 0.95rem;
}

.botao-ler-mais {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.botao-ler-mais:hover {
  background-color: #0056b3;
}

.logo-img {
  height: 30px;
  width: auto;
}

img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html {
  scroll-behavior: smooth;
}

.body {
  font-family: 'Montserrat', sans-serif;
}

.cursive {
  font-family: 'Great Vibes', cursive;
}

.janela-contato {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  transition: all 0.3s ease;
  z-index: 9999;
}

.btn-toggle {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-toggle:hover {
  background: var(--primary-dark);
}

.form-contato-escondido {
  display: none;
  background: white;
  color: var(--primary);
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  flex-direction: column;
  gap: 0.5rem;
}

.form-contato-escondido input,
.form-contato-escondido textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
}

.form-contato-escondido button {
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-contato-escondido button:hover {
  background: var(--primary-dark);
}

/* ===== SEÇÃO CONTATO ATUALIZADA ===== */
.contato-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contato-desc {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--primary);
}

.contato-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.contato-link {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contato-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contato-icon {
  font-size: 1.8rem;
  margin-right: 15px;
}

.contato-text {
  display: flex;
  flex-direction: column;
  color: black;
}

.contato-text strong {
  font-size: 1.1rem;
}

.contato-text small {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 3px;
}

/* NOVO: Botões de contato com fundo branco e texto preto */
.contato-link-branco {
  background-color: white !important;
  color: black !important;
  border: 1px solid #ddd;
}

.contato-link-branco:hover {
  background-color: #f8f8f8 !important;
}

.contato-link-branco .contato-text {
  color: black !important;
}

/* Responsividade para Contato */
@media (max-width: 600px) {
  .contato-links {
    grid-template-columns: 1fr;
  }
  
  .contato-link {
    padding: 12px;
  }
}

.fale-conosco-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.fale-conosco-btn {
  background-color: #1F2937; /* azul escuro */
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}
.fale-conosco-btn:hover {
  background-color: #111827;
}

.fale-conosco-opcoes {
  display: none;
  margin-top: 8px;
  background: #F9FAFB; /* quase branco */
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fale-conosco-link {
  display: block;
  padding: 10px 14px;
  color: #1F2937;
  text-decoration: none;
  border-bottom: 1px solid #E5E7EB;
}
.fale-conosco-link:last-child {
  border-bottom: none;
}
.fale-conosco-link:hover {
  background-color: #E5E7EB;
}

/* MELHORIAS PARA OS CARDS */
.card-content {
  overflow: visible !important;/* Garante que todo o conteúdo seja visível */
}

.card-content ul, .card-content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.card-content li {
  margin-bottom: 0.3rem;
}

/* ESTILOS ESPECÍFICOS PARA APOSENTADORIA POR TEMPO DE CONTRIBUIÇÃO E ESPECIAL */
.transicao-item {
  background-color: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin-bottom: 1.5rem;
}

.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

.profissoes-lista {
  column-count: 1;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .cards-container .card-header {
    padding: 20px 15px;
  }
  
  .cards-container .card-icon {
    width: 45px;
    height: 45px;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
  
  .header {
    flex-direction: column;
    align-items: center;
  }
  
  .menu {
    margin-top: 1rem;
    justify-content: center;
  }
  
  .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-nome {
    font-size: 2rem;
  }
  
  .btn-whatsapp {
    padding: 0.75rem 1.5rem;
  }
  
  .texto h2 {
    text-align: center;
  }
  
  .texto h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Ajustes para tabelas em mobile */
  table {
    font-size: 0.9rem;
  }
  
  th, td {
    padding: 0.5rem;
  }
  
  .profissoes-lista {
    column-count: 1;
  }
}

@media (max-width: 480px) {
  .cards-container .card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .cards-container .card-icon {
    margin: 0 auto 15px;
  }
  
  .cards-container .card-tag {
    margin-top: 8px;
  }

  /* AJUSTES ADICIONAIS PARA MOBILE */
  .hero-nome {
    font-size: 1.8rem;
  }
  
  .formulario {
    padding: 1.5rem;
  }
  
  .janela-contato {
    width: 90%;
    left: 5%;
    right: auto;
  }
  
  .menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn-whatsapp {
    width: 100%;
    max-width: 250px;
  }
  
  /* Ajustes adicionais para conteúdo dos cards */
  .card-content {
    padding: 0 15px !important;
  }
  
  .card-content.active {
    padding: 15px !important;
  }
  
  .transicao-item {
    padding: 1rem;
  }
  
  .list-disc {
    padding-left: 1.2rem;
  }
}

@media (min-width: 769px) {
  .profissoes-lista {
    column-count: 2;
  }
}