:root{
  --nav-height:76px;
  --home-topbar-reserve:52px;
  --nonhome-topbar-reserve:62px;
  --home-topbar-height:42px;
  --desktop-search-anchor-right:70px;
  --desktop-search-anchor-top:46%;
  --theme-navy:#0A1F44;
  --theme-navy-deep:#071730;
  --theme-accent-gold:#D4AF37;
  --theme-text-soft:#E6ECF5;
  --theme-subtle:#8EA2C7;
  --nonhome-nav-bg:#113676;
  --nonhome-nav-top-band:#113676;
  --site-font-fallback:Arial, "Helvetica Neue", Helvetica, "Segoe UI", "Noto Sans", "Liberation Sans", sans-serif;
  --home-highlight-title-color:var(--theme-navy);
  --home-highlight-text-color:var(--theme-subtle);
}

/* Keep non-home layout baseline stable across all pages */
body:not(.page-home){
  margin:0;
  padding:0;
  overflow-x:hidden;
}

#topbar-placeholder,
#navbar-placeholder{
  width:100%;
  margin:0;
  padding:0;
}

#navbar-placeholder{
  display:block;
  min-height:0;
  position:relative;
  z-index:1200;
  transition:margin-top .35s ease;
}


body.page-home #navbar-placeholder{
  margin-bottom:-76px;
}

.hero{
  margin-top:calc(var(--nav-height) * -1);
  padding-top:var(--nav-height);
}

.main-nav-desktop{
  position:relative;
  z-index:1200;
  height:76px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  padding:0 56px 0 40px;
  background:transparent;
  overflow:visible;
  transition:transform .35s ease;
}

.mobile-nav-toggle{
  display:none;
}

body.ui-preinit .main-nav-desktop{
  transition:none !important;
}

body.page-home:not(.topbar-ready) .main-nav-desktop{
  transition:none !important;
}

body:not(.page-home) .main-nav-desktop::before{
  content:none;
}

@media (min-width: 992px){
  body.page-home .desktop-nav-links{
    transform:translateY(-2px);
  }

  body:not(.page-home) .desktop-nav-links{
    transform:translateY(-2px);
  }

  body.page-home .desktop-nav-links li,
  body:not(.page-home) .desktop-nav-links li{
    overflow:visible;
    -webkit-clip-path:inset(-34px 0 0 0);
    clip-path:inset(-34px 0 0 0);
  }

  body.page-home .desktop-nav-links li::after,
  body:not(.page-home) .desktop-nav-links li::after{
    top:-34px;
    bottom:0;
  }

  body.page-home .desktop-nav-links li::before,
  body:not(.page-home) .desktop-nav-links li::before{
    top:-34px;
    bottom:0;
  }

  body.page-home .main-nav-desktop{
    transform:translateY(34px);
  }

  body.page-home.topbar-open .main-nav-desktop{
    transform:translateY(calc(12px + var(--home-topbar-height, 0px)));
  }

  body:not(.page-home) .main-nav-desktop{
    transform:translateY(34px);
    height:76px !important;
  }
}

body:not(.page-home) .main-nav-desktop{
  background:var(--nonhome-nav-bg);
  border-top:0;
  box-shadow:0 -34px 0 0 var(--nonhome-nav-top-band);
  transition:transform .35s ease;
}

body:not(.page-home):not(.topbar-ready) .main-nav-desktop{
  transition:none !important;
}

body:not(.page-home) .desktop-nav-logo,
body:not(.page-home) .desktop-nav-links a,
body:not(.page-home) .desktop-nav-links .desktop-nav-trigger{
  color:#fff;
}

body:not(.page-home) .desktop-nav-search{
  filter:brightness(0) invert(1);
}

.desktop-nav-logo{
  position:absolute;
  left:clamp(34px, 4.8vw, 68px);
  top:50%;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  line-height:1;
  text-decoration:none;
  color:inherit;
  transition:left .34s ease, opacity .24s ease;
}

.desktop-nav-logo .nav-logo-image{
  display:block;
  width:auto;
  height:clamp(44px, 3.9vw, 56px);
  max-width:clamp(132px, 16vw, 220px);
  object-fit:contain;
}

.desktop-nav-links{
  display:flex;
  list-style:none;
  margin:0;
  padding:0;
  height:100%;
  align-items:center;
  font-family:var(--font-nav);
  justify-content:center;
  transform:translateY(8px);
}

