/* header.css */

/* --------------------------------------------------
  0) Variáveis de alturas para posicionamento
-------------------------------------------------- */
:root {
    /* Desktop */
    --promo-banner-height-desktop: 80px;
    --header-height-desktop: 68px;
    /* Mobile (ajuste os valores conforme sua medição real) */
    --promo-banner-height-mobile: 128px;
    --header-height-mobile: 112px;
  }
  
  /* --------------------------------------------------
    1) Header fixo logo abaixo do banner
  -------------------------------------------------- */
  header {
    position: fixed;
    top: var(--promo-banner-height-desktop);
    left: 0;
    width: 100%;
    padding: 8px 8%;
    background-color: #fff;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  /* O body precisa compensar a altura do banner + header */
  body {
    padding-top: calc(var(--promo-banner-height-desktop) + var(--header-height-desktop));
  }
  
  /* --------------------------------------------------
    2) Nav e botões
  -------------------------------------------------- */
  #navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #nav_list {
    display: flex;
    list-style: none;
    gap: 48px;
  }
  
  .nav-item a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    display: inline-block;
    padding-bottom: 5px;
  }
  
  .nav-item.active a {
    font-weight: 600;
    border-bottom: 3px solid #000;
  }
  
  /* Botões do lado direito (desktop) */
  .acoes-direita {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .btn-login {
    padding: 5px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
  }
  
  .btn-login:hover {
    font-weight: bold;
  }
  
  /* Mobile toggle */
  #mobile_btn,
  #mobile_menu {
    display: none;
  }
  
  /* --------------------------------------------------
    3) Responsividade geral
  -------------------------------------------------- */
  /* Em tablets e celular: ajusta top/padding e mostra menu mobile */
  @media (max-width: 768px) {
    /* Reposiciona header para a altura real do banner + header em mobile */
    header {
      top: var(--promo-banner-height-mobile);
    }
    body {
      padding-top: calc(var(--promo-banner-height-mobile) + var(--header-height-mobile));
    }
  }
  
  /* Mostra o botão mobile e esconde nav desktop a partir deste ponto */
  @media screen and (max-width: 1170px) {
    #nav_list,
    #navbar .btn-default,
    .acoes-direita {
      display: none;
    }
  
    #mobile_btn {
      display: block;
      border: none;
      background-color: transparent;
      font-size: 1.5rem;
      cursor: pointer;
    }
  
    #mobile_menu.active {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    #mobile_nav_list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 12px 0;
    }
  
    #mobile_nav_list .nav-item {
      list-style: none;
      text-align: center;
    }
  }
  
