/*!
Theme Name: Clarion
Theme URI: http://underscores.me/
Author: Ensign
Author URI: http://ensign.no
Description: Private theme for Clarion
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: clarion
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

* {
  box-sizing: border-box;
}

:root {
  --blue: #11243a;
  --black: #0c141d;
  --header-font: "Josefin Sans", sans-serif;
  --body-font: "Josefin Sans", sans-serif;
  --pri-color: #8d703f;
}

html,
body {
  background-color: var(--black);
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
}

p {
  /* opacity: .8; */
  line-height: 1.4;
  font-size: 1.1em;
}

svg {
  width: 104px;
  height: 104px;
  z-index: 3;
}

h2 {
  /*font-family: "Bebas Neue", "Roboto", sans-serif;*/
  font-family: var(--header-font);
  font-size: clamp(2em, 5vw, 5em);
  letter-spacing: 0.5rem;
  margin: 0;
  line-height: 1;
  color: var(--pri-color);
}

.pad-up {
  padding-top: 6em;
}

.pad-down {
  padding-bottom: 3em;
}

.text-center {
  text-align: center;
}

.lead {
  font-size: 2rem;
}

.wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 8em 2em;
}

.video-bg {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-bg svg {
  position: absolute;
}

.image-parent {
  position: relative;
  overflow: hidden;
  max-height: 800px;
  width: 100%;
  height: 100%;
}

.img-child {
  position: fixed;
}

img {
  display: block;
  max-width: 100%;
  height: 180%;
  -o-object-fit: cover;
  object-fit: cover;
  opacity: 0.7;
}

article {
  display: grid;
}

button {
  background-color: white;
  border: 1px solid white;
  color: black;
  padding: 1em 2em;
  cursor: pointer;
  font-size: 0.85em;
  border-radius: 8px;
}

.reverse-overlapping {
  z-index: 2;
}

@media (min-width: 50em) {
  article {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .overlapping,
  .overlapping-video-bg,
  .reverse-overlapping,
  .reverse-overlapping-video-bg {
    grid-row: 1/2;
  }

  .overlapping {
    z-index: 3;
    grid-column: 1/4;
    align-self: end;
  }

  .overlapping-video-bg {
    grid-column: 2/-1;
  }

  .reverse-overlapping {
    z-index: 3;
    grid-column: 4/-1;
    align-self: center;
  }

  .reverse-overlapping-video-bg {
    grid-column: 1/5;
  }
}
.unsplash {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8em 0;
}

a,
a:hover {
  color: #fff;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid #fff;
}

/** Intro **/
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  background: no-repeat center scroll;
  background-color: var(--blue);
  /* background-blend-mode: overlay; */
  background-size: cover;
  -webkit-background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4em 2em;
}
@media (min-width: 768px) {
  .intro {
    padding: 2em 15vw;
  }
}
.intro p {
  font-size: 1.2em;
  margin: 0;
}
.intro .big-intro {
  font-size: clamp(2em, 4.2vw, 6em);
  margin: 0 0 0.75em;
}

/** Page transition **/
/* animation */

.blocks-wrapper {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  inset: 0 0 auto;
  z-index: 5;
}

.top-block {
  background-color: var(--blue);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
}
.bottom-block {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: var(--blue);
  width: 100%;
  height: 0%;
}

.articles {
  display: none;
  position: fixed;
  inset: 0 0 auto;
  background-color: var(--black);
  opacity: 0;
  width: 100%;
  height: 100vh;
  z-index: 6;
  padding: 10em 0 5em;
  overflow-y: scroll;
}

.articles .single-article {
  position: relative;
}

.articles .single-article .container,
.post-title {
  max-width: 768px;
  margin: 0 auto;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.articles .single-article .container p {
  text-transform: none;
  /* opacity: .7; */
  font-size: 1.1em;
  line-height: 1.4;
}

.text-information {
  position: relative;
}

.articles button {
  position: fixed;
  inset: 4em 4em auto auto;
  background-color: var(--blue);
  width: 100px;
  height: 100px;
  border-radius: 100%;
  color: white;
  z-index: 7;
}

.overlay {
  width: 300%;
  height: 100%;
  position: absolute;
  background-image: url("img/overlay.png");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 2;
}

.site-header {
  width: 100%;
  position: absolute;
  inset: 3em auto auto 0;
  display: flex;
  flex-direction: column;
  align-items: end;
  padding-right: 4rem;
  z-index: 2;
}

.site-header ul {
  margin: 0;
  padding: 0;
}

.site-header li {
  list-style-type: none;
}
.site-header a {
  border: none;
}

.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer,
.otgs-development-site-front-end {
  display: none !important;
}

/** Mobile **/
@media (max-width: 650px) {
  .intro {
    height: auto;
    min-height: 75vw;
  }
  .articles {
    padding: 10em 2em 5em;
  }
  .articles button {
    position: absolute;
    inset: 2em 2em auto auto;
  }
  .wrapper {
    padding: 2em 2em;
  }
  article {
    display: flex;
    flex-direction: column-reverse;
  }
  .wrapper article header {
    padding: 3em;
    z-index: 2;
  }
  .container {
    padding: 0 1em;
  }
  .pad-up {
    padding-top: 1em;
  }
  .pad-down {
    padding-bottom: 1em;
  }
  .lead {
    font-size: 1.5rem;
  }
}
