:root {
  /* colours */
  --background-color: #f8f4e3;
  --white: #FFFFFF;
  --light_green_800: #6c7931;
  --blue_gray_900: #234121;
  --blue_gray_100: #d9d9d9;
  --blue_gray_900_95: #234121F2;  
  --lime_400: #d1ef4b;
  /* end colours */
  /* screen resolutions */
  --quad-hd: 2560px;
  --full-hd: 1920px;
  --hd-plus: 1600px;
  --laptop: 1440px;
  --hd: 1280px;
  --tablet: 1024px;
  --mobile: 576px;
  /* end screen resolutions */

  --global-max-width: 1400px;
  --global-tablet-padding: 5%;
  --global-mobile-padding: 30px;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "DIN";
  src: url("../fonts/DINPro-Medium.otf") format("opentype");
}

@font-face {
  font-family: "DIN-Bold";
  src:url("../fonts/DINPro-Bold.otf") format("opentype");
  /* font-weight: bold; */
}

@font-face {
  font-family: "DIN";
  src: url("../fonts/DINPro-CondBlack.otf") format("opentype");
  font-weight: bolder;
}

@font-face {
  font-family: "DIN";
  src: url("../fonts/DINPro-Light.otf") format("opentype");
  font-weight: lighter;
}

@font-face {
  font-family: "HandelGothic";
  src: url("../fonts/HandelGothic\ Regular.ttf") format('truetype');
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  font-size: 16px;
  font-family: "DIN";
  background-color: var(--background-color);
}

body {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

span,
p {
  margin: 0;
  padding: 0;
}

img {
  user-select: none;
}

button {
  cursor: pointer;
}

h2 {
  font-size: 42px;
  font-family: 'DIN-Bold';
}

h3 {
  font-size: 25px;
  font-family: 'DIN-Bold';
}

main {
  position: relative;
  grid-area: main;
}

.default-wrapper {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-areas:
    "header header header header header header header header header header header header"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "main main main main main main main main main main main main"
    "footer footer footer footer footer footer footer footer footer footer footer footer";
}

.global-container {
  width: 100%;
  max-width: var(--global-max-width);
  margin: 0 auto;
}

.mobile-menu-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  transition: 0.2s ease-in-out;
  opacity: 1;
  pointer-events: auto;
  display: none;
}

.mobile-menu-nav {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--blue_gray_900_95);
  z-index: 6;
  padding: 30px 0 30px 30px;
  min-width: 320px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  transition: 0.2s ease-in-out;
  transform: translate3d(0);
}

.mobile-menu-close {
  border: none;
  background-color: transparent;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between;
  line-height: 250%;
  font-weight: bold;
  color: white;
  font-size: 1rem;
}

.mobile-menu-links .submenu {
  padding-left: 35px;
  font-size: 15px;
  & li {
    margin-bottom: 5%;
  }
}

.mobile-menu-links .link {
  max-width: calc(100% - 15px);
  width: max-content;
}

.mobile-menu-links .indicator {
  margin-left: 13px;
  margin-top: -8px;
  width: calc(100% - 13px);
  display: flex;
  height: 13px;
  background-color: rgba(237, 237, 238, 0.8);
}

.header {
  z-index: 2;
  position: -webkit-sticky;
  position: sticky;
  top: -132px;
  background-color: var(--background-color);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.16);
  grid-area: header;
  -webkit-transition: top 0.3s ease-in-out;
  transition: top 0.3s ease-in-out;
}
.header.sticky {
  top: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
  padding: 20px;
  align-items: flex-end;
}

.home-link {
  margin: 0;
  padding: 0;
  display: flex;
}

.logo {
  height: auto;
}

.menu-links {
  margin: 0 0 8px;
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: space-between;
  width: 32%;
  max-width: min(40%, 734px);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.1875rem;
}

.menu-link {
  position: relative;
  & span {    
    display: flex;
    gap: 10px;
    align-items: center;
  }
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--background-color);
  width: 310px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 2%;
}

