/*
  Client: ABS Automated Business Services Ltd.
  Author: Jun Peng
  Author URI: http://www.junpeng.ca
*/


/*********************
*    
*  basic components
*
*********************/

body {
  background-color: #fff;
  font-family: "Montserrat", Arial;
  color: #505050;
  font-weight: 400;
  min-width: 600px;
  overflow-y: scroll;

  background: url("../img/gradient.png");
  background-size: cover;
}

header {
  width: 100%;
  padding: 2.5em 0 45px;
  overflow: hidden;
  position: absolute;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

p {
  font-size: 12px;
  line-height: 180%;
}

h2 {
  font-weight: 700;
  font-size: 1.2em;
  color: #505050;
}

h3 {
  font-weight: 700;
  font-size: 1em;
  text-transform: uppercase;
  margin: 1em 0 0.33em;
}

h4 {
  font-weight: 300;
  font-size: 1em;
  color: #0f75bc;
  margin: 1em 0 0.33em;
}

ul {
  list-style: none;
  padding: 0;
}

#logo {
  text-align: center;
}

/*********************
*    
*  grid system
*
*********************/

.container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background-color: #fff; 
}
  
.column,
.columns {
  width: 100%;
  float: left;
  box-sizing: border-box; 
}

.column,
.columns {
  margin-left: 4%; }
.column:first-child,
.columns:first-child {
  margin-left: 0; }

.one.column,
.one.columns                    { width: 4.66666666667%; }
.two.columns                    { width: 13.3333333333%; }
.three.columns                  { width: 22%;            }
.four.columns                   { width: 30.6666666667%; }
.five.columns                   { width: 39.3333333333%; }
.six.columns                    { width: 48%;            }
.seven.columns                  { width: 56.6666666667%; }
.eight.columns                  { width: 65.3333333333%; }
.nine.columns                   { width: 74.0%;          }
.ten.columns                    { width: 82.6666666667%; }
.eleven.columns                 { width: 91.3333333333%; }
.twelve.columns                 { width: 100%; margin-left: 0; }

.one-third.column               { width: 30.6666666667%; }
.two-thirds.column              { width: 65.3333333333%; }

.one-half.column                { width: 48%; }

/* Offsets */
.offset-by-one.column,
.offset-by-one.columns          { margin-left: 8.66666666667%; }
.offset-by-two.column,
.offset-by-two.columns          { margin-left: 17.3333333333%; }
.offset-by-three.column,
.offset-by-three.columns        { margin-left: 26%;            }
.offset-by-four.column,
.offset-by-four.columns         { margin-left: 34.6666666667%; }
.offset-by-five.column,
.offset-by-five.columns         { margin-left: 43.3333333333%; }
.offset-by-six.column,
.offset-by-six.columns          { margin-left: 52%;            }
.offset-by-seven.column,
.offset-by-seven.columns        { margin-left: 60.6666666667%; }
.offset-by-eight.column,
.offset-by-eight.columns        { margin-left: 69.3333333333%; }
.offset-by-nine.column,
.offset-by-nine.columns         { margin-left: 78.0%;          }
.offset-by-ten.column,
.offset-by-ten.columns          { margin-left: 86.6666666667%; }
.offset-by-eleven.column,
.offset-by-eleven.columns       { margin-left: 95.3333333333%; }

.offset-by-one-third.column,
.offset-by-one-third.columns    { margin-left: 34.6666666667%; }
.offset-by-two-thirds.column,
.offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }

.offset-by-one-half.column,
.offset-by-one-half.columns     { margin-left: 52%; }

/*********************
*    
*  contact &
*  navigation
*
*********************/

#contact {
  width: 94%;
  text-align: right;
  margin-right: 6%;
}

#contact a {
  color: #000;
  font-size: 0.7em;
  display: block;
}

#contact>ul,nav>ul {
  list-style: none;
  margin: 0;
}

#contact>ul>li {
  display: inline-block;
  margin-left: 3%;
}

#contact span {
  vertical-align: top;
  margin-left: 0.3em;
}

nav>ul {
  margin-top: 3.5em;
  padding: 0;
}

nav>ul>li {
  position: relative;
  display: inline-block;
  margin: 0;
  margin-bottom: 1em;
  float: left;
  background: #ddd;
  text-align: center;
  border-radius: 1em;

  width: 20%;
  padding: 0.2em 1%;
  margin-left: 2%;
}

nav>ul>li>img {
  display: none;
}

nav>ul>li.active img {
  /*cursor: pointer;*/
  display: inline-block;
  position: absolute;
  top: 35px;
  -ms-transform: translate(-50%, 0); /* IE 9 */
  -webkit-transform: translate(-50%, 0); /* Safari */
  transform: translate(-50%, 0);
}

nav>ul>li:hover {
  cursor: pointer;
  opacity: 0.8;
}

nav>ul>li:first-child {
    margin-left: 0;
}

nav>ul>li>a {
  display: block;
  line-height: 2em;
  font-size: 0.7em;
  color: #fff;
  text-transform: uppercase;
}

#nav-about {
  background: #e37788;
}

#nav-advtg {
  background: #7fc55f;
}

#nav-services {
  background: #6e8ec9;
}

#nav-links {
  background: #df7646;
}

/*********************
*    
*  content
*
*********************/

.content-wrapper {
  
  overflow: hidden;
}

.content {
  padding-right: 2.5%;
}

.content:first-child {
  padding-top: 13em;
}

.content:last-child {
  padding-bottom: 2em;
}

.content ul>li {
  font-size: 12px;
  line-height: 1.3em;
  margin: 0.5em 0;
}

#bg-about {
  background: url("../img/about.jpg") no-repeat;
  background-size: 56%;
  background-position: 0 170px;
  min-height: 710px;
}

#bg-advtg {
  background: url("../img/advtg.png") no-repeat;
  background-size: 45%;
  background-position: 11% 180px;
  min-height: 780px;
}

#bg-services {
  background: url("../img/service.jpg") no-repeat;
  background-size: 48%;
  background-position: 0 120px;
}

#bg-services p, #bg-services ul {
  margin-top: 0;
}

#bg-links {
  background: url("../img/links.png") no-repeat;
  background-size: 1240px;
  background-position: 0 0;
  min-height: 730px;
}

#bg-links ul>li>a {
  color: #47c0b7;
}

#bg-links ul>li>a:hover {
  text-decoration: underline;
}

.divider {
  width: 100%;
  height: 1px;
  border-bottom: 2px solid #3d3d3d;
}

/*********************
*    
*  footer
*
*********************/

footer {
  text-align: right;
  font-size: 0.7em;
  border-top: 0.5em solid #ddd;
  padding: 0.6em 0;
  width: 95%;
  margin: 0 2.5%;
}