:root {
  --green: #007c00;
  --grey: #edeff0;
}
html {
  font-family: "Roboto", sans-serif;
}
h2 {
  font-size: 1.3em;
}
p,
ul,
ol {
  line-height: 1.5em;
}
body {
  margin: 0;
}
header {
  height: 80px;
}
header img.logo {
  width: 140px;
  margin: 12px 0 0 20px;
}
header img.mester {
  width: 70px;
  margin-left: 0;
  margin-top: 12px;
}
.header-image {
  background-image: url("../images/sag_mobil.jpg");
  height: 200px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.header-image .text-content {
  color: white;
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  font-size: 22px;
  padding: 22px 20px;
  box-sizing: border-box;
  text-align: center;
}
.header-image .text-content .tagline {
  font-weight: bold;
}
.header-image .text-content p {
  margin: 10px 0;
}
.header-image .text-content hr {
  border-color: var(--green);
}
ul,
ul li {
  list-style: none;
  padding: 0;
}
li a {
  text-decoration: none;
}
footer {
  height: 100px;
  background: var(--green);
  color: #fff;
  padding: 20px;
  margin-top: 70px;
  display: grid;
  grid-template-columns: 120px auto;
  gap: 20px;
  line-height: 1.5em;
}

footer img {
  height: 100px;
}

footer .contact-info {
  text-align: right;
}
.content-item.info p {
  text-align: center;
}
.info-container {
  margin: 30px auto;
  width: 160px;
}
.info-container span {
  margin-left: 16px;
}
.info-container div {
  height: 34px;
  line-height: 34px;
}
.info-container i {
  font-size: 22px;
  vertical-align: middle;
}
.content-item {
  margin: 0 auto;
  width: 80%;
  max-width: 520px;
}
.text-container > div {
  margin-bottom: 40px;
}
.line {
  border-top: 1px solid;
  padding-top: 20px;
}
.logo-nav-container {
  display: grid;
  grid-template-columns: auto 90px 53px;
  height: 80px;
}
.nav-container {
  padding-top: 22px;
}

nav,
#menu-checkbox {
  display: none;
}
#menu-checkbox:checked ~ nav {
  display: block;
  position: absolute;
  right: 0;
  top: 80px;
  width: 100%;
  padding: 10px 0;
}
.menu-icon-label i {
  font-size: 28px;
}
nav {
  background-color: var(--green);
}

nav a {
  display: block;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  text-align: left;
}

/***
services
***/

.services ul li {
  border: 1px solid var(--green);
  text-align: center;
  margin: 40px 0;
}
.services ul li div {
  background-color: var(--green);
  color: #fff;
  padding: 20px;
  height: 150px;
  position: relative;
}

.services ul li figure i {
  font-size: 40px;
  color: #000;
}

.services h2 {
  text-align: center;
}

.services h3 {
  margin: 0;
}
.see-more {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
}
.services li a {
  text-decoration: none;
  background-color: white;
  color: #000;
  padding: 5px 10px;
}
.services li a:hover {
  opacity: 0.8;
}
/*about*/

.about h2 {
  text-align: center;
}
.about p {
  margin: 30px;
}
.person {
  border: 1px solid var(--grey);
  margin: 70px;
  padding: 25px;
}
.person img {
  width: 100px;
  border-radius: 50%;
  height: 100px;
  margin: 0 auto;
  display: block;
}

/*Tjenester*/
.header-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.header-image.isolation {
  background-image: url("../images/etterisolering.jpg");
}
.header-image.nybygg {
  background-image: url("../images/nybygg.jpg");
}
.header-image.termografering {
  background-image: url("../images/etterisolering.jpg");
}
.header-image.oppussing {
  background-image: url("../images/oppussing.jpg");
}
.header-image.tilbygg {
  background-image: url("../images/nybygg.jpg");
}
.header-image.ventilasjon {
  background-image: url("../images/etterisolering.jpg");
}
.title {
  text-align: center;
  padding: 15px 0 10px 0;
}
.text {
  width: 80%;
  max-width: 500px;
  margin: 0 auto;
}
.text ol {
  padding: 0;
}
.text ol li {
  margin: 10px;
}

@media screen and (min-width: 768px) {
  .header-image {
    background-image: url("../images/sag.jpg");
    height: 300px;
    position: relative;
  }
  .header-image .text-content {
    display: block;
    width: 555px;
    padding: 30px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    height: auto;
  }
  .header-image .text-content p {
    margin: 20px 0;
  }
  .info-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: auto;
  }
  .info-container span {
    margin-left: 5px;
  }
  .info-container a,
  .info-container a:visited {
    color: #000;
    text-decoration: none;
  }
  .text-container {
    display: flex;
    gap: 50px;
    border-top: 1px solid;
    max-width: 80%;
    padding-top: 30px;
  }
  .line {
    border-top: none;
    padding-top: 0;
  }
  .menu-icon-label {
    display: none;
  }
  nav {
    display: flex;
    justify-content: right;
    margin-right: 20px;
    background-color: transparent;
  }
  nav a {
    color: #000;
  }
  nav a:hover {
    border-bottom: 1px solid var(--green);
  }

  .logo-nav-container {
    display: grid;
    grid-template-columns: auto 75px 380px;
  }
  #menu-checkbox:checked ~ nav {
    display: flex;
    position: static;
    padding: 0;
  }
  .content-item {
    width: auto;
    max-width: none;
  }

  .content-item {
    padding: 0 40px;
  }

  .services ul {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .about p {
    max-width: 600px;
    margin: 30px auto;
  }
}
@media screen and (min-width: 1200px) {
  .header-image {
    background-image: url("../images/sag.jpg");
    height: 400px;
  }
  .header-image .text-content {
    width: 655px;
    padding: 50px;
    font-size: 30px;
  }

  .services ul {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .about p {
    max-width: 700px;
  }
}