.menu-link span:hover + .dropdown-content  {
  display: block;
}

.dropdown-content:hover {
  display: block;
}

.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: white;
}

.big-image {
  overflow: hidden;
  position: relative;
}

.big-image {
  & .submit-field label {
    border: 1.5px solid white;
  }

  & .submit-field input {
    color: white;
  }

  & .submit-field input::placeholder {
    color: lightgray;
  }
}

.clipped-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;  
}

.dark {
  filter: brightness(0.7);
}

.darker {
  filter: brightness(0.5);
}

.mobile-menu-button {
  border: none;
  background-color: transparent;
  margin: 0;
  padding: 0;
  align-self: center;
  overflow: visible;
  display: none;  
}

.errorLabel {
  border-color: red !important;
}

.errorInput {
  color: lightsalmon !important;
}

footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  padding: min(8%, 80px) 20%;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 1130px;
  color: white;
  gap: 700px;
}

.content.reduced {
  min-height: 515px;
}

.content-others {
  gap: 250px;
}

.slogan {
  padding: 30px;
}

.slogan-others {
  margin-top: 300px;
  text-align: center;
  overflow-wrap: anywhere;
}

.slogan h1, .slogan-others h1 {
  font-family: 'HandelGothic';
  font-weight: normal;
  font-size: 110px;
  margin: 20px 0;
}

.slogan p, .slogan-others p {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 40px;
  max-width: 550px;
  margin: auto;
}

.highlights {
  width: 100%;
  margin-bottom: 5%;
}

