/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --primary: #f5c400;
  --dark: #111;
  --gray: #f4f4f4;
}

html {
  scroll-behavior: smooth;
}

section, header, footer {
  scroll-margin-top: 90px;
}

body {
  background: #f4f4f4;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= HEADER STATIC ================= */
header {
  background-color: #0a0a0a;
  width: 100%;
}

.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 40px;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: 0.3s;
}

.menu li a:hover {
  color: #f2b705; 
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 40px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.nav-menu li a.active::after {
  transform: scaleX(1);
}

.nav-menu li a:hover {
  color: #f2b705;
}

/* ================= NAVBAR DINÂMICA ================= */
.navbar.scrolled {
  background: #000;
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.navbar.scrolled .logo-dynamic {
  height: 50px;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; 
  color: white;
  padding: 120px 20px 40px; 
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

/* ================= LOGO HERO ================= */
.hero-logo {
  width: 350px;
  margin-bottom: 20px;
}

.hero-logo-animated {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 20px auto; /* Trava a logo exatamente no centro */
  display: block;
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  position: relative;
  z-index: 2;
}

.hero-logo-animated.blur-out {
  opacity: 0;
  transform: translateY(-80px);
  filter: blur(6px);
}

/* ================= HAMBURGUER ================= */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 10000;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* ================= SPLIT SECTIONS ================= */
.split-section {
  display: flex;
  min-height: 600px;
}

.split-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  background: #f4f4f4;
}

.split-image {
  width: 50%;
  background-size: cover;
  background-position: center;
  margin: 40px;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); 
}

/* IMAGENS SPLIT SECTIONS */
.historia { background-image: url("images/img1.jpg"); }
.missao { background-image: url("images/img2.jpg"); }
.objetivo { background-image: url("images/img3.jpg"); }

/* ================= CARROSSEL ================= */
.carousel-section {
  padding: 100px 0;
  text-align: center;
  background: white;
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide1 { background-image: url("images/slide1.jpg"); }
.slide2 { background-image: url("images/slide2.jpg"); }
.slide3 { background-image: url("images/slide3.jpg"); }

.slide-text {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  max-width: 400px;
  padding: 30px;
  margin: 100px;
  text-align: left;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 3;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ================= GALERIA ================= */
.gallery {
  padding: 100px 0;
  background: #f4f4f4;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
}

.gallery-item {
  min-width: 320px;
  padding: 15px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0,0,0,0.25);
}

.gallery-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 50px auto;
}

.gallery-track {
  display: flex;
  gap: 30px;
  padding: 20px 10px;
  transition: transform 0.5s ease;
}

.gallery-image {
  height: 260px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  filter: contrast(1.1) brightness(0.9) saturate(0.8); /* Tira um pouco a cor e aumenta o contraste para disfarçar ruído */
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5); /* Cria uma sombra interna que escurece as bordas da foto */

}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-title {
  margin-top: 12px;
  font-weight: 600;
}

.gallery-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 50%;
  color: black;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-prev { left: 45px; }
.gallery-next { right: 45px; }

