
/* ==========================================================
   COUNTERTRADE PREMIUM UNIVERSAL HEADER V2
   ========================================================== */

.ctu-header{
  --ctu-header-height:82px;
  position:fixed !important;
  z-index:9990 !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  height:var(--ctu-header-height) !important;
  min-height:var(--ctu-header-height) !important;
  overflow:visible !important;
  background:
    linear-gradient(180deg,rgba(3,11,27,.995) 0%,rgba(5,17,38,.985) 100%) !important;
  border-bottom:1px solid rgba(141,234,255,.14) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,.28),
    inset 0 -1px 0 rgba(255,255,255,.025) !important;
  backdrop-filter:blur(22px) saturate(125%) !important;
}

.ctu-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:1px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(141,234,255,.12) 12%,
      rgba(141,234,255,.72) 48%,
      rgba(67,148,255,.30) 76%,
      transparent 100%
    );
  pointer-events:none;
}

/* Keep the site header completely below the WordPress admin toolbar. */
body.admin-bar .ctu-header{
  top:32px !important;
}

.ctu-header-inner{
  width:min(1450px,calc(100vw - 56px)) !important;
  height:100% !important;
  min-height:var(--ctu-header-height) !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:190px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:26px !important;
  overflow:visible !important;
}

.ctu-brand{
  height:52px !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  padding-right:24px !important;
  border-right:1px solid rgba(255,255,255,.09) !important;
  overflow:visible !important;
}

.ctu-brand img{
  display:block !important;
  width:158px !important;
  height:auto !important;
  max-width:158px !important;
  max-height:38px !important;
  object-fit:contain !important;
  object-position:left center !important;
  filter:drop-shadow(0 4px 16px rgba(0,0,0,.24));
}

.ctu-nav{
  justify-self:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  min-width:0 !important;
  white-space:nowrap !important;
}

.ctu-nav a{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:40px !important;
  padding:0 10px !important;
  border:1px solid transparent !important;
  border-radius:999px !important;
  color:rgba(232,242,252,.74) !important;
  font-family:Arial,sans-serif !important;
  font-size:10px !important;
  font-weight:850 !important;
  line-height:1 !important;
  letter-spacing:.065em !important;
  text-decoration:none !important;
  text-transform:uppercase !important;
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    transform .2s ease !important;
}

.ctu-nav a:hover{
  color:#ffffff !important;
  background:rgba(141,234,255,.075) !important;
  border-color:rgba(141,234,255,.12) !important;
  transform:translateY(-1px);
}

.ctu-nav a.active{
  color:#e9fbff !important;
  background:
    linear-gradient(180deg,rgba(141,234,255,.13),rgba(141,234,255,.055)) !important;
  border-color:rgba(141,234,255,.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 9px 24px rgba(0,0,0,.12) !important;
}

.ctu-nav a.active::after{
  content:"" !important;
  position:absolute !important;
  left:20% !important;
  right:20% !important;
  bottom:-9px !important;
  height:2px !important;
  border-radius:999px !important;
  background:#8deaff !important;
  box-shadow:0 0 14px rgba(141,234,255,.68) !important;
}

.ctu-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  white-space:nowrap !important;
}

.ctu-contact,
.ctu-apply{
  min-height:44px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 17px !important;
  border-radius:999px !important;
  font-family:Arial,sans-serif !important;
  font-size:10px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:.085em !important;
  text-decoration:none !important;
  text-transform:uppercase !important;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease !important;
}

.ctu-contact{
  border:1px solid rgba(255,255,255,.11) !important;
  background:rgba(255,255,255,.035) !important;
  color:rgba(243,248,255,.84) !important;
}

.ctu-contact:hover{
  color:#ffffff !important;
  border-color:rgba(141,234,255,.24) !important;
  background:rgba(141,234,255,.075) !important;
  transform:translateY(-1px);
}

.ctu-apply{
  min-width:116px !important;
  border:1px solid rgba(141,234,255,.52) !important;
  background:
    linear-gradient(135deg,#8deaff 0%,#75cfff 52%,#5fa5ff 100%) !important;
  color:#041022 !important;
  box-shadow:
    0 12px 28px rgba(83,181,255,.22),
    inset 0 1px 0 rgba(255,255,255,.68) !important;
}

.ctu-apply:hover{
  transform:translateY(-2px);
  box-shadow:
    0 17px 36px rgba(83,181,255,.30),
    inset 0 1px 0 rgba(255,255,255,.75) !important;
}

.ctu-menu-button{
  display:none !important;
  width:44px !important;
  height:44px !important;
  padding:10px !important;
  border:1px solid rgba(141,234,255,.20) !important;
  border-radius:13px !important;
  background:rgba(141,234,255,.055) !important;
}

.ctu-menu-button span{
  display:block !important;
  width:100% !important;
  height:2px !important;
  margin:5px 0 !important;
  border-radius:999px !important;
  background:#ffffff !important;
}

/* Switch earlier to the polished mobile navigation instead of compressing links. */
@media(max-width:1430px){
  .ctu-header-inner{
    grid-template-columns:185px 1fr auto !important;
  }

  .ctu-nav{
    display:none !important;
    position:fixed !important;
    z-index:9992 !important;
    top:calc(var(--ctu-header-height) + 12px) !important;
    left:22px !important;
    right:22px !important;
    max-height:calc(100vh - 130px) !important;
    overflow:auto !important;
    padding:18px !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:6px !important;
    border:1px solid rgba(141,234,255,.18) !important;
    border-radius:22px !important;
    background:
      radial-gradient(circle at 100% 0,rgba(141,234,255,.10),transparent 28%),
      rgba(4,17,37,.985) !important;
    box-shadow:0 30px 80px rgba(0,0,0,.42) !important;
    backdrop-filter:blur(24px) !important;
  }

  body.admin-bar .ctu-nav{
    top:calc(32px + var(--ctu-header-height) + 12px) !important;
  }

  .ctu-nav.open{
    display:flex !important;
  }

  .ctu-nav a{
    min-height:48px !important;
    justify-content:flex-start !important;
    padding:0 16px !important;
    border-radius:14px !important;
    font-size:11px !important;
  }

  .ctu-nav a.active::after{
    display:none !important;
  }

  .ctu-menu-button{
    display:block !important;
  }
}

@media(max-width:782px){
  body.admin-bar .ctu-header{
    top:46px !important;
  }

  body.admin-bar .ctu-nav{
    top:calc(46px + var(--ctu-header-height) + 10px) !important;
  }
}

@media(max-width:760px){
  .ctu-header{
    --ctu-header-height:72px;
  }

  .ctu-header-inner{
    width:calc(100vw - 26px) !important;
    grid-template-columns:minmax(120px,1fr) auto !important;
    gap:10px !important;
  }

  .ctu-brand{
    height:46px !important;
    padding-right:0 !important;
    border-right:0 !important;
  }

  .ctu-brand img{
    width:144px !important;
    max-width:144px !important;
    max-height:34px !important;
  }

  .ctu-contact{
    display:none !important;
  }

  .ctu-apply{
    min-width:0 !important;
    min-height:40px !important;
    padding:0 12px !important;
    font-size:9px !important;
  }

  .ctu-menu-button{
    width:40px !important;
    height:40px !important;
  }

  .ctu-nav{
    top:calc(var(--ctu-header-height) + 9px) !important;
    left:13px !important;
    right:13px !important;
  }
}
