/* 

Responsive grid - Nigel Hawketts - Vantech Media - March 2013

================= BREAKPOINTS: ================

    Device names (NFCs) for convenience only:
    
    Mobile:         0 - 30em
    Tablet:        30 - 50em
    Netbook:       50 - 60em
    Desktop:       60 - 60em+ (max-width 986px)

============================================= */

/* ============= NORMALIZE: ================= */

*
{
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

footer, header, nav, section, hr
{
  display: block;
  clear: left;
}

[hidden]
{
  display: none;
}

html
{
  font: 600 14px "Open Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  margin: 0;
  height: 100%;
}

a
{
  text-decoration: none;
  outline: 0;
  color: #4973FF;
  transition: color linear 0.35s;
}

a:hover
{
  color: #1B1B1B;
}

a img
{
  border: none;
}

strong
{
  font-weight: bold;
}

i
{
  font-style: normal;
}

q
{
  quotes: "\201C" "\201D" "\2018" "\2019";
}

small
{
  font-size: 80%;
}

sub, sup
{
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup
{
  top: -0.5em;
}

sub
{
  bottom: -0.25em;
}

img
{
  border: 0;
}

svg:not(:root)
{
  overflow: hidden;
}

/* Tables */

table
{
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, table
{
  margin-bottom: 1em;
}

ul
{
  margin-left: 0;
  padding-left: 2em;
}

.hidden
{
  display: none;
}

.mobile-only
{
  display: none;
}

/* ========== END NORMALIZE. BEGIN =========== */

body
{
  max-width: 784px;
  margin: 0 auto;
  padding: 0 1em;
  color: #484848;
  background-color: #fff;
}

header a
{
  display: block;
  width: 25%;
  padding-bottom: 17.5%;
  background: transparent url('../graphics/logo.svg') 0 90% no-repeat;
  background-size: 95%;
}

header h1
{
  display: none;
}

/* ========== NAVIGATION ============= */

nav
{
  border-top: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
  margin: 0 0 1em 0;
  font-size: 1.025em;
}

nav ul
{
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: bold;
}

nav ul:after
{
  content: '';
  clear: left;
  display: table;
}

nav li
{
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  float: left;
  background-color: #fff;
}

nav li ul
{
  position: absolute;
  top: 100%;
  display: none;
  border-top: 1px solid #E5E5E5;
  z-index: 99;
}

nav a
{
  display: block;
  padding: 0.75em 1.5em;
}

nav a:first-child
{
  padding-left: 1em;
}

nav li:hover ul
{
  display: block;
}

nav li li
{
  float: none;
  border-bottom: 1px solid #E5E5E5;
}

nav li li a
{
  min-width: 15em;
}

/* ========== CONTINUE... ============= */

#content
{
  margin-top: 1em;
  padding: 2em 0 5em 0;
  border-top: 0.5em solid #E5E5E5;
  border-bottom: 0.5em solid #E5E5E5;
}

h2
{
  letter-spacing: -0.075em;
  color: #A3A3A3;
  font-weight: 800;
  font-size: 1.85em;
  margin-bottom: 0.5em;
}

h3
{
  letter-spacing: -0.075em;
  color: #A3A3A3;
  font-weight: 800;
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

h4
{
  letter-spacing: -0.075em;
  color: #A3A3A3;
  font-weight: 800;
  font-size: 1.25em;
  margin-bottom: 0.5em;
}

#content ul
{
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#content li
{
  background: transparent url(../graphics/list-marker.png) no-repeat 0 0.45em;
  margin: 0 0 0.5em 0;
  padding: 0 0 0 1.25em;
}

table
{
  text-align: left;
  border: 1px solid #DCDCDC;
  border-bottom: none;
  border-right: none;
}

th
{
  font-weight: 800;
  background-color: #EBEBEB;
  color: #272727;
}

td, th
{
  padding: 0.5em;
  border: 1px solid #DCDCDC;
  border-top: none;
  border-left: none;
}

hr
{
  margin: 1.5em 0 1em 0;
  height: 1px;
  background-color: #DCDCDC;
  border: none;
}

/* ========== FORMS =========== */

input, label, .label, .button
{
  display: block;
  float: left;
  font: inherit;
  color: inherit;
  font-weight: 800;
  margin-bottom: 1em;
  padding: 0.25em;
  transition: all linear 0.5s;
}

input
{
  border: 1px solid #C6C6C6;
  border-radius: 0.175em;
}

input.error
{
  background-color: #FFE2EF;
  border-color: #FF93C3;
}

form p
{
  width: 100%;
  clear: left;
}

.button
{
  color: #fff;
  font-size: 1.125em;
  background-color: #688BFF;
  border-radius: 0.175em;
  padding: 0.25em 0.75em;
  cursor: pointer;
}

.button:hover
{
  background-color: #4E77FF;
}

/* ========= SIMPLE GRID ============ */

.row
{
  width: 100%;
  float: none;
  clear: both;
}

.unit
{
  display: block;
  float: left;
  width: 100%;
}

.quarter-width
{
  width: 25%;
}

.third-width
{
  width: 33.33%;
}

.half-width
{
  width: 50%;
}

.two-third-width
{
  width: 66.66%;
}

.three-quarter-width
{
  width: 75%;
}

footer
{
  font-size: 0.75em;
  padding: 1em 0;
}

footer, footer a
{
  color: #A3A3A3;
}

/* NFC 'MOBILE' */

@media all and (max-width: 40em)
{

  .mobile-only
  {
    display: block;
  }

  .desktop-only
  {
    display: none;
  }

  body
  {
    font-size: 0.925em;
    padding: 0 0.5em;
  }

  header a
  {
    width: 40%;
    padding-bottom: 25%;
    background-position: 0.5em 50%;
  }

  .quarter-width, .third-width, .half-width, .two-third-width, .three-quarter-width
  {
    width: 100%;
  }
}

