/* =========================================================
   SEJUVE • Base CSS (limpo e organizado)
   ========================================================= */

/* ---------- Paleta / Variáveis ---------- */
:root{
  --brand-dark: #0f4f5c;   /* topo/rodapé */
  --brand-blue: #1f4e86;   /* hero/faixas */
  --text-on-dark: #fff;
  --sky-50: #eef4ff;
  --sky-100: #dbe7ff;
  --danger: #c52222;
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; height: auto; display: block; }

/* Foco acessível */
:focus-visible{
  outline: 2px solid #6aa3ff;
  outline-offset: 2px;
}

/* =========================================================
   Navegação (menu)
   ========================================================= */
.site-nav{
  display: flex;
  align-items: center;
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding: 10px 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-inner{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}
.logo a{
  color: var(--text-on-dark);
  font-size: 1.4rem;
  font-weight: bold;
  position: relative;
  z-index: 120; /* garante clique acima do hamburger */
}

.menu{
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
  flex: 1;
}
.menu li{ position: relative; }
.menu a{
  color: var(--text-on-dark);
  padding: 6px 8px;
  display: inline-block;
}

/* Submenu (estrutura) */
.submenu{
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f6e7f;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  min-width: 180px;
  border-radius: 4px;
  z-index: 100;
  display: none;
}
.submenu li{ padding: 0; }
.submenu a{ display: block; padding: 6px 15px; }

/* Hover apenas no desktop */
@media (min-width: 901px){
  .menu .dropdown:hover .submenu{ display: block; }
}

.search input{
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
}

/* ---------- Hamburger ---------- */
.hamburger{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 110;
}
.hamburger span{
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all .3s ease;
}
/* animação do ícone */
.hamburger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile (≤900px) ---------- */
@media (max-width: 900px){
  .site-nav{ padding: 10px 15px; }

  .menu{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background: var(--brand-dark);
    flex-direction: column;
    padding: 60px 15px 20px;
    gap: 10px;
    transition: right .3s ease;
    overflow-y: auto;
    z-index: 105;
  }
  .menu.open{ right: 0; }

  .menu li{ width: 100%; }
  .menu a{ padding: 10px 12px; display: block; }

  .search{ display: none; }
  .hamburger{ display: block; margin-left: auto; }

  /* Submenu no mobile (abre via classe .open no <li>.dropdown) */
  .dropdown .submenu{
    position: static;
    background: transparent;
    padding: 0;
    display: none;
  }
  .dropdown.open .submenu{
    display: block;
    margin-left: 10px;
  }
  .dropdown .submenu a{ padding-left: 25px; }
}

/* =========================================================
   Rodapé
   ========================================================= */
.site-footer{
  background: var(--brand-dark);
  color: var(--text-on-dark);
  padding: 24px 16px;
  margin-top: 24px;
}
.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo{
  width: min(720px, 95%);
  height: auto;
  display: inline-block;
}
.footer-note{
  margin: 8px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* =========================================================
   Home / Hero
   ========================================================= */
.hero{
  background: var(--brand-blue) url('../img/pattern.png') repeat; /* remova url(...) se não tiver o pattern */
  color: var(--text-on-dark);
  text-align: center;
  padding: 60px 20px 70px;
}
.hero-title{
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 4px;
  margin: 0 0 10px;
  font-weight: 800;
}
.hero-subtitle{
  font-size: clamp(14px, 2.5vw, 20px);
  opacity: 0.95;
  margin: 0;
}

.home-content{
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* CTAs principais */
.cta-list{
  display: grid;
  gap: 24px;
  max-width: 520px;
  margin: 20px auto 30px; /* espaço abaixo do banner */
}
.btn{
  display: inline-block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover{ transform: translateY(-1px); opacity: .95; }
.btn-primary{
  background: var(--brand-blue);
  color: var(--text-on-dark);
  border: 2px solid var(--brand-blue);
}

/* Redes sociais */
.social-row{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.social-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--brand-blue);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  font-weight: 600;
}
.social-btn:hover{ background: #e3ecff; }
.social-btn svg{ display: block; }

@media (max-width: 480px){
  .cta-list{ gap: 16px; }
  .btn{ padding: 12px 14px; }
}

/* =========================================================
   Páginas internas (cabeçalho/título) + Cards + Regras + CTA
   ========================================================= */
.page-hero{
  background: var(--brand-blue);
  color: var(--text-on-dark);
}
.page-hero-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
}
.page-title{
  margin: 0;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
}

.page-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px 10px;
}

.card{
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.rules{ margin: 14px 0 0; padding-left: 18px; }
.rules li{ margin: 8px 0; line-height: 1.55; }
.rules .warn{ color: var(--danger); }

/* Faixa do botão de inscrição */
.cta-strip{
  background: var(--brand-blue);
  display: flex;
  justify-content: center;
  padding: 26px 20px 34px;
}
.btn-cta{
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid #fff;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  display: inline-block;
  min-width: 280px;
  text-align: center;
}
.btn-cta:hover{ opacity: .95; transform: translateY(-1px); }

/* Utilitários */
.img-fluid{ max-width: 100%; height: auto; display: block; }

/* Botão branco com fonte azul (variação visual para destaque) */
.btn-white{
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}
.btn-white:hover{
  opacity: .95;
  transform: translateY(-1px);
  background: #f7fbff;
}

/* ------- LISTA DE DOCUMENTOS (Informações) ------- */
.pdf-item{
  display:flex;
  align-items:flex-start;
  gap:6px;
  margin-bottom:10px;
  line-height:1.4;
}
.pdf-item .doc-label{
  color:#333;            /* cinza-escuro (label) */
  flex-shrink:0;
}
.pdf-item .pdf-link{
  color:#1f4e86;         /* azul bic */
  font-weight:normal;
  text-decoration:none;
}
.pdf-item .pdf-link:hover{ text-decoration:underline; }
.date{ font-size:.9em;color:#666;margin-left:6px; }
/* Botão verde estilo “campo” */
.btn-pitch{
  color:#fff;
  border:1px solid #0f5e2a;
  border-radius:10px;
  padding:14px 18px;
  font-weight:700;
  display:inline-block;
  text-align:center;
  text-decoration:none;
  /* camadas: brilho + listras + degradê verde */
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 6px, rgba(255,255,255,0) 6px 12px),
    linear-gradient(135deg,#1e8e3e 0%, #137333 60%, #0b5f2a 100%);
  box-shadow:0 8px 20px rgba(19,115,51,.25);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-pitch:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(19,115,51,.32);
  filter:brightness(1.02);
}

.btn-pitch:active{
  transform:translateY(0);
  box-shadow:0 6px 16px rgba(19,115,51,.22);
}

/* =========================================================
   SEJUVE CHAT WIDGET
   ========================================================= */
.sejuve-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none; /* Permite clicar no fundo se transparente */
}
.sejuve-chat-widget > * {
  pointer-events: auto;
}

/* Botão Flutuante */
.sejuve-chat-btn {
  background-color: var(--brand-dark); /* #0f4f5c */
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sejuve-chat-btn:hover {
  transform: scale(1.05);
  background-color: var(--brand-blue); /* #1f4e86 */
}
.sejuve-chat-btn:focus-visible {
  outline: 3px solid #6aa3ff;
  outline-offset: 2px;
}
.sejuve-chat-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Janela do Chat */
.sejuve-chat-window {
  width: 360px;
  height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 15px; /* espaço acima do botao */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: absolute;
  bottom: 60px; /* altura do botao + margem */
  right: 0;
}
.sejuve-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Cabeçalho */
.sejuve-chat-header {
  background: var(--brand-dark);
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sejuve-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}
.sejuve-chat-close:hover { opacity: 0.8; }

/* Corpo / Mensagens */
.sejuve-chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--sky-50); /* #eef4ff */
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.chat-msg.bot {
  background: #fff;
  color: #333;
  border-bottom-left-radius: 2px;
  border: 1px solid #e0e0e0;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.chat-msg.user {
  background: var(--brand-blue);
  color: #fff;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Sugestões de botão dentro do chat */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}
.chat-option-btn {
  background: #fff;
  border: 1px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.chat-option-btn:hover {
  background: var(--sky-100);
  transform: translateX(2px);
}

/* Ações (links externos) */
.chat-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.chat-action-link {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}
.chat-action-link.primary {
  background: var(--brand-blue);
  color: #fff;
}
.chat-action-link.whatsapp {
  background: #25D366;
  color: #fff;
}
.chat-action-link:hover { opacity: 0.9; }

/* Rodapé / Input */
.sejuve-chat-footer {
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 8px;
  background: #fff;
  align-items: center;
}
.sejuve-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 24px;
  outline: none;
  font-size: 0.95rem;
}
.sejuve-chat-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--sky-100);
}
.sejuve-chat-send {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}
.sejuve-chat-send:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.sejuve-chat-send:hover:not(:disabled) { background-color: var(--brand-dark); }
.sejuve-chat-send svg { width: 20px; height: 20px; fill: currentColor; }

/* Mobile */
@media (max-width: 600px) {
  .sejuve-chat-btn span { display: none; } /* Só ícone */
  .sejuve-chat-btn { padding: 14px; border-radius: 50%; }
  
  .sejuve-chat-window {
    width: 92vw;
    right: 4vw; /* centralizado visualmente */
    bottom: 80px; 
    height: 60vh;
    border-radius: 12px;
  }
}
