* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "sofia-pro", sans-serif;
  color: #333;
  line-height: 1.6;
}

.full-width-header,
.group-model {
  position: relative;
  width: 100%;
}

.full-width-header img,
.group-model img {
  width: 100%;
  height: auto;
  display: block;
}

.unit-box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

/* Even items (2nd, 4th, etc.) */
.unit-box-container:nth-child(odd) {
  background-color: rgba(163, 164, 164, 0.12); /* Fixed rgba typo */
  padding-top: 98px;
  padding-bottom: 98px;
}

.unit-box-container:nth-child(odd) .unit-box {
  flex-direction: row;
}

.unit-box-container:nth-child(odd) .unit-box a {
  align-self: flex-start;
}

/* Odd items (1st, 3rd, etc.) */
.unit-box-container:nth-child(even) {
  background-color: white;
  padding-top: 156px;
  padding-bottom: 156px;
}

.unit-box-container:nth-child(even) .unit-box {
  flex-direction: row-reverse;
}

.unit-box-container:nth-child(even) .unit-box a {
  align-self: flex-end;
}

.unit-box {
  display: flex;
  gap: 245px;
}

.unit-box div {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 465px;
  min-height: 400px;
  height: auto;
}

.unit-box img {
  width: 540px;
  height: 346px;
  border-radius: 30px;
}

.unit-box h3 {
  font-size: 35px;
  margin-bottom: 44px;
  line-height: 44px;
  font-weight: 400;
}

.unit-box.genanvendelse h3 {
  margin-bottom: 33px;
}

.unit-box p {
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
}

.unit-box a {
  padding: 22px 45px;
  border-radius: 50px;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: 200;
  line-height: 25px;
  margin-top: 44px;
  align-self: flex-start;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

.redoffice {
  background-color: #D5494B;
}

.indoordesign {
  background-color: #465A45;
}

.plantservice {
  background-color: #1E2B41;
}

.genanvendelse a {
  background-color: #618769;
}

main {
  margin-bottom: 0;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 100px 20px 60px;
  color: #5F5A57;
}

footer .tagline {
  font-size: 45px;
  font-style: normal;
  line-height: 1.4;
  margin-bottom: 60px;
}

footer .footer-info {
  font-size: 16px;
  line-height: 1.8;
}

footer .footer-info a {
  color: #5F5A57;
  text-decoration: none;
  font-weight: 600;
}

footer .footer-info a:hover {
  text-decoration: underline;
}

/* Responsive Styles */

/* Between 1920px and 1200px */
@media (max-width: 1920px) and (min-width: 1200px) {
  .unit-box {
    gap: calc(245px * (100vw / 1920));
  }
}

/* Between 1600px and 1300px */
@media (max-width: 1600px) and (min-width: 1300px) {
  .unit-box {
    gap: 150px;
  }
}

/* Between 1300px and 1200px */
@media (max-width: 1300px) and (min-width: 1200px) {
  .unit-box {
    gap: 100px;
  }
}

/* Between 1200px and 1024px */
@media (max-width: 1200px) and (min-width: 1024px) {
  .unit-box {
    gap: 50px;
  }
}

/* Between 1024px and smaller */
@media (max-width: 1024px) {
  .unit-box img {
    width: 400px;
    height: 400px;
  }

  .unit-box h3 {
    font-size: 28px;
  }

  .unit-box p {
    font-size: 16px;
  }

  .unit-box {
    gap: 50px;
  }
}

/* Max-width 960px */
@media (max-width: 960px) {
  .unit-box-container {
    padding: 100px !important;
  }

  .unit-box img,
  .unit-box div {
    width: 100%;
    height: auto;
  }

  .unit-box {
    text-align: center;
  }

  .unit-box a,
  .unit-box-container:nth-child(odd) .unit-box a,
  .unit-box-container:nth-child(even) .unit-box a {
    align-self: center;
    margin-top: 24px;
  }

  .unit-box h3 {
    font-size: 35px;
  }

  .unit-box p {
    font-size: 18px;
  }

  .unit-box-container:nth-child(odd) .unit-box {
    flex-direction: column-reverse;
  }

  .unit-box-container:nth-child(even) .unit-box {
    flex-direction: column-reverse;
  }

  main {
    margin-bottom: 0;
  }
}

/* Max-width 768px */
@media (max-width: 768px) {
  .unit-box-container {
    padding: 52px 42px !important;
  }

  .unit-box {
    gap: 0px;
  }
  .unit-box img {
    margin-bottom: 30px;
  }

  footer {
    padding: 60px 20px 40px;
  }

  footer .tagline {
    font-size: 28px;
    margin-bottom: 40px;
  }
}
