:root {
  --nav-h: 90px;
  --cor-primaria: #ffffff;   /* Azul marinho */
  --cor-secundaria: #af0b0b; /* Vermelho escuro */
  --cor-fundo: #050505;      /* Cinza claro */
  --cor-texto: #2d2d2d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: var(--cor-texto);
  margin: 0;
}


/* ---------------- NAVBAR ---------------- */
.navbar {
  background-color: var(--cor-primaria);
  border-bottom: 2px solid var(--cor-secundaria);
}

.navbar-brand img {
  height: 90px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #2c2c2c !important;
  transition: color 0.3s ease;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--cor-secundaria) !important;
  font-weight: bold;
}

/* ---------------- HERO ---------------- */

/* HERO CORRIGIDO */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;

  background: url("imagemdefundo.png") center center/cover no-repeat;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  margin: 0;
  overflow: hidden;

  /* 🔥 Correção definitiva Safari */
  transform: translateZ(0);
  backface-visibility: hidden;
}


/* Escurecimento */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

/* Conteúdo do hero */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* Título */
.hero-title {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

/* MOBILE – remove o efeito FIXED para evitar bugs no iOS / Safari */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important;
  }
}


/* ---------------- DIFERENCIAIS ---------------- */
#diferenciais {
  background: linear-gradient(145deg, #1c1c1c, #353535);
  padding: 60px 0;
  text-align: center;
}

#diferenciais h2 {
  margin-bottom: 40px;
  color: var(--cor-primaria);
}

.diferencial-item {
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.diferencial-item:hover {
  transform: translateY(-8px);
}

.diferencial-item i {
  font-size: 50px;
  color: #a00;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.diferencial-item:hover i {
  transform: rotate(10deg) scale(1.1);
}

.diferencial-item p {
  font-size: 18px;
  font-weight: bold;
  color: rgb(99, 97, 97);
}

/* ---------------- SERVIÇOS ---------------- */
#servicos {
  position: relative;
  overflow: hidden;
  color: #f5f5f5;
  padding: 80px 0;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.03) 0,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    ),
    linear-gradient(135deg, #2b2b2b, #4a4a4a);
}

#servicos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.027) 20%,
    rgba(255, 255, 255, 0.568) 40%,
    transparent 60%
  );
  animation: reflexoMetalico 10s linear infinite;
  z-index: 0;
}

#servicos > * {
  position: relative;
  z-index: 1;
}

#servicos h2 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
  font-weight: 700;
  margin-bottom: 40px;
}

#servicos h3 {
  color: #e6e6e6;
  font-weight: 600;
}

#servicos p {
  color: #d0d0d0;
  line-height: 1.7;
}

#servicos .service-img-wrapper {
  position: relative;
  width: 100%;                /* imagem ocupa toda a coluna */
  max-width: 500px;           /* limite opcional para não estourar */
  height: 400px;
  overflow: hidden;
  border-radius: 14px;
  background-color: #1f1f1f;
  border: 2px solid #333;
  box-shadow: 0 6px 25px rgba(0,0,0,0.7);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-left: 0;             /* garante alinhamento à esquerda */
  margin-right: auto;         /* empurra imagem esquerda para borda */
}

#servicos .col-md-6.order-md-2 .service-img-wrapper {
  margin-left: auto;          /* empurra imagem direita para borda direita */
  margin-right: 0;
}

#servicos .service-img-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
}

#servicos .slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 1s ease;
}

#servicos .slideshow img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}




/* Responsividade */
@media (max-width: 768px) {
  .service-img-wrapper {
    max-width: 100%;
    margin: 0 auto 20px;
  }
}



@keyframes reflexoMetalico {
  0% { transform: translateX(-90%); }
  100% { transform: translateX(90%); }
}

/* ---------------- DEPOIMENTOS ---------------- */
#depoimentos {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0,
      rgba(255,255,255,0.03) 1px,
      transparent 3px,
      transparent 6px
    ),
    linear-gradient(135deg, #2b2b2b, #4a4a4a);
  color: #f5f5f5;
  padding: 80px 0;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}

#depoimentos::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.12) 0%,
    transparent 70%
  );
  opacity: 0.15;
  animation: reflexoVertical 10s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/*--------------------------------Itens de depoimento -------------------------------------------------*/
.depoimento-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1s ease, transform 1s ease;
  padding: 40px;
  background: linear-gradient(145deg, #2b2b2b, #4d4d4d);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
}

.depoimento-item.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

/* Foto do cliente */
.depoimento-foto {
  flex: 1;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(253, 253, 253, 0.541);
}

.depoimento-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s ease;
}

.depoimento-item.active .depoimento-foto img {
  transform: scale(1.1);
}

/* Texto */
.depoimento-conteudo {
  flex: 1;
  color: #f0f0f0;
  padding: 30px;
  animation: fadeInText 1.5s ease;
}

.depoimento-conteudo blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0;
  color: #e0e0e0;
  line-height: 1.6;
}

.depoimento-conteudo .autor {
  margin-top: 15px;
  font-weight: bold;
  color: #cccccc;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ---------------- RESPONSIVIDADE ---------------- */
@media (max-width: 900px) {
  .depoimento-item {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
}
@media (max-width: 768px) {
  .depoimento-item {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .depoimento-foto {
    height: 280px;
    width: 100%;
  }

  .depoimento-conteudo {
    padding-top: 20px;
  }
}


.btn-custom {
  display: inline-block;
  margin: 10px;
  padding: 16px 32px;
  font-size: 18px;
  color: #fff;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2c2c2c, #4d4d4d);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4), inset 0 0 8px rgba(255,255,255,0.1);
  transition: all 0.4s ease;
}

.btn-custom:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 10px rgba(238, 236, 236, 0.3);
  background: linear-gradient(135deg, #3a3a3a, #eeeaea);
}

/* --------------WhatsApp flutuante ------------------------*/
.whatsapp-fixo img {
  height: 50px;
  width: 50px;
  animation: none 3s infinite ease-in-out;
}

@keyframes pulseFloatGray {
  0%, 100% { transform: scale(1) translateY(0);  }
  50% { transform: scale(1.1) translateY(-5px);  }
}



/* -------------------Conteúdo acima do reflexo--------------------------------------- */
#depoimentos > * {
  position: relative;
  z-index: 1;
}

/* --------------Título -----------------------------------------------*/
#depoimentos h2 {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  font-weight: 700;
  margin-bottom: 50px;
}




/* ---------------- FOOTER ---------------- */
.footer {
  background-color: #111;
  color: #fff;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: var(--cor-secundaria);
}

/* ---------------- ANIMAÇÕES ---------------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}







/* ---------------- LOADER ---------------- */
#loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(145deg, #2c2c2c, #550000);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    #loader img {
      width: 180px;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.05); opacity: 1; }
      100% { transform: scale(1); opacity: 0.8; }
    }
.loader-circle {
  width: 280px;
  height: 280px;
  border: 5.7px solid var(--cor-primaria);

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 2s linear infinite;
}

.loader-circle img {
  width: 150px;
  height: auto;
  animation: zoomIn 2s ease forwards;
}

.btn-custom {
    text-decoration: none !important;
}