/* -----------------------------------------------------------------------------------
/ HEADER
/-----------------------------------------------------------------------------------*/

/* NAV ICON */
#header .nav-icon {
  display: none;
}

#header.sticky {
    top: 0;
    position: fixed;
}

#header {
  /* position: fixed; */
  top: 0;
  height: 105px;
  width: 100%;
  z-index: 3;
  background: #0081c8;
  padding: 15px 0;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#header .button {
  float: right;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#header .button.header {
	margin: 47px 15px 0 20px;
}

#header .button.header.double {
	padding-left: 20px;
	padding-right: 20px;
	margin-left: 0;
}

#header .button.header.double.first {
	margin-right: 5px;
	margin-left: 15px;
}

#header #block-matrix-branding {
  float: left;
  margin: 0 15px 0 15px;
  width: 265px;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  z-index: 10;
}

#header #block-matrix-branding a {
  display: block;
}

#header #block-matrix-branding img {
  height: 67px;
  width: auto;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#header.small {
	height: 60px;
	font-size: 100%;
}

#header.small #block-matrix-branding {
  width: 178px;
}

#header.small #block-matrix-branding img {
  height: 45px;
  top: -10px;
}

#header.small .button.header {
  margin-top: 0;
}

#header.small .block-menu.menu--main,
#header.small .block-search {
  margin-top: -15px;
}

#header.small #block-headermenu,
#header.small #block-languageswitcher {
  opacity: 0;
  display: none;
}

#footer a.language-link {
	display: none;
}

/* -----------------------------------------------------------------------------------
/ NAVIGATION & SECONDARY NAVIGATION
/-----------------------------------------------------------------------------------*/

#block-headermenu {
  position: absolute;
  right: 90px;
  top: 0;
  opacity: 1;
  visibility: visible;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

#block-headermenu ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

#block-headermenu li {
  padding: 0;
  margin: 0;
  display: inline;
}

#block-headermenu li:last-of-type a {
  padding-right: 0;
}

#block-headermenu li:last-of-type a:after {
  display: none;
}

#block-headermenu a {
  float: left;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 10px;
  text-decoration: none;
  -webkit-transition: color 0.3s ease-out;
  -moz-transition: color 0.3s ease-out;
  -o-transition: color 0.3s ease-out;
  -ms-transition: color 0.3s ease-out;
  transition: color 0.3s ease-out;
}

#block-headermenu a:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
}

#block-headermenu a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.region.region-header {
	display:inline-block;
	width:100%;
}
	
.block-search {
	margin-left: 15px;
	width:auto;
	overflow:hidden;
}

.block-search form {
	display: flex; /* GDR hint */
}

.block-search .form-item,
.block-search .form-actions {
	/* display:table-cell; */  /* GDR hint */
	margin:0;
}

.block-search .form-item {
	width:100%;
}

.block-search .form-item input {
	padding: 10px;
}

.block-search .form-actions .button {
	margin: 17px 15px 17px 10px;
}

.block-search .form-actions .form-submit.for-mobile {
	  display: none;
  }

.block-menu.menu--main,
.block-search { 
  z-index: 2;
  margin-top: 30px;
  opacity: 1;
  visibility: visible;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

/* Header menu dropdown behavior for desktop */
@media (hover: hover) and (pointer: fine) {
  #header .menu--main ul.menu > li.menu-item > ul.menu {
    display: none;
  }

  #header .menu--main ul.menu > li.menu-item:hover > ul.menu {
    display: block;
  }
}

#block-customsearchapi,
#block-customsearchapi .clearfix,
#block-customsearchmatrixframe,
#block-customsearchmatrixframe .clearfix,
#block-customsearchmatrixtools,
#block-customsearchmatrixtools .clearfix,
#block-customsearchmatrixbeam,
#block-customsearchmatrixbeam .clearfix,
#block-customsearchmatrixproject,
#block-customsearchmatrixproject .clearfix {
	overflow: hidden;
}

.block-menu.menu--main {
	float: right;
}

.block-menu.menu--main > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  /* dispay second level */
  /* SECOND LEVEL */
}

