/* Seu arquivo: css/empresas.css */

/* Seção Nossas Soluções */
.solucoes-section {
  /* Caminho da sua imagem de fundo */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Efeito Parallax */
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  /* Texto dos títulos da seção branco para contraste */
  position: relative;
  /* ESSENCIAL para posicionar o pseudo-elemento ::before e o container */
  overflow: hidden;
  /* Garante que nada vaze para fora da seção */
}

.solucoes-section.consultoria-juridica {
  background-image: url('../images/consultoria-juridica.jpg');
}

.solucoes-section.corretora-seguros {
  background-image: url('../images/corretora-seguros.jpg');
}

.solucoes-section.gestao-contabil {
  background-image: url('../images/gestao-contabil.jpg');
}

.solucoes-section.gestao-imobiliaria {
  background-image: url('../images/gestao_imobiliaria.jpg');
}

.solucoes-section.locacao-imoveis-temporada {
  background-image: url('../images/locacao-imoveis.jpg');
}

.service-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  /* Opcional, para arredondar as bordas da imagem */
  margin-bottom: 10px;
  /* Espaço entre a imagem e o título */
}

/* Estilos para os cards de Imóveis p/ Temporada */
.imovel-card {
  background-color: #fff;
  /* O fundo branco pode ser visto nas bordas */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* Importante para o arredondamento das bordas da imagem */
  width: 100%;
  height: 280px;
  /* Altura fixa para os cards, ajuste conforme necessário */
  position: relative;
  /* Para posicionar elementos internos */
  cursor: pointer;
  /* Indica que é clicável */
  transition: transform 0.3s ease-in-out;
}

.imovel-card:hover {
  transform: translateY(-5px);
  /* Efeito sutil ao passar o mouse */
}

.imovel-image {
  width: 100%;
  height: 100%;
  /* A imagem preenche todo o card */
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  /* Arredonda todos os cantos da imagem */
}

.imovel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Garante que a imagem cubra a área sem distorcer */
  display: block;
}

.imovel-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  /* Altura do gradiente, ajuste para cobrir o texto */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: 12px;
  /* Mantém o arredondamento */
}

.imovel-arrow-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  /* Fundo semi-transparente para o ícone */
  border-radius: 50%;
  padding: 8px;
  /* Aumentado para um ícone maior */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.imovel-arrow-icon svg {
  width: 24px;
  /* Aumentado para um ícone maior */
  height: 24px;
  transform: rotate(-45deg);
  /* Rotaciona a seta para cima e para a direita */
}

.imovel-info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
  z-index: 10;
}

.imovel-local {
  font-size: 1.3em;
  /* Título maior */
  margin: 0;
  font-weight: bold;
  display: block;
  line-height: 1.2;
  /* Ajuste para melhor leitura */
}

.imovel-capacidade {
  font-size: 0.95em;
  /* Texto de capacidade */
  margin: 5px 0 0;
  opacity: 0.9;
}

/* Overlay azul primário com opacidade */
.solucoes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 56, 125, 0.75);
  /* Overlay azul primário com opacidade ligeiramente maior */
  z-index: 1;
  /* Acima da imagem de fundo */
}

