/* ── Reset ─────────────────────────────────────────── */

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

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: .9em 0 .6em;
}

a {
  color: #0074D9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Grid ──────────────────────────────────────────── */

.row {
  display: block;
  overflow: auto;
}

.full {
  width: 100%;
}

@media (min-width: 750px) {
  .m-half {
    float: left;
    width: 50%;
  }
}

/* ── Nav ───────────────────────────────────────────── */

nav {
  width: 100%;
  position: fixed;
  text-align: center;
  top: 0;
  background: #fff;
  box-shadow: 0 0 .6em rgba(0, 0, 0, .3);
  z-index: 10;
  transition: all .3s ease;
  height: 3em;
}

nav.transparent {
  box-shadow: none;
  background: transparent;
}

nav.transparent a,
nav.transparent a:visited {
  color: #fff;
}

nav a,
nav a:visited {
  color: #333;
  display: inline-block;
  font-size: 1em;
  height: 3em;
  line-height: 3em;
  padding: 0 .6em;
  text-decoration: none;
}

nav a:hover {
  color: #333;
  box-shadow: inset 0 -.2em 0 #7fdbff;
  text-decoration: none;
}

nav .main,
nav .menu {
  margin: 0 .5em;
}

nav .main {
  font-weight: 700;
  float: left;
  max-width: 50%;
  white-space: nowrap;
}

nav .main img {
  height: 1.6em;
}

nav .menu {
  float: right;
}

/* ── Burger menu ───────────────────────────────────── */

.burgercheck,
.burgermenu {
  display: none;
  cursor: pointer;
}

.burgermenu {
  position: relative;
  height: .8em;
  width: .4em;
  margin: .35em;
}

.burgermenu::before,
.burgermenu::after {
  display: none;
  content: " ";
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  border-style: solid;
  border-color: #333;
  border-width: .14em 0;
}

.burgermenu::after {
  top: 50%;
  margin-top: -.07em;
}

nav.transparent .burgermenu::before,
nav.transparent .burgermenu::after {
  border-color: #fff;
}

@media (max-width: 750px) {
  .burgercheck ~ label::before,
  .burgercheck ~ label::after {
    display: block;
  }

  .burgercheck ~ label {
    position: fixed;
    top: 0;
    right: 0;
    display: inline-block;
    font-size: 2em;
    line-height: 1.5em;
    padding-right: .5em;
    text-align: right;
    transition: display 0s ease .3s;
    z-index: 11;
  }

  .burgercheck:checked ~ label::before,
  .burgercheck:checked ~ label::after {
    display: none;
  }

  .burgercheck:checked ~ label {
    margin: 0;
    right: 70%;
    width: 30%;
    height: 100%;
    transition: all .3s ease;
    background: rgba(255, 255, 255, .7);
  }

  nav .menu {
    position: fixed;
    width: 70%;
    height: 100%;
    right: -70%;
    top: 0;
    margin-right: 0;
    background: #fff;
    box-shadow: 0 0 .6em rgba(0, 0, 0, .3);
    overflow: auto;
    transition: all .3s ease;
    z-index: 12;
  }

  .burgercheck:checked ~ .menu {
    right: 0;
    transition: all .3s ease;
  }

  nav .menu a,
  nav.transparent .menu a,
  nav.transparent .menu a:visited {
    display: block;
    text-align: left;
    color: #333;
  }
}

/* ── Form inputs ───────────────────────────────────── */

input,
textarea {
  font: inherit;
  color: inherit;
  line-height: 1.5em;
  margin: .3em;
  padding: .3em .65em;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: .2em;
  transition: border-color .3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #7FDBFF;
  box-shadow: .1em .1em 0 rgba(0, 0, 0, .1);
}

button {
  font: inherit;
  cursor: pointer;
}

/* ── Icon font margin reset ────────────────────────── */

i[class*=" icon-"]::before,
i[class^="icon-"]::before {
  margin: 0;
}