/* #block-contactmenu > ul li, */
.block-menu.menu--main > ul li {
  float: left;
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  -ms-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.block-menu.menu--main > ul > li > a {
  line-height: 50px;
  height: 60px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  background: #0081c8;
}

.block-menu.menu--main > ul a {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.block-menu.menu--main > ul ul {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  left: 0;
  top: 100%;
  padding: 0;
  z-index: -1;
  transform: translateY(-2em);
  max-width: 400px;
  white-space: nowrap;
  -webkit-transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
  -moz-transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
  -o-transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
  -ms-transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
   transition: all 0.2s ease-in-out 0s, visibility 0s linear 0.3s, z-index 0s linear 0.01s;
  /* THIRD LEVEL */
}

.block-menu.menu--main > ul ul li {
  width: 100%;
  clear: both;
  /* margin-top: -30px; */
}

.block-menu.menu--main > ul ul a {
  background: #0081c8;
  color: #fff;
  border-top: none;
  padding: 10px 20px;
  height: auto;
  line-height: normal;
}

.block-menu.menu--main > ul > li:hover > ul {
  visibility: visible;
  opacity: 1;
  top: 100%;
  background: #0081c8;
  transform: translateY(0%);
  transition-delay: 0s, 0s, 0.3s;
}

.block-menu.menu--main > ul ul a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.block-menu.menu--main > ul ul li:hover > ul {
  visibility: visible;
  opacity: 1;
  left: 100%;
  background: #0081c8;
}

.block-menu.menu--main > ul ul ul {
  visibility: hidden;
  opacity: 0;
  top: 10px;
  margin-left:0;
}
  
/* languages switcher */
#block-languageswitcher {
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	-ms-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	z-index: 1;
	}
#block-languageswitcher ul { list-style-type: none; position: absolute; right: 0px; margin-right: 20px; }
#block-languageswitcher ul li { float:right; padding: 3px; }
#block-languageswitcher ul li a { display:block; text-overflow:hidden; text-indent: -9999px; width:24px; height:24px; white-space: nowrap; opacity: 0.4; }
#block-languageswitcher ul li.nl a { background: transparent url(../images/flags/24/nl.png) 100% 0px no-repeat; }
#block-languageswitcher ul li.en a { background: transparent url(../images/flags/24/gb.png) 100% 0px no-repeat; }
/*#block-languageswitcher ul li.fr a { background: transparent url(../images/flags/24/fr.png) 100% 0px no-repeat; }
#block-languageswitcher ul li.lt a { background: transparent url(../images/flags/24/lt.png) 100% 0px no-repeat; }*/
#block-languageswitcher ul li.is-active a, #block-languageswitcher ul li:hover a { opacity: 1; }

@media only screen and (max-width: 1024px) {
  #header #block-matrix-branding,
  #header.small #block-matrix-branding {
    width: 178px;
  }
  
  #header #block-matrix-branding img,
  #header.small #block-matrix-branding img {
    height: 45px;
    top: 0;
    width: auto;
  }
  
  #block-headermenu,
  .block-menu.menu--main {
	 font-size: 0.9em; 
  }
}

