/* GENERAL */
:root {
    --dark-main: #0a0a0a;
    --dark-sec: #1d1d1d;
    --menu_color: #1A2031;
    --mobile_menu:#232b41; 
    --accent: #FF6A00;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-main);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    width: 95%;
}

a {
    text-decoration: none;
    color: black;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: block;
}


button {
    border: 1px solid black;
    border-radius: 50px;
    background: var(--accent);
    transition: 0.3s;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    cursor: pointer;
}

button:hover {
    transform: scale(1.08);
}


/* Barra fixa de topo ocupando toda a largura */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--menu_color);
  padding: 0.75rem 0;
}

/* Linha interna do topo com flex e sem quebra */
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; /* evita botão descer */
  min-width: 0;      /* permite encolher conteúdo central */
}
/* Colunas */
.topbar-left { flex: 0 0 auto; display: flex; align-items: center; }
.topbar-center { 
  flex: 1 1 auto; 
  min-width: 0;            /* evita empurrar a direita pra baixo */
  display: flex; 
  justify-content: center; /* menu centralizado; ajuste se preferir left */
  align-items: center;
}
.topbar-right { 
  flex: 0 0 auto; 
  margin-left: auto;       /* garante que fique colado à direita */
  display: flex; 
  align-items: center; 
  gap: .5rem; 
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
}
.main-nav a {
  color: white;
  font-weight: 500;
  text-transform: uppercase;   /* deixa maiúsculo */
  padding: 0.25rem 0;
  border-radius: 0;              /* 🔑 remove borda arredondada */
  display: inline-block;         /* para underline normal */
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.main-nav a:hover {
  color: var(--accent);
}
.main-nav a.active {
  border-bottom: 2px solid var(--accent); /* sublinhado da página atual */
}

.brand { display:inline-flex; align-items:center; text-decoration:none; }
.brand img { height: 64px; width:auto; display:block; }

/* Botões utilitários (se já tiver no projeto, pode ignorar) */
.btn-cadastro, .btn-login {
  display:inline-block; border-radius:999px; padding:.5rem 1rem; text-align:center;
  text-transform:uppercase; font-weight:600; letter-spacing:.02em; cursor:pointer;
}
.btn-cadastro { background: var(--accent); color:#000; font-family: 'Montserrat', sans-serif; font-weight: 400;}
.btn-cadastro:hover { filter: brightness(1.05); transform: scale(1.08); transition:.2s; }
.btn-login { background: transparent; border:1px solid #fff; color:#fff;font-family: 'Montserrat', sans-serif; font-weight: 400;} 
.btn-login:hover { background:#fff; color:#000; transform: scale(1.08); transition:.2s; }
.block { display:block; width:100%; }

/* ====== HAMBURGUER ====== */
.hamburger {
  background:transparent; border:none; cursor:pointer; display:inline-flex; flex-direction:column;
  gap:4px; padding:.25rem; margin-left:auto;
}
.hamburger span {
  width:26px; height:3px; background:#fff; display:block; border-radius:3px; transition:.25s;
}

/* animação X quando aberto */
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ====== MENU MOBILE (overlay) ====== */
.mobile-menu {
  position: fixed;
  left: 0; right: 0;            /* 100% de largura */
  top: 0;                       /* abre do topo (fica sob o header) */
  background: var(--mobile_menu);
  /* altura automática (somente o conteúdo) */
  /* REMOVIDO: bottom / height fixa */
  transform: translateY(-100%);
  transition: transform .3s ease;
  z-index: 99;
  padding-top: calc(64px + 3rem); /* espaço do topo + respiro */
  padding-bottom: 3rem;           /* respiro inferior */
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.mobile-menu.open { transform: translateY(0); }

/* permitir animar mesmo com [hidden] */
.mobile-menu[hidden] { display: block; }

/* conteúdo limitado a 240 px da largura e centralizado */
.mobile-menu-inner {
  width: 240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.mobile-link {
  align-items: center;
  text-align: center;
  color: white;
  font-weight: 500;
  text-transform: uppercase;   /* deixa maiúsculo */
  border-radius: 0;              /* 🔑 remove borda arredondada */
  display: inline-block;         /* para underline normal */
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.mobile-link.active { border-color: var(--accent); }

/* ====== BREAKPOINTS ====== */
.desktop-only { display:flex; }
.mobile-only  { display:none; }

@media (max-width: 900px) {
  .desktop-only { display:none; }
  .mobile-only  { display:inline-flex; }
  .brand img { height: 50px; }
}

/* Acessibilidade: evita rolagem quando menu aberto */
body.menu-open { overflow:hidden; }

#logout {
    background-color: rgb(255, 67, 67);
}
#user {
    color: rgb(255, 255, 255);}


/* FLASH MESSAGES */
.flash_msgs {
    display: block;
    width: 40%;
    min-width: 320px;
    text-align: center;
    padding: 1rem 2rem;
    background-color: rgb(41, 41, 41);
    color: white;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid black;
    animation: disappear 10s forwards;
}

@keyframes disappear {
    0% {opacity: 0;}
    10% {opacity: 1;}
    90% {opacity: 1;}
    100% {opacity: 0;}
}

.flash_msgs::before {
    content: "";
    display: block;
    width: 4px;
    background-color: rgba(0, 0, 0, 0);
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.flash_msgs-error::before {
    background-color: red;
}

.flash_msgs-success::before {
    background-color: #8dfe24;
}

.flash_msgs-info::before {
    background-color: white;
}


/* Banner da página de contato */
.banner-contato {
  position: relative;
  width: 100%;
  height: 300px; /* ajuste conforme quiser */
  background: url("static/img/banner_contato.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.banner-contato .banner-overlay {
  background: rgba(0, 0, 0, 0.5); /* leve escurecido sobre a imagem */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-contato h1 {
  font-size: 2.5rem;
  color: white;
  text-align: center;
}

/* Seção de contato */
.contato-conteudo {
  text-align: center;
  margin: 2rem auto;
}

.btn-telegram {
  display: inline-block;
  background: #0088cc; /* cor oficial do telegram */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-telegram:hover {
  background: #006b99;
}