@media (min-width: 992px){
  body.page-home .desktop-nav-logo{
    position:static;
    transform:translateY(-2px);
    margin-right:clamp(10px, 1.2vw, 18px);
  }

  body:not(.page-home) .desktop-nav-logo{
    position:static;
    transform:translateY(-2px);
    margin-right:clamp(10px, 1.2vw, 18px);
  }

  body.page-home .desktop-nav-logo .nav-logo-image{
    height:clamp(44px, 3.8vw, 56px);
    max-width:clamp(136px, 16vw, 220px);
  }

  body:not(.page-home) .desktop-nav-logo .nav-logo-image{
    height:clamp(44px, 3.8vw, 56px);
    max-width:clamp(136px, 16vw, 220px);
  }

  .main-nav-desktop{
    height:76px;
    min-height:76px;
    max-height:76px;
    padding-left:clamp(180px, 18vw, 270px);
    padding-right:clamp(82px, 8vw, 120px);
  }

  body.page-home .main-nav-desktop{
    padding-left:clamp(24px, 3.5vw, 56px);
    padding-right:clamp(82px, 8vw, 120px);
  }

  body:not(.page-home) .main-nav-desktop{
    padding-left:clamp(24px, 3.5vw, 56px);
    padding-right:clamp(82px, 8vw, 120px);
  }

  .desktop-nav-links{
    transform:translateY(-2px) !important;
    max-width:100%;
    min-width:0;
  }
}

.desktop-nav-links li{
  display:flex;
  align-items:center;
  height:100%;
  padding:0 12px;
  position:relative;
  transition:opacity .22s ease, transform .3s ease;
  overflow:hidden;
}

@media (min-width: 992px) and (max-width: 1280px){
  .desktop-nav-links li{
    padding:0 clamp(8px, .9vw, 12px);
  }

  .desktop-nav-links a,
  .desktop-nav-links .desktop-nav-trigger{
    font-size:24px !important;
  }
}

@media (min-width: 992px) and (max-width: 1120px){
  .main-nav-desktop{
    padding-left:clamp(148px, 17vw, 190px);
    padding-right:78px;
  }

  .desktop-nav-logo .nav-logo-image{
    height:clamp(38px, 4vw, 46px);
    max-width:clamp(118px, 14vw, 158px);
  }

  .desktop-nav-links li{
    padding:0 clamp(6px, .72vw, 9px);
  }

  .desktop-nav-links a,
  .desktop-nav-links .desktop-nav-trigger{
    font-size:clamp(22px, 2.2vw, 24px) !important;
  }
}

.desktop-nav-links a{
  font-size:24px;
  font-weight:500;
  color:#111;
  text-decoration:none;
  white-space:nowrap;
  transition:color .22s ease, opacity .22s ease;
  position:relative;
  z-index:2;
}

.desktop-nav-links .desktop-nav-trigger{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  font-size:24px;
  font-weight:500;
  color:#111;
  text-decoration:none;
  white-space:nowrap;
  transition:color .22s ease, opacity .22s ease;
  position:relative;
  z-index:2;
  font-family:var(--font-nav);
  cursor:pointer;
}

.desktop-nav-links li::before,
.desktop-nav-links li::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  pointer-events:none;
}

.desktop-nav-links li::before{
  left:-20px;
  width:2px;
  background:#fff;
  opacity:0;
  z-index:3;
}

.desktop-nav-links li::after{
  left:4px;
  right:4px;
  background:var(--theme-navy);
  transform:translateX(110%);
  opacity:0;
  z-index:1;
}

.desktop-nav-links li:hover::before,
.desktop-nav-links li:focus-within::before{
  animation:navSweepBar .34s cubic-bezier(.22,.61,.36,1) forwards;
}

.desktop-nav-links li:hover::after{
  animation:navSweepFill .44s cubic-bezier(.22,.61,.36,1) .08s forwards;
}

body.page-home .desktop-nav-links li:hover a,
body.page-home .desktop-nav-links li:focus-within a,
body:not(.page-home) .desktop-nav-links li:hover a,
body:not(.page-home) .desktop-nav-links li:focus-within a{
  color:#fff;
}

