/* Klima Isolering
 *
 * The desktop layout is a 940px column. The One.com export placed the
 * components at fixed offsets, and the offsets below reproduce that layout.
 * Widths of 650px and below get the stacked phone layout at the end of
 * this file.
 */

html {
  box-sizing: border-box;
  overflow-y: scroll;
  word-wrap: break-word;
}

*,
::before,
::after {
  box-sizing: inherit;
  word-wrap: inherit;
}

body,
h1,
h2,
h3,
p,
ul,
li,
form,
input,
textarea {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

img {
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  min-width: 940px;
  font: 14px/1.2 Raleway, "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
  color: #000;
  background: #f9f9f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed photo behind every page. A fixed element instead of
 * background-attachment so that it also works on iOS. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f9f9f9 url(../img/background.jpg) 0 0 / cover;
}

.container {
  position: relative;
  width: 940px;
  margin: 0 auto;
}

.link-accent {
  color: #fdb813;
}

.link-accent:hover {
  color: #fecf79;
}

/* Phone header and menu (hidden on desktop) */

.mobile-header {
  display: none;
  position: relative;
}

.mobile-bar {
  position: relative;
  z-index: 10003;
  display: flex;
  align-items: center;
  height: 49px;
  padding: 0 15px;
  border-bottom: 1px solid transparent;
  background: #000;
  color: #fff;
  font-size: 18px;
}

.mobile-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.burger {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10006;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 54px;
  height: 48px;
  padding: 12px 15px;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}

.burger span + span {
  margin-top: 5px;
}

.burger.is-open span {
  background: #000;
}

.burger.is-open span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  transform: scale(0);
}

.burger.is-open span:nth-child(3) {
  bottom: 7px;
  transform: rotate(135deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 63px;
  z-index: 10005;
  height: 100vh;
  padding: 49px 0 100px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.5);
}

.mobile-menu.is-open {
  display: block;
  animation: menu-in 0.35s;
}

@keyframes menu-in {
  from {
    transform: translateX(100%);
  }
}

.mobile-menu a {
  display: block;
  padding: 0 10px 0 20px;
  overflow: hidden;
  font-size: 16px;
  line-height: 3;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #fff;
}

.mobile-menu a[aria-current] {
  font-weight: bold;
}

.mobile-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10004;
  width: 100%;
  height: 100vh;
}

.mobile-overlay.is-open {
  display: block;
}

/* Desktop menu */

.menu ul {
  display: flex;
  height: 49px;
}

.menu li {
  display: flex;
}

.menu li + li::before {
  content: "";
  width: 33px;
  background: url(../img/menu-divider.png) no-repeat 50% 50%;
}

.menu a {
  display: block;
  padding: 16px 10px;
  line-height: 17px;
  color: #fff;
}

.menu a:hover,
.menu a[aria-current] {
  color: #fdb813;
}

/* Logo strip with phone and e-mail */

.brand-strip {
  height: 129px;
  background: linear-gradient(0deg, #fff 0%, #f9f9f9 100%);
}

.brand-strip .container {
  height: 100%;
}

.brand-logo {
  position: absolute;
  top: 16px;
  left: 10px;
}

.brand-phone,
.brand-mail {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
}

.brand-phone {
  top: 26px;
  left: 679px;
}

.brand-mail {
  top: 67px;
  left: 673px;
}

/* Front page: hero */

.hero .container {
  padding: 43px 0 60px;
}

.hero-text {
  width: 740px;
  margin: 0 auto;
  font-size: 18px;
  color: #fff;
  text-align: center;
}

.hero h1 {
  margin-bottom: 14px;
  font-size: 65px;
  font-weight: bold;
}

.hero p {
  margin-bottom: 1.2em;
}

.hero li {
  font-weight: bold;
}

.hero-figure {
  width: 271px;
  height: 236px;
  margin: 38px auto 0;
  overflow: hidden;
  border: 3px dashed #fff;
  border-radius: 5px;
}

/* Front page: dark section */

.cta {
  padding-bottom: 78px;
  background: #232323 url(../img/stripes.png) repeat-x 50% 100% / 75px 70px;
  color: #fff;
}

.cta .container {
  display: flex;
}

.cta-left {
  width: 462px;
}

.cta-title {
  position: relative;
  height: 135px;
}

.cta-title::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 2px;
  width: 10px;
  height: 80px;
  background: #fb0004;
}

