/*	Document Setup
----------------------------------------------------------------------------- */

*,
*:before,
*:after {
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  outline: none;
}

body {
  color: var(--base-dark-color);
}

::-moz-selection {
  background: black;
  color: #fff;
}

::selection {
  background: black;
  color: #fff;
}

em,
i,
q,
dfn {
  font-style: italic;
}

b,
strong {
  font-weight: 700;
}

big {
  font-size: 1.2em;
}

small {
  font-size: 0.75em;
}

ins {
  text-decoration: underline;
}

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

sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

abbr,
acronym {
  cursor: help;
}

address {
  line-height: 1.5;
  margin: 0 0 1.6rem 0;
}

hr {
  border: none;
  border-top: 0.1rem solid var(--medium-contrast);
  margin: 6.4rem 0;
}

a,
a:focus,
a:active {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* LISTS */

ul,
ol {
  margin: 0 0 1.6rem 0;
  padding-left: 2.4rem;
}

ul {
  list-style: disc;
}
ul ul {
  list-style: circle;
}
ul ul ul {
  list-style: square;
}

ol {
  list-style: decimal;
}
ol ol {
  list-style: lower-alpha;
}
ol ol ol {
  list-style: lower-roman;
}

li {
  line-height: 1.5;
  margin: 0.8rem 0;
}

li > ul,
li > ol {
  margin: 0.8rem 0 0 1.6rem;
}

.reset-list-style,
.reset-list-style ul,
.reset-list-style ol {
  list-style: none;
  margin: 0;
}

.reset-list-style li {
  margin: 0;
}

dt,
dd {
  line-height: 1.5;
}

dt {
  font-weight: 700;
}

dt + dd {
  margin-top: 0.8rem;
}
dd + dt {
  margin-top: 1.6rem;
}

/* QUOTES */

blockquote {
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 0 0 0 0.2rem;
  color: inherit;
  font-size: 1em;
  margin: 3.2rem 0;
  padding: 0.8rem 0 0.8rem 1.6rem;
}

cite {
  color: var(--high-contrast);
  font-size: var(--font-size-6);
  font-style: normal;
  font-weight: 600;
}

blockquote cite {
  display: block;
  margin: 1.6rem 0 0 0;
}

blockquote p:last-child {
  margin: 0;
}

/* CODE */

code,
kbd,
pre,
samp {
  font-family: monospace;
  font-size: 1em;
  padding: 0.4rem 0.6rem;
}

code,
kbd,
samp {
  background: var(--low-contrast);
  border-radius: 0.2rem;
}

pre {
  border: 0.1rem solid var(--medium-contrast);
  line-height: 1.5;
  margin: 3.2rem 0;
  overflow: auto;
  padding: 2.4rem;
  text-align: left;
}

pre code {
  background: transparent;
  padding: 0;
}

/* MEDIA */

figure {
  margin: 0;
}

iframe {
  display: block;
  max-width: 100%;
}

svg,
img,
embed,
object {
  display: block;
  height: auto;
  max-width: 100%;
}

figcaption {
  display: block;
  font-size: var(--font-size-6);
  line-height: 1.2;
  margin-top: 1.6rem;
}

/* INPUTS */

fieldset {
  border: 1px solid var(--medium-contrast);
  padding: 2.4rem;
}

legend {
  width: auto;
  font-size: 0.85em;
  font-weight: 700;
  padding: 0 0.8rem;
  text-transform: uppercase;
}

label {
  display: block;
  font-size: var(--font-size-5);
  font-weight: 700;
  margin: 0 0 0.4rem 0;
}

label.inline,
input[type="checkbox"] + label {
  display: inline;
  font-weight: 400;
  margin-left: 0.4rem;
}

input,
textarea,
select,
button,
.select2-container .select2-selection--single {
  font-family: inherit;
  line-height: 1;
}

input,
textarea,
select,
.select2-container .select2-selection--single {
  border-color: var(--medium-contrast);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="week"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="color"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border-radius: 0;
  border-style: solid;
  border-width: 0.1rem;
  box-shadow: none;
  color: inherit;
  display: block;
  margin: 0;
  max-width: 100%;
  outline: none;
  padding: 1.2rem 1.4rem;
  width: 100%;
}

textarea {
  height: 12rem;
  line-height: 1.5;
  width: 100%;
  resize: none;
}

select {
  background: transparent no-repeat;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="square" stroke-linejoin="square" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-position: calc(100% - 1rem) center;
  line-height: 1.5;
  padding: 1.2rem 4rem 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

input::-webkit-input-placeholder {
  line-height: normal;
}
input:-ms-input-placeholder {
  line-height: normal;
}
input::-moz-placeholder {
  line-height: normal;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

button,
.button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--color-primary);
  border: none;
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: var(--font-size-5);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  padding: 1.2rem 1.8rem;
  text-align: center;
  text-decoration: none;
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
button:focus,
.button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
  text-decoration: underline;
  color: #fff;
}

.input-checkbox,
.input-radio,
input[type="checkbox"],
input[type="radio"] {
  display: inline-flex;
  width: 17px;
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  position: relative;
  border: none;
  cursor: pointer;
  outline-width: 0;
  border-radius: 50%;
  top: 3px;
  margin: 0 8px 0 0;
}

.input-checkbox:after,
.input-radio:after,
input[type="checkbox"]:after,
input[type="radio"]:after {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 1px solid var(--base-dark-color);
}

input[type="checkbox"]:checked:after,
input[type="radio"]:checked:after {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.input-checkbox:checked:before,
.input-radio:checked:before,
input[type="checkbox"]:checked:before,
input[type="radio"]:checked:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  display: table;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top-width: 0;
  border-left-width: 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* SELECT2 */

.select2-container--default .select2-selection--single {
  background: transparent;
}

.select2-container .select2-selection--single {
  font-size: var(--font-size-5);
  height: 50px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: inherit;
  font-size: var(--font-size-5);
  line-height: 50px;
  padding-left: 18px;
  padding-right: 40px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 48px;
  width: 40px;
}

/* TABLES */

table {
  border: 0.1rem solid var(--medium-contrast);
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  font-size: var(--font-size-5);
  margin: 3.2rem 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

th,
td {
  border: 0.1rem solid var(--medium-contrast);
  line-height: 1.5;
  margin: 0;
  overflow: visible;
  padding: 0.5em;
}

caption {
  background: var(--medium-contrast);
  font-weight: 600;
  padding: 0.5em;
  text-align: center;
}

thead {
  vertical-align: bottom;
  white-space: nowrap;
}

th {
  font-weight: 700;
}

/*	MEDIA QUERY */

@media (min-width: 768px) {
  hr {
    margin: 10.4rem 0;
  }
}


/*	Typograpy
----------------------------------------------------------------------------- */

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: var(--font-size-5);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin: 4.8rem 0 2.4rem;
}

h1,
.font-size-1 {
  font-size: var(--font-size-1);
  line-height: 1.2;
}
h2,
.font-size-2 {
  font-size: var(--font-size-2);
  line-height: 1.3;
}
h3,
.font-size-3 {
  font-size: var(--font-size-3);
  line-height: 1.3;
}
h4,
.font-size-4 {
  font-size: var(--font-size-4);
}
h5,
.font-size-5 {
  font-size: var(--font-size-5);
}
h6,
.font-size-6 {
  font-size: var(--font-size-6);
}
.font-size-7 {
  font-size: var(--font-size-7);
}

p {
  line-height: 1.5;
  margin: 0 0 1.6rem 0;
}

p:last-child {
  margin-bottom: 0;
}

/*	MEDIA QUERY */

@media (min-width: 768px) {
  h1,
  .heading-size-1,
  h2,
  .heading-size-2,
  h3,
  .heading-size-3 {
    margin: 6.4rem 0 3.2rem;
  }

  h1,
  .font-size-1 {
    font-size: var(--font-size-1);
  }
  h2,
  .font-size-2 {
    font-size: var(--font-size-2);
  }
  h3,
  .font-size-3 {
    font-size: var(--font-size-3);
  }
  h4,
  .font-size-4 {
    font-size: var(--font-size-4);
  }
  h5,
  .font-size-5 {
    font-size: var(--font-size-5);
  }
  h6,
  .font-size-6 {
    font-size: var(--font-size-6);
  }
  .font-size-7 {
    font-size: var(--font-size-7);
  }
}


/*	Custom Classes and style
----------------------------------------------------------------------------- */

/* COLOR PRIMARY */

.color-primary,
.color-primary-hover:focus,
.color-primary-hover:hover {
  color: var(--color-primary);
}

/* BACKGROUND COLOR */

.bg-primary,
.bg-primary-hover:focus,
.bg-primary-hover:hover {
  background-color: var(--color-primary);
}

/* BORDER COLOR */

.border-color-primary,
.border-color-primary-hover:focus,
.border-color-primary-hover:hover {
  border-color: var(--color-primary);
}

/* IMAGE CLASSES */

.bg-cover {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg-contain {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.bg-attachment-fixed {
  background-attachment: fixed;
}

@supports (-webkit-overflow-scrolling: touch) {
  .bg-attachment-fixed {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-attachment-fixed {
    background-attachment: scroll;
  }
}