/* =========================================
   Purpose Journeys - Header
   /assets/css/header.css
========================================= */


/* ---------- Header ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(16,37,54,.10);
}

.header-inner{
  height:76px;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}


/* =========================================
   Purpose Journeys Logo
========================================= */

.brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  margin-right:54px;
  text-decoration:none;
}

.brand-logo{
  display:block;
  width:132px;
  height:auto;
  max-height:55px;
  object-fit:contain;
}


/* =========================================
   Themed Journeys
========================================= */

.main-nav{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  margin-right:auto;
}

.nav-dropdown{
  position:relative;
}

.nav-dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 0;
  border:0;
  outline:0;
  background:transparent;
  color:#29343c;

  font-family:-apple-system,BlinkMacSystemFont,
    "Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;

  font-size:16px;
  font-weight:650;
  line-height:1.2;

  cursor:pointer;
  white-space:nowrap;
}

.nav-caret{
  display:inline-block;
  margin-left:1px;
  color:#69747c;
  font-size:12px;
  line-height:1;
  transition:transform .2s ease;
}

.nav-dropdown.open .nav-caret{
  transform:rotate(180deg);
}


/* ---------- Dropdown menu ---------- */

.nav-dropdown-menu{
  position:absolute;
  top:calc(100% + 12px);
  left:-18px;
  z-index:1200;

  display:none;
  width:320px;
  padding:8px;

  border:1px solid rgba(16,37,54,.10);
  border-radius:10px;

  background:#fff;
  box-shadow:0 16px 36px rgba(12,29,42,.14);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu{
  display:block;
}

.nav-dropdown-menu a{
  display:block;
  padding:11px 12px;
  border-radius:7px;

  color:#293640;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
  text-decoration:none;
}

.nav-dropdown-menu a:hover{
  background:#f7f4ee;
  color:#b78a43;
}


/* =========================================
   Right Side
   Pay | EN | 中 | 更多
========================================= */

.header-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:28px;
  margin-left:auto;
}


/* ---------- Payment ---------- */

.payment-link{
  display:inline-flex;
  align-items:center;
  gap:7px;

  color:#626d75;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}

.payment-link:hover{
  color:#b78a43;
}

.payment-icon{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}


/* =========================================
   Languages + More
========================================= */

.language-switch{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:12px;
  white-space:nowrap;
}

.lang-btn{
  border:0;
  outline:0;
  background:transparent;
  padding:7px 1px;

  color:#626d75;
  font-family:inherit;
  font-size:15px;
  font-weight:600;

  cursor:pointer;
}

.lang-btn:hover{
  color:#102536;
}

.lang-btn.active{
  color:#c7352d;
  font-weight:700;
}

.language-divider{
  color:#c6c9cc;
  font-size:13px;
}


/* ---------- More ---------- */

.more-link{
  display:inline-flex;
  align-items:center;
  padding:7px 1px;

  color:#626d75;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}

.more-link:hover{
  color:#b78a43;
}


/* =========================================
   Tablet
========================================= */

@media(max-width:1050px){

  .header-inner{
    height:68px;
    width:min(100% - 28px,1180px);
  }

  .brand{
    margin-right:28px;
  }

  .brand-logo{
    width:116px;
    max-height:50px;
  }

  .nav-dropdown-toggle{
    font-size:14px;
  }

  .header-actions{
    gap:18px;
  }

  .payment-link{
    font-size:13px;
  }

  .payment-icon{
    width:19px;
    height:19px;
  }

  .language-switch{
    gap:8px;
  }

  .lang-btn,
  .more-link{
    font-size:13px;
  }

  .language-divider{
    font-size:11px;
  }
}


/* =========================================
   Mobile
   保持一行，字体适当放大
========================================= */

@media(max-width:720px){

  .header-inner{
    height:64px;
    width:calc(100% - 16px);
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
  }

  .brand{
    flex:0 0 auto;
    margin-right:10px;
  }

  .brand-logo{
    width:88px;
    max-height:44px;
  }

  .main-nav{
    flex:0 0 auto;
    margin-right:auto;
  }

  .nav-dropdown-toggle{
    gap:3px;
    padding:6px 0;
    font-size:13px;
    font-weight:650;
    white-space:nowrap;
  }

  .nav-caret{
    font-size:9px;
  }

  .header-actions{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:7px;
    margin-left:7px;
  }

  .payment-link{
    gap:3px;
    min-height:34px;
    font-size:12px;
    white-space:nowrap;
  }

  .payment-icon{
    width:16px;
    height:16px;
  }

  .language-switch{
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:5px;
  }

  .lang-btn,
  .more-link{
    min-height:34px;
    padding:5px 0;
    font-size:12px;
    white-space:nowrap;
  }

  .language-divider{
    font-size:9px;
  }


  /* 手机版下拉菜单 */

  .nav-dropdown-menu{
    position:absolute;
    top:calc(100% + 10px);
    left:0;

    width:min(310px,calc(100vw - 26px));
    margin:0;
    padding:8px;

    border:1px solid rgba(16,37,54,.10);
    border-radius:10px;

    background:#fff;
    box-shadow:0 16px 34px rgba(12,29,42,.15);
  }

  .nav-dropdown:hover .nav-dropdown-menu{
    display:none;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown.open:hover .nav-dropdown-menu{
    display:block;
  }

  .nav-dropdown-menu a{
    padding:11px 11px;
    font-size:14px;
  }
}


/* =========================================
   Small Mobile
========================================= */

@media(max-width:480px){

  .header-inner{
    width:calc(100% - 14px);
  }

  .brand{
    margin-right:7px;
  }

  .brand-logo{
    width:82px;
  }

  .nav-dropdown-toggle{
    font-size:12px;
  }

  .header-actions{
    gap:5px;
    margin-left:5px;
  }

  .payment-link{
    gap:3px;
    font-size:11.5px;
  }

  .payment-icon{
    width:15px;
    height:15px;
  }

  .language-switch{
    gap:4px;
  }

  .lang-btn,
  .more-link{
    font-size:11.5px;
  }

  .language-divider{
    font-size:9px;
  }

  .nav-dropdown-menu a{
    font-size:14px;
  }
}


/* =========================================
   Very Small Mobile
========================================= */

@media(max-width:390px){

  .header-inner{
    width:calc(100% - 12px);
  }

  .brand-logo{
    width:76px;
  }

  .brand{
    margin-right:6px;
  }

  .nav-dropdown-toggle{
    font-size:11.5px;
  }

  .header-actions{
    gap:4px;
    margin-left:4px;
  }

  .payment-link{
    font-size:11px;
  }

  .payment-icon{
    width:15px;
    height:15px;
  }

  .language-switch{
    gap:3px;
  }

  .lang-btn,
  .more-link{
    font-size:11px;
  }

  .language-divider{
    font-size:8.5px;
  }

  .nav-dropdown-menu a{
    font-size:13px;
  }
}

/* Header 永远固定顶部：电脑版和手机版 */

#headerMount{
  height:76px;
}

html{
  scroll-padding-top:92px;
}

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:1000;
}

@media(max-width:1050px){
  #headerMount{
    height:68px;
  }

  html{
    scroll-padding-top:84px;
  }
}

@media(max-width:720px){
  #headerMount{
    height:64px;
  }

  html{
    scroll-padding-top:80px;
  }
}