/*!
Theme Name: trebyen
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
License: PRIVATE THEME
License URI: PRIVATE
Text Domain: trebyen
Tags: TREBYEN

*/

.admin-bar .navbar {
  margin-top: 2em;
}

.gray-bg {
  background-color: #f8f8f8;
}

.form-wrapper {
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  padding: 2em;
}

/* contact form */
/* Contact form */
.form-wrapper {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10%;
}
.form-group {
  margin: 0;
}
.form-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -5px;
  margin-left: -5px;
}

.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 16px;
  font-weight: 300;
  line-height: 25px;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 0;
}
.wpcf7 textarea {
  width: 100%;
  height: 150px;
}
.wpcf7 input[type='submit'] {
  border: none;
  background: #000;
  border-radius: 0;
  padding: 1em 3em;
  color: #fff;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
}

.form-row .form-title {
  font-size: 1.3em;
}

.form-row .form-group .terms {
  font-size: 14px;
  margin: 1em 0 0;
  font-weight: 300;
  line-height: 160%;
  letter-spacing: 0;
}

.form-row .form-group .wpcf7-list-item-label {
  font-weight: 300;
}

.form-row .form-group .terms {
  font-size: 18px;
  margin: 2em 0 -1em;
  font-weight: 300;
  line-height: 160%;
  letter-spacing: 0;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex='-1']:focus {
  outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}

.alignright {
  display: inline;
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/**/

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  height: 100%;
}

body {
  font-family: niveau-grotesk, sans-serif;
  overflow: scroll;
  height: 100%;
  overflow-x: hidden;
  color: #000;
}

h1 {
  font-family: ivymode, niveau-grotesk, sans-serif;
}

h2,
h3 {
  font-family: niveau-grotesk, ivymode, sans-serif;
  font-weight: 700;
}

h2 {
  font-family: niveau-grotesk, ivymode, sans-serif;
  font-size: 2.5em;
  margin-bottom: 0;
}

.inner-content-pad {
  padding: 0 2em;
}
.green-bg {
  background: #91a28d;
}

.brown-color h2,
.brown-color p:first-of-type {
  color: #8c827a;
}

.header-description {
  font-family: ivymode, niveau-grotesk, sans-serif;
  font-style: italic;
  font-size: 1.8em;
}

.btn {
  font-size: 14px;
  font-weight: 400;
  padding: 15px 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  font-family: niveau-grotesk, ivymode, sans-serif;
}

.btn-primary {
  color: #000;
  border: 1px solid #000;
  background-color: #fff;
  text-decoration: none;
  padding: 12px 30px;
}
.btn-primary.focus,
.btn-primary:focus {
  color: white;
  border-color: #669933;
  background-color: #669933;
  outline: 0 !important;
}
.btn-primary:hover {
  color: white;
  border-color: #669933;
  background-color: #669933;
  text-decoration: none;
}
.btn-primary.active,
.btn-primary:active {
  color: white;
  border-color: #669933;
  background-color: #669933;
}

.btn-secondary {
  color: #fff;
  border: 1px solid #669933;
  background-color: #669933;
  padding: 12px 30px;
}
.btn-secondary.focus,
.btn-secondary:focus {
  color: white;
  border-color: #669933;
  background-color: #669933;
  outline: 0 !important;
}
.btn-secondary:hover {
  color: white;
  border-color: rgba(102, 153, 51, 0.8);
  background-color: rgba(102, 153, 51, 0.8);
  text-decoration: none;
}
.btn-secondary.active,
.btn-secondary:active {
  color: white;
  border-color: #669933;
  background-color: #669933;
}

.btn-underline {
  font-size: 1.1em;
  text-decoration: none;
  padding: 7px 2px;
}

.btn-brown {
  color: #8c827a;
  border-bottom: 1px solid #8c827a;
}

.btn-white {
  color: #fff;
  border-bottom: 1px solid #fff;
}

.btn-underline:hover {
  color: #8c827a;
  text-decoration: none;
}

.double-pad {
  padding: 100px 0;
}

.bottom-pad-big {
  padding: 0 0 100px 0;
}

.bottom-pad-small {
  padding: 0 0 50px 0;
}

.content-pad {
  padding: 50px 0;
}

.main-footer {
  background: black;
  width: 100%;
}

.main-footer a {
  color: #fff;
}

/* Nav */

#mainNav {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #000;
  transition: background-color 0.2s ease;
}

#mainNav .navbar-brand {
  font-family: niveau-grotesk, ivymode, sans-serif;
  font-weight: 700;
  color: #f8f8f8;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #fff;
  font-family: niveau-grotesk, ivymode, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 0;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
  color: #fff;
}

#mainNav .navbar-nav .nav-item .nav-link.active {
  color: #fff !important;
}

@media (min-width: 992px) {
  #mainNav {
    box-shadow: none;
    background-color: black;
  }
  #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.9);
  }
  #mainNav .navbar-brand:hover {
    color: #fff;
  }
  #mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0 1.5rem;
  }
  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
  }
  #mainNav .navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0;
  }
  #mainNav.navbar-scrolled {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #000;
  }
  #mainNav.navbar-scrolled .navbar-brand {
    color: #fff;
  }
  #mainNav.navbar-scrolled .navbar-brand:hover {
    color: #f4623a;
  }
  #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
    color: #212529;
  }
  #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:hover {
    color: #f4623a;
  }
}

