:root {
  --nav-color: #1f2e3d;
}

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.background {
  background-image: url(images/hero-bg.jpg);
  background-size: cover;
  background-position: 0 45%;
  height: 100vh;
  width: 100vw;
  position: fixed;
  display: grid;
  place-items: center;
}

.br {
  height: 10px;
  width: 100px;
  background-color: #3D5975;
}

nav {
  position: fixed;
  width: 100vw;
  height: 150px;
  background-color: var(--nav-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

nav.big-screen-nav > div:nth-of-type(1) {
  background-color: #e9c927;
  width: 340px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "AvenirHeavy";
}

nav.big-screen-nav > div:nth-of-type(1) > div {
  width: 46px;
  height: 46px;
}

nav.big-screen-nav > div > p {
  color: white;
  font-size: 23px;
  width: 209px;
  line-height: 1em;
}

nav.big-screen-nav > div > ul {
  display: flex;
  gap: 100px;
  list-style-type: none;
  padding: 0 90px 0 0;
  font-family: "AvenirLight";
}

nav.mobile-screen-nav {
  visibility: hidden;
}

.visible-buttons {
  display: flex;
  width: 100dvw;
  justify-content: space-between;
  height: 100%;
  align-items: center;
}

.visible-buttons > div:nth-of-type(1) {
  background-color: #e9c927;
  width: 340px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "AvenirHeavy";
}

.visible-buttons > div:nth-of-type(1) > div {
  width: 46px;
  height: 46px;
}

.visible-buttons > div:nth-of-type(1) > p {
  color: white;
  font-size: 23px;
  width: 209px;
  line-height: 1em;
}

.visible-buttons > div > button {
  border: none;
  background-color: none;
  color: none;
  background: none;
  padding-right: 50px;
}

.visible-buttons > div > button:hover {
  cursor: pointer;
}

.visible-buttons > div > button > img {
  transition: transform 150ms ease-in;
}

.rotated {
  transform: rotateX(180deg);
}

.navigation {
  width: 80dvw;
  position: absolute;
  height: 100dvh;
  z-index: 100;
  top: 0;
  left: 0;
  background-color: rgb(30, 45, 59);
  -webkit-box-shadow: 0px 0px 53px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 53px 0px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 53px 0px rgba(0,0,0,0.75);
  visibility: hidden;
  transform: visibility 150ms ease-in;
}

.visible {
  visibility: visible !important;
}

.navigation > ul {
  position: relative;
  padding-top: 250px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.navigation > ul > .nav-item {
  text-align: center;
}

.nav-item > a {
  text-decoration: none;
  color: white;
  transition: all 150ms ease-in;
}

.nav-item > a:hover {
  color: #e0c22c !important;
}

a.active {
  color: #e0c22c !important;
}

main {
  height: auto;
}

main section {
  background-color: white;
  position: relative;
  z-index: 2;
  height: 800px;
}

.hero {
  background-color: transparent;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero > div > div {
  font-size: 55px;
  font-family: "Avenir";
  width: 600px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.hero > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.hero > div > div > span {
  background-color: rgb(32, 32, 32);
}

.hero > div > div > span:nth-of-type(1) {
  width: 440px;
}

.hero > div > div > span:nth-of-type(2) {
  width: 550px;
}

.hero > div > div > span:nth-of-type(3) {
  width: 225px;
}

.services {
  height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.services > div:nth-of-type(1) {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.services > div > h1 {
  font-size: 55px;
  font-family: "AvenirHeavy";
  letter-spacing: 0.05em;
  color: rgb(30, 45, 59);
  padding-bottom: 10px;
}

.card-container {
  display: flex;
  width: 940px;
  height: 510px;
  gap: 20px;
}

.card {
  width: 100%;
  height: 100%;
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;
}

.card > div:nth-of-type(1) {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card > img {
  width: 100%;
  object-fit: cover;
  height: 230px;
}

.card > div > h2 {
  color: rgb(61, 89, 117);
  font-family: "Avenir";
}

.card > div > p {
  color: rgb(59, 58, 58);
  font-family: "AvenirLight";
  line-height: 1.6em;
  font-size: 15px;
}

.about-us {
  background-color: #f1f1f1;
  display: flex;
  width: 100%;
  justify-content: end;
}

.about-us > .container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: end;
}

.about-us > .container > div:nth-of-type(2) {
  width: 100%;
  height: 100%;
}

.about-us > .container > div:nth-of-type(2) > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.about-us > .container > div:nth-of-type(1) {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: end;
}

.about-us-container {
  width: calc(940px/2);
  padding-top: 65px;
}

.about-us-container > h1 {
  letter-spacing: 0.05em;
  font-size: 55px;
  color: rgb(30, 45, 59);
  font-family: "Avenir";
  padding-bottom: 5px;
}

.about-us-container > div:nth-of-type(2) {
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-us-container > div p {
  font-family: "AvenirLight";
  width: 80%;
}

.statistics {
  height: 200px;
  background-color: #5c84b3;
  display: flex;
  justify-content: center;
}

.statistics > .container {
  width: 940px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: rgb(61, 89, 117);
  font-family: "Avenir";
  font-size: 25px;
}

.statistics > .container > div:nth-of-type(1) > div:nth-of-type(3) {
  padding-right: 7%;
}

.statistics > .container > div {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.v-br {
  height: 100px;
  width: 2px;
  background-color: white;
}

.projects {
  height: 1220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Avenir";
}

.projects > h1 {
  padding-top: 50px;
  font-size: 55px;
  padding-bottom: 10px;
}

.projects > .container {
  display: flex;
  width: 940px;
  gap: 30px;
  padding-top: 50px;
}

.projects > .container > .row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects > .container > .row > .img > img {
  object-fit: cover;
  width: 100%;
}

.img > .img-overlay {
  position: relative;
  top: -461px;
  width: 100%;
  height: 94.5%;
  background-color: rgb(222, 222, 222);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: all .5s ease;
}

.img-overlay > p {
  text-decoration: none;
  color: black;
}

#nynäsbild:hover #nynäs-overlay {
  opacity: 1;
}

#sthlm:hover #sthlm-overlay {
  opacity: 1;
}

#barkaby:hover #barkaby-overlay {
  opacity: 1;
}

#privat:hover #privat-overlay {
  opacity: 1;
}

.kunder {
  background-color: #f1f1f1;
  height: fit-content;
  padding: 50px;
  font-family: "Avenir";
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 40px;
  justify-content: center;
}

.kunder > div:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 50px;
}

.kunder > .container {
  display: flex;
  gap: 50px;
  width: 940px;
}

.kunder > .container > img {
  object-fit: scale-down;
  width: 15%;
}

#map {
  height: 360px;
  width: 940px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.contact-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Avenir";
  height: 1400px;
}

.contact-us > h1 {
  font-size: 55px;
  letter-spacing: 0.05em;
  padding-top: 50px;
}

.contact-us > .flex-container {
  display: flex;
  width: 940px;
  gap: 120px;
}

.contact-us > .flex-container > .col {
  width: 100%;
}

.contact-us > .flex-container > .col > div > h2 {
  line-height: 0.9em;
  font-size: 25px;
  color: rgb(30, 45, 59);
  padding-bottom: 15px;
}

.contact-us > .flex-container > .col > div > p {
  font-family: "AvenirLight";
  font-size: 17px;
  line-height: 1.5em;
  color: rgb(59, 58, 58);
}

.contact-us > .flex-container > .col:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  gap: 150px;
}

.contact-us > .flex-container > .col:nth-of-type(2) > div:nth-of-type(1) > p:nth-of-type(3) {
  padding: 40px 0 80px 0;
}

.contact-us > .flex-container > .col:nth-of-type(2) > div:nth-of-type(2) {
  padding-bottom: 160px;
}

.contact-us > .flex-container > .col:nth-of-type(2) > .br {
  margin-bottom: 40px;
}

.contact-us > .flex-container > .col:nth-of-type(2) > h1 {
  font-size: 25px;
  letter-spacing: 0.05em;
  color: rgb(30, 45, 59);
}

.footer {
  height: 100px;
  display: flex;
  justify-content: center;
}

.footer > .container {
  display: flex;
  width: 940px;
  justify-content: space-between;
  align-items: center;
}

.footer > .container > p {
  font-family: "AvenirLight";
}

label {
  font-family: "AvenirLight";
}

input {
  font-family: "AvenirLight";
  border: none;
  background-color: transparent;
}

form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

form > div > div {
  width: 380px;
  background-color: #f1f1f1;
  padding: 7px;
  transition: background-color 300ms ease;
}

form > div > div:hover {
  background-color: #dfdfdf;
}

textarea {
  font-family: "AvenirLight";
  border: none;
  padding: 7px;
  background-color: #f1f1f1;
  width: 380px;
  transition: background-color 300ms ease;
  font-size: 14px;
}

textarea:hover {
  background-color: #dfdfdf;
}

textarea:focus, input:focus {
  outline: none;
}

.submit-button {
  background-color: rgb(59, 58, 58);
  color: rgb(237, 205, 31);
  transition: all 300ms ease;
  padding: 10px;
  width: 393px;
  font-family: "AvenirBlack";
}

.submit-button:hover {
  background-color: rgb(237, 205, 31);
  color: rgb(59, 58, 58);
}

@media (max-width: 1280px) {
  .big-screen-nav {
    visibility: hidden;
  }

  .mobile-screen-nav {
    visibility: visible !important;
  }
}

@media (max-width: 1010px) {
  .card-container {
    flex-direction: column;
    width: calc(100% - 40px);
  }

  .card {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  section#services {
    height: 900px;
    justify-content: start;
    padding-top: 40px;
  }

  .about-us > .container {
    flex-direction: column;
  }

  .about-us-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
  }

  .about-us > .container > div:nth-of-type(1) {
    justify-content: center;
  }

  .about-us > .container > div:nth-of-type(2) {
    width: 0%;
    height: 0%;
  }
  
  .about-us-container > div:nth-of-type(2) {
    align-items: center;
  }

  .about-us-container > div:nth-of-type(2) > p {
    text-align: center;
  }

  .statistics {
    height: 400px;
  }

  .statistics > .container {
    flex-direction: column;
    justify-content: center;
  }

  .statistics > .container > div {
    width: 100%;
    justify-content: space-around;
  }

  .statistics > .container > div > div:not(.v-br) {
    width: 100%;
  }

  .statistics > .container > div:nth-of-type(1) > div:nth-of-type(3) {
    padding: 0;
  }

  .projects > .container {
    width: calc(100% - 40px);
  }

  .projects {
    height: auto;
  }

  .img > .img-overlay {
    top: -95%;
  }

  .kunder > .container {
    width: calc(100% - 40px);
  }

  .kunder > .container {
    gap: 5%;
  }

  #map {
    width: calc(100% - 40px);
  }

  .contact-us > .flex-container {
    width: calc(100% - 40px);
  }

  .footer > .container {
    width: calc(100% - 40px);
  }
}

