/* Estilização da Navbar */
.nbar {
  /*background: url("./assets/img/fundo.jpg") no-repeat center center;
  background-size: cover;*/
  position: relative;
  padding: 1px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 80px;
  max-height: 500px;
}

/* Logo */
.logo {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

/* Links da Navbar */
.nav-link {
  color: #fff !important;
  font-weight: bold;
  margin: 0 10px;
  transition: all 0.3s ease; /* Alterado para incluir todas as propriedades */
}

.nav-link:hover {
  color: white !important; /* Dourado no hover */
  transition: all 0.3s ease;
}

/* Ícones */
.bi {
  margin-right: 5px;
}

/* Botão dourado estilizado */
.gray {
/* background: linear-gradient(135deg, #7d9fa1, #395354, #7d9fa1);*/
    background: #7d9fa1;

  color: white;
  border: 2px;
  border-radius: 8px;
  padding: 2px 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.6s ease;
}

.gray:hover {
     /*background: linear-gradient(135deg,  #395354, #7d9fa1, #395354);*/

 /* background: linear-gradient(45deg, rgb(106, 90, 40), rgb(127, 109, 8), rgb(210, 169, 31));
  border-color: rgb(255, 255, 255);*/
  background: #395354 ;
  
  transform: scale(1.05);
}

/* Ajuste para centralizar itens */
.bar-nav {
  display: flex;
  align-items: center;
}

/* Estilo para os itens da navbar */
.nav-item {
  border-radius: 10px;
  transition: background 0.3s ease;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.1); /* Leve destaque no hover */
}

.hr-gradient {
  display: block; /* Garante que o <hr> ocupe toda a linha */
  height: 3px; /* Espessura da linha */
  border: none;
  /*background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(136, 136, 136, 0.8) 50%, rgba(0, 0, 0, 0) 100%);*/
  margin: 10px auto; /* Adiciona margem para espaçamento */
  width: 80%; /* Ajuste a largura conforme necessário */
}

/* Criando uma camada semi-transparente sobre a imagem */
.vbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: red;
  /*background: linear-gradient(45deg, rgba(243, 243, 243, 0.7), rgba(90, 90, 90, 0.7), rgba(22, 22, 22, 0.7));*/
  /*rgba(137, 137, 137, 0.7); Ajuste a transparência aqui */
  z-index: 1;
}

/* Ajustando o conteúdo para ficar acima da camada */
.vbar .container {
  position: relative;
  z-index: 2;
}
.vbar-toggler-icon {
  filter: invert(100%); /* Torna o ícone branco */
}
.vbar-toggler {
  border: 1px solid rgb(255, 255, 255); /* Borda dourada */
}

.carousel-item {
  transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out;
  opacity: 0;
}

.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}

/* Ajuste do texto */
.carousel-item .carousel-caption h1 span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  opacity: 1; /* Garante que o texto não tenha animações */
  animation: none; /* Remove qualquer animação aplicada */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 25px;
  height: 25px;
  background-size: 100%;
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-item.active {
  opacity: 1;
  animation: fadeZoom 3s ease-in-out;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  font-size: 2rem;
  font-weight: bold;
}

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-size: 32px;
  font-weight: bold;
  text-align: left;
  width: 100%;
  white-space: pre-line;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .text-container {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .text-container {
    font-size: 14px;
  }
}

.dourada {
  color: #ffd700; /* Alterado de red para dourado para manter consistência */
}

.carousel-inner {
  width: 100%;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  text-align: center;
}

.typed-text {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #3f3c70;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .typed-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 1200px) {
  .typed-text {
    font-size: 2rem;
  }
  .carousel-item img {
    height: 500px;
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 10px 0;
  }

  .logo {
    width: 140px;
  }

  .nav-link {
    text-align: center;
    padding: 10px;
  }

  .btn-gold {
    width: 100%;
    margin: 5px 0;
  }

  .typed-text {
    font-size: 1.8rem;
  }

  .carousel-item img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    /*background: rgba(0, 0, 0, 0.8);*/
    padding: 15px;
    border-radius: 8px;
  }

  .typed-text {
    font-size: 1.5rem;
  }

  .carousel-item img {
    height: 350px;
  }

  /* Ajustes para seção Sobre */
  .sobreNos img {
    max-width: 100%;
    margin-top: 20px;
  }

  /* Ajustes para cards de serviços */
  .service-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .logo {
    width: 120px;
  }

  .typed-text {
    font-size: 1.2rem;
  }

  .carousel-item img {
    height: 300px;
  }

  /* Ajustes para formulário de contato */
  .contact-form-wrapper {
    padding: 15px;
  }

  .form-floating {
    margin-bottom: 15px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .sobre-texto p {
    font-size: 0.9rem;
  }
}

/* Ajustes gerais de acessibilidade */
.nav-link:focus,
.btn-gold:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none;
  }

  .logo,
  .nav-link,
  .btn-gold {
    transition: none;
  }
}

/* Estilização da seção de serviços */
.servicos-section {
  background: url("./assets/img/FundoConds.webp") no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 60px 0;
}

.servicos-section h2 {
  color: #fff;
}

/* Overlay escuro para melhorar a legibilidade */
.servicos-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

/* Ajuste para garantir que os cards fiquem acima do overlay */
.servicos-section .container {
  position: relative;
  z-index: 2;
}

/* Animações e efeitos para a seção de serviços */

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #ffd700, #b8860b, #daa520, #ffd700);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card::after {
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hover-effect:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.icon-pulse {
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

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

/* Adicione estas regras para garantir o alinhamento central */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

section {
  width: 100%;
  margin: 0 auto;
}

/* Ajuste específico para o carrossel */
#heroCarousel {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-inner {
  width: 100%;
  margin: 0 auto;
}

/* Seção de Atribuições */
.atribuicoes-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(45deg, #7d9fa1, #395354);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
  color: #395354;
  margin-bottom: 15px;
  font-weight: bold;
}

.timeline-content ul {
  list-style: none;
  padding-left: 0;
}

.timeline-content ul li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.timeline-content ul li::before {
  content: "✓";
  color: #7d9fa1;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }
}

@media screen and (max-width: 576px) {
  .timeline-content {
    padding: 15px;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .timeline-content ul li {
    font-size: 0.9rem;
  }
}
