/* ==========================================================
   1. IMPORTAÇÕES E VARIÁVEIS GERAIS
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Cores da Marca */
  --navy: #0a2342;
  --white: #f4f4f4;
  --orange: #F58A1F;
  --sand: #f4f1de;
  --grey: #333333;
  --coral: #e76f51;

  /* Tipografia */
  --font-heading: 'Poppins', sans-serif;
  --font-sans: 'Open Sans', sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================================
   2. CORREÇÕES DE ESTRUTURA DO TEMA (RESETS)
   ========================================================== */

/* Prevenir scroll horizontal e margens brancas laterais */
html, body {
  width: 100%; /* Força a largura exata a 100% e não mais */
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Esconder o título padrão das páginas */
.page .entry-header, 
.page .page-header,
.page .entry-title {
  display: none !important;
}

/* Remover espaçamentos fantasma no TOPO e no FUNDO da página */
/* Remover apenas espaçamentos fantasma no FUNDO da página */
.site-content, 
.site-main, 
.entry-content,
#content,
#page {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Garante que o último bloco da página não empurra o footer para baixo */
.entry-content > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* ==========================================================
   3. BASE E TIPOGRAFIA
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--grey);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #4B5563;
}

/* Links e Acessibilidade */
a {
  transition: color 0.2s ease-in-out;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* ==========================================================
   4. BARRA DE NAVEGAÇÃO (HEADER)
   ========================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 35, 66, 0.95); /* Azul navy com 95% de opacidade */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 1.5rem;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
}

/* Logotipo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  transition: transform 0.3s;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  line-height: 1;
}

.nav-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d1d5db;
}

/* Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e5e7eb;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-separator {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
}

/* Ações (Idioma e Botão) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: #d77918;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,138,31,0.3);
}

/* ==========================================================
   5. RESPONSIVO (MOBILE)
   ========================================================== */

.mobile-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .mobile-menu {
    background: var(--navy); /* Usando a variável! */
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    color: #e5e7eb;
  }

  .mobile-menu a:hover {
    background: rgba(255,255,255,0.05);
  }
}