/* =================================================
   1. VARIÁVEIS GLOBAIS
================================================= */
:root {
  --azul-primario: #0b3c5d;
  --azul-secundario: #1f6aa5;
  --cinza-escuro: #2e2e2e;
  --cinza-medio: #6b6b6b;
  --cinza-claro: #f2f4f6;
  --branco: #ffffff;

  --fonte-padrao: 'Segoe UI', Arial, sans-serif;

  --radius: 6px;
  --sombra: 0 6px 20px rgba(0,0,0,0.08);
}

/* =================================================
   2. RESET E BASE
================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body.modal-aberto {
  overflow: hidden;
  padding-right: 15px; /* largura média da scrollbar */
}


body {
  font-family: var(--fonte-padrao);
  background-color: var(--branco);
  color: var(--cinza-escuro);
  line-height: 1.6;
}

/* =================================================
   3. ELEMENTOS GLOBAIS
================================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
  color: var(--azul-primario);
}

h1, h2, h3 {
  color: var(--azul-primario);
  margin-bottom: 15px;
}

button {
  background-color: var(--azul-primario);
  color: var(--branco);
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: var(--azul-secundario);
}

/* =================================================
   4. HEADER E NAVEGAÇÃO
================================================= */
header {
  background-image: url('../img/logo/cabecalho.png');    
  background-position: center center;
  background-color: var(--branco);
  box-shadow: var(--sombra);
  position: relative; /* 🔑 contexto para o menu mobile */
  z-index: 100;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

header img {
  height: 80px;
}

nav {
  display: flex;
}

nav a {
  margin-left: 25px;
  font-weight: 500;
  color: var(--cinza-escuro);
}

nav a:hover {
  color: var(--azul-primario);
}

/* =================================================
   5. BREADCRUMB (FLUXO CORRETO)
================================================= */
.breadcrumb {
  width: 100%;
  background-color: var(--cinza-claro);
  padding: 10px 0;
  animation: breadcrumbFade 0.4s ease-out both;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
}


.breadcrumb a,
.breadcrumb span {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =================================================
   6. ANIMAÇÃO BREADCRUMB
================================================= */
@keyframes breadcrumbFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================
   7. MENU HAMBÚRGUER
================================================= */
#menu-hamburguer {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

#menu-hamburguer span {
  height: 3px;
  width: 28px;
  background-color: var(--azul-primario);
  margin-bottom: 5px;
  border-radius: 2px;
}




/* ================= WHATSAPP ================= */
.whatsapp-fixo {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 80px;
  border-radius: 10%;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-fixo:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* =================================================
   8. RESPONSIVIDADE (MOBILE)
================================================= */
@media (max-width: 768px) {

  /* MENU */
  nav {
    position: absolute;
    top: 80px;
    right: 0;
    background-color: var(--branco);
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: none;
    box-shadow: var(--sombra);
    z-index: 200;
  }

  nav a {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  nav.ativo {
    display: flex;
  }

  #menu-hamburguer {
    display: flex;
  }
  
  /* ================= MENU HAMBURGUER ANIMAÇÃO ================= */

    #menu-hamburguer span {
      transition: 0.3s ease;
    }
    
    /* ESTADO ATIVO */
    
    #menu-hamburguer.ativo span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    
    #menu-hamburguer.ativo span:nth-child(2) {
      opacity: 0;
    }
    
    #menu-hamburguer.ativo span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

  /* HERO */
  .hero h1 {
    font-size: 28px;
  }

  /* GRID */
  .grid-projetos {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

}

/* ===============================
   BREADCRUMB — MOBILE (OCULTO)
================================ */
@media (max-width: 768px) {
  .breadcrumb {
    display: none;
  }
}

/* =================================================
   BOTÃO VOLTAR — MOBILE (SVG)
================================================= */

.btn-voltar {
  display: none;
}

.btn-voltar button {
  display: flex;
  align-items: center;
  gap: 6px;

  background: transparent;
  border: none;
  padding: 8px 0;

  color: var(--azul-primario);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-voltar svg {
  width: 20px;
  height: 20px;
  stroke: var(--azul-primario);
  stroke-width: 2;
  fill: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .btn-voltar {
    display: block;
    padding: 0 0 8px 0;
  }
}

/* =================================================
   DWA REVEAL SYSTEM — ANIMAÇÃO GLOBAL PREMIUM
================================================= */

.dwa-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.dwa-reveal.dwa-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Delay progressivo automático */
.dwa-delay-1 { transition-delay: 0.1s; }
.dwa-delay-2 { transition-delay: 0.2s; }
.dwa-delay-3 { transition-delay: 0.3s; }
.dwa-delay-4 { transition-delay: 0.4s; }
.dwa-delay-5 { transition-delay: 0.5s; }

/* Respeita usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .dwa-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}