.gallery-carousel::before,
.gallery-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.gallery-carousel::before {
  left: 0;
  background: linear-gradient(to right, #f4f4f4, transparent);
}

.gallery-carousel::after {
  right: 0;
  background: linear-gradient(to left, #f4f4f4, transparent);
}

.g1 { background-image: url("images/g1.jpg"); }
.g2 { background-image: url("images/g2.jpg"); }
.g3 { background-image: url("images/g3.jpg"); }
.g4 { background-image: url("images/g4.jpg"); }
.g5 { background-image: url("images/g5.jpg"); }
.g6 { background-image: url("images/g6.jpg"); }
.g7 { background-image: url("images/g7.jpg"); }
.g8 { background-image: url("images/g8.jpg"); }
.g9 { background-image: url("images/g9.jpg"); }
.g10 { background-image: url("images/g10.jpg"); }
.g11 { background-image: url("images/g11.jpg"); }
.g12 { background-image: url("images/g12.jpg"); }
.g13 { background-image: url("images/g13.jpg"); }
.g14 { background-image: url("images/g14.jpg"); }
.g15 { background-image: url("images/g15.jpg"); }
.g16 { background-image: url("images/g16.jpg"); }


/* ================= LIGHTBOX DA GALERIA ================= */
.modal {
  display: none; /* Escondido por padrão */
  position: fixed;
  z-index: 9999; /* Fica por cima de absolutamente tudo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fundo bem escuro */
  backdrop-filter: blur(5px); /* O toque premium: desfoca o site no fundo */
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh; /* Não deixa a foto vazar da tela */
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease; /* Efeito de aparecer crescendo */
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Botão de Fechar */
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover { color: #fbc531; /* Amarelo da sua paleta */ }

/* Setas do Carrossel */
.prev-modal, .next-modal {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  user-select: none;
}

.prev-modal { left: 5%; }
.next-modal { right: 5%; }

.prev-modal:hover, .next-modal:hover { color: #fbc531; }

/* ================= EQUIPE ================= */
.team {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.member {
  flex: 0 0 300px;
  max-width: 300px;
  text-align: center;
}

.member-photo {
  width: 250px;
  height: 250px;
  background-size: cover;
  background-position: top;
  border-radius: 10%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto 15px auto; /* Centra a foto e dá um espaço em baixo */
}

.p1 { background-image: url("images/p1.jpg"); }
.p2 { background-image: url("images/p2.jpg"); }
.p3 { background-image: url("images/p3.jpg"); }

/* ================= CLIENTES ================= */
.clients {
  padding: 100px 0;
  min-height: 45vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f4f4f4;
  text-align: center;
}

.clients-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.clients-img {
  width: 100%;
  max-width: 140px; 
  object-fit: contain;
  margin: 0 auto;
}

/* ================= FOOTER ================= */
footer {
  background: var(--dark);
  color: white;
  padding: 80px;
}

footer h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas perfeitas: Endereço, Contato e Funcionamento */
  gap: 30px;
  align-items: start; /* Alinha os textos pelo topo pra ficar organizado */
}



.footer-copy {
  text-align: flex-end; 
}

.footer-credit {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #bbb; 
}

.footer-credit a {
  color: var(--primary); 
  text-decoration: none;
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Estilo do Mapa */
.footer-map {
  grid-column: 1 / -1; 
  height: 300px; 
  margin-top: 20px; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ================= TIPOGRAFIA ================= */
h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero h1 {
  font-size: 42px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--primary);
}

h2 {
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  background: var(--primary);
  margin-top: 8px;
}

p {
  line-height: 1.6;
  color: #555;
}

/* ================= ANIMAÇÃO AO ROLAR ================= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= SUAVIDADE GERAL ================= */
a {
  transition: 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* ================= CONTATO ================= */
#contato {
  min-height: 60vh;
}

/* ================= WHATSAPP FLUTUANTE ================= */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 10000;
  transition: transform 0.3s ease;
}

.whatsapp-btn img {
  width: 35px;
  height: auto;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-btn img {
    width: 28px;
  }
}

/* ================= RESPONSIVIDADE (MOBILE) =============== */
@media (max-width: 768px) {
  
  /* --- HEADER E NAVBAR (MENU HAMBÚRGUER) --- */
  .hamburger {
    display: flex; /* Mostra os 3 risquinhos */
  }

  .nav-menu {
    position: fixed;
    top: -100%; /* Esconde o menu lá para cima */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    text-align: center;
    padding: 80px 0 40px 0;
    transition: top 0.4s ease; /* Animação suave ao descer */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .nav-menu.active {
    top: 0; /* O menu desce e cobre a tela */
  }

  .nav-menu li a {
    font-size: 20px;
    padding: 15px 0;
    display: block;
  }

  /* --- HERO (INÍCIO) --- */
  .hero {
    height: 80vh; /* Dá um pouco mais de espaço no mobile para a logo não sumir rápido */
  }

  .hero h1 {
    font-size: 32px;
  }
  
  .hero-logo-animated {
    max-width: 250px;
  }
  
  /* --- CARROSSEL DE SERVIÇOS --- */

  .slide {
    padding: 40px 0; /* Diminui o espaço vazio em cima e embaixo */
  }

  .slide-text {
    margin: 20px 55px; /* Arranca aquele margin de 100px que estava espremendo o texto */
    padding: 20px;
    max-width: 100%; /* Deixa a caixa branca usar a largura quase toda da tela */
  }

  .slide-text h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .slide-text p {
    font-size: 15px; /* Diminui um tiquinho a letra pra caber mais palavras por linha */
    line-height: 1.5;
  }

  /* Ajusta as setas para não ficarem gigantes no celular e não cobrirem o texto */
  .prev { left: 10px; padding: 8px 12px; font-size: 20px; }
  .next { right: 10px; padding: 8px 12px; font-size: 20px; }

  /* --- SECÕES GERAIS --- */
 .split-section {
    flex-direction: column;
    text-align: center;
    padding: 20px; 
    min-height: auto;
  }

  .split-text {
    width: 100%; 
    padding: 20px 0; 
  }

  .split-image {
    width: 100%; 
    margin: 0; 
    min-height: 300px; 
    border-radius: 12px;
    margin-top: 20px; 
  }

  .gallery-item {
    flex: 0 0 100%; 
    max-width: 100%;
  }

  .prev-modal { 
    left: 0px; padding: 10px; font-size: 24px;
   }
  .next-modal { 
    right: 0px; padding: 10px; font-size: 24px; 
  }
  .close-modal {
     top: 10px; right: 20px; font-size: 35px; 
    }


.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Cria 2 colunas perfeitas */
    gap: 20px;
  }

  .member {
    flex: none; /* Tira o flex antigo */
    max-width: 100%;
  }

  .member-photo {
    width: 130px; /* Reduz a foto para caber lado a lado no celular */
    height: 130px;
    margin: 0 auto 10px auto;
  }
  
  .member h4 {
    font-size: 16px; /* Ajusta o nome para não ficar gigante */
  }
  
  .member p {
    font-size: 14px; /* Ajusta o cargo */
  }

  /* --- CLIENTES --- */
  .clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Mantém 3 logos por linha no celular */
    gap: 15px;
    align-items: center;
  }

  .clients-img {
    max-width: 90px; /* Tamanho perfeito para o celular */
  }

  /* --- FOOTER --- */
  .footer-grid {
    grid-template-columns: 1fr; /* No celular, empilha tudo numa única coluna */
    text-align: center;
    gap: 40px;
  }
}