/* /assets/css/header.css
   Premium header
   Underscore naming only
*/

.ht_header{
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}

.ht_header_inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.ht_brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 240px;
}

.ht_logo{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,108,255,0.12);
  border: 1px solid rgba(43,108,255,0.18);
  box-shadow: 0 12px 30px rgba(43,108,255,0.10);
  overflow: hidden;
}

.ht_logo img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ht_brand_text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ht_brand_name{
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
}

.ht_brand_tag{
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.60);
}

.ht_nav{
  display: flex;
  align-items: center;
}

.ht_nav_panel{
  display: flex;
  align-items: center;
  gap: 14px;
}

.ht_nav_links{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.70);
}

.ht_nav_link{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ht_nav_link:hover{
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.90);
  transform: translateY(-1px);
}

.ht_nav_link.is_active{
  background: rgba(43,108,255,0.12);
  border: 1px solid rgba(43,108,255,0.18);
  color: rgba(35, 95, 230, 1);
}

.ht_active_dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(35, 95, 230, 1);
}

.ht_nav_right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ht_nav_ctas{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ht_btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.ht_btn_ghost{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.84);
}

.ht_btn_ghost:hover{
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.ht_btn_primary{
  background: #2b6cff;
  border: 1px solid rgba(0,0,0,0);
  color: #fff;
  box-shadow: 0 14px 34px rgba(43,108,255,0.22);
}

.ht_btn_primary:hover{
  background: #235fe6;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(43,108,255,0.26);
}

.ht_nav_meta{
  display: flex;
  align-items: center;
}

.ht_pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.70);
  color: rgba(15, 23, 42, 0.70);
  font-weight: 720;
  font-size: 13px;
}

.ht_nav_toggle{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.70);
  color: rgba(15, 23, 42, 0.84);
  font-weight: 780;
}

.ht_nav_toggle_icon{
  font-size: 18px;
}

/* MOBILE LAYOUT */
@media (max-width: 980px){
  .ht_brand{ min-width: auto; }
  .ht_nav_toggle{ display: inline-flex; }
  .ht_nav{ position: relative; }

  .ht_nav_panel{
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(560px, calc(100vw - 24px));
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255,255,255,0.94);
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.18);
    padding: 12px 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ht_nav_panel.is_open{
    display: flex;
  }

  .ht_nav_links{
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
  }

  .ht_nav_link{
    justify-content: space-between;
  }

  .ht_nav_right{
    justify-content: space-between;
  }

  .ht_nav_ctas{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ht_btn{
    justify-content: center;
  }
}

/* EXTRA SMALL */
@media (max-width: 520px){
  .ht_brand_tag{ display: none; }
  .ht_nav_ctas{ grid-template-columns: 1fr; }
}
