* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #4DDFFF;
}

h2 {
  color: #CF0000;
  font-weight: 400;
}

ul li {
  list-style: none;
}

/* Nav */

nav {
  height: 4rem;
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  background-color: #D9D9D9;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  overflow-y: hidden;
}

.logo {
  align-self: center;
  display: flex;
  flex-direction: row;
  font-size: 2rem;
}

.i, .oint {
  color: #CF0000;
  font-weight: 300;
}

.point {
  background-color: #4DDFFF;
  padding: 5px 5px 5px 0;
  font-weight: 300;
}

.advisors {
  margin-top: 5px;
}

nav ul {
  align-self: flex-end;
  display: flex;
  flex-direction: row;
}

nav ul li {
  margin: 0 20px;
  padding: 0 5px 3px;
  font-size: 1.2rem;
  font-weight: 300;
  transition: .25s ease;
  cursor: pointer;
  border-bottom: 8px solid transparent;
}

nav ul li:hover {
  border-bottom: 8px solid salmon;
  transition: .25s ease;
}

.active {
  border-bottom: 8px solid salmon;
  font-weight: 400;
}

/* Header */

header {
  aspect-ratio: 4 / 1;
  width: 100vw;
  position: relative;
  z-index: -1;
}

.headerText {
  position: absolute;
  top: 50%;
  left: 25%;
  font-size: 4vw;
  color: white;
  text-shadow: 0 3px 6px black;
}

header > div:nth-child(2) {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
}

.photo {
  background-size: cover;
  background-repeat: no-repeat;
}

.photo1 {
  height: 100%;
  width: 28%;
  background-image: url("images/Photo1.jpeg");
  background-position: 40% 0;
}

.photos2, .photos4 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.photos2 {
  width: 22%;
}

.photo2t {
  height: 50%;
  width: 100%;
  background-image: url("images/Photo2Top.jpeg");
  background-position: 80% 0;
}

.photo2b {
  height: 50%;
  width: 100%;
  background-image: url("images/Photo2Bottom.jpeg");
}

.photo3 {
  height: 100%;
  width: 23%;
  background-image: url("images/Photo3.jpeg");
  background-position: 50% 0;
}

.photos4 {
  width: 27%;
}

.photo4t {
  height: 50%;
  width: 100%;
  background-image: url("images/Photo4Top.png");
}

.photo4b {
  height: 50%;
  width: 100%;
  background-image: url("images/Photo4Bottom.jpeg");
}

/* Main */

main {
  width: calc(100% -  80px);
  margin: -30px auto 0;
  padding: 40px 40px 10px 0;
  background-color: #D9D9D9;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  flex-direction: row;
  z-index: 2;
}

#about {
  display: flex;
}

#services {
  display: none;
}

.subNav {
  max-width: 260px;
  width: 100%;
  margin-right: 40px;
}

.subNav ul li {
  width: 100%;
  margin-bottom: 40px;
  padding: 5px;
  font-size: 1.2rem;
  background-color: #CF0000;
  text-align: center;
  color: white;
  font-weight: 300;
  cursor: pointer;
  white-space: nowrap;
}

.subActive {
  box-shadow: 2px 0 3px 6px #4DDFFFe0;
}

article p {
  margin: 5px 0 20px;
  font-weight: 300;
  text-indent: 20px;
  line-height: 1.4rem;
}

.profile {
  display: block;
}

.team, .clients {
  display: none;
}

.team {
  font-size: 1.1rem;
}

.clients li {
  margin-bottom: 10px;
}

/* Footer */

footer {
  height: 3rem;
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer ul {
  display: flex;
  flex-direction: row;
}

footer ul li {
  margin: 0 10px;
  cursor: pointer;
}

/* Media Queries */

@media only screen
  and (max-width: 812px) {
    main {
      margin-top: -20px;
    }

    #about {
      padding-right: 20px;
    }

    .subNav {
      margin-right: 20px;
    }
  }