@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,500;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat');

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

body {
  width: 100%;
  height: auto;
  font-family: 'Montserrat';
}

header {
  width: 100%;
  height: auto;
}

html {
  font-family: 'Montserrat';
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

hr {
  height:4px;
  background-color:#365E99;
  width: 50%;
  margin-left: 25%;
}

/** Residential Intro **/

.residential-intro {
  text-align: center;
  margin-top: 2%;
}

.residential-p {
  font-size: 1.6rem;
}

/** Current Projects **/

.current-container {
  margin-top: 5%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}

.curr-title {
  font-size: 1.6rem;
  text-align: center;
}

.curr-title2 {
  font-size: 1.6rem;
  text-align: center;
  margin-top: 2%;
  margin-bottom: 2%;
}

.curr-city {
  margin-top: 2%;
  margin-bottom: 2%;
  font-size: 1.4rem;
  text-align: center;
}

.residential-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.residential {
  position: relative;
  width: 450px;
  height: 450px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin: 1rem;
}

.res-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(80%);
}

.residential-content {
  position: absolute;
  left: 0;
  top: 70%;
  width: 100%;
  height: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.residential-title {
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
}

/** Button **/

.btn-container {
  text-align: center;
}

.btn-common {
  margin-top: 1%;
  background-color: #365E99;
  border: none;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4%;
}

.btn-common:hover {
  background-color: #c1c2c6;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/** Footer **/

.footer {
  background-color: #c1c2c6;
  width: 100vw;
  height: auto;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.footer-logo-div {
  align-content: center;
  text-align: center;
}

.footer-logo {
  margin-top: 5%;
  margin-bottom: 5%;
  min-width: 290px;
  min-height: 166px;
  height: auto;
  width: 290px;
  z-index: 2;
}

/** Footer Socials Links **/

.footer-socials {
  text-align: center;
  align-content: center;
}

.footer-socials-img {
  width: 28px;
  margin-top: 5%;
  margin-bottom: 2%;
}

.insta {
  margin-right: 5%;
}

.fb {
  padding-left: 5%;
}

/** Footer Contact Info **/

.footer-contact {
  padding-left: 5%;
  padding-right: 5%;
  text-size-adjust: none;
  padding-top: 3%;
  padding-bottom: 3%;
}

.headline-container {
  align-content: center;
  text-align: center;
}

.headline {
  font-size: 17pt;
  padding-left: 2%;
}

.info-container {
  padding-top: 3%;
  padding-bottom: 3%;
}

.footer-img {
  text-align: center;
  width: 45px;
  padding-left: 20px;
}

.footer-link {
  text-decoration: none;
  color: inherit;
}

.cont-info {
  padding-left: 20px;
  font-size: 12pt;
  text-size-adjust: none;
  width: auto;
  height: auto;
  display: table-cell;
  vertical-align: middle;
}

/** Footer Memberships **/

.footer-memberships {
  align-content: center;
  text-align: center;
}

.bbb-container {
  align-content: center;
  text-align: center;
}

.bbb{
  min-width: 246px;
  width: 246px;
  min-height: 129px;
  margin-top: 5%;
  margin-bottom: 5%;
}

.five-container {
  align-content: center;
  text-align: center;
}

.footer-five {
  min-width: 328px;
  width: 328px;
  height: 137.17px;
  object-fit: cover;
  margin-bottom: 10%;
}

.boss-container {
  padding-bottom: 3%;
  text-align: right;
  padding-right: 3%
}

/* Background */

.background-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.background {
  background-image: url("/img/residential/residential.JPG");
  background-size:cover;
  filter: brightness(50%);
  margin-left: auto;
  margin-right: auto;
  width: auto;
  height: 60vh;
  z-index: 1;
  transition: opacity 0.3s ease-out;
}

.title-aboutus {
  position: absolute;
  top: 45vh;
  z-index: 2;
  color: white;
  font-size: 3rem;
  width: 100vw;
}

.arrow {
  z-index: 2;
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, 0);
  width: 30px;
  height: 30px;
  margin-top: 1%;
}

/* Nav Bar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.3s ease-out;
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100vw;
  height: auto;
  background-color: transparent;
  transition: background-color 0.2s ease-in;
}

.hamburger {
  display: none;
  z-index: 10;
  color: #365E99;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #365E99;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10%;
}

.nav-item {
  margin-left: 5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: white;
}

.nav-link:hover {
  color: #365E99;
}

.nav-logo {
  font-size: 2.1rem;
  font-weight: 500;
  color: #365E99;
  z-index: 900;
  padding-left: 10%;
}

.nav-logo-wb {
  z-index: 99;
  width: 50px;
  height: auto;
}

.navbar-solid {
  background-color: #c1c2c6; /* Eggshell color */
}

@media only screen and (max-width: 768px) {

  body {
    width: 100%;
    height: auto;
  }
  
  header {
    width: 100%;
    height: auto;
  }  

  .navbar {
    z-index: 1000;
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    overflow: hidden;
    color: red;
    background-color: transparent;
    transition: background-color 0.2s ease-in;
  }

  /** Background Landing **/

  .background-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    align-content: center;
  }

  .background {
    filter: brightness(50%);
    margin-left: auto;
    margin-right: auto;
    min-width: 549px;
    min-height: 447px;
    z-index: 1;
    transition: opacity 0.3s ease-out;
    transform: translateX(-16.3%);
  }

  .title-aboutus {
    position: absolute;
    top: 70%;
    z-index: 2;
    color: white;
    font-size: 35px;
    width: 100vw;
  }

  .back-content {
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .back-title {
    font-size: 3.4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
  }

  .back-desc {
    font-size: 1.6rem;
    color: #ffffff;
    margin-left: 6%;
    margin-right: 6%;
  }


  .overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* semi-transparent black overlay */
    opacity: 0; /* start with opacity at 0 */
    z-index: 1; /* set a higher z-index than the background */
    transition: opacity 0.3s ease-out; /* transition the opacity */
  }

  hr {
    height:4px;
    background-color:#2a4a83;
    width: 50%;
    margin-left: 25%;
  }

  /** Residential Intro **/

  .residential-intro {
    text-align: center;
    font-size: 20px;
  }

  .residential-p {
    padding-top: 9%;
    padding-left: 8.5%;
    padding-right: 8.5%;
    padding-bottom: 5%;
    font-size: 1.5rem;
  }

  .current-container {
    text-align: center;
  }

  .curr-title {
    margin-top: 60px;
    font-size: 1.6rem;
    margin-top: 2%;
  }

  .curr-title2 {
    font-size: 1.6rem;
    margin-top: 6%;
    margin-bottom: 2%;
  }

  .curr-city {
    margin-top: 6%;
    margin-bottom: 2%;
    font-size: 1.4rem;
    text-align: center;
  }

  .residential {
    position: relative;
    width: 350px;
    height: 350px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .res-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 90%;
    filter: brightness(70%);
  }

  .residential-container {
    display: flex;
    flex-direction: column;
  }

  .residential-content {
    position: absolute;
    left: 0;
    top: 70%;
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .residential-title {
    font-size: 25px;
    font-weight: bold;
    color: #ffffff;
  }

  .btn-container {
    text-align: center;
  }
  
  .btn-common {
    margin-top: 1%;
    background-color: #365E99;
    border: none;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8%;
  }

  /** Footer **/

  .footer {
    background-color: #c1c2c6;
    width: 100vw;
    height: auto;
    display: block;
  }

  .footer-logo-div {
    align-content: center;
    text-align: center;
  }

  .footer-logo {
    margin-top: 5%;
    margin-bottom: 5%;
    min-width: 290px;
    min-height: 166px;
    height: auto;
    width: 290px;
    z-index: 2;
  }

  /** Footer Socials Links **/

  .footer-socials {
    text-align: center;
    align-content: center;
  }

  .footer-socials-img {
    width: 28px;
    margin-top: 5%;
    margin-bottom: 2%;
  }

  .insta {
    margin-right: 5%;
  }

  .fb {
    padding-left: 5%;
  }

  /** Footer Contact Info **/

  .footer-contact {
    padding-left: 5%;
    padding-right: 5%;
    text-size-adjust: none;
    padding-top: 3%;
    padding-bottom: 3%;
  }

  .headline-container {
    align-content: center;
    text-align: center;
  }

  .headline {
    font-size: 17pt;
    padding-left: 2%;
  }

  .info-container {
    padding-top: 3%;
    padding-bottom: 3%;
  }

  .footer-img {
    text-align: center;
    width: 45px;
    padding-left: 20px;
  }

  .footer-link {
    text-decoration: none;
    color: inherit;
  }

  .cont-info {
    padding-left: 20px;
    font-size: 12pt;
    text-size-adjust: none;
    width: auto;
    height: auto;
    display: table-cell;
    vertical-align: middle;
  }

  /** Footer Memberships **/

  .footer-memberships {
    align-content: center;
    text-align: center;
  }

  .bbb-container {
    align-content: center;
    text-align: center;
  }

  .bbb{
    min-width: 246px;
    width: 246px;
    min-height: 129px;
    margin-top: 5%;
    margin-bottom: 5%;
  }

  .five-container {
    align-content: center;
    text-align: center;
  }

  .footer-five {
    min-width: 328px;
    width: 328px;
    height: 137.17px;
    object-fit: cover;
    margin-bottom: 10%;
  }

  .boss-container {
    padding-bottom: 3%;
    text-align: right;
    padding-right: 3%
  }

  /** Nav **/
  .nav-menu.active + .overlay {
    opacity: 1; /* increase opacity to 1 when nav-menu is active */
  }
  
  /* rest of CSS code */
  .nav-menu.active + .overlay {
    display: block; /* show the overlay when the nav-menu is active */
  }

  .navbar-solid {
    background-color: #c1c2c6; /* Eggshell color */
  }

  .nav-link {
    color: #365E99;
  }

  .nav-menu {
    position: fixed;
    right: -70%; /* slide the menu off-screen to the right */
    top: 0;
    height: 100vh; /* set the height to the full viewport height */
    width: 70%; /* set the width to 70% of the viewport width */
    max-width: 400px; /* set a max-width to limit the width on larger screens */
    background-color: white;
    opacity: 87%;
    border-radius: 0; /* remove the border-radius */
    transition: right 0.3s ease-out; /* transition the right property */
    z-index: 10000; /* set a higher z-index to make it appear above everything else */
    display: flex; /* make the list items appear vertically */
    flex-direction: column; /* make the list items appear vertically */
    justify-content: flex-start; /* align the items to the top */
    align-items: center; /* center the list items horizontally */
    padding-top: 15%; /* add a 15% padding to the top */
  }
  
  .nav-menu.active {
    right: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align the items to the top */
    align-items: center; /* center the items horizontally */
  }

  .nav-logo {
    font-size: 2.1rem;
    font-weight: 500;
    color: #365E99;
    z-index: 900;
    padding-left: 0%;
  }
  
  .nav-item {
    margin: 2.5rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    position: relative;
    top: 0;
    z-index: 1000000;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
    
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}
