/* =========================
   AZIEL - CSS FINAL CORRIGIDO
   ========================= */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Variáveis */
:root {
  --highlight: #3d66b81b;
  --main-bg: #f5f5f5;
  --textht:#0B2559;
  --primary: #222;
  --secondary: #444;
  --accent: #a5ffb6;
  --nav-bg: #fff;
  --header-height: 64px; /* usado no mobile para compensar o fixed header */
}

::selection {
  background-color: var(--highlight); /* cor de fundo da seleção */
  color: var(--textht);           /* cor do texto selecionado */
}

/* Para navegadores antigos, você pode incluir prefixos */
::-moz-selection {
  background-color: var(--highlight);
  color: var(--textht);
}


/* ========= Base ========= */
body {
  background: var(--main-bg);
  margin: 0;
  padding: 0;
  font-family: "Exo 2", sans-serif;
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header / Nav */
header {
  background: var(--main-bg);
  position: relative; /* por padrão relativo; no mobile a .navbar vira fixed */
  z-index: 1000;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
}

.logo img {
  height: 40px;
  display: block;
}

/* Links (desktop) */
.nav-links, .tab {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-links li a, .tab {
  font-size: 1.1rem;
  padding: 6px 20px;
  color: var(--primary);
  background-color: var(--main-bg);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links li a:hover,
.nav-links li a:active,
.nav-links li a:focus,
.nav-links li a.active {
  background: var(--highlight);
  color: #0B2559;
  border-color: var(--highlight);
}

.botaoblue{
  position: relative;
  display: inline-block;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--textht) !important;
  background: var(--highlight) !important;
  border: none !important;
  border-radius: 100px;
}

.botaoblue:hover{
 color: var(--main-bg) !important;
  background: var(--textht)!important;
  border-color: var(--textht);
}

.botaoneon {
  position: relative;
  display: inline-block;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff !important;        /* texto sempre branco */
  background: #0a0a0a !important; /* fundo preto fixo */
  border: none !important;        /* remove contorno */
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  text-decoration: none;
}

/* Estrelinhas no fundo */
.botaoneon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(white 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.25;
  z-index: -1;
}

/* Neon glow atrás (esse é o que você gostou) */
.botaoneon::after {
  content: "";
  position: absolute;
  inset: -3px; /* halo fica pra fora */
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    #7f00ff,
    #00d4ff,
    #7f00ff
  );
  z-index: -2;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spin 4s linear infinite;
}

/* Ativo / hover / focus → só ativa o neon */
.botaoneon:hover::after,
.botaoneon:focus::after,
.botaoneon.active::after {
  opacity: 1;
}

/* Travar o estilo do botão */
.botaoneon:hover,
.botaoneon:focus,
.botaoneon.active {
  background: #0a0a0a !important;
  color: #fff !important;
  border: none !important;  /* não deixa contorno verde aparecer */
}

/* Animação do neon */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}



.tab {
  background-color: var(--nav-bg);
  font-family: "Exo 2", sans-serif
}

.tab:active {
  background-color: var(--highlight);
  color: #111;
  border-color: var(--highlight);
}

/* ===== Main content ===== */
main {
  max-width: 900px;
  margin: 40px auto;              /* centraliza o container */
  padding: 20px 16px 40px 16px;   /* padding padrão (vai mudar no mobile) */
  box-sizing: border-box;
  text-align: center;             /* textos do main centralizados */
}

/* Welcome */
.welcome {
  text-align: center;
}

