/* ================================
   VARIÁVEIS DE COR E FONTE
   Baseado na paleta oficial do PDF
   ================================ */
:root {
  /* Cores principais da identidade */
  --reflexo-branco: #f3f3f3;
  --verde-ondulante: #8205e24f;
  --verde-fluorescente: #8205e2a2;
  --eco-abissal: #0d2346;
  --vibracao-ultravioleta: #8105e2;
  --ciano-harmonico: #51c0d7;

  /* Cores funcionais */
  --bg: var(--reflexo-branco);
  --white: #ffffff;
  --muted: #666666;
  --text-dark: #0d2346;
  --text-light: #f3f3f3;

  /* Espaçamento */
  --spacing-base: 2rem;

  /* Tipografia */
  --font-title: 'Pinnacle', sans-serif;
  --font-body: 'LT Wave', sans-serif;
}

/* ================================
   ESTILOS GERAIS - CORREÇÕES
   ================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--eco-abissal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* ESPAÇO PARA HEADER FIXO */
}

/* Container global */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   HEADER FIXO - CORREÇÕES
   ================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* AUMENTADO */
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13, 35, 70, 0.08);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
}

/* Logo MAIOR */
.logo-img {
  height: 50px; /* AUMENTADO */
  width: auto;
  max-width: 180px; /* AUMENTADO */
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Menu com letras MAIORES */
nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

nav a {
  font-family: var(--font-title);
  text-decoration: none;
  color: var(--eco-abissal);
  font-weight: 600;
  font-size: 1rem; /* AUMENTADO */
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vibracao-ultravioleta);
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--vibracao-ultravioleta);
}

/* ================================
   HERO - CORREÇÕES COMPLETAS
   ================================ */
.hero {
  text-align: center;
  padding: 40px 20px;
  margin: 20px 0 40px;
  position: relative;
  background: 
      linear-gradient(135deg, 
          rgba(129, 5, 226, 0.7),
          rgba(130, 5, 226, 0.4)),
      url('assets/img/bg/backg.png') center center / cover no-repeat;
  color: var(--white);
  border-radius: 20px;
  width: 100%;
  min-height: 300px; /* REDUZIDO */
  max-height: 400px; /* LIMITE MÁXIMO */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

/* Título do Hero MAIOR e VISÍVEL */
.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  font-size: 2.2rem; /* AUMENTADO */
  line-height: 1.3;
  margin-bottom: 1rem;
  padding: 0 10px;
  font-weight: 700;
  display: block;
  width: 100%;
  max-width: 900px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  padding: 0 15px;
}

/* ================================
   VERSÃO ULTRA COMPACTA - CABE MUITO TEXTO
   ================================ */
@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem !important; /* BEM PEQUENO */
    letter-spacing: -0.2px !important; /* LETRAS MAIS JUNTAS */
    word-spacing: -0.5px !important; /* PALAVRAS MAIS JUNTAS */
    line-height: 1.15 !important; /* LINHAS BEM JUNTAS */
    padding: 0 10px !important;
    max-width: 100% !important;
  }
  
  .hero p {
    font-size: 1.0rem !important; /* BEM PEQUENO */
    letter-spacing: -0.1px !important;
    word-spacing: -0.3px !importa1t;
    line-height: 1.2 !important;
    padding: 0 12px !important;
    max-width: 100% !important;
  }


/* 1. CONSERTAR ROLAGEM NO PC */
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important; /* PERMITE ROLAGEM VERTICAL */
  height: auto !important; /* ALTURA AUTOMÁTICA */
  min-height: 100vh !important; /* NO MÍNIMO ALTURA DA TELA */
}

body {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-height: 100vh !important;
  position: relative !important;
}
/* ================================
   TABLET (768px) - MANTENDO TAMANHOS GRANDES
   ================================ */
