/* =========================================
   1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================= */
:root {
  --bg-dark: #050505;
  --bg-light: #ffffff;
  --text-light: #ffffff;
  --text-dark: #000000;
  --btn-accent: #c5a059;
  --container-width: 68.75rem;
}

html {
  scroll-behavior: smooth; /* Rolagem suave ao clicar no menu */
  scroll-padding-top: 6.25rem; /* Evita que o header cubra os títulos ao rolar */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden; /* Evita barra de rolagem horizontal indesejada */
}

/* =========================================
   2. CLASSES UTILITÁRIAS E GLOBAIS
   ========================================= */
/* Limita a largura do conteúdo e centraliza */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Títulos padrões das seções */
.section-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.125rem;
  margin-bottom: 1.25rem;
}

/* Barra de progresso de rolagem no topo da tela */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  background: #fefefe !important;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Animações de Fade-In controladas pelo JavaScript */
.reveal {
  opacity: 0;
  transform: translateY(3.125rem);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.reveal.fadeIn {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   3. HEADER E NAVEGAÇÃO
   ========================================= */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 1.875rem 0;
  transition: all 0.3s ease;
}

/* Efeito Glassmorphism adicionado via JS ao rolar */
.header.scrolled {
  background-color: rgba(5, 5, 5, 0.92) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem 0;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 2.8125rem;
}

/* Menu de Links */
.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  margin-left: auto;
  margin-right: 2.5rem;
}

.nav-list li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: 0.3s;
}

.nav-list li a:hover {
  color: #cccccc;
}

.nav-list li a.active {
  color: #c5a059 !important;
  font-weight: 700;
}

.nav-list li:not(:last-child)::after {
  content: '|';
  color: var(--text-light);
  margin: 0 0.9375rem;
}

/* Ícone do E-MAIL no Header */
.nav-whatsapp {
  background-color: var(--btn-accent);
  color: white;
  width: 2.1875rem;
  height: 2.1875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-whatsapp:hover {
  transform: scale(1.1);
}

/* Botão Hamburguer (Oculto no Desktop) */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   4. SEÇÕES DO SITE
   ========================================= */

/* --- INÍCIO (Hero) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('./images/background.webp');
  background-size: cover;
  background-position: center right;
  padding-top: 10rem !important;
  padding-bottom: 3rem;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5625rem;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 31.25rem;
  margin-bottom: 2.5rem;
  color: #d1d1d1;
  text-align: justify;
}

.btn-primary {
  display: inline-block;
  background-color: var(--bg-light);
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.9375rem 1.875rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.125rem;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #e0e0e0;
}

/* --- ÁREAS DE ATUAÇÃO --- */
.atuacao {
  padding: 5rem 0;
}

.atuacao-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.875rem;
  margin-top: 2.5rem;
}

.card-area {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-area:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px);
  border-color: var(--bg-light);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
  margin-bottom: 1.25rem;
}

.card-icon img {
  height: 4rem;
  width: auto;
  aspect-ratio: 1 / 1;
  filter: invert(1);
}

.card-area h3 {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}

/* --- SOBRE --- */
.sobre {
  padding: 80px 0;
}

.sobre-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 3.75rem;
}

.sobre-texto-box {
  background-color: var(--bg-light);
  color: var(--text-dark);
  width: 80%;
  padding: 3.75rem 17.5rem 3.75rem 3.75rem;
  border-radius: 0.25rem;
}

.sobre-texto-box p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.sobre-imagem {
  position: absolute;
  right: -1.25rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  border: 0.25rem solid var(--bg-light);
  overflow: hidden;
  box-shadow: -0.625rem 0 1.875rem rgba(0, 0, 0, 0.5);
}

.sobre-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CONTATO E BOTÕES --- */
.contato {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 80px 0;
}

.contato-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-dark {
  color: var(--text-dark);
}

.endereco {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.95rem;
}

.endereco a {
  color: var(--text-dark);
  text-decoration: none;
}

.contato-botoes {
  display: flex;
  gap: 0.9375rem;
}

.btn-square {
  background-color: var(--bg-dark);
  color: var(--text-light);
  width: 3.125rem;
  height: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: 0.3s;
}

.btn-square:hover {
  background-color: #333333;
}

/* =========================================
   5. FOOTER E COMPONENTES EXTRAS
   ========================================= */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 1.5625rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.0625rem;
  line-height: 1.6;
}

.dev-credits {
  margin-top: 0.3125rem;
  opacity: 0.7;
}

.dev-credits strong {
  color: var(--text-light);
  font-weight: 600;
}

/* --- BANNER DE COOKIES --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(5, 5, 5, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 1.25rem 0;
  z-index: 9999;
  display: none; /* Controlado pelo JS */
}

.cookie-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--text-light);
  text-decoration: underline;
}

.btn-cookie {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

/* --- E-MAIL FLUTUANTE --- */
.wa-flutuante {
  position: fixed;
  bottom: 1.875rem;
  right: 1.875rem;
  background-color: var(--btn-accent);
  color: var(--text-light);
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none !important;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0.75;
  visibility: visible;
}

.wa-flutuante:hover {
  transform: scale(1.1);
  opacity: 1;
}

.wa-flutuante.hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
}

/* =========================================
   6. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================= */

/* --- TABLETS --- */
@media screen and (max-width: 992px) {
  .atuacao-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-texto-box {
    padding: 2.5rem 9.375rem 2.5rem 2.5rem;
    width: 85%;
  }

  .sobre-imagem {
    width: 18.75rem;
    height: 18.75rem;
  }
}

/* --- CELULARES --- */
@media screen and (max-width: 768px) {
  /* Banner de Cookies */
  .cookie-container {
    flex-direction: column;
    text-align: center;
  }

  /* Header e Menu Mobile */
  .nav-list,
  .nav-whatsapp {
    display: none;
  }

  .mobile-btn {
    display: block;
  }

  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(8px); /* Efeito de vidro moderno */
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem 0;
    margin: 0;
    border-bottom: 1px solid #333;
  }

  .nav-list.active li {
    width: 100%;
    text-align: center;
    padding: 0.25rem 0;
  }

  .nav-list.active li:not(:last-child)::after {
    display: none;
  }

  /* Seções e Espaçamentos Gerais */
  .hero {
    min-height: auto;
    padding-top: 6rem !important;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .atuacao,
  .sobre,
  .contato {
    padding: 2.1875rem 0;
  }

  /* Áreas de Atuação */
  .card-icon img {
    height: 2.5rem;
  }

  /* Seção Sobre */
  .sobre-wrapper {
    flex-direction: column;
  }

  .sobre-texto-box {
    width: 100%;
    padding: 2.5rem 1.875rem 5rem 1.875rem;
  }

  .sobre-imagem {
    position: relative;
    margin-top: -3.75rem;
    right: auto;
    width: 15.625rem;
    height: 15.625rem;
  }

  /* Seção Contato */
  .contato-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
  }

  /* Garante botão no mobile */
  .wa-flutuante {
    display: flex;
  }
}

/* --- DESKTOP (Regras específicas para telas grandes) --- */
@media screen and (min-width: 769px) {
  /* Esconde o botão flutuante no computador, mantendo o botão do menu superior */
  .wa-flutuante {
    display: none;
  }
}
