/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
  font-family: 'Archia Bold';
  font-style: normal;
  font-weight: normal;
  src: url('fonts/archia-bold-webfont.eot');
  src: url('fonts/archia-bold-webfont.eot?#iefix') format('embedded-opentype'),
       url('fonts/archia-bold-webfont.woff2') format('woff2'), url('fonts/archia-bold-webfont.woff') format('woff');
}

@font-face {
  font-family: 'Archia Light';
  font-style: normal;
  font-weight: normal;
  src: url('fonts/archia-light-webfont.eot');
  src: url('fonts/archia-light-webfont.eot?#iefix') format('embedded-opentype'),
       url('fonts/archia-light-webfont.woff2') format('woff2'), url('fonts/archia-light-webfont.woff') format('woff');
}

:root {
  --color-green-main: #DBF227;
  --color-green-middle: #D6D58E;
  --color-blue-main: #042940;
  --color-petrol-main: #005C53;
  --font-size-base: 24px;
  --line-height-base: 28px;
  --z-index-layer-50: 50;
}

* {
  box-sizing: border-box;
}

/* Global */

.bgPetrolMain {
  background-color: var(--color-petrol-main);
}

.bgBlueMain {
  background-color: var(--color-blue-main);
}

.colorGreenMain {
  color: var(--color-green-main);
}

.colorWhite {
  color: #ffffff;
}

a {
  font-family: "Archia Bold", sans-serif;
  color: var(--color-green-main);
}

a:visited {
  color: var(--color-green-main);
}

b,
strong {
  font-family: "Archia Bold", sans-serif;
  font-style: normal;
}