.highlights-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.highlights-items {
  margin-top: 5%;
  width: 100%;
  display: grid;
  grid-gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.highlights-item {
  display: flex;
  gap: 20px;
}

.highlights-itemContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.highlights-imageContainer img {
  /* position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover; */
  transform: scale(0.7);
}

.highlights-title {
  margin: 1em 0 0;
  height: 2.7em;

  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;

  font-size: 1.375rem;
  line-height: 1.875rem;
  font-family: 'DIN-Bold';
  text-align: center;
}

.highlights-subtitle {
  text-align: center;
}

.highlights-divider {
  background-color: var(--light_green_800);
  width: 1px;
}

.slogan-2 {
  padding-top: 170px;
  padding-left: 400px;
  padding-right: 45%;
  display: flex;
  flex-direction: column;
}

.slogan-2-hs {
  width: 100%;
  align-items: flex-end;
  padding-right: 330px;
  padding-left: unset;

  & h2 {
    width: 35%;
  }

  & p {
    width: 35%;
    padding-right: 110px;
  }
}

.slogan-2-reduced {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  text-align: center;

  & p {
    font-size: 17px;
    width: 400px;
    line-height: 32px;
  }
}

.slogan-2 p {
  line-height: 35px;
  font-size: larger;
}

.our-services {
  display: flex;
  flex-direction: column;
  padding: 4% 0 4%;
  align-items: center;
  gap: 100px;
}

.our-services.others {
  display: none;
}

.our-services-grid {
  width: 60%;
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
}

.our-services-item {
  height: 440px;
  width: 100%;
  position: relative;
  align-content: center;
}

.our-services-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.our-services-item h2 {
  color: white;
  font-size: 36px;
  padding: 24px;
  overflow-wrap: anywhere;
}

.our-services-item h3 {
  color: white;
  padding: 20px;
  overflow-wrap: anywhere;
}

.our-services-item p {
  color: white;
  padding: 0 24px;
  overflow-wrap: anywhere;
}

.mask {
  background: linear-gradient(180deg, #0000007f, #00000033);
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
}

.our-services-text {
  width: 60%;  
  display: flex;  
  flex-direction: column;
  align-items: center;
  gap: 45px;
}

.our-services-text h1 {
  color: var(--light_green_800);
  text-align: center;
  font-size: 45px;
  font-family: 'DIN-Bold';
}

.slogan-3 {
  padding-left: 52%;
  padding-right: 400px;
}

.contact-text {
  text-align: center;
  padding: 0 7%;
}

.submit-fields {
  display: flex;
  gap: 20px;
  width: 60%;
  justify-content: center;
}

.submit-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-field h4 {
  margin: 0;
}

.submit-field label {
  background-color: #d9d9d933;
  height: 54px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  cursor: text;
  gap: 16px;
  border: 1.5px solid #788b43bf;
}

.submit-field input {
  background-color: transparent;
  width: 100%;
  border: 0;
  outline: none;
}

.submit-field img {
  width: 18px;
}

.submit-field button {
  background-color: var(--blue_gray_900);
  color: var(--lime_400);
  height: 54px;
  padding: 0 34px;
  font-size: 15px;
  border-radius: 4px;
  letter-spacing: 0.60px;
  font-weight: 700;
  min-width: 152px;  
  /* border: 1.5px solid var(--blue_gray_900); */
  border: 1.5px solid #777422;
  margin-top: auto;
}

.submit-field-others button {
  background-color: var(--blue_gray_100);
  color: black;
  border: 1.5px solid white;
}

.privacy-policy {
  margin: 3%;
  overflow-wrap: anywhere;
}

.dotted-house {
  position: absolute;
  width: 85%;
  left: 100px;
  bottom: -160px;
  z-index: -1;
}

.heat-options {
  margin-top: 20px;
  gap: 18px;
  display: flex;
  align-self: stretch;
  flex-direction: column;
  margin-bottom: 20px;

  & .image {
    height: 674px;
    background-size: cover;
    background-repeat: no-repeat;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

.heat-pumps {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  & .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 28%;

    & p {
      width: 74%;
      line-height: 30px;
    }
  }

  & .image {
    background-image: url(../images/air-conditioning.png);
  }
}

.biomass-heating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  & .image {
    background-image: url(../images/furnace.png);
  }
  & .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 42%;

    & p {
      width: 48%;
      line-height: 30px;
    }
  }
}

.planning-options {
  margin-top: 20px;
  gap: 18px;
  display: flex;
  align-self: stretch;
  flex-direction: column;
  margin-bottom: 20px;

  & img {
    background-size: cover;
    background-repeat: no-repeat;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

.planning-options-1 {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  & h3 {
    width: 35%;
    padding-right: 50px;
  }
}

.planning-options-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  & h3 {
    width: 42%;
  }
}

.our-process {
  display: flex;
  flex-direction: column;
  padding-top: 4%;
  align-items: center;

  & h2 {
    width: 60%;
    margin-bottom: 2.5%;
  }
}

.our-process-items {
  display: flex;
  flex-direction: row;
  width: 60%;
  gap: 20px;
}

.our-process-items2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, 250px);
  grid-auto-rows: auto;
  grid-gap: 20px;
  width: 70vw;
}

.our-process-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 250px;

  & img {
    height: 300px;
  }

  & p {
    line-height: 28px;
  }
}

.our-specialization {
  align-content: center;
  justify-items: center;
  margin-top: 3%;
  margin-bottom: 7%;
  text-align: center;

  & p {
    width: 40%;
    text-align: center;
    line-height: 32px;
    letter-spacing: 0.25px;
    font-size: 20px;
  }
}

.imprint {
  & p {
    line-height: 1.5rem;
    white-space: pre-line;
  }
}

.image-info {
  max-width: 1100px;
  display: flex;
  flex-direction: column;

  & section {
    display: flex;
    flex-direction: column;
    margin-bottom: 3em;
  }

  & p {
    margin-bottom: 10px;
  }

  & div {
    display: grid;
    grid-template-columns: repeat(auto-fit, 185px);
    grid-auto-rows: auto;
    grid-gap: 30px;
  }

  & figure {
    display: block;
    margin: 0;

    & figcaption {
      margin: 0.5em 0;
      font-size: 0.75rem;
      line-height: 1rem;
      white-space: pre-line;
    }
  }
}