/* Homepage header */

.intro {
  display: table;
  width: 100%;
  height: auto;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  background: no-repeat bottom center scroll;
  background-color: #051126;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  margin: 0;
}

.intro .intro-body {
  display: table-cell;
  vertical-align: bottom;
}

.intro .intro-body h1 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1.2em;
}

.intro .intro-body .brand-heading {
  font-size: 40px;
  letter-spacing: 0;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 5px;
  line-height: 117%;
}

.intro .intro-body .intro-text {
  font-size: 18px;
}

.intro-wrapper {
  margin: 0 0 10% 0;
}

@media (min-width: 768px) {
  .intro {
    height: 100%;
    padding: 0;
  }

  .intro .intro-body .brand-heading {
    font-size: 62px;
    letter-spacing: -1px;
  }

  .intro .intro-body .intro-text {
    font-size: 26px;
    font-weight: 300;
  }
}

.full-bg {
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.preik-bg {
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dokumenter-bg {
  height: 100%;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 12% 0 0 0;
}

.half-bg {
  height: 70%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.arkitekt-signature {
  font-style: italic;
  color: #91a28d;
  font-size: 15px;
}

.isuu {
  background: black;
  min-height: 500px;
}

.dokumenter-btn {
  margin-top: 3em;
}

.dokumenter-btn a {
  background: black;
  text-decoration: none;
  font-size: 1.2em;
  color: #fff;
  padding: 10px 20px;
}

.megler-info h1 {
  font-family: niveau-grotesk, ivymode, sans-serif;
  font-weight: 700;
  font-size: 2em;
  margin: 0.5em 0;
}

.megler-info h2 {
  font-size: 1.1em;
}

.megler-info a {
  color: #111;
  font-size: 14px;
}

.boligvelger-pad {
  padding: 14% 0;
}

@media screen and (min-width: 1900px) {
  .boligvelger-pad {
    padding: 10% 0;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .boligvelger-pad {
    padding: 17% 0;
  }
}

.kjokken-info {
  padding: 40% 3em;
}

.sea-info {
  padding: 10% 3em;
}

.kjokken-info p,
.sea-info p {
  font-family: niveau-grotesk, ivymode, sans-serif;
  font-size: 40px;
  letter-spacing: 0;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 5px;
  line-height: 117%;
  text-align: center;
}

.c-residence-list {
  --residence-list-height: 499px;
  position: relative;
}

.belig img {
  margin: 0;
}

.text-white a,
.text-white a:hover,
.text-white a:visited {
  color: white;
  text-decoration: none;
}

.c-section-nav__header.c-section-nav__header.c-section-nav__header.c-section-nav__header {
  padding: 0 !important;
}

@media only screen and (max-width: 650px) {
  .navbar-brand img {
    max-width: 140px;
  }
  .intro-wrapper .h1 {
    font-size: 1em;
  }
  .intro-wrapper {
    margin: 85% 0 0;
  }
  h2 {
    font-size: 1.5em;
  }
  .header-description {
    font-size: 1.3em;
  }
  .inner-content-pad {
    padding: 0 1em;
  }
  .double-pad {
    padding: 50px 0;
  }
  .intro {
    margin: 5em 0 0;
  }
  .kjokken-info p,
  .sea-info p {
    font-size: 29px;
  }
  .belig img {
    margin: 0 0 2em 0;
  }
  .dokumenter-btn {
    margin-top: 5em;
  }
  .dokumenter-bg {
    padding: 32% 0 0 0;
  }
  .boligvelger-pad {
    padding: 27% 0;
  }
  .preik-bg {
    height: 75vw;
  }
  .intro .intro-body h1 {
    font-size: 1em;
  }
  .c-carousel__image {
    max-width: 100%;
    height: auto;
  }
  .dokumenter-btn li {
    margin: 1em 0;
  }
}

/* ==========================================================================
   Simple grid for post pages.
   ========================================================================== */
:root {
  --grid-base: [full-start] 0 [wide-start] 2em [content-start] 1fr [content-end]
    2em [wide-end] 0 [full-end];
}
@media (min-width: 70ex) {
  :root {
    --grid-base: [full-start] 1fr [wide-start] 2fr [content-start] 65ex
      [content-end] 2fr [wide-end] 1fr [full-end];
  }
}
@media (min-width: 1200px) {
  :root {
    --grid-base: [full-start] 3fr [wide-start] 4fr [content-start] 85ex
      [content-end] 4fr [wide-end] 3fr [full-end];
  }
}

.single-post .entry-content {
  display: grid;
  grid-template-columns: var(--grid-base);
}
.single-post .entry-content > * {
  grid-column: content;
}
.single-post .entry-content .alignwide {
  grid-column: wide;
}
.single-post .entry-content .alignfull {
  grid-column: full;
}
.single-post .entry-content .alignleft {
  grid-column-start: wide;
  grid-column-end: content;
}
.single-post .entry-content .alignright {
  grid-column-start: content;
  grid-column-end: wide;
}

.single-post .post-thumbnail {
  max-height: 65vh;
  overflow: hidden;
  margin-bottom: 2em;
}

.single-post .post-thumbnail > img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

