/* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  box-sizing: border-box; }

html {
  font-size: 62.5%; }

body {
  font-size: 1.4rem;
  font-family: "Kanit", sans-serif;
  color: #25283D;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

a {
  color: #ec2028;
  text-decoration: none; }

img {
  max-width: 100%; }

/* -------------------------------- 

1. Auto-Hiding Navigation - Simple

-------------------------------- */
.cd-auto-hide-header {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 51px;
  background-color: #111;
  /* Force Hardware Acceleration */
  transform: translateZ(0);
  will-change: transform;
  transition: transform .5s; }
  .cd-auto-hide-header::after {
    clear: both;
    content: "";
    display: block; }
  .cd-auto-hide-header.is-hidden {
    transform: translateY(-100%); }
  @media only screen and (min-width: 1024px) {
    .cd-auto-hide-header {
      height: 51px; } }

.cd-auto-hide-header .logo,
.cd-auto-hide-header .nav-trigger {
  position: absolute;
  /*@include center(y);*/ }

.cd-auto-hide-header .logo {
  left: 5%; }
  .cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
    display: block; }

.cd-auto-hide-header .nav-trigger {
  /* vertically align its content */
  display: table;
  height: 100%;
  padding: 0 1em;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #25283D;
  font-weight: bold;
  right: 0;
  border-left: 1px solid #f2f2f2; }
  .cd-auto-hide-header .nav-trigger span {
    /* vertically align inside parent element */
    display: table-cell;
    vertical-align: middle; }
  .cd-auto-hide-header .nav-trigger em, .cd-auto-hide-header .nav-trigger em::after, .cd-auto-hide-header .nav-trigger em::before {
    /* this is the menu icon */
    display: block;
    position: relative;
    height: 2px;
    width: 22px;
    background-color: #25283D;
    backface-visibility: hidden; }
  .cd-auto-hide-header .nav-trigger em {
    /* this is the menu central line */
    margin: 6px auto 14px;
    transition: background-color .2s; }
  .cd-auto-hide-header .nav-trigger em::before, .cd-auto-hide-header .nav-trigger em::after {
    position: absolute;
    content: '';
    left: 0;
    transition: transform .2s; }
  .cd-auto-hide-header .nav-trigger em::before {
    /* this is the menu icon top line */
    transform: translateY(-6px); }
  .cd-auto-hide-header .nav-trigger em::after {
    /* this is the menu icon bottom line */
    transform: translateY(6px); }
  @media only screen and (min-width: 1024px) {
    .cd-auto-hide-header .nav-trigger {
      display: none; } }

.cd-auto-hide-header.nav-open .nav-trigger em {
  /* transform menu icon into a 'X' icon */
  background-color: rgba(255, 255, 255, 0); }
.cd-auto-hide-header.nav-open .nav-trigger em::before {
  /* rotate top line */
  transform: rotate(-45deg); }
.cd-auto-hide-header.nav-open .nav-trigger em::after {
  /* rotate bottom line */
  transform: rotate(45deg); }

/* -------------------------------- 

2. Auto-Hiding Navigation - with Sub Nav

-------------------------------- */
.cd-secondary-nav {
  position: relative;
  z-index: 1;
  clear: both;
  width: 100%;
  height: 40px;
  background-color: #ddd;
  /* Force Hardware Acceleration */
  transform: translateZ(0);
  will-change: transform;
  transition: transform .5s; }
  .cd-secondary-nav::after {
    /* gradient on the right - to indicate it's possible to scroll */
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    height: 100%;
    width: 35px;
    background: transparent;
    background: linear-gradient(to left, #ddd, rgba(221, 221, 221, 0));
    pointer-events: none;
    transition: opacity .2s; }
  .cd-secondary-nav.nav-end::after {
    opacity: 0; }
  .cd-secondary-nav ul, .cd-secondary-nav li, .cd-secondary-nav a {
    height: 100%; }
  .cd-secondary-nav ul {
    /* enables a flex context for all its direct children */
    display: flex;
    padding: 0 5%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
    .cd-secondary-nav ul::after {
      clear: both;
      content: "";
      display: block; }
  .cd-secondary-nav li {
    display: inline-block;
    float: left;
    /* do not shrink - elements float on the right of the element */
    flex-shrink: 0; }
    .cd-secondary-nav li:last-of-type {
      padding-right: 20px; }
  .cd-secondary-nav a {
    display: block;
    color: #111;
    opacity: .6;
    line-height: 40px;
    padding: 0 1em; }
    .cd-secondary-nav a:hover, .cd-secondary-nav a.active {
      opacity: 1;
      color: #ec2028; }
  @media only screen and (min-width: 1024px) {
    .cd-secondary-nav {
      height: 50px;
      overflow: visible; }
      .cd-secondary-nav ul {
        /* reset mobile style */
        display: block;
        text-align: center; }
      .cd-secondary-nav li {
        /* reset mobile style */
        float: none;
        flex-shrink: 1; }
      .cd-secondary-nav a {
        line-height: 50px; }
        .cd-secondary-nav a.active {
          box-shadow: inset 0 -3px #ec2028; } }

/* -------------------------------- 

3. Auto-Hiding Navigation - with Sub Nav + Hero Image

-------------------------------- */
.cd-secondary-nav.fixed {
  position: fixed;
  top: 51px; }
.cd-secondary-nav.slide-up {
  transform: translateY(-51px); }
@media only screen and (min-width: 1024px) {
  .cd-secondary-nav.fixed {
    top: 51px;
    /* fixes a bug where nav and subnab move with a slight delay */
    box-shadow: 0 -6px 0 #25283D; }
  .cd-secondary-nav.slide-up {
    transform: translateY(-51px); } }

/* -------------------------------- 

Main content

-------------------------------- */
.cd-main-content {
  padding: 51px 5% 2em;
  overflow: hidden; }
  .cd-main-content.sub-nav {
    /* to be used if there is sub nav */
    padding-top: 91px; }
  .cd-main-content.sub-nav-hero {
    /* to be used if there is hero image + subnav */
    padding-top: 0; }
    .cd-main-content.sub-nav-hero.secondary-nav-fixed {
      margin-top: 40px; }
  .cd-main-content p {
    max-width: 1024px;
    line-height: 1;
    font-family: "Hind", serif;
    color: #a5a8a8; }
  @media only screen and (min-width: 1024px) {
    .cd-main-content {
      padding-top: 51px; }
      .cd-main-content.sub-nav {
        padding-top: 101px; }
      .cd-main-content.sub-nav-hero.secondary-nav-fixed {
        margin-top: 50px; }
      .cd-main-content p {
        font-size: 1.4rem; } }

/*
	adjust the positioning of in-page links
	http://nicolasgallagher.com/jump-links-and-viewport-positioning/
*/
.cd-main-content.sub-nav :target::before,
.cd-main-content.sub-nav-hero :target::before {
  display: block;
  content: "";
  margin-top: -40px;
  height: 40px;
  visibility: hidden; }
  @media only screen and (min-width: 1024px) {
    .cd-main-content.sub-nav :target::before,
    .cd-main-content.sub-nav-hero :target::before {
      margin-top: -50px;
      height: 50px; } }

/* -------------------------------- 

Intro Section

-------------------------------- */
.cd-hero {
  /* vertically align its content */
  display: table;
  width: 100%;
  margin-top: 51px;
  /*width:1550px;
  height:600px;*/ }
  .cd-hero .cd-hero-content {
    /* vertically align inside parent element */
    display: table-cell;
    vertical-align: middle;
    text-align: center; }

.cd-hero-pic {
  width: 100%; }

/*# sourceMappingURL=style.css.map */