body {
  font-family: "Archia Light", sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

h1,
h2,
h3 {
  font-family: "Archia Bold", sans-serif;
  text-transform: lowercase;
  padding: 0;
  margin: 0;
}

h1 {
  font-size: 7.8vw;
  line-height: 9vw;
}

h2 {
  font-size: 3vw;
  line-height: 4vw;
}

h3,
h4 {
  font-size: 1.5vw;
  line-height: 2vw;
}

p,
li {
  font-size: 1rem;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

ul {
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 1080px) {
  h1,
  h2,
  h3 {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

  h2 {
    font-size: 4.5vw;
    line-height: 6vw;
  }

  h3,
  h4{
    font-size: 3vw;
    line-height: 4vw;
  }
}

/* Content types */
.content {
  width: 100%;
}

.content--bg {
  background-size: cover;
  width: 100%;
  height: calc(100vw/16*9);
  min-height: 300px;
}

.content--bg__autoh {
  height: auto !important;
}

.center {
  padding-top: calc(100vw / 4);
}

.center--55vw {
  width: 55%;
  margin: 0 auto;
}

.center--66vw {
  width: 66%;
  margin: 0 auto;
}

.flexgrow {
  flex: 1 0 150px;
}

.flexexact {
  flex: 0 0 150px;
}


.space--240 {
  padding-top: 12.5vw;
  padding-bottom: 12.5vw;
}

.space--180 {
  padding-top: 9vw;
  padding-bottom: 9vw;
}


.space--270 {
  padding-top: 14vw;
}

.column {
  display: flex;
}

.column__text {
  width: 46vw;
  padding: 7.4vw 7.8vw 7.4vw 0;
}

.column__img {
  width: 40vw;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  height: inherit;
}

.column--left {
  margin-left: 14vw;
}

.column--right .column__text {
  padding-left: 7.4vw;
  padding-right: 0;
}

.column--focus {
  display: flex;
}

.column--focus__img {
  flex: 0 0 50%;
  background-size: cover;
  background-position: center center;
  height: inherit;
}

.column--focus__text {
  flex: 0 0 50%;
  padding: 12.5vw 14vw 6vw 6vw;
}

.column--balanced {
  flex: 0 0 50%;
}

.column--two {
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  -webkit-column-gap: 6vw;
  -moz-column-gap: 6vw;
  column-gap: 6vw;
}

.column--bottom > * {
  align-self: flex-end;
}

@media screen and (max-width: 768px) {
  footer .column {
    display: block;
  }
}

@media screen and (max-width: 1080px) {
  .column.column--list  {
    flex-direction: column;
  }

  .column.column--right {
    margin-left: 14vw;
  }

  .column .column__img {
    display: none;
  }

  .column .column__text {
    width: 100%;
    padding: 0 14.8vw 0 0;
  }

  .column--balanced {
    flex: 0 0 100%;
  }

  .column--focus__img {
    flex: 0 0 24.9%;
  }

  .column--focus__text {
    flex: 0 0 75%;
  }

  .column--two {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
  }
}
/* Navigation */

  .nav {
    display: flex;
    justify-content: center;
  }

  .nav a {
    font-size: 2rem;
    line-height: 3.6rem;
  }

  .nav > div {
    display: block;
    z-index: 100;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    height: 50%;
    padding: 0 30%;
  }

  .nav > div a {
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .nav > div > input {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 200; /* and place it over the hamburger */
    -webkit-touch-callout: none;
  }



  /*
  * Just a quick hamburger
  */
  .nav > div span {
    display: block;
    width: 100%;
    /* height: 10px; */
    margin-bottom: 10%;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--color-green-main);
    border-radius: 3px;
    z-index: 150;
    transform-origin: 50% 0;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
  }

  .nav > div span:first-child {
    transform-origin: 0 0;
  }

  .nav > div span:nth-last-child(2) {
    transform-origin: 0 100%;
  }

  /*
  * Transform all the slices of hamburger
  * into a crossmark.
  */
  .nav > div input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-25%, -25%);
    background: var(--color-green-main);
  }



  /*
  * Ohyeah and the last one should go the other direction
  */
  .nav > div input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
  }

  /*
  * Make this absolute positioned
  * at the top left of the screen
  */
  .nav > div > ul {
    position: fixed;
    top: 0;
    display: block;
    height: 100vh;
    width: 110vw;
    margin: 0 0 0 -95vw;
    padding: 125px 50px 50px 50px;
    background: rgba(255, 255, 255, 0.98);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
      opacity 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  .nav > div > ul li {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  /*
  * And let's slide it in from the left
  */
  .nav > div input:checked ~ ul {
    transform: none;
    opacity: 1;
  }

/* Header */

header {
  position: fixed;
  top: 0;
  left: 0;
  height: 8.8vw;
  width: 100%;
  z-index: 100;

  max-height: 170px;
  display: flex;
  justify-content: space-between;
 }

header .logoImg,
header nav {
  flex: 0 0 auto;
  height: 8.8vw;
  width: 8.8vw;
  border-bottom: 1px solid var(--color-green-middle);
}

header .logoImg,
header nav {
  min-width: 40px;
}

header .logoImg img {
  display: block;
  margin: 2.4vw 0 0 2.4vw;
  height: 50%;
  width: auto;
  box-sizing: content-box;
}

header .logoFont {
  width: 100%;
  height: 8.8vw;
  padding-top: 2.4vw;
  border-bottom: 1px solid var(--color-green-middle);
}

header .logoFont img {
  display: block;
  margin: 0 auto;
  height: 4vw;
  width: auto;
}

/* main */
.fixed {
  position: fixed;
  min-width: 40px;
  z-index: var(--z-index-layer-50);
}

.fixed__left {
  top: 0;
  left: 0;
  width: 8.8vw;
  height: 100%;
  border-right: 1px solid var(--color-green-middle);
}

.fixed__right {
  top: 0;
  right: 0;
  width: 8.8vw;
  height: 100%;
  border-left: 1px solid var(--color-green-middle);
}

.innerShadow {
  -webkit-box-shadow: inset 0px 0px 100px 100px rgba(4,41,64,0.3);
  box-shadow: inset 0px 0px 100px 100px rgba(4,41,64,0.3);
}

/* footer */
footer {
  padding: 6.25vw 0 3.125vw;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
