* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
}

section {
  padding: 20px;
}

.hero {
  position: relative;
}

.hero h1 {
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  color: #fff;
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
  text-align: center;
  z-index: 2;
}

.hero h2 {
  display: none;
  z-index: 2;
}

.hero img {
  width: 100%;
  height: calc(80svh - 88px);
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-scroll {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
}

.hero-scroll img {
  width: 100%;
  height: unset;
}

.projects-container {
  margin-bottom: 8px;
}

.projects-container h2 {
  font-size: 20px;
  line-height: 30px;
  padding: 16px 0;
}

.projects-list {
  display: grid;
  margin-top: 16px;
  gap: 10px;
}

.project-item {
  position: relative;
}

.project-item-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-item h4 {
  font-size: 15px;
  line-height: 24px;
  font-weight: 100;
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  letter-spacing: 7px;
}

.why {
  padding: 20px;
  background-color: #eeece4;
}

.why-container {
  margin-top: 30px;
  color: #453f3d;
}

.why-header h3 {
  color: #bab9b4;
  font-size: 12px;
  line-height: 15px;
}

.why-header h2 {
  font-size: 35px;
  line-height: 40px;
}

.why-sections {
  margin-top: 30px;
  display: grid;
  gap: 36px;
}

.why-section h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.why-container p {
  font-size: 18;
  line-height: 26px;
}

.why-footer {
  margin: 40px 0 30px;
}

.why-footer p {
  color: #bab9b4;
  font-size: 12px;
  line-height: 15px;
  margin: 16px 0;
}

.why-divider {
  background-color: #d5d3cb;
  width: 100%;
  height: 1px;
}

.why-footer img {
  width: 100%;
}

.form-container {
  padding: 20px;
  margin: auto;
  text-align: center;
  border: 1px solid black;
  margin: 60px 20px 60px;
}

.form-container h2 {
  letter-spacing: 0;
  padding-bottom: 12px;
}

.sub-text {
  margin-bottom: 30px;
  color: #555;
  font-size: 1rem;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab {
  background: none;
  border: none;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
  color: #c8c6be;
  border-bottom: 2px solid transparent;
}

.tab.active {
  font-weight: bold;
  color: #333;
}

.input-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  box-sizing: border-box;
}

textarea {
  resize: none;
  height: 120px;
}

button[type='submit'] {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

button[type='submit']:hover {
  background-color: #333;
}

@media (min-width: 540px) {
  .hero h1 {
    top: 110px;
    color: #fff;
    font-size: 24px;
    font-weight: 100;
    opacity: 0.8;
  }

  .hero h2 {
    display: block;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 10px;
  }

  .projects,
  .why {
    padding: 30px 60px;
  }

  .projects-list {
    margin-top: 30px;
  }

  .project-item h4 {
    top: 30px;
    left: 30px;
  }

  .nav-drawer {
    left: 60%;
  }

  .input-group {
    flex-direction: row;
  }

  .form-container {
    padding: 60px;
    margin: 60px;
  }
}

@media (min-width: 990px) {
  .hero h1,
  .hero h2 {
    text-align: left;
    padding: 0 60px;
  }

  .projects-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 400px 200px;
  }

  .project-trusses {
    grid-column: 2/4;
  }

  .project-beamwraps {
    grid-column: 1/3;
  }

  .project-flooring {
    grid-column: 3/5;
  }

  .why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .why-header h2 {
    max-width: 300px;
  }

  .why-sections {
    margin-top: 0;
  }

  .why-footer {
    margin-top: 120px;
    grid-column: 1/3;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .why-divider {
    grid-column: 1/3;
  }

  .form-container {
    max-width: 900px;
    margin: 60px auto;
  }

  #contactForm {
    display: grid;
  }

  button[type='submit'] {
    width: fit-content;
    padding: 24px 32px;
    justify-self: end;
  }
}

@media (min-width: 1320px) {
  .hero h1,
  .hero h2 {
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
  }

  .projects,
  .why-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
  }

  .form-container {
    margin-top: 90px;
  }
}