.cta-title-text {
  position: absolute;
  top: 31px;
  left: 28px;
  width: 327px;
}

.cta-title h2 {
  font-size: 28px;
  font-weight: bold;
}

.cta-title p {
  line-height: 1.6;
  color: #fb0004;
}

.cta-body {
  position: relative;
  width: 460px;
  min-height: 137px;
  margin: 9px 0 0 2px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 50px;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.06);
  color: #fff;
  line-height: 1;
  text-align: center;
  transition: background-color 0.2s ease-out, border 0.2s ease-out, color 0.2s ease-out;
}

.button:hover {
  border-color: #eee;
  background: rgba(0, 0, 0, 0.05);
  color: #eee;
}

.cta-button {
  position: absolute;
  top: 59px;
  left: -2px;
}

.cta-box {
  display: block;
  width: 400px;
  margin: 29px 0 0 78px;
  padding-bottom: 6px;
  background: rgba(25, 25, 25, 0.65);
}

.cta-box-head {
  position: relative;
  height: 81px;
}

.cta-box-icon {
  position: absolute;
  top: 8px;
  left: 47px;
}

.cta-box-bar {
  position: absolute;
  top: 16px;
  left: 111px;
  width: 22px;
  height: 40px;
  border-left: 2px solid #fdb813;
}

.cta-box-text {
  position: absolute;
  top: 16px;
  left: 133px;
  width: 200px;
}

.cta-box-text strong {
  display: block;
  font-size: 20px;
}

/* Footer */

.site-footer {
  padding-bottom: 46px;
}

.footer-strip {
  height: 136px;
  background: #fff;
}

.footer-strip .container {
  height: 100%;
}

.footer-logo {
  position: absolute;
  top: 10px;
  left: 340px;
}

.footer-contact {
  position: absolute;
  top: 10px;
  left: 685px;
  width: 246px;
  font-size: 16px;
  font-weight: bold;
}

.footer-contact h3 {
  font-size: 20px;
  font-weight: bold;
  color: #040000;
}

