// 'colors
// ---- ---- ---- ---- ----

$black: #000;
$white: #fff;

$blue-1: #2c5697;
$blue-2: #2656b2;
$blue-3: rgba(44, 86, 151, 0.95);

$red-1: #a53632;
$grey-1: #f8f8f9;
$grey-2: #858585;
$grey-3: #ebebeb;

.black {
  color: $black;
}

.red {
  color: $red-1;
}

// 'clearfix
// ---- ---- ---- ---- ----

.clearfix:after {
  content: '.';
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clearfix {
  display: inline-block;
}
html[xmlns] .clearfix {
  display: block;
}
* html .clearfix {
  height: 1%;
}

// 'resets
// ---- ---- ---- ---- ----

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: $font;
}

img {
  max-width: 100%;
}

ul.nostyle {
  list-style: none;
  margin: 0;
  padding: 0;
}

// 'helper
// ---- ---- ---- ---- ----

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-lower {
  text-transform: lowercase !important;
}

.left {
  float: left;
}

.right {
  float: right;
}

.relative {
  position: relative;
}

.tablet-img,
.tablet-msg {
  display: none;
}

.w-100 {
  width: 100% !important;
}

.show {
  display: block;
}

.hide {
  display: none;
}

// 'typography
// ---- ---- ---- ---- ----

@mixin heading($size, $weight) {
  font-size: $size;
  font-weight: $weight;
  margin: 0;
}

h1 {
  @include heading(3.75rem, 700);
}

h2 {
  @include heading(size(36), 700);

  &.large {
    font-size: size(48);
  }

  &.small {
    font-size: 1.5rem;
  }
}

h3 {
  @include heading(1.125rem, 400);
  text-transform: uppercase;
}

p,
li {
  font-size: 1.125rem;
  line-height: size(36);

  &.large {
    font-size: 1.5rem;
    font-weight: bold;
  }
}

a {
  // font-size: 1.125rem;
  text-decoration: none;
}

.title-border {
  position: relative;
  text-transform: uppercase;

  &:before {
    content: '';
    border-top: 4px solid $red-1;
    width: 60px;
    position: absolute;
    top: -2rem;
    left: 0;
    z-index: 1;
  }
}

// 'laptop
// ---- ---- ---- ---- ----

@media screen and (max-width: $screen-laptop) {
  h1 {
    font-size: 3.125rem;
  }

  h2 {
    font-size: 2rem;

    &.large {
      font-size: 2.5rem;
    }
  }
}

// 'tablet pt
// ---- ---- ---- ---- ----

@media screen and (max-width: $screen-tablet-pt) {
  h1 {
    font-size: 2.5rem;
  }

  h2.small {
    font-size: 1.25rem;
  }
}

// 'tablet sm
// ---- ---- ---- ---- ----

@media screen and (max-width: $screen-tablet-sm) {
  h1 {
    font-size: size(36);
  }

  h2 {
    font-size: 1.875rem;

    &.large {
      font-size: 2rem;
    }
  }

  p.large {
    font-size: 1.25rem;
  }
}

// 'mobile
// ---- ---- ---- ---- ----

@media screen and (max-width: $screen-mobile) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5625rem;

    &.small {
      font-size: 1.125rem;
    }

    &.large {
      font-size: 1.5625rem;
    }
  }

  p {
    font-size: 1rem;
    line-height: 1.875rem;

    &.large {
      font-size: 1.125rem;
    }
  }
}