/* Container do título e subtítulo e dos cards */
/* Ele precisa de um z-index maior para ficar acima do overlay */
.solucoes-section>.container {
  /* Ajustado para ".solucoes-section > .container" para ser mais específico */
  position: relative;
  /* ESSENCIAL para que o z-index funcione */
  z-index: 2;
  /* Acima do overlay e da imagem de fundo */
  padding: 0 20px;
  margin-bottom: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.solucoes-section h2 {
  color: var(--white);
  /* Cor do texto do título da seção */
}

.solucoes-section .section-subtitle {
  color: var(--white);
  /* Cor do texto do subtítulo da seção */
}

/* --- ESTILOS PARA OS CARDS DE SOLUÇÃO --- */

.service-card {
  position: relative;
  /* Necessário para posicionar o pseudo-elemento */
  background-color: var(--white);
  /* Fundo do card é o azul principal */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Uma borda sutil branca/transparente */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  /* Sombra mais pronunciada sobre o fundo azul */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 100%;
  overflow: hidden;
  /* Importante para esconder a parte inicial do pseudo-elemento */
}

/* Efeito de borda dourada elegante com pseudo-elemento */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  /* Altura da barra dourada */
  background: linear-gradient(to right, var(--gold-accent), var(--gold-accent-light));
  /* Gradiente dourado */
  transform: translateY(-100%);
  /* Começa fora do card, acima */
  transition: transform 0.3s ease-out;
  /* Transição suave para o efeito */
  z-index: 0;
  /* Garante que fique atrás do conteúdo, mas à frente do fundo do card */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  /* Sombra mais forte no hover */
  border-color: var(--gold-accent);
  /* Borda fica dourada no hover para um destaque nítido */
}

.service-card:hover::before {
  transform: translateY(0);
  /* Desliza a barra dourada para a posição inicial */
}

/* Título do Card */
.service-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  /* Título branco para contraste com o fundo azul */
  margin-bottom: 0;
  font-weight: 700;
  position: relative;
  /* Para garantir que o título fique acima do pseudo-elemento */
  z-index: 1;
}

/* --- Estilos para o Modal (mantidos, mas revise as cores se necessário) --- */
.modal-content {
  background-color: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.modal-title {
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 1.8rem;
}

.modal-body {
  padding: 1.5rem;
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

.modal-body p {
  margin-bottom: 25px;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

/* --- Estilo do Botão WhatsApp (mantido) --- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background-color: #25D366;
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp i {
  margin-right: 10px;
  font-size: 1.3em;
}

.btn-whatsapp:hover {
  background-color: #1DA851;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

/* --- Media Queries ajustadas --- */

@media (max-width: 1024px) {
  .service-card {
    padding: 25px;
    min-height: 160px;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-body {
    font-size: 1rem;
  }

  .btn-whatsapp {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .solucoes-section>.container {
    /* Ajustado para ".solucoes-section > .container" */
    margin-bottom: 40px;
  }

  .service-card {
    padding: 20px;
    min-height: 140px;
  }

  .service-card h3 {
    font-size: 1.4rem;
  }

  .modal-dialog {
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-body {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .btn-whatsapp {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .solucoes-section>.container {
    /* Ajustado para ".solucoes-section > .container" */
    margin-bottom: 30px;
  }

  .service-card {
    padding: 15px;
    min-height: 120px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-body {
    font-size: 0.9em;
  }

  .btn-whatsapp {
    font-size: 0.9em;
    padding: 8px 18px;
  }
}

/* Estilos para os botões do modal */
.btn-airbnb {
  background-color: #FF5A5F;
  /* Cor principal do Airbnb */
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  border: none;
}

.btn-airbnb:hover {
  background-color: #E04D51;
  /* Tom mais escuro no hover */
  color: white;
  /* Garante que a cor do texto permaneça branca no hover */
}

.btn-airbnb i {
  font-size: 1.2em;
  /* Tamanho do ícone */
}

.btn-whatsapp-modal {
  background-color: #25D366;
  /* Cor do WhatsApp */
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  border: none;
}

.btn-whatsapp-modal:hover {
  background-color: #1DA851;
  /* Tom mais escuro no hover */
  color: white;
  /* Garante que a cor do texto permaneça branca no hover */
}

.btn-whatsapp-modal i {
  font-size: 1.2em;
  /* Tamanho do ícone */
}

/* Ajustes para o footer do modal */
.modal-footer {
  border-top: none;
  /* Remove a linha do topo do footer */
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Responsividade para botões no modal */
@media (max-width: 576px) {

  .modal-footer .btn-airbnb,
  .modal-footer .btn-whatsapp-modal {
    width: 100%;
    /* Botões ocupam 100% da largura em telas pequenas */
    text-align: center;
    justify-content: center;
    /* Centraliza o conteúdo dos botões */
  }
}

/*  */