.footer-phone,
.footer-mail,
.footer-address {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-phone {
  top: 35px;
  left: 1px;
}

.footer-mail {
  top: 66px;
  left: 1px;
  line-height: 16px;
}

.footer-address {
  top: 93px;
  left: 2px;
  gap: 14px;
}

/* Contact page */

.contact {
  min-height: 1000px;
  padding-bottom: 37px;
}

.people {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  min-height: 328px;
}

.person {
  width: 230px;
  height: 96px;
}

.card {
  width: 195px;
  min-height: 88px;
  padding-top: 8px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.card-role {
  height: 14.4px;
  font-size: 12px;
}

.card-name {
  font-size: 16px;
  font-weight: bold;
}

.card-phone {
  font-size: 20px;
  font-weight: bold;
}

.card-mail {
  height: 16.8px;
}

.contact-details {
  position: relative;
  height: 454px;
}

.contact-panel {
  position: absolute;
  top: 82px;
  left: 0;
  width: 460px;
  height: 372px;
  background: url(../img/contact-panel.png) no-repeat 0 50% / cover;
  color: #fff;
}

.contact-item {
  position: absolute;
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 322px;
}

.contact-item-phone {
  top: 98px;
}

.contact-item-mail {
  top: 196px;
}

.contact-item-address {
  top: 296px;
  width: 380px;
}

.contact-item a {
  display: block;
  font-size: 20px;
}

.contact-greeting {
  position: absolute;
  top: 75px;
  left: 1px;
  width: 275px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

.map {
  position: absolute;
  top: 82px;
  left: 410px;
  width: 517px;
  height: 338px;
  border: 0;
}

.accent-bar {
  position: absolute;
  top: 458px;
  left: 445px;
  width: 50px;
  height: 20px;
  border-top: 5px solid #fdb813;
}

/* References page */

.projects .container {
  height: 1309px;
  padding-top: 38px;
}

.projects h1 {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.projects-quote,
.project {
  position: absolute;
}

.projects-quote {
  top: 151px;
  left: 452px;
}

.project-theodora {
  top: 226px;
  left: 163px;
}

.project-piers {
  top: 226px;
  left: 487px;
}

.project-alsion {
  top: 517px;
  left: 164px;
}

.project-irma {
  top: 726px;
  left: 164px;
}

.project-tresu {
  top: 992px;
  left: 164px;
}

.project-falconer {
  top: 726px;
  left: 488px;
}

.project-viborg {
  top: 992px;
  left: 464px;
}

/* Phone layout */

/* One.com raised the small text to 16px on wide phones. */
@media (min-width: 485px) and (max-width: 650px) {
  .mobile-text {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    min-width: 0;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .container {
    width: auto;
  }

  .mobile-header {
    display: block;
  }

  .menu {
    display: none;
  }

  .brand-strip {
    height: auto;
    margin: 18px 0;
  }

  .brand-logo {
    position: static;
    display: block;
    width: 186px;
    margin: 0 auto;
    padding-top: 18px;
  }

  .brand-phone,
  .brand-mail span {
    display: none;
  }

  .brand-mail {
    position: static;
    display: block;
    width: 29px;
    margin: 40px auto 0;
    padding-bottom: 18px;
  }

  .hero .container {
    padding: 35px 18px 18px;
  }

  .hero-text {
    width: auto;
  }

  .hero h1 {
    font-size: 20px;
  }

  .hero-figure {
    margin-top: 20px;
  }

  .cta {
    padding: 0 18px 18px;
  }

  .cta .container {
    display: block;
  }

  .cta-left {
    width: auto;
  }

  .cta-title {
    height: auto;
    padding-top: 35px;
  }

  .cta-title::before {
    display: none;
  }

  .cta-title-text {
    position: static;
    width: auto;
  }

  .cta-title h2 {
    font-size: 20px;
  }

  .cta-body {
    width: auto;
    min-height: 0;
    margin: 20px 0 0;
  }

  .cta-button {
    position: static;
    width: max-content;
    min-width: 125px;
    height: 54px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 16px;
  }

  .cta-box {
    width: auto;
    margin: 35px 0 0;
    padding: 35px 18px;
  }

  .cta-box-head {
    height: auto;
  }

  .cta-box-icon,
  .cta-box-bar {
    display: none;
  }

  .cta-box-text {
    position: static;
    width: auto;
  }

  .site-footer {
    padding-bottom: 18px;
  }

  .footer-strip {
    height: auto;
    margin-top: 18px;
    padding: 18px 18px 35px;
  }

  .footer-logo {
    position: static;
    display: block;
    width: 260px;
    margin: 0 auto;
  }

  .footer-contact {
    position: static;
    display: flex;
    flex-direction: column;
    width: auto;
    margin-top: 20px;
  }

  .footer-phone,
  .footer-mail,
  .footer-address {
    position: static;
    margin-top: 20px;
  }

  .footer-address {
    order: 1;
  }

  .footer-mail {
    order: 2;
  }

  .contact {
    min-height: 0;
    padding-bottom: 35px;
  }

  .people {
    display: block;
    min-height: 0;
    padding: 0 18px;
  }

  .person {
    width: auto;
    height: auto;
    margin-top: 35px;
  }

  .card {
    width: auto;
    padding: 35px 0;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0 18px;
  }

  .map {
    position: static;
    order: -1;
    width: 100%;
    margin-top: 35px;
  }

  .contact-panel {
    position: static;
    width: auto;
    height: auto;
    margin-top: 35px;
    padding: 35px 18px;
  }

  .contact-item {
    position: static;
    width: auto;
  }

  .contact-item + .contact-item {
    margin-top: 20px;
  }

  .contact-greeting {
    position: static;
    width: auto;
    margin-top: 35px;
    font-size: 20px;
  }

  .accent-bar {
    display: none;
  }

  .projects .container {
    padding: 35px 18px 18px;
  }

  .projects .container {
    height: auto;
  }

  .projects h1 {
    font-size: 20px;
  }

  .projects-quote,
  .project {
    position: static;
    display: block;
    margin: 20px auto 0;
  }

  .projects-quote {
    width: 35px;
  }

  .project {
    width: max-content;
    max-width: 100%;
  }
}