.welcome p {
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Imagens / destaque */
.space-img {
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.feature {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img-wrapper {
  position: relative;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.feature-img-wrapper img {
  width: 100%;
  border-radius: 16px;
  min-height: 240px;
  display: block;
}

.feature-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff;
  border-radius: 0 0 16px 16px;
  padding: 32px 24px 24px 24px;
  box-sizing: border-box;
  text-align: center;
}

.feature-overlay h2 {
  margin: 0 0 4px 0;
  font-weight: 700;
}

.feature-overlay h3 {
  margin: 0 0 10px 0;
  font-weight: 500;
}

/* Footer */
footer {
  width: 100%;
  background: #ffffff93;
  color: #000000;
  padding: 40px 16px 20px 16px;
  margin-top: 60px;
  border-top: 0 solid var(--primary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
  gap: 40px;
  box-sizing: border-box;
}

.footer-col {
  flex: 1 1 160px;
  min-width: 160px;
}

.footer-col h4 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
   text-decoration: underline;
}

.footer-col p {
  font-size: 1rem;
  margin: 0 0 8px 0;
}

/* ===== Hamburger (default escondido no desktop) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* =========================
   MOBILE / RESPONSIVO (substitua o bloco existente)
   ========================= */

@media (max-width: 860px) {

  /* Navbar NÃO fixado no mobile (position: relative garante comportamento natural) */
  .navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    padding: 10px 18px;
    z-index: 2000;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(6px);
    background: var(--main-bg); /* mantém fundo consistente */
  }

  /* menor logo no mobile */
  .logo {
    font-size: 1.4rem;
  }
  .logo img {
    height: 32px;
  }

  /* mostrar hamburger e esconder nav-links padrão (desktop) */
  .hamburger {
    display: flex;
  }

  /* MENU: agora posicionado absoluto, vindo debaixo do header (slide + fade) */
  .nav-links {
    position: absolute;                  /* relativo ao header (.navbar) por proximidade do DOM */
    top: 100%;                           /* aparece logo abaixo do header */
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: auto;                        /* altura se ajusta ao conteúdo */
    background: var(--main-bg);
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px 28px 18px;
    box-shadow: 00px 20px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease;
    z-index: 1999;
    overflow: visible; /* evita comportamentos estranhos */
    align-items: initial;
    
  }

  /* Estado aberto: slide para baixo + habilita clique */
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    
  }

  /* Links dentro do menu mobile */
  .nav-links li a {
    font-size: 24px;
    font-family: Garamond, serif;
    border: none;
    border-radius: 999px;
    padding: 5px 20px;
    display: block;
    width: auto;
    text-align: left;
    transition: transform 0.18s ease, background 0.18s ease;
  }

  .nav-links li a:hover {
    transform: translateX(6px);
  }

  /* Ajuste do main: sem padding-top extra pois header não está fixo */
  main {
    padding-top: 20px; /* normal */
    margin: 0 auto;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  .highlight {
    font-size: 2rem;
  }

  .welcome p {
    font-size: 1rem;
    margin-top: 18px;
  }

  .space-img,
  .feature-img-wrapper {
    margin: 28px auto 0;
  }

  .feature-overlay {
    padding: 18px;
    font-size: 95%;
  }

  .botaoblue {
    background-color: transparent !important;
  }
}

/* Ajustes para telas muito estreitas */
@media (max-width: 420px) {
  :root {
    --header-height: 60px;
  }

  .highlight {
    font-size: 1.6rem;
  }

  .feature-overlay {
    padding: 14px;
  }
}


/* Container opcional */
.search-container {
  position: relative;
  display: inline-block;
}

/* Ícone dentro do input */
.search-container .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

/* Input transparente */
#search {
  width: auto;
  padding: 6px 15px 6px 35px; /* espaço para o ícone */
  border: none;                /* sem borda */
  background: transparent;
  font-size: 16px;
  outline: none;
}

/* Placeholder */
#search::placeholder {
  color: #999;
  font-family: "Exo 2", sans-serif;
}

/* Linha animada embaixo usando pseudo-elemento */
.search-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;             /* começa do centro */
  width: 0;              /* inicialmente invisível */
  height: 2px;
  background-color: var(--highlight, #dfff6b); /* cor da linha */
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(.4,0,.2,1); /* animação */
}

/* Quando o input recebe foco */
#search:focus + .search-container::after {
  width: 100%;           /* expande até as extremidades */
}

/* Hero Post */
#hero-post {
  margin-bottom: 30px;
}

#hero-post img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 10px;
}

#hero-post h2 {
  font-size: 2rem;
  margin: 10px 0;
  color: #000000;
}

/* Cor padrão de todos os links */
a {
  color: #3d66b8;       /* cor normal dos links */
  text-decoration: none; /* remove sublinhado */
  transition: color 0.3s ease; /* transição suave ao passar o mouse */
}

/* Cor quando o mouse passa por cima */
a:hover {
  color: #0B2559;       /* cor ao passar o mouse */
}

/* Cor quando o link já foi visitado */
a:visited {
  color: #3d66b8;       /* mantem a mesma cor padrão */
}

/* Cor quando o link está ativo (clicando) */
a:active {
  color: #0B2559;       /* cor ao clicar */
}

.no-scroll {
  overflow: hidden;
}

ht {
 font-family: Garamond, serif;
 font-size: 2.75rem;;
  text-align: left;

  margin: 0;
  color: rgb(0, 0, 0);
  line-height: 110%;
  letter-spacing: -.02em;
}

hs {
  text-align: left;
  
}

/* Animação de fade-in */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Animação de fade-out */
.fade-out {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Estado normal */
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Quando o menu estiver aberto (hamburger vira X) */
.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
