/* SHARED */

.container {
  margin: auto;
  width: 992px;
}

header {
  background-color: #588157;
  opacity: 0.8;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.company-name {
  text-transform: uppercase;
  margin-left: 66px;
  font-size: 26px;
  font-weight: 700;
}

.company-name a {
  text-decoration: none;
  color: inherit;
}

nav ul {
  display: flex;
  list-style: none;
  margin-right: 64px;
}

nav ul li a {
  margin: 0 16px;
  padding: 6px;
  font-size: large;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
}

nav ul li a:hover {
  color: #dad7dc;
  background-color: #588157;
  font-weight: 600;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background-color: #dad7dc;
}

.btm-nav {
  text-decoration: none;
  color: inherit;
}

.btm-nav:hover {
  color: #dad7dc;
  background-color: #588157;
  font-weight: 600;
}

footer {
  text-align: center;
  width: 100%;
  background-color: #588157;
  height: 111px;
  bottom: 0;
  opacity: 1;
}

footer nav {
  display: grid;
  grid-template-columns: 15% 1fr 1fr 1fr 1fr 15%;
  padding: 10px 6px;
}

/* END OF SHARED */

h2 {
  text-align: center;
  padding: 25px;
  background-color: white;
  margin: auto;
  text-transform: capitalize;
}

.subcontainer {
  margin-top: -2px;
  background-image: url("../img/pattern.png");
  padding-top: 32px;
}

#top-row, #bottom-row {
  display: flex;
  flex-direction: row;
  margin-bottom: 48px;
}

#middle-row {
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 48px;
}

.row-list {
  display: flex;
  background-color: white;
  border-radius: 15%;
  margin: 0 140px;
  padding: 45px 10px 0 10px;
  border: 5px solid #588157;
}

.serviceimg {
  width: 280px;
  height: 240px;
}

.serviceimg {
  border-radius: 15%;
  border: 5px solid #588157;
}

.photos {
  margin: 0 105px;
}

h4 {
  padding: 10px;
}

.text-on-img-left {
  position: absolute;
  transform: translate(125%, 150%);
  color: white;
  font-size: 22px;
  background-color: #afc2af77;
  padding: 15px;
  border-radius: 15%;
}

.text-on-img-right {
  position: absolute;
  transform: translate(-125%, 150%);
  color: white;
  font-size: 22px;
  background-color: #afc2af77;
  padding: 15px;
  border-radius: 15%;
}

p {
  text-align: center;
  background-color: white;
  padding: 20px;
  margin: 0 auto;
}