/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos Gerais */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #041424;
  color: #FFFFFF;
  line-height: 1.6;
}

/* Títulos Globais */
h1, h2, h3 {
  color: #FFFFFF;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

/* Links e Botões CTA */
.cta-btn {
  background: linear-gradient(
    to right,
    #ffc300 0%, 
    #ff8c00 25%, 
    #ffc300 50%, 
    #ff8c00 75%, 
    #ffc300 100%
  );
  background-size: 400% auto; /* Aumenta ainda mais o background para a animação */
  color: #041424;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  
  /* Propriedades para a animação de brilho contínua */
  animation: shine-forward 8s infinite linear;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  /* Pausa a animação, e adiciona um brilho mais forte */
  animation-play-state: paused;
  box-shadow: 0 0 25px 5px #ffc300;
  transform: scale(1.05); /* Pequeno zoom no hover para feedback */
}

/* Animação para o efeito de brilho em uma direção */
@keyframes shine-forward {
  to {
    background-position: -200% 50%; /* Move o gradiente para a esquerda indefinidamente */
  }
}

/* Containers Principais de Seção */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: inherit;
}

/* Linha gradiente abaixo do título */
.section-title::after {
  content: '';
  display: block;
  width: 300px; /* Largura da linha */
  height: 3px; /* Espessura da linha */
  background: linear-gradient(
    to right,
    #674514 0%,
    #97691d 15%,
    #a07121 30%,
    #a77d24 45%,
    #bc9c45 50%,
    #cfa543 55%,
    #bc9c45 60%,
    #a77d24 75%,
    #a07121 90%,
    #97691d 95%,
    #674514 100%
  );
  margin: 10px auto 0; /* Centraliza a linha e adiciona um espaço */
}

/* --- HERO Section --- */
.hero {
  background: url('../img/banner2.png') center top / cover no-repeat;
  color: #FFFFFF;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  /* Adicionando a sombra azul escura no pé da headline */
  box-shadow: 0 50px 50px -20px #041424; /* Ajuste os valores conforme necessário */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Novo degradê da direita para a esquerda */
  background-image: linear-gradient(
    to left,
    rgba(4, 20, 36, 0.9),
    rgba(14, 39, 66, 0.8),
    rgba(5, 33, 57, 0.7)
  );
  z-index: 1;

/* Sombras nos cantos (aplicado ao próprio box com inset para ser interno) */
box-shadow: 
    /* Sombra geral nas bordas (efeito de vinheta suave), cor #11111F com opacidade */
    inset 0 0 80px 0px rgba(4, 20, 36, 0.9),
    /* Sombra reforçada para o canto inferior esquerdo */
    inset -100px -100px 150px -50px #041424,
    /* Sombra reforçada para o canto inferior direito */
    inset 100px -100px 150px -50px #041424;
}

.hero-content {
  max-width: 1200px;
  padding: 20px 100px;
  position: relative;
  z-index: 2;
}

/* Novo estilo para a logo */
.hero-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

/* Estilo para a lista no header */
.hero-content ul {
  list-style: none; /* Remove os marcadores de lista padrão */
  margin-left: 0;
  padding-left: 30px;
  margin-bottom: 20px;
}

