/* ==========================================
   PALETA DE CORES
========================================== */
:root {
  --azul-escuro: #1b283e;  /* cor principal */
  --azul-cinza: #3c485e;
  --bege: #bb9684;
  --branco: #ffffff;
}

/* ==========================================
   RESET E CONFIGURAÇÕES GERAIS
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  color: var(--azul-escuro);
  background-color: var(--branco);
  line-height: 1.6;
}

/* ==========================================
   NAVBAR
========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--azul-escuro);
  padding: 1rem 2rem;
  color: var(--branco);
  transition: 0.3s ease;
}

/* ======== CABEÇALHO BRANCO ======== */
.navbar.branco {
  background: var(--branco);
  color: var(--azul-escuro);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar.branco nav a {
  color: var(--azul-escuro);
}

.navbar.branco nav a:hover,
.navbar.branco nav a.active {
  color: var(--bege);
}

/* ======== LOGOTIPO ======== */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.logo img {
  height: 100%;
  max-height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* ======== LINKS NAV ======== */
.navbar nav a {
  color: var(--branco);
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--bege);
}

/* ==========================================
   HERO PRINCIPAL
========================================== */
/* ============================
   HERO SECTION
============================ */
.hero.home-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--branco);
  overflow: hidden;
  background: linear-gradient(rgba(2, 1, 32, 0.45), rgba(2, 2, 2, 0.45)),
              url('') center/cover no-repeat;
}

/* Caso queira sobrepor a imagem com opacidade controlada */
.hero.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('como-funciona-ia-para-advogados-1.jpg') center/cover no-repeat;
  opacity: 0.; /* ← ajusta a opacidade aqui */
  z-index: 0;
}

/* Conteúdo sobre a imagem */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

/* Estilo do título e texto */
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f5f5f5;
}

/* Botão */
.hero-content .btn {
  background-color: var(--bege);
  color: var(--branco);
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 500;
  transition: background 0.3s;
}

.hero-content .btn:hover {
  background-color: var(--azul-escuro);
}

/* Animação */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ======== BOTÃO PRINCIPAL ======== */
.btn {
  display: inline-block;
  background: var(--bege);
  color: var(--azul-escuro);
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn:hover {
  background: var(--azul-escuro);
  color: var(--branco);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.home-hero .btn {
  margin-top: 1.5rem;
}

/* ==========================================
   SEÇÃO SOBRE
========================================== */
.sobre-home {
  padding: 5rem 1rem;
  text-align: center;
  background: var(--branco);
}

.sobre-home h2 {
  color: var(--azul-escuro);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.sobre-home p {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--azul-cinza);
  font-size: 1.05rem;
}

.btn-secundario {
  display: inline-block;
  background: var(--azul-escuro);
  color: var(--branco);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.btn-secundario:hover {
  background: var(--bege);
  color: var(--azul-escuro);
}

/* ============================
   ESTATÍSTICAS
============================ */
.estatisticas {
  position: relative;
  background: url('5-Ferramentas-de-Inteligencia-Artificial-para-advogados.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.estatisticas .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.stats-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-box {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 20px;
  backdrop-filter: blur(4px);
  transition: transform 0.4s ease, background 0.4s ease;
}

.stat-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-box h3 {
  font-size: 3rem;
  color: #bb9684; /* cor bege do teu tema */
  margin-bottom: 10px;
}

.stat-box p {
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1px;
}

/* Animação fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================
   GALERIA / EQUIPA
========================================== */
.galeria {
  text-align: center;
  padding: 5rem 1rem;
  background: var(--branco);
}

.galeria h2 {
  color: var(--azul-escuro);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.galeria p {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--azul-cinza);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.foto-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.foto-card img:hover {
  transform: scale(1.03);
}

/* ============================
   FOOTER
============================ */
.footer {
  background-color: var(--azul-escuro);
  color: var(--branco);
  padding: 60px 20px 0;
  font-size: 0.95rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer h3 {
  color: var(--bege);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: #ddd;
  line-height: 1.7;
  text-decoration: none;
}

.footer a:hover {
  color: var(--bege);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer i {
  margin-right: 8px;
  color: var(--bege);
}

/* WhatsApp Link */
.whatsapp-link {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--bege);
  color: var(--azul-escuro);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.whatsapp-link:hover {
  background-color: var(--branco);
  color: var(--azul-escuro);
}

/* Redes sociais */
.social-links a {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: var(--bege);
  color: var(--azul-escuro);
  border-radius: 50%;
  text-align: center;
  margin-right: 10px;
  transition: transform 0.3s ease, background 0.3s;
}
.social-links a:hover {
  transform: translateY(-5px);
  background: var(--branco);
}

/* Mapa */
.footer-map {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-top: 2px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.8);
}

/* Linha inferior */
.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #ccc;
  background-color: #162032;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}



/* ==========================================
   ANIMAÇÕES
========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1.2s ease forwards;
}

/* ==========================================
   RESPONSIVIDADE
========================================== */
@media (max-width: 900px) {
  .stats-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .navbar nav {
    margin-top: 0.5rem;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 4rem 1rem;
  }

  .home-hero h1 {
    font-size: 1.5rem;
  }

  .logo img {
    max-height: 55px;
  }
}