body.page-home .desktop-nav-links li:hover .desktop-nav-trigger,
body.page-home .desktop-nav-links li:focus-within .desktop-nav-trigger,
body:not(.page-home) .desktop-nav-links li:hover .desktop-nav-trigger,
body:not(.page-home) .desktop-nav-links li:focus-within .desktop-nav-trigger{
  color:#fff;
}

@keyframes navSweepBar{
  0%{ left:-20px; opacity:0; }
  12%{ opacity:1; }
  82%{ opacity:1; }
  100%{ left:calc(100% - 2px); opacity:0; }
}

@keyframes navSweepFill{
  0%{ transform:translateX(110%); opacity:0; }
  12%{ opacity:0; }
  24%{ opacity:1; }
  100%{ transform:translateX(0); opacity:1; }
}

.desktop-nav-search{
  position:absolute;
  right:var(--desktop-search-anchor-right);
  top:var(--desktop-search-anchor-top);
  transform:translateY(-50%);
  width:30px;
  height:30px;
  opacity:.95;
  filter:none;
  cursor:pointer;
  z-index:6;
  touch-action:manipulation;
}

body.page-home .desktop-nav-logo,
body.page-home .desktop-nav-links a,
body.page-home .desktop-nav-links .desktop-nav-trigger{
  color:#fff;
}

body.page-home .main-nav-desktop{
  margin-bottom:-76px;
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-top:0;
}

@media (min-width: 992px){
  body.page-home .main-nav-desktop::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:-34px;
    height:132px;
    background:linear-gradient(180deg, rgba(4,12,24,.90) 0%, rgba(5,14,28,.68) 48%, rgba(6,16,30,.22) 78%, rgba(6,16,30,0) 100%);
    pointer-events:none;
    z-index:-1;
  }
}

body.page-home .desktop-nav-search{
  filter:brightness(0) invert(1);
}

.desktop-nav-search.icon-burst{
  animation:cloneSearchBurst .34s ease forwards;
}

.desktop-nav-search.icon-return{
  animation:cloneSearchReturn .42s ease forwards;
  pointer-events:none;
}

.desktop-nav-search.icon-disabled{
  opacity:0 !important;
  pointer-events:none !important;
}

.desktop-search-panel{
  position:absolute;
  left:60px;
  right:60px;
  top:var(--desktop-search-anchor-top);
  height:38px;
  transform:translateY(-50%);
  opacity:0;
  overflow:hidden;
  border-radius:4px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 2px 8px rgba(0,0,0,.10);
  transition:clip-path .26s ease, opacity .16s ease;
  clip-path:inset(0 0 0 100% round 4px);
  z-index:5;
}

.desktop-search-panel.active{
  opacity:1;
  clip-path:inset(0 0 0 0 round 4px);
}

.desktop-search-panel.closing{
  opacity:0;
  clip-path:inset(0 0 0 100% round 4px);
  transition:clip-path .26s ease, opacity .12s linear .13s;
}

.desktop-search-results{
  position:absolute;
  left:60px;
  right:60px;
  top:calc(var(--desktop-search-anchor-top) + 30px);
  max-height:min(55vh, 420px);
  overflow-y:auto;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 30px rgba(0,0,0,.18);
  z-index:12;
  display:none;
}

.desktop-search-results.is-open{
  display:block;
}

.search-result-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-bottom:1px solid rgba(0,0,0,.08);
  color:#0f2c5c;
  text-decoration:none;
  font-family:'Figtree', var(--site-font-fallback);
  transition:background .16s ease;
}

.search-result-item:last-child{
  border-bottom:0;
}

.search-result-item:hover,
.search-result-item:focus-visible{
  background:rgba(17,54,118,.10);
  outline:none;
}

.search-result-title{
  font-size:14px;
  font-weight:600;
}

.search-result-meta{
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#113676;
}

.search-result-empty{
  padding:12px;
  font-family:'Figtree', var(--site-font-fallback);
  font-size:13px;
  color:#3a3a3a;
}

.desktop-dropdown-portal{
  position:fixed;
  top:0;
  left:0;
  min-width:320px;
  max-width:min(560px, 42vw);
  padding:14px;
  border-radius:18px;
  background:rgba(17, 54, 118, .96);
  box-shadow:0 18px 42px rgba(0,0,0,.24);
  display:none;
  gap:6px;
  z-index:1600;
  opacity:0;
  transform:translate(-50%, 10px);
  transition:opacity .18s ease, transform .22s ease;
}