.hero-content li {
  position: relative;
  padding-left: 35px; /* Adiciona espaço para o marcador personalizado */
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-content li::before {
  content: "✅"; /* Símbolo de "check" */
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Autoridade (Advogado) --- */
.section-advogado {
  background: #041424;
  color: #FFFFFF;
  padding: 80px 0;
}

.advogado-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  max-width: 1600px;
  margin: auto;
}

.advogado-foto {
  flex-shrink: 0;
}

.advogado-foto img {
  width: 520px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.advogado-conteudo {
  flex-grow: 1;
}

.advogado-conteudo p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.advogado-cta-container {
  text-align: center;
  margin-top: 40px; /* Adiciona um espaço acima do botão */
}

/* --- DEPOIMENTOS Section --- */
.section-depoimentos {
  background: #FFFFFF;
  padding: 60px 0;
  color: #333;
}

.conteudo-container-depoimentos {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-depoimentos .section-title {
  color: #111;
  text-align: center;
  margin-bottom: 30px;
}

.carousel-container {
  overflow: hidden;
  white-space: nowrap;
}

.testimonial-grid {
  display: flex;
  gap: 80px;
}

.testimonial-grid.animated {
  /* Animação simplificada para um loop mais fluido */
  animation: scroll 60s linear infinite;
  animation-play-state: running; /* Garante que a animação comece */
}

.testimonial-grid:hover {
  animation-play-state: paused;
}

.testimonial {
  background: #fafafa;
  border-left: 5px solid #0e2742;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 300px;
  white-space: normal;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial p {
  color: #444;
  font-style: italic;
  margin-bottom: 10px;
  text-align: center;
}

.testimonial span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #555;
  text-align: right;
}

.testimonial-stars {
  text-align: center;
  margin-bottom: 10px;
}

/* Animação final para o carrossel */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- SERVIÇOS Section --- */
.section-servicos {
    background-color: #FFFFFF;
    color: #041424;
    padding-bottom: 80px;
}

.card-grid {
  display: grid;
  max-width: 1200px;
  text-align: center;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0 auto; /* Isso centraliza o container */
  padding: 0 20px; /* Adiciona um padding nas laterais para telas menores */
}

.card {
  background: #041424;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;

  /* Flexbox para alinhar o conteúdo */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alinha o conteúdo no topo do card */
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #FFFFFF;
  margin-bottom: 10px;
}

.card p {
  color: #FFFFFF;
  margin: auto; /* Centraliza o parágrafo verticalmente */
}

.servicos-cta-container {
  text-align: center;
  margin-top: 50px; /* Adiciona um espaço acima do botão */
}

/* --- DIFERENCIAIS Section --- */
.section-diferenciais {
  padding: 60px 0;
  color: #ffffff;
}

.conteudo-container-diferenciais {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.card-grid-diferenciais {
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 0 20px;
}

/* Estilo dos Cards de Diferenciais */
.card-diferencial {
  background: #FFFFFF;
  color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;

  /* Flexbox para alinhar o conteúdo */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Alinha o conteúdo no topo do card */
}

.card-diferencial:hover {
  transform: translateY(-5px);
}

.card-diferencial h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #041424;
}

.card-diferencial p {
  font-size: 1rem;
  color: #041424;
  margin: auto;
}

/* --- REFORÇO (Autoridade do Escritório) Section --- */
.section-reforco {
  background: linear-gradient(
      to right,
      #674514 0%,
      #97691d 15%,
      #a07121 30%,
      #a77d24 45%,
      #bc9c45 50%,
      #cfa543 55%,
      #bc9c45 60%,
      #a77d24 75%,
      #a07121 90%,
      #97691d 95%,
      #674514 100%
  );
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.section-reforco::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: url('../img/background-reforco.png') center center/cover no-repeat;
  background-color: rgba(0, 0, 0, 0.1);
  background-blend-mode: multiply;
  border-radius: 15px;
  z-index: 1;
}

.reforco-content {
  color: #041424;
  text-align: center;
  border-radius: 15px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.reforco-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #FFFFFF;
  line-height: 1.2;
}

.reforco-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #FFFFFF;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 60px 20px;
}

.faq-section h2 {
  color: #FFFFFF;
  text-align: center;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1.5px solid #FFFFFF;
  padding: 20px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #0e2742;
}

.faq-question {
  font-weight: bold;
  position: relative;
  padding-right: 30px;
  color: #FFFFFF;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 10px;
  padding-right: 15px;
}

.faq-answer p {
  color: #FFFFFF;
}

/* --- CONTATO Section --- */
.section-contato {
  color: #FFFFFF;
  text-align: center;
  padding: 20px 20px 50px 20px;
}

.section-contato h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.contato-info {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* --- RODAPÉ (Footer) --- */
footer {
  background: #111;
  color: #FFFFFF;
  text-align: center;
  padding: 25px 20px;
  font-size: 0.9rem;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
    text-align: center;
    justify-content: center;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .section-advogado {
    padding: 40px 20px;
  }
  .advogado-container {
    flex-direction: column;
    text-align: center;
  }
  .advogado-foto img {
    width: 250px;
  }
  .advogado-conteudo {
    padding-top: 20px;
  }
  .advogado-conteudo h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }
  .conteudo-container-depoimentos {
    padding: 0 10px;
  }
  .testimonial {
    min-width: 250px;
    padding: 15px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .diferenciais {
    font-size: 1rem;
  }
  .diferenciais li {
    padding: 10px 15px;
  }

  .section-reforco {
    padding: 5px;
    min-height: auto;
  }
  .section-reforco::before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 15px;
  }
  .reforco-content {
    padding: 30px 20px;
    border-radius: 15px;
  }
  .reforco-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .reforco-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  .reforco-content .cta-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .faq-container {
    padding: 0 10px;
  }
  .section-contato h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 15px;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .advogado-foto img {
    width: 200px;
  }

  .testimonial {
    min-width: 200px;
  }
  .card {
    padding: 20px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }

  .reforco-content {
    padding: 25px 15px;
    border-radius: 10px;
  }
  .reforco-content h2 {
    font-size: 1.5rem;
  }

  .cta-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .faq-container {
    padding: 0 5px;
  }
}