/* Meta To Matter - Static CSS Clone */
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+SC:wght@100;200;300;400;500;600;700;800;900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Reset & Base */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  background-color: transparent;
}

/* Body background: stone texture with dark overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('bg_body.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(10, 20, 35, 0.55);
  z-index: -1;
}

/* Page wrapper */
#page_wrapper {
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  outline: 0;
  text-decoration: underline;
}

/* ========== NAVIGATION ========== */
#navigation_background {
  background-color: #DEDEDE;
  position: fixed;
  z-index: 800;
  width: 100%;
  transition: background-color 0.51s ease-in-out;
}

#navigation_wrapper {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100px;
}

#logo {
  width: 250px;
  height: 100px;
  border: 0;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

#logo.cm_empty {
  display: none;
}

/* Desktop nav */
#cm_navigation {
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 250px);
  visibility: visible;
}

#cm_navigation > ul {
  vertical-align: middle;
  list-style-type: none;
  margin: 0;
  padding: 0;
  z-index: 10;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#cm_navigation ul > li {
  display: inline-block;
  margin: 0;
  margin-left: 4px;
  padding: 10px;
  transition: background 0.6s ease-out;
}

#cm_navigation ul > li > a {
  padding: 0;
  text-decoration: none;
  color: #101010;
  font-size: 18px;
  font-family: 'Open Sans', sans-serif;
}

#cm_navigation > ul > li.active,
#cm_navigation > ul > li:hover {
  background-color: #A4A4A4;
}

#cm_navigation > ul > li.active > a,
#cm_navigation > ul > li:hover > a {
  color: #FEFFFD;
}

/* Mobile nav heading */
#nav-mobile-heading {
  display: none;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 10px;
  padding-top: 10px;
}

#nav-mobile-heading a {
  display: inline-block;
  padding: 0 20px;
  text-decoration: none;
  color: #101010;
}

/* Mobile nav */
#cm_mobile_navigation {
  display: none;
  width: 100%;
  text-align: center;
}

#cm_mobile_navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#cm_mobile_navigation ul li {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #D2D2D2;
}

#cm_mobile_navigation ul li a {
  margin: 0;
  padding: 10px;
  width: 100%;
  height: auto;
  display: inline-block;
  text-decoration: none;
  color: #101010;
}

#cm_mobile_navigation ul li.active > a,
#cm_mobile_navigation ul li:hover > a {
  color: #FEFFFD;
  background-color: #A4A4A4;
}

/* Mobile hamburger button */
#mobile-menu-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: #101010;
  padding: 0 20px;
  margin-left: auto;
}

/* ========== HEADER / KEYVISUAL ========== */
#header_wrapper {
  width: 100%;
  position: relative;
  /* push down below fixed nav */
  padding-top: 100px;
}

#keyvisual {
  height: 800px;
  width: 100%;
  background-image: url('bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

#title_wrapper {
  position: absolute;
  width: 100%;
  bottom: 0;
  margin: 0 0 90px;
  padding: 0 20px;
  text-align: center;
}

#title {
  display: inline;
  hyphens: auto;
}

#title span {
  font-size: 42px;
  font-family: 'Encode Sans SC', sans-serif;
  color: #101010;
}

/* ========== CONTENT WRAPPER ========== */
#content_wrapper {
  background-color: transparent;
  margin: auto;
  width: 100%;
  flex: 1 0 auto;
  color: #FFFFFF;
}

#content_wrapper h1,
#content_wrapper h2,
#content_wrapper h3,
#content_wrapper h4,
#content_wrapper h5,
#content_wrapper h6 {
  margin: 0 0 0.7em 0;
  color: #FFFFFF;
}

#content_wrapper p,
#content_wrapper code,
#content_wrapper pre,
#content_wrapper kbd {
  margin: 0 0 1em 0;
}

#content_wrapper ul,
#content_wrapper ol {
  margin: 0 1em 1em 1em;
  padding: 0;
}

#content_wrapper a {
  color: #FFFFFF;
  text-decoration: underline;
}

#content_wrapper a:hover {
  color: #FFFFFF;
}

.container_wrapper {
  width: 80%;
  margin: 0 auto;
}

@media only screen and (min-width: 1920px) {
  #navigation_wrapper,
  .container_wrapper {
    max-width: 1536px;
  }
}

#content_main {
  padding: 70px 0 75px 0;
  width: 100%;
  float: left;
}

#page_wrapper h1, .cm-h1 {
  font-size: 36px;
  font-family: 'Lora', serif;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  color: #FFFFFF;
}

#page_wrapper h2 {
  font-size: 28px;
  font-family: 'Lora', serif;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  color: #FFFFFF;
}

#page_wrapper h3 {
  font-size: 22px;
  font-family: 'Lora', serif;
  font-weight: 400;
  color: #FFFFFF;
}

/* Profile image on matter page */
.profile-img {
  width: 20.3%;
  max-width: 2251px;
  display: block;
  margin: 20px auto;
}

.profile-img img {
  width: 100%;
  display: block;
}

/* Tables (privacy page) */
.cm_table {
  border-collapse: collapse;
  width: 100%;
  font-size: 18px;
  font-family: 'Encode Sans SC', sans-serif;
  margin-bottom: 1em;
}

.cm_table td, .cm_table th {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 12px;
  vertical-align: top;
}

.cm_table tr:first-child td {
  font-weight: bold;
  background-color: rgba(255,255,255,0.1);
}

/* ========== FOOTER ========== */
#footer_wrapper {
  flex-shrink: 0;
  background-color: rgba(0,0,0,0.3);
}

#footer {
  text-align: center;
  padding: 25px 20px;
  color: #FFFFFF;
  font-family: 'Encode Sans SC', sans-serif;
  font-size: 14px;
}

#footer a {
  color: #DEDEDE;
  text-decoration: none;
  margin: 0 10px;
}

#footer a:hover {
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media only screen and (min-width: 980px) and (max-width: 1279px) {
  #keyvisual { height: 500px; }
  #title span { font-size: 5vw !important; }
  .container_wrapper {
    width: 100%;
    padding: 0 20px;
  }
}

@media only screen and (min-width: 10px) and (max-width: 979px) {
  #navigation_background {
    position: fixed;
    height: auto;
  }

  #navigation_wrapper {
    max-width: none;
    float: none;
    text-align: center;
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #logo {
    margin: 10px;
    height: 60px;
    width: 150px;
  }

  #mobile-menu-toggle {
    display: block;
  }

  #cm_navigation {
    visibility: hidden;
    display: none;
  }

  #nav-mobile-heading {
    display: block;
  }

  #cm_mobile_navigation {
    display: none; /* shown via JS */
    width: 100%;
  }

  #cm_mobile_navigation.open {
    display: block;
  }

  #header_wrapper {
    padding-top: 80px;
  }

  #keyvisual { height: 300px; }
  #title span { font-size: 6vw !important; }
  #title_wrapper { bottom: 12%; margin: 0; }

  #content_main {
    padding: 40px 0;
    width: 100%;
  }

  .container_wrapper {
    width: 100%;
    padding: 0 20px;
  }

  .profile-img {
    width: 60%;
  }
}

@media only screen and (max-width: 767px) {
  #keyvisual { height: 200px; }
  #title span { font-size: 7vw !important; }
}

@media only screen and (min-width: 10px) and (max-width: 1024px) {
  #content_main {
    padding: 40px 0;
    width: 100%;
  }
  .container_wrapper {
    width: 100%;
    padding: 0 20px;
  }
}