.desktop-dropdown-portal.is-open{
  display:grid;
  opacity:1;
  transform:translate(-50%, 0);
}

.desktop-dropdown-portal.is-packages{
  min-width:420px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.desktop-dropdown-portal a{
  display:block;
  padding:11px 14px;
  border-radius:12px;
  font-size:16px;
  line-height:1.25;
  font-family:var(--font-nav);
  color:#fff;
  text-decoration:none;
  background:transparent;
  transition:background .2s ease, transform .2s ease;
}

.desktop-dropdown-portal a:hover,
.desktop-dropdown-portal a:focus-visible{
  background:rgba(255,255,255,.12);
  transform:translateX(3px);
  outline:none;
}

.desktop-search-input{
  width:100%;
  height:100%;
  border:none;
  outline:none;
  border-radius:inherit;
  padding:0 52px 0 12px;
  font-size:14px;
  box-sizing:border-box;
  background:#fff;
  color:#111;
}

.desktop-search-panel:not(.active) .desktop-search-input{
  caret-color:transparent;
}

.desktop-search-panel.active .desktop-search-input{
  caret-color:#111;
}

.desktop-search-close{
  display:flex;
  position:absolute;
  right:calc(var(--desktop-search-anchor-right) - 10px);
  top:var(--desktop-search-anchor-top);
  transform:translateY(-50%);
  width:50px;
  height:50px;
  border:0;
  background:transparent;
  color:#000;
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .14s ease, color .16s ease;
  outline:none;
  box-shadow:none;
  touch-action:manipulation;
  z-index:8;
}

.desktop-search-close.visible{
  opacity:1;
  pointer-events:auto;
}

.desktop-search-close.switch-white{
  color:#fff;
}

.desktop-search-close.switch-white svg path{
  stroke:#fff !important;
}

.desktop-search-close.spin-twice svg{
  animation:cloneXSpinTwice .36s linear 1 forwards;
}

.desktop-search-close.exiting{
  animation:cloneCloseIconHide .24s ease forwards;
}

.desktop-search-close svg{
  width:26px;
  height:26px;
  display:block;
  flex:0 0 auto;
}

.main-nav-desktop.search-active .desktop-nav-logo{
  left:52px;
  opacity:0;
  pointer-events:none;
}

.main-nav-desktop.search-active .desktop-nav-links li{
  opacity:0;
  transform:translateX(18px);
  pointer-events:none;
}

.main-nav-desktop.search-active .desktop-nav-links li:nth-child(1){ transition-delay:0s; }
.main-nav-desktop.search-active .desktop-nav-links li:nth-child(2){ transition-delay:.03s; }
.main-nav-desktop.search-active .desktop-nav-links li:nth-child(3){ transition-delay:.06s; }
.main-nav-desktop.search-active .desktop-nav-links li:nth-child(4){ transition-delay:.09s; }
.main-nav-desktop.search-active .desktop-nav-links li:nth-child(5){ transition-delay:.12s; }



@keyframes cloneSearchBurst{
  0%{ transform:translateY(-50%) scale(1); opacity:.95; filter:brightness(0) invert(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  34%{ transform:translateY(-50%) scale(1.22); opacity:1; filter:brightness(0) invert(1) drop-shadow(0 0 9px rgba(255,255,255,.95)); }
  54%{ transform:translateY(-50%) scale(1.04); opacity:1; filter:brightness(0) invert(1) drop-shadow(0 0 2px rgba(255,255,255,.55)); }
  100%{ transform:translateY(-50%) scale(.58); opacity:0; filter:brightness(0) invert(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

@keyframes cloneSearchReturn{
  0%{ transform:translateY(-50%) scale(.18); opacity:0; filter:brightness(0) invert(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  62%{ transform:translateY(-50%) scale(1.18); opacity:1; filter:brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.8)); }
  100%{ transform:translateY(-50%) scale(1); opacity:.95; filter:brightness(0) invert(1) drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

@keyframes cloneCloseIconHide{
  0%{ opacity:1; transform:translateY(-50%) scale(1); }
  100%{ opacity:0; transform:translateY(-50%) scale(.18); }
}

@keyframes cloneXSpinTwice{
  0%{ transform:rotate(0deg); }
  100%{ transform:rotate(90deg); }
}