@media (max-width: 810px) {
  *:not(form > div > div > input) {
    text-align: center;
  }

  .contact-us > .flex-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-us > .flex-container > .col > div > h2 {
    padding: 0;
  }

  .contact-us > .flex-container > .col:nth-of-type(1) {
    gap: 40px;
    align-items: center;
  }

  .contact-us > .flex-container > .col:nth-of-type(2) {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
    align-items: center;
  }

  .contact-us > .flex-container > .col:nth-of-type(2) > div:nth-of-type(2) {
    padding: 0;
  }

  .contact-us > .flex-container > .col:nth-of-type(2) > .br {
    margin-bottom: 0;
    width: 0;
    height: 0;
  }

  .contact-us > .flex-container > .col:nth-of-type(2) > div:nth-of-type(1) > p:nth-of-type(3)  {
    padding: 0;
  }
  
  .contact-us > .flex-container > div > div > h2 {
    padding-bottom: 10px;
  }
 
  form > div {
    display: flex;
    flex-direction: column;
  } 

  .card > img {
    width: 0;
  }
}

@font-face {
  font-family: "Avenir";
  src: url(fonts/Avenir-Medium.ttf) format("truetype");
}

@font-face {
  font-family: "AvenirBlack";
  src: url(fonts/Avenir-Black.ttf) format("truetype");
}

@font-face {
  font-family: "AvenirHeavy";
  src: url(fonts/Avenir-Heavy.ttf) format("truetype");
}

@font-face {
  font-family: "AvenirLight";
  src: url(fonts/Avenir-Light.ttf) format("truetype");
}