/*media queries*/
/* laptop*/
/* @media (max-width: 1440px) {
  .clipped-image {
    width: 130%;
    height: 130%;
    -webkit-transform: translateY(-10%) translateX(-20%);
    -ms-transform: translateY(-10%) translateX(-20%);
    transform: translateY(-10%) translateX(-20%);
  }
}

@media (min-width: 1025px) {
  .mobile-menu-button {
    display: none;
  }
} */

/*tablet*/
/* @media (max-width: 1024px) {
  .global-container {
    padding-left: var(--global-tablet-padding);
    padding-right: var(--global-tablet-padding);
    margin: 0;
  }

  .header-content {
    padding-left: var(--global-tablet-padding);
    padding-right: var(--global-tablet-padding);
  }

  .menu-links {
    display: none;
  }

  .clipped-image {
    width: 160%;
    height: 160%;
    -webkit-transform: translateY(-15%) translateX(-35%);
    -ms-transform: translateY(-15%) translateX(-35%);
    transform: translateY(-15%) translateX(-35%);
  }
} */

/*mobile*/
@media (max-width: 1265px) {
  h2 {
    font-size: 32px !important;
  }
  .default-wrapper {
    min-height: unset;
  }

  .global-container {
    padding-left: var(--global-mobile-padding);
    padding-right: var(--global-mobile-padding);
    margin: 0;
  }

  /* .mobile-menu-wrapper {
    display: unset;
  } */

  .header-content {
    padding-left: var(--global-mobile-padding);
    padding-right: var(--global-mobile-padding);
  }

  .mobile-menu-button {
    display: block;
  }

  .menu-links {
    display: none;
  }

  .logo {
    width: 179px;
  }

  .big-image {
    & .mask {
      bottom: 5%;
    }
  }

  .clipped-image {
    object-position: top;
    width: 100%;
    height: 100%;
    -webkit-transform: translateY(-5%);
    -ms-transform: translateY(-5%);
    transform: translateY(-5%);
  }

  footer {
    padding: min(8%, 80px) 10%;
    flex-direction: column;
    gap: 10px;
  }

  .content {
    height: 550px;
    padding: 10px;
    min-height: unset;

    & .submit-fields {
      display: none;
    }
  }

  .slogan {
    padding: unset;
  }

  .slogan-others {
    margin-top: 100px;
  }

  .slogan h1, .slogan-others h1 {
    font-size: 2.3rem;
    text-align: center;
    margin: 0;
  }

  .slogan p, .slogan-others p {
    padding-top: 365px;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.5px;
  }

  .slogan-others p {
    padding-top: unset;
  }

  .highlights {
    /* padding: max(5%, 30px) 0 max(6%, 30px); */
    padding: 0;
  }

  .highlights-items {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .highlights-item {
    height: min-content;
    display: block;
  }

  .highlights-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    height: unset;
    margin: 0.5em;
  }

  .highlights-divider {
    display: none;
  }

  .highlights-subtitle {
    line-height: 25px
  }

  .slogan-2 {
    padding: 0;
  }

  .slogan-2-hs {
    & h2 {
      width: 100%;
    }

    & p {
      width: 100%;
    }
  }

  .slogan-2-reduced {  
    & p {
      width: auto;
    }
  }

  .our-services {
    gap: 50px;
  }

  .our-services.others {
    display: flex;
  }
  
  .our-services-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 70%;
  }

  .our-services-text {
    width: 75%;
    text-align: center;
  }

  .our-services-text h1 {
    font-size: 2em;
  }

  .our-services-item h2 {
    padding: 10px;
  }

  .contact-text {
    padding: 0;
  }

  .slogan-3 {
    padding: 3%;
  }  

  .submit-fields {
    flex-direction: column;
  }

  .dotted-house {
    display: none;
  }

  .heat-options {
    display: none;
  }

  .planning-options {
    display: none;
  }

  .our-process {  
    & h2 {
      width: unset;
    }
  }

  .our-process-items {
    flex-direction: column;
    gap: 50px;
    width: auto;
  }

  .our-specialization {  
    & p {
      width: 90%;
    }
  }
  svg {
    width: 500%;
    height: 800%;
  }
}