@media screen and (max-width: 768px) {
  header {
    height: 80px !important; /* Altura maior */
    padding: 0 15px !important;
  }
  
  .header-container {
    gap: 1rem !important; /* Espaço mínimo entre logo e menu */
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 100% !important;
  }
  
  /* LOGO GRANDE E VISÍVEL */
  .logo-img {
    height: 60px !important; /* Logo maior */
    width: auto !important;
    max-width: 200px !important;
    min-width: 150px !important;
    flex-shrink: 0 !important;
  }
  
  /* MENU COM LETRAS GRANDES */
  nav {
    gap: 1.2rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  
  nav a {
    font-size: 1.1rem !important; /* Fonte maior */
    padding: 5px 0 !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    color: #333 !important; /* Garantir contraste */
  }
  
  /* Ajuste do body */
  body {
    padding-top: 80px !important;
  }
}

/* ================================
   CELULAR MÉDIO (600px) - CONTINUANDO COM TAMANHOS BONS
   ================================ */
@media screen and (max-width: 600px) {
  header {
    height: 75px !important;
    padding: 0 12px !important;
  }
  
  .header-container {
    gap: 0.8rem !important; /* Espaço ainda menor */
  }
  
  /* Logo mantém bom tamanho */
  .logo-img {
    height: 55px !important;
    max-width: 180px !important;
    min-width: 140px !important;
  }
  
  /* Menu ainda legível */
  nav {
    gap: 1rem !important;
  }
  
  nav a {
    font-size: 1rem !important; /* Ainda bom tamanho */
  }
  
  body {
    padding-top: 75px !important;
  }
}

/* ================================
   CELULAR PEQUENO (480px) - PRIORIZANDO LEGIBILIDADE
   ================================ */
@media screen and (max-width: 480px) {
  header {
    height: 70px !important;
    padding: 0 10px !important;
  }
  
  .header-container {
    gap: 0.6rem !important; /* Mínimo espaço entre logo e menu */
  }
  
  /* Logo ainda visível */
  .logo-img {
    height: 50px !important;
    max-width: 160px !important;
    min-width: 120px !important;
  }
  
  /* Texto ainda legível */
  nav {
    gap: 0.8rem !important;
  }
  
  nav a {
    font-size: 0.95rem !important;
  }
  
  body {
    padding-top: 70px !important;
  }
}

/* ================================
   CELULAR MUITO PEQUENO (375px)
   SOLUÇÃO ALTERNATIVA: MENU HAMBÚRGUER
   ================================ */
@media screen and (max-width: 375px) {
  /* Para telas muito pequenas, considere menu hambúrguer */
  .header-container {
    justify-content: space-between !important;
  }
  
  /* Logo mantém tamanho razoável */
  .logo-img {
    height: 45px !important;
    max-width: 140px !important;
    min-width: 100px !important;
  }
  
  /* Se quiser manter menu horizontal em telas pequenas */
  nav {
    gap: 0.7rem !important;
    overflow-x: auto !important; /* Permite scroll se não couber */
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 5px !important;
  }
  
  nav a {
    font-size: 0.9rem !important;
    flex-shrink: 0 !important; /* Não diminui os itens */
  }
  
  body {
    padding-top: 65px !important;
  }
}

/* ================================
   GARANTIR QUE NADA QUEBRE - IMPORTANTE!
   ================================ */
@media screen and (max-width: 768px) {
  /* Container flex sem quebra */
  .header-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow: hidden !important;
  }
  
  /* Logo fixo, não encolhe */
  .logo-img {
    flex-shrink: 0 !important;
    object-fit: contain !important;
  }
  
  /* Menu usa espaço disponível */
  nav {
    flex-shrink: 1 !important;
    display: flex !important;
    min-width: 0 !important; /* Permite encolher container */
    justify-content: flex-end !important;
  }
  
  /* Links não quebram */
  nav a {
    flex-shrink: 0 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
  
  /* Garantir que o header não faça scroll horizontal */
  header {
    overflow: hidden !important;
  }
}
/* ================================
   MELHORIA: DESTAQUE NO LINK ATIVO
   ================================ */
@media screen and (max-width: 768px) {
  nav a {
    transition: all 0.2s ease !important;
  }
  
  nav a:hover {
    color: var(--vibracao-ultravioleta) !important;
    transform: translateY(-1px) !important;
  }
  
  /* Efeito mais sutil para mobile */
  nav a::after {
    height: 1px !important;
    bottom: 1px !important;
  }
}
/* 2. CONSERTAR HEADER SOBREPONDO HERO NO MOBILE */
@media screen and (max-width: 768px) {
  body {
    padding-top: 110px !important; /* ESPAÇO PARA HEADER */
  }
  
  header {
    height: 80px !important; /* HEADER MAIS ALTO */
    z-index: 1000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: var(--white) !important;
  }
  
  .hero {
    margin-top: 0 !important; /* REMOVER MARGEM QUE CAUSA CORTE */
    padding-top: 40px !important; /* PADDING EXTRA NO TOPO */
    min-height: 450px !important; /* AJUSTAR ALTURA */
    max-height: none !important; /* REMOVER LIMITE MÁXIMO */
  }
}

/* ================================
   CORREÇÃO - NEWSLETTER DENTRO DO CONTAINER
   ================================ */

/* GARANTIR QUE ESTEJA DENTRO DO CONTAINER PRINCIPAL */
.container .community-newsletter {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* A CAIXA DA NEWSLETTER DEVE RESPEITAR O PADDING DO CONTAINER */
.community-box {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ================================
   CORREÇÃO ESPECÍFICA PARA MOBILE
   ================================ */

/* TABLET (768px) */
@media screen and (max-width: 768px) {
  /* O CONTAINER PRINCIPAL TEM PADDING DE 20px */
  .container {
    padding: 0 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* A NEWSLETTER DEVE USAR 100% DENTRO DO CONTAINER */
  .community-newsletter {
    width: 100% !important;
    padding: 20px 0 !important; /* SEM PADDING LATERAL, O CONTAINER JÁ TEM */
    margin: 30px 0 !important;
  }
  
  /* A CAIXA INTERNA DEVE CABER PERFEITAMENTE */
  .community-box {
    width: 100% !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* CELULAR (480px) */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 15px !important;
  }
  
  .community-newsletter {
    padding: 15px 0 !important;
    margin: 25px 0 !important;
  }
  
  .community-box {
    padding: 20px !important;
  }
}

/* CELULAR PEQUENO (375px) */
@media screen and (max-width: 375px) {
  .container {
    padding: 0 12px !important;
  }
  
  .community-newsletter {
    padding: 12px 0 !important;
    margin: 20px 0 !important;
  }
  
  .community-box {
    padding: 18px !important;
  }
}

  
  /* BARRA HORIZONTAL - FINA E DISCRETA */
  .divider {
    width: 80% !important;
    height: 1px !important;
    background: rgba(129, 5, 226, 0.3) !important;
    margin: 5px auto 5px !important; /* POUCO ESPAÇO */
    border: none !important;
  }
  
  /* REDUZIR TAMANHO DOS TEXTOS */
  .section-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .community-description {
    font-size: 0.95rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.4 !important;
    padding: 0 10px !important;
  }
  
  .community-text, .newsletter-text {
    font-size: 0.95rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* BOTÕES MENORES */
  .telegram-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
    min-height: 40px !important;
  }
  
  /* FORMULÁRIO MAIS COMPACTO */
  .newsletter-form {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    min-height: 40px !important;
    width: 100% !important;
  }
}


/* 6. GARANTIR QUE TUDO NO PC VOLTA AO NORMAL */
@media screen and (min-width: 769px) {
  /* RESTAURAR VALORES ORIGINAIS DO COMMUNITY */
  .community-newsletter {
    padding: 40px 20px !important;
    margin: 60px 0 !important;
  }
  
  .community-box {
    padding: 30px !important;
    flex-direction: row !important; /* VOLTA A SER LADO A LADO */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 30px !important;
  }
  
  .divider {
    width: 1px !important; /* VOLTA A SER VERTICAL */
    height: 100px !important;
    background: rgba(13, 35, 70, 0.2) !important;
  }
  
  /* RESTAURAR TAMANHOS ORIGINAIS */
  .section-title {
    font-size: 1.8rem !important;
  }
  
  .community-description {
    font-size: 1rem !important;
  }
  
  .telegram-btn,
  .newsletter-form button,
  .newsletter-form input {
    padding: 12px 25px !important;
    font-size: 1rem !important;
  }
  
  .newsletter-form {
    flex-direction: row !important;
    max-width: 400px !important;
  }
}
/* RESET PARA INPUTS NO iOS */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    -webkit-border-radius: 50px !important;
    font-size: 16px !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: white !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  /* REMOVER ESTILOS NATIVOS DO iOS */
  input:focus {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: text !important;
  }
  
  /* GARANTIR QUE O FORM NÃO QUEBRE O LAYOUT */
  form {
    -webkit-overflow-scrolling: touch !important;
    overflow: hidden !important;
  }
}
