/* Global safety */
html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

/* NAVBAR WRAPPER */
.navbar_section{
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(1180px, calc(100% - 48px));
  height: 84px;
  padding: 12px 28px;
  /* gap: 2.25rem; */
  gap: 1.5rem;

  display: flex;
  align-items: center;

  background: #fff;
  border-radius: 22px;
  box-shadow: 0 0 15px rgba(0,0,0,0.20);
  transition: transform 0.32s ease, opacity 0.32s ease;
}


/* language button section */


.lang-form{
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.lang-form .nav_lang_option{
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  margin: 0;
  cursor: pointer;
}

.lang-form .nav_lang_option:focus,
.lang-form .nav_lang_option:focus-visible{
  outline: none;
  box-shadow: none;
}

.lang-form .nav_lang_option:hover{
  transform: none;
}






/* LOGO GROUP */
.nav_icon{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav_icon_1{ width: 34px; height: auto; }
.nav_icon_2{ width: 128px; height: auto; }

/* NAV LINKS */
.nav_item{
  font-family: var(--font-family-raleway, "Raleway", Helvetica, sans-serif);
  /* font-size: 18px; */
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: var(--black, #000);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.nav_item:hover{ color: var(--barka-blue, #1b3350); }

.nav_item::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--barka-blue);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav_item:hover::after{ width: 60%; }

/* PUSH RIGHT SIDE */
.nav_purchase{
  margin-left: auto;
}

/* PURCHASE BUTTON */
.nav_buttom{
  height: 40px;
  min-width: 96px;
  /* padding: 8px 18px; */
  padding: 0.625rem 1.875rem;
  border-radius: 96px;
  background: var(--barka-blue, #1b3350);
  color: #fff;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: var(--font-family-raleway, "Raleway", Helvetica, sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.nav_buttom:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

/* LANGUAGE PILL */
.nav_lang{
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  /* margin-left: 8px; */
  border-radius: 999px;
  border: 1px solid var(--blue, #668db7);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
   flex: 0 0 auto;
}

.nav_lang_slider{
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--barka-blue, #1b3350);
  box-shadow: 0 4px 10px rgba(27, 51, 80, 0.22);
  transition: transform 0.32s ease;
  z-index: 0;
}

.nav_lang.is-slo .nav_lang_slider{
  transform: translateX(100%);
}

.nav_lang_option{
  position: relative;
  z-index: 1;
  min-width: 60px;
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;

  font-family: var(--font-family-raleway, "Raleway", Helvetica, sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--barka-blue, #1b3350);
  transition: color 0.32s ease, transform 0.2s ease;
}

.nav_lang_option.active{
  color: #fff;
}

/* MOBILE DEFAULT HIDDEN */
.nav_hamburger { display:none; }
.nav_mobile_panel { display:none; }

.navbar_section.nav-hidden{
  opacity: 0;
  pointer-events: none;
}

/* desktop */
@media (min-width: 1025px){
  .navbar_section.nav-hidden{
    transform: translate(-50%, -140%);
  }
}

/* mobile / tablet */
@media (max-width: 1024px){
  .navbar_section.nav-hidden{
    transform: translateY(-140%);
  }
}

/* MOBILE / TABLET */
@media (max-width: 1024px){

  .navbar_section{
    top: 18px;
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-width: none;

    height: 72px;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 18px;
    z-index: 10002;
    justify-content: space-between;

    padding-left: calc(14px + env(safe-area-inset-left));
    padding-right: calc(14px + env(safe-area-inset-right));
  }

  .navbar_section .nav_item{
    display: none !important;
  }

  .navbar_section .nav_lang{
    display: inline-flex !important;
    margin-left: auto;
    padding: 4px;
    height: auto;
    border-radius: 999px;
  }

  /* .nav_lang_option{
    min-width: 56px;
    height: 32px;
    padding: 0 12px;
  } */

  .lang-form .nav_lang_option{
    min-width: 56px;
    height: 32px;
    padding: 0 12px;
  }

  .nav_icon{ gap: 10px; }
  .nav_icon_1{ width: 30px; height: auto; }
  .nav_icon_2{ width: 120px; height: auto; }

  .nav_hamburger{
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--barka-blue, #1b3350);
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 30000;
  }

  .nav_hamburger span{
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
    transition: transform .22s ease, opacity .18s ease, width .22s ease;
    transform-origin: center;
  }

  .nav_mobile_panel{
    display: block;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    padding: 90px 0 24px;
  }

  .navbar_section.is-open .nav_mobile_panel{
    opacity: 1;
    pointer-events: auto;
  }

  .nav_mobile_card{
    width: calc(100% - 60px);
    max-width: 360px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    padding: 34px 22px 26px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav_mobile_item{
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
  }

  .nav_mobile_item:hover{
    color: var(--barka-blue);
    transform: translateY(-2px);
  }

  .nav_mobile_item::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--barka-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav_mobile_item:hover::after{ width: 40%; }

  .nav_mobile_purchase{
    margin-top: 8px;
    display: flex;
    justify-content: center;
  }

  .nav_mobile_purchase .nav_buttom{
    height: 40px;
    min-width: 100px;
    font-size: 12px;
    border-radius: 999px;
  }

  .navbar_section.is-open .nav_hamburger span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }

  .navbar_section.is-open .nav_hamburger span:nth-child(2){
    opacity: 0;
    transform: scaleX(0);
  }

  .navbar_section.is-open .nav_hamburger span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav_purchase{
    display: none !important;
  }
}



@media (min-width: 761px) and (max-width: 1100px){
  .nav_lang{
    min-width: 74px;
    height: 34px;
    padding: 3px;
  }

  /* .nav_lang_option{
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  } */

  .lang-form .nav_lang_option{
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }

  .nav_lang_slider{
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
  }
}


@media (max-width: 1024px){

  .navbar_section .nav_lang{
    display: inline-flex !important;
    margin-left: auto;
    padding: 3px;
    min-width: 78px;
    height: 36px;
    border-radius: 999px;
  }

  /* .nav_lang_option{
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  } */
  .lang-form .nav_lang_option{
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }
  .nav_lang_slider{
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
  }
}





@media (max-width: 400px){

  
  .nav_hamburger{
    display: inline-flex;
    width: 22px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: var(--barka-blue, #1b3350);
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 30000;
  }
  
  .nav_hamburger span{
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
    transition: transform .22s ease, opacity .18s ease, width .22s ease;
    transform-origin: center;
  }

  
  .navbar_section .nav_lang{
    display: inline-flex !important;
    margin-left: auto;
    padding: 3px;
    min-width: 78px;
    height: 36px;
    border-radius: 999px;
  }

  /* .nav_lang_option{
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  } */
  .lang-form .nav_lang_option{
    min-width: 36px;
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }
  .nav_lang_slider{
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
  }
  
}