@import url("./base.css");

/* ------------------- CONTEÚDO PRINCIPAL (Simulação da imagem) ------------------- */
.hero-section {
  background: url("/src/Melhores-escritorios-de-advocacia.jpg") no-repeat center
    center/cover;
  color: var(--branco);
  padding: 100px 20px 80px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: 30px;
  font-family: var(--font04);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 115%;
}

.hero-section p {
  font-size: 18px;
  font-family: var(--font04);
  font-style: italic;
  font-weight: 100;
  line-height: 175%;
  margin-bottom: 30px;
}

.areas-atuacao {
  color: var(--azul-escuro);
  text-align: center;
}

.areas-atuacao h2 {
  margin: 5rem 0;
}

/* CARROSSEL AREAS DE ATUAÇAO */
/* ------------------- ESTRUTURA DO CARROSSEL ------------------- */
.carousel-container {
  /* Limita a visão a apenas um item */
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding-bottom: 4rem;
  max-width: 300px; /* Ajusta a largura máxima do container do card */
}

.carousel-wrapper {
  /* Usa flexbox para colocar todos os itens lado a lado */
  display: flex;
  /* Adiciona transição para a animação de deslizar */
  transition: transform 0.4s ease-in-out;

  /* Nota: A largura será definida pelo JS para (6 x 100%) = 600% */
}

.carousel-item {
  /* Importante: Cada item ocupa 100% da largura do .carousel-container */
  flex: 0 0 100%;
}

/* ------------------- CARD DE ÁREA ------------------- */
.area-card {
  /* O "quadrado" com a borda */
  border: 1px solid var(--azul-escuro);
  padding: 30px;
  height: 200px; /* Ajuste a altura conforme necessário */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px;
  background-color: transparent;
}

.area-icon {
  width: 80px; /* Tamanho do ícone */
  height: 80px;
  margin-bottom: 2rem;
}

.area-name {
  font-size: 24px;
  color: var(--azul-escuro);
  font-weight: 400;
  font-family: var(--font04);
  text-align: center;
}

/* ------------------- PONTOS DE NAVEGAÇÃO (DOTS) ------------------- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px; /* Espaço entre os pontos */
  margin: 4rem 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--azul-escuro); /* Borda para pontos brancos */
}

.dot.active {
  /* Cor do ponto ativo (Preenchido em cor escura) */
  background-color: var(--azul-escuro);
  opacity: 1;
}

/* ------------------- BOTÃO ------------------- */
.btn-saiba-mais {
  padding: 12px 40px;
  border: 1px solid var(--azul-escuro);
  color: var(--azul-escuro);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s;
  font-weight: 500;
  font-family: var(--font04);
  font-size: 20px;
  background-color: transparent;
}

.btn-saiba-mais:hover {
  background-color: var(--azul);
  color: var(--bege);
  border: 1px solid var(--bege);
}

.btn-saiba-mais-branco {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 40px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background-color 0.3s, color 0.3s;

  font-size: 20px;
  font-family: var(--font04);
  font-weight: 400;
}

.btn-saiba-mais-branco:hover {
  background-color: var(--azul);
  color: var(--bege);
  border: 1px solid var(--bege);
}

/* Sobre Nós */

.sobre-nos-home {
  text-align: center;
  background-color: var(--azul-escuro);
  border-top: solid 4px var(--bege);
  padding: 5rem 2rem;
  color: #fff;
}

.sobre-nos-home h2 {
  margin-bottom: 4rem;
}

.sobre-nos-home p {
  font-size: 18px;
  font-family: var(--font04);
  font-style: italic;
  line-height: 32px;
  font-weight: 400;

  margin: 2rem 0;
}

.sobre-nos-home p:last-of-type {
  margin-bottom: 5rem;
}

/* Nossa Equipe */

.equipe-home {
  color: var(--azul-escuro);
  text-align: center;
  padding: 5rem 2rem;
  margin-bottom: 2rem;
}

.equipe-home h2 {
  margin-bottom: 4rem;
}
.equipe div {
  margin-bottom: 4rem;
}

.equipe div:last-of-type {
  margin-bottom: 8rem;
}

.equipe img {
  width: 250px;
  height: auto;
}

.equipe h3 {
  font-family: var(--font02);
  font-size: 22px;
  padding: 0.75rem 0;
}

.equipe p {
  font-family: var(--font04);
  font-size: 22px;
}

/* Por que nos Escolher? */

.por-que-escolher {
  background-color: var(--azul);
  border-top: 4px solid var(--bege);
  color: #fff;
  padding: 4rem 3rem;
  text-align: center;
}

.por-que-escolher h2 {
  margin-bottom: 4rem;
  padding: 0 2rem;
  line-height: 130%;
}

.por-que-escolher p {
  font-size: 18px;
  font-style: italic;
  font-family: var(--font04);
  line-height: 175%;
  margin-bottom: 3rem;
}

.por-que-escolher p:last-of-type {
  margin-bottom: 4rem;
}

@media (min-width: 425px) {
  .hero-section h1 {
    font-size: 35px;
  }

  .btn-saiba-mais-branco,
  .btn-saiba-mais {
    padding: 12px 40px;

    font-size: 22px;
  }
  .font01 {
    font-size: 30px;
  }

  .hero-section p,
  .sobre-nos-home p,
  .por-que-escolher p {
    font-size: 22px;
  }
}

@media (min-width: 768px) {
  .carousel-container {
    max-width: 900px; /* 3 x 300px (cards) + 2 x ênfase no espaçamento */
    margin: 0 auto;
  }

  .carousel-item {
    flex: 0 0 calc(100% / 3);

    padding: 0 10px;
    box-sizing: border-box;
  }

  .area-card {
    margin: 10px 0;
  }

  .equipe {
    justify-content: space-around;
    display: flex;
    flex-wrap: wrap;
  }
}