@media only screen and (max-width: 768px) {
  #header,
  #header.small {
    position: inherit;
    height: 60px;
    padding: 0;
	/* border-bottom: solid 1px #ebebeb; */
  }
  
  #header .button.header,
  #header.small .button.header,
  .block-search { 
    float: right;
    margin: 15px 0 0;
  }
  
  #header .button.header.first {
	  display: none;
  }
  
  .block-search .form-actions .button {
	  margin: 0 10px 0 0;
  }
  
  .block-search .form-item {
	  display: none;
  }
  
  .block-search .form-actions .form-submit.for-mobile {
	  display: block;
  }
  
  .block-search .form-actions .form-submit.non-mobile {
	  display: none;
  }
  
  #header #block-matrix-branding,
  #header.small #block-matrix-branding {
    margin: 15px 0 0 -90px;
    width: 178px;
    position: absolute;
    left: 50%;
    top: -10px;
  }
  #header #block-matrix-branding a,
  #header.small #block-matrix-branding a {
    display: block;
  }
  #header #block-matrix-branding img,
  #header.small #block-matrix-branding img {
    height: 45px;
    top: 0;
    width: auto;
  }
  
  #header.open .block-menu.menu--main > ul,
  #header.small.open .block-menu.menu--main > ul {
    opacity: 1;
    visibility: visible;
	display: block;
    top: 60px !important;
  }
  
  #block-languageswitcher,
  #block-headermenu,
  .block-search .form-item input {
    display: none;
  }
  
  #footer a.language-link {
	  display: block;
  }
  
  .block-menu.menu--main {
    float: left;
    margin: 0 !important;
  }
  .block-menu.menu--main ul {
    position: absolute;
    visibility: hidden;
	display: none;
    opacity: 0;
    left: -15px;
    top: 0 !important;
    padding: 0;
    z-index: -1;
    min-width: 500px;
    -webkit-transition: all 0.1s ease-out;
    -moz-transition: all 0.1s ease-out;
    -o-transition: all 0.1s ease-out;
    -ms-transition: all 0.1s ease-out;
    transition: all 0.1s ease-out;
  }
  .block-menu.menu--main ul li {
    width: 100%;
    clear: both;
    margin-top: -30px;
    margin: 0;
  }
  .block-menu.menu--main ul li > a {
    background: #0081c8;
    padding: 25px 30px;
    border-top: solid 1px #0077b9;
    height: auto;
    line-height: 1;
    text-align: left;
  }
  .block-menu.menu--main ul ul {
    opacity: 1;
    visibility: visible;
	display: block;
    position: inherit;
    left: auto;
    top: auto;
    z-index: auto;
  }

  .block-menu.menu--main ul ul li {
	margin-top: 0;
	background: #0081c8;
  }  
    
  .block-menu.menu--main > ul ul {
	max-width: 220px;
	white-space: normal;
	transform: translateY(0%);
  }
   
  .block-menu.menu--main > ul ul li > ul {
	  visibility: visible;
      display: block;
	  opacity: 1;
	  bottom: 100%;
	  background: #0081c8;
	}
	.block-menu.menu--main > ul ul li:hover > ul {
	  left: 0%;
	}

  .block-menu.menu--main ul ul a {
    background: #0071af;
    border-top: solid 1px #0077b9;
  }
  
  /* NAV ICON */
  #header .nav-icon {
    display: block;
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 100;
    left: -5px;
    top: 5px;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
  }
  #header .nav-icon div,
  #header .nav-icon div:after,
  #header .nav-icon div:before {
    position: absolute;
    width: 30px;
    height: 2px;
    background: #fff;
    top: 12px;
    margin: 0 0 0 10px;
    left: 0;
    visibility: visible;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    -webkit-transform: translate(0);
    -moz-transform: translate(0);
    -o-transform: translate(0);
    -ms-transform: translate(0);
    transform: translate(0);
  }
  #header.open .nav-icon div {
    background: #fff;
    top: 50%;
    -webkit-transform: rotateZ(45deg);
    -moz-transform: rotateZ(45deg);
    -o-transform: rotateZ(45deg);
    -ms-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
  }
  #header.open .nav-icon div:after,
  #header.open .nav-icon:hover div:after {
    margin: 0;
    top: 0;
    background: #fff;
    -webkit-transform: rotateZ(90deg);
    -moz-transform: rotateZ(90deg);
    -o-transform: rotateZ(90deg);
    -ms-transform: rotateZ(90deg);
    transform: rotateZ(90deg);
  }
  #header.open .nav-icon div:before {
    opacity: 0;
  }
  #header .nav-icon div:after,
  #header .nav-icon div:before {
    content: " ";
  }
  #header .nav-icon div:before {
    margin: 0px 0 0 0;
  }
  #header .nav-icon div:after {
    margin: 12px 0 0 0;
  }
  #header.open .nav-icon:hover div:after,
  #header.open .nav-icon:hover div {
    background: #fff;
  }
  /* section #header => nav .block-menu.menu--main */
}

@media only screen and (max-width: 480px) {
  .block-menu.menu--main ul {
    min-width: 320px;
  }
  
  #header .wrap,
  #header.small .wrap {
    padding: 0 15px;
  }
  #header #block-matrix-branding,
  #header.small #block-matrix-branding {
    width: 140px;
    margin: 15px 0 0 0;
    left: 70px;
  }
  #header #block-matrix-branding img,
  #header.small #block-matrix-branding img {
    max-width: 140px;
  }
  #header #block-contactmenu,
  #header.small #block-contactmenu {
	  margin-top: 0;
	}
  #header #block-contactmenu ul li a,
  #header.small #block-contactmenu ul li a {
    padding-left: 5px;
    padding-right: 5px;
  }
}
