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

html {
  scroll-behavior: smooth;
}

:root {
  --db:#393229;
  --brown: #584730;
  --gold:#b38723;
  --red:#e72029;
  --teal:#7aa990;
  --tan:#f3ce8f;
  --beige:#fef3df;
  --tree-bg-brown:url(images/tree-background-brown.webp);

}

body {
  font-family: "Rubik", sans-serif;
/*  body color */
  background: var(--beige);
/*  text color*/
  color: var(--db);
  line-height: 1.5em;
  margin: 0;
}

h1, h2, h3, h4{
font-family: "Source Sans 3", sans-serif;
text-transform: uppercase;
letter-spacing: 5px;
}

h1{
  line-height: 1.3em;
  font-size: 2.5em;
  margin-bottom: 30px;
}

h2, h3, h4{
  letter-spacing: 1px;
}

p, h2, h3, h4 {
  margin-bottom: 20px;
  margin-top: 0px;
}

h2{
  font-weight: 400;
}

h3{
  font-size: 1.5em;
  text-transform: uppercase;
}

a{
  text-decoration: none;
  transition: .3s;
  color: inherit;
}

ul, ol{
  padding-left:40px;
}

ul li, ol li{
  margin-bottom: 5px;
}

.subpage-content {
  margin: 60px auto !important;
}

.subpage-content h2 {
  font-size: 35px;
  font-weight: 600;
  margin-top: 30px;
}

.subpage-content p a{
  border-bottom: 1px solid var(--teal);
  font-weight: 600;
}

.subpage-content p a:hover{
  color: var(--teal);
}

.subpage-content i{
  margin-right: 10px;
  margin-left: 15px;
  font-weight: 800;
}

.container{
  position: relative;
}

/*HOMEPAGE UNIVERSAL STYLES*/

.tan-banner{
  background: var(--tan);
  height: 20px;
}
.brown-banner{
  background: var(--brown);
  height: 20px;
}

#sub-footer{
  padding:20px;
  text-align: center;
  font-size: .9em;
  color: var(--tan);
  background: var(--brown);
}

#sub-footer a{
  font-weight: 500;
  border-bottom: 1px solid white;
}

#sub-footer a:hover{
  color: white;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/*** DESKTOP STYLES ***/
@media (width >= 1100px) {

  .container {
    width: 1100px;
    margin:0 auto;
  }

  .content{
    padding: 80px 0;
    overflow: hidden;
  }
  
  /*** HEADER DESKTOP STYLES ***/

  #mobile-section{
    display: none;
  }

  #mobile-logo{
    display: none;
  }

  #navContainer{
    width: 100%;
    transition: all .4s;
    position: fixed;
    top: 0;
    min-height: fit-content;
    z-index: 10;
    font-size: 16px;
    background: var(--wood-header-bg) no-repeat center;
    background-size: cover;
  }

  a.icon{
    display: none;
  }

  a#headerLogo{
    width: 275px;
    height: auto;
    transition: .4s ease-out;
  }

  #headerLogo img{
    width: 100%;
    height: auto;
  }

  #logoWhite {
    display: none;
  }

  #logoColor{
    display: block;
  }

  #myTopnav {
    transition: .4s;
  }

  #menuContainer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .4s;
    padding:5px 0;
  }

  .topnav{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .topnav a {
    color: var(--db);
    display: inline-block;
    padding: 6px 7px;
    margin:0 10px;
    font-weight: 500;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
  }

  .topnav a:hover {
   color: var(--red) !important;
  }

  .topnav a:before{
    position: absolute;
    left:0;
    bottom: 0;
    content: '';
    background: var(--red);
    height: 2px;
    width: 0;
    transition: .4s;
  }

  .topnav a:hover:before{
    width: 100%;
  }

  .d-btn i{
    margin-left:10px;
  }

  a.d-btn:before{
    display: none;
  }

  .normal-btn:hover{
    cursor: pointer;
  }

  .closebtn{
    display: none;
  }

  .dropdown:hover .d-content, .dropdown:hover .hidden-row {
    display: flex;
  }

  .d-content, .hidden-row {
    animation: fadeIn .5s;
    -webkit-animation: fadeIn .5s;
    -moz-animation: fadeIn .5s;
    -o-animation: fadeIn .5s;
    -ms-animation: fadeIn .5s;
  }
  @keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }

  @-moz-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
  }

  .hidden a{
    font-weight: 500;
  }

  .hidden-row {
    display: none;
    position: absolute !important;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 20px 25px;
    background: var(--tree-bg-brown) no-repeat center;
    background-size: cover;
    width: 250px;
    margin: 0px 0 0 0;
    box-shadow: 0px 8px 16px 1px rgba(0,0,0,0.3);
  }

  .hidden-row a {
    color: white !important;
    padding: 8px;
    text-decoration: none;
    display: inline-block;
/*    background: #fff;*/
    font-size: .9em;
    border-bottom: none;
    width: calc(100% - 16px);
    transition: .4s;
    border-bottom: 1px solid var(--tan);
    margin: 0 0 1px;
    position: relative;
  }

  .hidden-row a::before{
    content: '';
    position: absolute;
    width: 0;
    display: block;
    position: absolute;
    bottom: 0;
    background: var(--pink);
    left: 0;
    width: 0;
    height: 1.5px;
    transition: all 0.3s ease-in-out;
  }

  .hidden-row a:hover::before{
    width:100%;
  }    

  .hidden-row a:hover{
    color: var(--pink);
    opacity: 1;
  }

    a#overlayLogo{
      display: none;
  }

  a#header-tel{
    color: var(--db) !important;
    border:2px solid var(--brown);
    background: var(--beige);
    border-radius: 35px;
    padding:10px 30px;
    transition: all .5s;
  }

  a#header-tel:before{
    display: none;
  }

  a#header-tel:hover{
    background: var(--red);
    color: white !important;
    border: 2px solid var(--brown);
    transition: all .5s;
  }


    /***HERO DESKTOP STYLES***/

   #homepage-hero{
    background: linear-gradient(to right, rgba(243, 206, 143, .2), rgba(254, 243, 223, 0)), 
            url(images/homepage-hero-new.jpg) no-repeat center;
    background-size: cover;
    height: 800px;
    color: var(--brown);
    position: relative;
    padding-top:120px;
  }

   /*#homepage-hero:before{
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    left:0;
    top:0;
    background: rgba(254, 243, 223, .1);
   }*/

   #homepage-hero .container{
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
   }

   .hero-text{
    width: 900px;
    
   }

   .hero-text h2{
    font-weight: 700;
    font-size: 2.1em;
    line-height: 1em;
    margin-bottom: 40px;
    width: 615px;
    font-family: "Nunito";
   }

   .hero-text h1 {
    color: var(--teal);
    font-size: 4.5em;
    line-height: .9;
    margin-bottom: 20px;
    font-family: "Nunito";
   }

   .hero-text p{
    margin-bottom: 40px;
   }

   .hero-text a{
    background: var(--teal);
    padding:12px 40px;
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.15em;
    border:3px solid var(--teal);
    border-radius: 35px;
   }

   .hero-text a:hover{
    background: rgba(88, 71, 48, .6);
   }

   /*MAIN BODY DEKSTOP*/

   #nestled-difference{
    background: var(--tree-bg-brown) no-repeat center;
    background-size: cover;
    color: white;
   }

   #nestled-difference .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
   }

   .diff-img{
    width: 660px;
    height: 660px;
    position: relative;
   }

   .center-circle{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
    padding:20px;
    width: 250px;
    height: 250px;
    text-align: center;
    border-radius: 50%;
    background: var(--brown);
    border:10px solid var(--db);
    z-index: 2;
   }

   .center-circle img{
    width: 180px;
    height: auto;
    margin-bottom: 10px;
    margin-left: 10px;
   }

   .diff-img h3{
    color: var(--teal);
    text-align: center;
   }

   .diff-img h3, .diff-img p{
    text-align: center;
    margin-bottom: 0px;
   }

   .diff-img p{
    margin-top:10px;
   }

   .circle{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:20px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(243, 206, 143, .3);
    border:10px solid var(--brown);
    z-index: 1;
   }

   .top-circle{
    left:50%;
    top:0%;
    transform: translate(-50%, 0%);
   }

   .top-circle p{
    margin-bottom: 40px;
   }

   .right-circle{
    right:0;
    top:50%;
    transform: translate(0%, -10%);
   }

   .right-circle h3{
    width: 140px;
   }

   .left-circle{
    left: 0;
    top: 50%;
    transform: translate(0%, -10%);
   }

   .left-circle h3 {
    width: 140px;
   }

   .diff-text{
    width: 370px;
   }

   .diff-text h1{
    line-height: 1em;
   }

   .diff-text h1 span{
    color: var(--teal);
   }

   .diff-text a{
    background: var(--teal);
    padding:14px 30px;
    color: white;
    border-radius: 35px;
    display: inline-block;
    margin-top:10px;
    font-weight: 500;
   }

   .diff-text i{
    color: var(--teal);
    background: white;
    padding:6px 9px;
    border-radius: 50%;
    margin-left:10px;
    transition: .3s;
   }

   .diff-text a:hover{
    background: white;
    color: var(--teal);
   }

   .diff-text a:hover i{
    margin-left:25px;
    background: var(--teal);
    color: white;
   }

   .team-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 60px 20px;
   }

   .team-grid-item{
    display: flex;
    justify-content: flex-start;
    align-items: center;
   }

   .team-img{
    width: 140px;
    margin-right:20px;
   }

   .team-img img{
    width: 100%;
    height: auto;
    border-radius: 50%;
   }

   .team-text{
/*    width: 300px;*/
   }

   .team-text h3{
    font-size: 1.75em;
    margin-bottom: 10px;
   }

   .team-text span{
    color: var(--teal);
   }

   .team-text h2{
    font-weight: 200;
   }

   .team-text a{
    background: var(--teal);
    padding:12px 20px;
    color: white;
    border-radius: 35px;
    display: inline-block;
    margin-top:10px;
    font-weight: 500;
   }

   .team-text i{
    color: var(--teal);
    background: white;
    padding:6px 9px;
    border-radius: 50%;
    margin-left:10px;
    transition: .3s;
   }

   .team-text a:hover{
    background: var(--brown);
   }

   .team-text a:hover i{
    margin-left:25px;
    color:var(--brown);
   }

   #our-clients{
    background: var(--tan);
   }

   #our-clients h1{
    position: relative;
    width: fit-content;
    margin: 0 auto;
   }

   #our-clients h1:before, #our-clients h1:after{
    background: var(--gold);
    top:50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    content: '';
    position: absolute;
   }

   #our-clients h1:before{
    left:-40px;
    box-shadow: -20px 0 0 var(--gold);
   }

   #our-clients h1:after{
    right:-40px;
    box-shadow: 20px 0 0 var(--gold);
   }

   /*SUBPAGE DESKTOP STYLES*/

   .subpage-hero{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url(images/homepage-hero-new.jpg) no-repeat center;
    background-size: cover;
    height: 500px;
    padding-top:120px;
   }

   #services-hero{
    background: url(images/services-hero-new.jpg) no-repeat center;
    background-size: cover;
    background-position: top center;
   }

   #about-us-hero{
    background: url(images/about-hero-new.jpg) no-repeat center;
    background-size: cover;
   }

   #contact-hero{
    background: url(images/contact-hero-new.jpg) no-repeat center;
    background-size: cover;
   }

   #client-hero{
    background: url(images/client-login-hero-new.jpg) no-repeat center;
    background-size: cover;
    background-position: top center;
   }

   .subpage-hero h1{
  /*color: var(--teal);*/
    margin-bottom: 0px;
    font-family: "Nunito";
   } 

   /* FOOTER DESKTOP */

   footer{
    background: var(--db);
    padding:60px 20px 40px;
    color: white;
   }

   footer .container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
   }

   a#footer-home-link{
    width: 250px;
    height: auto;
    display: inline-block;
   }

   #footer-home-link img{
    width: 100%;
    height: auto;
   }

   footer h3{
    color: var(--tan)
   }

   footer p a{
    border-bottom: 1px solid transparent;
   }

   footer p a:hover{
    color: var(--teal);
    border-bottom: 1px solid var(--teal);
   }

   img#footer-fox{
    width: 250px;
    height: auto;
   }

  .contact-flex {
    display: flex;
    flex-direction: column;
    margin: 80px 0px;
  }

  .contact-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .contact-top h2 {
    font-size: 40px;
  }

  .contact-top h3 {
    font-size: 20px;
    color: var(--red);
  }

  .contact-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
  }

  .contact-bottom-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-bottom-column i {
    align-self: center;
    font-size: 50px;
    margin: 0px 10px 20px 10px;
    color: var(--teal); 
  }

  .contact-bottom-column a {
    margin-left: 5px;
  }

  .contact-bottom-column p {
    margin-bottom: 10px;
  }

  .clients-flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
  }

  .client-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    margin: 0px 50px;
    padding: 30px;
    /* height: 490px; */
  }

  .client-container img {
    margin-bottom: 30px;
    width: 100%;
    transition: all .5s;
  }

  .client-container:hover img {
    width: 105%;
    transition: all .5s;
  }

  .client-container li {
    font-size: 20px;
  }

  .about-buttons-div {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 50px;
  }

  .about-button {
    width: 250px;
    height: 55px;
    padding: 15px;
    border: 4px solid var(--teal);
    color: white;
    background-color: var(--teal);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    transition: all .5s;
    border-radius: 35px;
    cursor: pointer;
  }

  .about-button:hover {
    /* width: 300px; */
    font-size: 20px;
    border: 4px solid var(--brown);
    transition: all .5s;
  }

  .about-button.active {
    width: 275px;
    height: 55px;
    padding: 15px;
    border: 4px solid var(--brown);
    background-color: var(--teal);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    transition: all .5s;
  }

  .about-switch-container.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 300px;
    margin-bottom: 50px;
  }

  .about-switch-container {
    display: none;
  }

  .services-switch-container.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 400px;
    margin-bottom: 50px;
  }

  .services-switch-container {
    display: none;
  }

  .about-switch-container h2 {
    font-size: 50px;
    margin-bottom: 30px;
  }

  .about-switch-container p {
    font-size: 20px;
    line-height: 1.5;
    margin-left: 5px;
  }


  .about-us-bio-column {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 60px;
    scroll-margin-top: 4rem;
  }

  .about-us-bio-column-text {
    width: 70%;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .about-us-bio-column-text::before {
    content: '';
    position: absolute;
    background-color: var(--gold);
    height: 4px;
    width: 75px;
    bottom: 50%;
    left: -115px;
    opacity: .5;
  }

  .about-us-bio-column-text span{
    margin-left: 7.5px;
    color: var(--teal);
  }

  .about-us-bio-column img {
    width: 175px;
    height: 175px;   
    border-radius: 50%; 
    align-self: center;
    transform: 1s all;
  } 

   .about-us-bio-column-text-a {
    align-self: baseline;
    margin-left: 126px;
    cursor: pointer;
    font-size: 45px;
    color: var(--red);
    margin-top:15px;
  }

  .about-us-bio-column-text-a.active {
    align-self: baseline;
    margin-right: 126px;
    cursor: pointer;
    font-size: 45px;
    color: var(--red);
    transform: rotate(180deg);
    margin-top:15px;
  }

  .about-us-bio-column-text-switch {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: 
      max-height 1s ease,
      opacity 1s ease,
      transform 1s ease;
  }

  .about-us-bio-column-text-switch.active {
    max-height: 1000px; /* adjust as needed */
    opacity: 1;
    transform: translateY(0);
    transition: 
      max-height 1s ease,
      opacity 1s ease,
      transform 1s ease;
  }






}


/*** MOBILE STYLES ***/
@media (width <= 1099px) {

  .container {
    width:100%;
    margin: 0 auto;
  }

  .content{
    padding: 60px 20px;
  }

  h1{
    font-size: 2.5em;
  }

  /***** HEADER MOBILE STYLES *****/

  .sidenav{
    display: none;
  }

  a#headerLogo{
    display: none;
  }

  #headerBar{
    display: none;
  }

  #navContainer{
    position: fixed;
    border-bottom: 2px solid var(--brightgold);
    width: 100%;
    background: var(--db) !important;
    top:0;
    z-index: 100;
  }

  #topHeader{
    margin:0px !important;
  }

  #topHeader{
    padding:0 !important;
  }

  #topHeader img {
    float: left;
    width:190px;
    height:auto;
    padding: 6px 10px;
    position: relative;
    z-index: 10;
  }

  /* NAV */

  #myTopnav{
    background-color: transparent !important;
  }

  /* Hamburger bars styles*/
     a.icon {
      position: absolute;
      display: block;
      font-size:32px;
      right:20px;
      top:50%;
      transform: translateY(-50%);
      color: white;
      font-weight: bold;
    }

     a.icon:hover{
      background: none !important;
    }

    a#overlayLogo{
      position: absolute;
      left:0;
      top:0;
      width: 200px;
      height: auto;
      border-bottom:none;
      padding: 10px 10px 13px;
/*      z-index: 11;*/
     animation-delay: .7s;
    }

    #overlayLogo img{
      width: 100%;
      height: auto;
    }

    #overlayLogo:hover{
      background: transparent !important;
    }

    /* The Overlay (background) */
   .overlay{
     height: 100vh;
     width: 0;
     position: fixed; 
     z-index: 10; 
     right: 0;
     top: 0;
     background: var(--tree-bg-brown) no-repeat center;
     background-size: cover;
     color: white;
     overflow-x: hidden; 
     overflow-y: auto;
     transition: width 0.7s ease; 
     box-shadow: -5px 0px 10px 2px rgba(0,0,0,0.3);
   }

   /*.overlay:before{
    width: 100%;
    height: 100vh;
    top:0;
    left:0;
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, .4);
   }*/

   /* Position the content inside the overlay */
  .overlay-content {
    position: relative;
    top: 8%;
    text-align: left;
    margin-top: 40px; 
    padding:0 8px;
  }

  /* The navigation links inside the overlay */
  .overlay a {
    padding: 16px 8px;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    border-bottom: 1px solid var(--brown);
    display: flex;
    justify-content: space-between;
    transition: .3s color !important;
    letter-spacing: 2px; 
    padding-left:20px;
    margin-right:5px;
    position: relative;
  }

  .overlay a:hover, .dropdown:hover .d-btn {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
  }

  /* Position the close button (top right corner) */
  .overlay .closebtn {
    position: absolute;
    top: 16px;
    right: 10px;
    padding:10px !important;
    font-size: 50px;
    border-bottom: none !important;
    margin-right:0px;
  }

  .overlay .closebtn:hover{
    background: none !important;
    color: white !important
  }

  .topnav {
    margin-top:30px;
  }

  .d-btn i, .current i{
    margin-right:10px;
    transition: transform .5s;
  }

  .d-btn .rotate, .current .rotate{
    transform: rotate(-180deg) translateY(2px);
    transform-origin: 50% 50%;
  }

  .d-content {
    display: none;
    z-index: 10;
    margin: 10px 0;
  }

  .hidden-row{
    display: none;
    margin:15px 0;
    flex-flow: row wrap;
    justify-content: flex-start;
    padding-left:10px;
  }

  .hidden-row a{
/*    padding-left:30px;*/
    border-bottom: none;
    font-size: .95em;
    padding:12px;
    line-height: 1em;
  }

  .hidden-row a:hover{
    color: var(--lg) !important;
  }

  .d-content, .hidden-row {
      animation: fadeIn .5s;
      -webkit-animation: fadeIn .5s;
      -moz-animation: fadeIn .5s;
      -o-animation: fadeIn .5s;
      -ms-animation: fadeIn .5s;
    }
    @keyframes fadeIn {
      0% {opacity:0;}
      100% {opacity:1;}
    }

    @-moz-keyframes fadeIn {
      0% {opacity:0;}
      100% {opacity:1;}
    }

  .hidden-row a:hover{
    background: white;
    color: var(--lg);
  }

  /* Show the dropdown menu (use JS to add this class to the 
  .dropdown-content container when the user clicks on the dropdown button) */
    .show {display:block;}

    .show-flex {display: flex;} 
    #mobile-section{
      padding:0 0 20px 15px;
      margin-top:30px;
      font-family: montserrat, sans-serif !important;
    }

    .mobile-social{
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      width: 100%;
      margin-bottom: 30px;
    }

    .mobile-social a{
      border-bottom: none;
      padding: 10px 8px;
      border-radius: 5px;
    }

    #header-mobile-text i{
      margin-right:10px;
    }

    #header-mobile-text a{
      justify-content: flex-start;
      align-items: center;
      font-size: 14px;
      padding:0 0 2px 0;
      margin-bottom: 10px;
      border-bottom: none;
      width: fit-content;
      border-radius: 5px;
    }

    #header-mobile-text a:hover{
      background: transparent;
      color: var(--lg);
    }

    a.header-tel i{
      margin-right:10px;
    }

    #ask-a-question{
      color: var(--lg);
    }

    @keyframes fadeInLinks {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hide links initially */
  .overlay-content a {
    opacity: 0;
    transform: translateY(10px);
    transition: none;
  }

  /* When nav opens, animate each link */
  .overlay.show-nav .overlay-content a {
    animation: fadeInLinks 0.4s ease-out forwards;
  }

  /* Staggered delays for each link */
  .overlay.show-nav .overlay-content a:nth-child(1) { animation-delay: 0.3s; }
  .overlay.show-nav .overlay-content a:nth-child(2) { animation-delay: 0.35s; }
  .overlay.show-nav .overlay-content a:nth-child(3) { animation-delay: 0.4s; }
  .overlay.show-nav .overlay-content .d-btn { animation-delay: .45s !important;}
  .overlay.show-nav .overlay-content a:nth-child(4) { animation-delay: .5s; }
  .overlay.show-nav .overlay-content a:nth-child(5) { animation-delay: .55s; }
  .overlay.show-nav .overlay-content a:nth-child(6) { animation-delay: .6s; }

  /* Smooth scrolling performance */
  .overlay {
    transition: width 0.7s;
  }

  .overlay.show-nav {
    width: 100%;
  }

  .overlay #overlayLogo img{
    opacity: 0;
  }

  .overlay.show-nav #overlayLogo img{
    opacity:1;
    transition: .5s opacity .7s;
  }

  .overlay.show-nav .hidden-row a {
    animation: fadeInLinks 0.3s ease-out forwards;
  }

  .overlay.show-nav .hidden-row a:nth-child(1) { animation-delay: 0.1s; }
  .overlay.show-nav .hidden-row a:nth-child(2) { animation-delay: 0.2s; }
  .overlay.show-nav .hidden-row a:nth-child(3) { animation-delay: 0.3s; }


  .overlay.show-nav .mobile-social a:nth-child(1){animation-delay: .6s;}

  .overlay.show-nav #header-mobile-text a:nth-child(1) { animation-delay: .6s; }
  .overlay.show-nav #header-mobile-text a:nth-child(2) { animation-delay: .65s; }
  .overlay.show-nav #header-mobile-text a:nth-child(3) { animation-delay: .7s; }

  /* Position the close button (top right corner) */
  .overlay .closebtn {
    position: absolute;
    top: 12px;
    right: 10px;
    padding: 10px !important;
    font-size: 50px;
  }

  #mobile-section a{
    animation-delay: .7s !important;
  }

  /* Prevent body scroll when nav is open */
  body.no-scroll {
    overflow: hidden;
  }
    
  /*HERO MOBILE STYLES*/

  #homepage-hero{
    background: url(images/homepage-hero-new.jpg) no-repeat center;
    background-size: cover;
    color: var(--db);
    position: relative;
    padding:80px 20px;
    height: 700px;
    margin-top:70px;
   }

   #homepage-hero:before{
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    left:0;
    top:0;
    background: rgba(0, 0, 0, .1);
   }

   #homepage-hero .container{
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
   }

   .hero-text{
    max-width: 700px;
   }

   .hero-text h2{
    font-weight: 700;
    font-size: 2em;
    line-height: 1em;
     font-family: "Nunito";
     margin-bottom: 35px;
   }

   .hero-text h1{
    color: white;
    font-size: 3em;
    line-height: 1;
    margin-bottom: 10px;
    font-family: "Nunito";
   }

   .hero-text p{
    margin-bottom: 40px;
   }

   .hero-text a{
    background: var(--teal);
    padding:12px 40px;
    color: white;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.15em;
    border:2px solid var(--teal);
    border-radius: 35px;

   }

   .hero-text a:hover{
    background: rgba(0, 0, 0, .3);
   }

   /*MAIN BODY DESKTOP*/

   #nestled-difference{
    background: var(--tree-bg-brown) no-repeat center;
    background-size: cover;
    color: white;
   }

   #nestled-difference .container{
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    color: white;
   }

   .diff-img{
    width: 600px;
    height: 600px;
    position: relative;
    margin-top:80px;
   }

   .center-circle{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
    padding:20px;
    width: 200px;
    height: 200px;
    text-align: center;
    border-radius: 50%;
    background: var(--brown);
    border:10px solid var(--db);
    z-index: 2;
   }

   .center-circle img{
    width: 150px;
    height: auto;
    margin-bottom: 10px;
   }

   .diff-img h3{
    color: var(--teal);
    font-size: 1.25em;
   }

   .diff-img h3, .diff-img p{
    text-align: center;
    margin-bottom: 0px;
   }

   .diff-img p{
    margin-top:10px;
   }

   .circle{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:20px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(243, 206, 143, .3);
    border:10px solid var(--brown);
    z-index: 1;
   }

   .top-circle{
    left:50%;
    top:0%;
    transform: translate(-50%, 0%);
   }

   .right-circle{
    right:0;
    top:50%;
    transform: translate(0%, -10%);
   }

   .left-circle{
    left: 0;
    top: 50%;
    transform: translate(0%, -10%);
   }

   .diff-text{
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
   }

   .diff-text h1{
    line-height: 1em;
    text-align: center;
   }

   .diff-text h1 span{
    color: var(--teal);
   }

   .diff-text a{
    background: var(--teal);
    padding:14px 30px;
    color: white;
    border-radius: 35px;
    display: inline-block;
    margin-top:10px;
    font-weight: 500;
   }

   .diff-text i{
    color: var(--teal);
    background: white;
    padding:6px 9px;
    border-radius: 50%;
    margin-left:10px;
    transition: .3s;
   }

   .diff-text a:hover{
    background: white;
    color: var(--teal);
   }

   .diff-text a:hover i{
    margin-left:25px;
    background: var(--teal);
    color: white;
   }

   .team-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 60px 20px;
   }

   .team-grid-item{
    grid-row: span 1;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
   }

   .team-img{
    width: 140px;
    margin-bottom:20px;
   }

   .team-img img{
    width: 100%;
    height: auto;
    border-radius: 50%;
   }

   .team-text{
    text-align: center;
   }

   .team-text h3{
    font-size: 1.75em;
    margin-bottom: 10px;
   }

   .team-text span{
    color: var(--teal);
   }

   .team-text h2{
    font-weight: 200;
   }

   .team-text a{
    background: var(--teal);
    padding:12px 20px;
    color: white;
    border-radius: 35px;
    display: inline-block;
    margin-top:10px;
    font-weight: 500;
   }

   .team-text i{
    color: var(--teal);
    background: white;
    padding:6px 9px;
    border-radius: 50%;
    margin-left:10px;
    transition: .3s;
   }

   .team-text a:hover{
    background: var(--brown);
   }

   .team-text a:hover i{
    margin-left:25px;
    color:var(--brown);
   }

    #our-clients{
    background: var(--tan);
   }

   #our-clients h1{
    position: relative;
    width: fit-content;
    text-align: center;
    margin:0 auto 60px;
   }

   #our-clients h1:before, #our-clients h1:after{
    background: var(--gold);
    bottom:-10px;
/*    transform: translateY(-50%);*/
    width: 10px;
    height: 10px;
    border-radius: 50%;
    content: '';
    position: absolute;
   }

   #our-clients h1:before{
    left:45%;
    transform: translateX(-45%);
    box-shadow: 15px 0 0 var(--gold);
   }

   #our-clients h1:after{
    right:45%;
    transform: translateX(45%);
    box-shadow: 15px 0 0 var(--gold);
   }

   /*SUBPAGE MOBILE STYLES*/

   .subpage-hero{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url(images/homepage-hero-new.jpg) no-repeat center;
    background-size: cover;
    margin-top: 70px;
    height: 400px;
   }

    #services-hero{
    background: url(images/services-hero-new.jpg) no-repeat center;
    background-size: cover;
   }

   #about-us-hero{
    background: url(images/about-hero-new.jpg) no-repeat center;
    background-size: cover;
   }

   #contact-hero{
    background: url(images/contact-hero-new.jpg) no-repeat center;
    background-size: cover;
   }
   
   #client-hero{
    background: url(images/client-login-hero-new.jpg) no-repeat center;
    background-size: cover;
   }

   .subpage-hero h1{
    margin-bottom: 0px;
     font-family: "Nunito";
   }

   /* FOOTER MOBILE */

   footer{
    background: var(--db);
    padding:60px 20px 40px;
    color: white;
   }

   footer .container{
    display: flex;
    flex-direction: column;
    align-items: center;
   }

   .footer-col{
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    border-bottom: 1px solid var(--brown);
    padding-bottom: 40px;
    margin-bottom: 60px;
   }

   .footer-col h3{
    width: 100%;
    text-align: center;
   }

   .footer-col:nth-of-type(1) p{
    width: 100%;
    text-align: center;
   }

   .footer-col:nth-of-type(2) p{
    margin:10px;
   }

   .footer-col:nth-of-type(3){
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
   }

   a#footer-home-link{
    width: 250px;
    height: auto;
    display: inline-block;
   }

   #footer-home-link img{
    width: 100%;
    height: auto;
   }

   footer h3{
    color: var(--tan)
   }

   footer p a{
    border-bottom: 1px solid transparent;
   }

   footer p a:hover{
    color: var(--teal);
    border-bottom: 1px solid var(--teal);
   }

   img#footer-fox{
    width: 250px;
    height: auto;
   }

   .subpage-content {
      width: 80% !important;
   }

   .subpage-content i {
    margin-left: 0px !important;
  }

  .subpage-content h2 {
    line-height: 1;
    font-size: 25px;
  }

  .contact-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .contact-top h2 {
    font-size: 40px;
  }

  .contact-top h3 {
    font-size: 20px;
    color: var(--red);
  }

  .contact-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .contact-bottom-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
  }

  .contact-bottom-column i {
    font-size: 50px;
    margin: 0px 10px 20px 10px;
    color: var(--teal); 
  }

  .contact-bottom-column a {
    margin-left: 5px;
  }

  .contact-bottom-column p {
    margin-bottom: 10px;
    text-align: center;
  }

  .clients-flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
  }

  .client-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    padding: 30px;
    height: auto;
  }

  .client-container img {
    margin-bottom: 30px;
    width: 100%;
    transition: all .5s;
  }

  .client-container:hover img {
    width: 105%;
    transition: all .5s;
  }

  .client-container li {
    font-size: 18px;
  }

   .about-us-bio-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 60px;
    scroll-margin-top: 4rem;
    align-items: center;
  }

  .about-us-bio-column-text {
    position: relative;
    padding-bottom: 45px;
  }

  .about-us-bio-column-text::before {
    content: '';
    position: absolute;
    background-color: var(--gold);
    height: 4px;
    width: 175px;
    bottom: 0px;
    left: 20%;
    opacity: .5;
  }

  .about-us-bio-column-text span{
    margin-left: 7.5px;
    color: var(--teal);
  }

  .about-us-bio-column-text h2{
    text-align: center;
    font-weight: 800;
  }

  .about-us-bio-column-text h3{
    font-size: 18px;
    text-align: center
  }

  .about-us-bio-column img {
    width: 175px;
    height: 175px;   
    border-radius: 50%; 
    align-self: center;
  }

  .about-buttons-div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
  }

  .about-button {
    width: 250px;
    height: 55px;
    padding: 15px;
    border: 4px solid var(--teal);
    background-color: var(--teal);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    transition: all .5s;
    margin-bottom: 20px;
    border-radius: 35px;
  }

  .about-button:hover {
    /* font-size: 40px; */
    border: 4px solid var(--brown);
    transition: all .5s;
  }

  .about-button.active {
    width: 250px;
    height: 55px;
    padding: 15px;
    border: 4px solid var(--brown);
    background-color: var(--teal);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    transition: all .5s;
  }

  .about-switch-container.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    margin-bottom: 50px;
  }

  .about-switch-container {
    display: none;
  }

  .services-switch-container.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 750px;
    margin-bottom: 50px;
  }

  .services-switch-container {
    display: none;
  }

  .about-switch-container h2 {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .about-switch-container p {
    font-size: 18px;
    line-height: 1.5;
    margin-left: 5px;
  }

  .about-us-bio-column-text-a {
    align-self: baseline;
    margin-left: 126px;
    cursor: pointer;
    font-size: 45px;
    color: var(--red);
    margin-top:15px;
  }

  .about-us-bio-column-text-a.active {
    align-self: baseline;
    margin-right: 126px;
    cursor: pointer;
    font-size: 45px;
    color: var(--red);
    transform: rotate(180deg);
    margin-top:15px;
  }

  .about-us-bio-column-text-switch {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: 
      max-height 1s ease,
      opacity 1s ease,
      transform 1s ease;
  }

  .about-us-bio-column-text-switch.active {
    max-height: 2000px; /* adjust as needed */
    opacity: 1;
    transform: translateY(0);
    transition: 
      max-height 1s ease,
      opacity 1s ease,
      transform 1s ease;
  }


}

@media (width <= 600px) {

  .diff-img{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top:80px;
    width: 100%;
    height: auto;
   }

   .center-circle{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:20px;
    width: 300px;
    height: 200px;
    text-align: center;
    border-radius: 10px;
    background: var(--brown);
    border:10px solid var(--db);
    z-index: 2;
    margin-bottom: 20px;
    transform: translate(0px);
    left:revert-layer;
    top:revert-layer;
   }

   .center-circle img{
    width: 150px;
    height: auto;
    margin-bottom: 10px;
    margin-left:25px;
   }

   .diff-img h3{
    color: var(--teal);
    font-size: 1.25em;
   }

   .diff-img h3, .diff-img p{
    text-align: center;
    margin-bottom: 0px;
   }

   .diff-img p{
    margin-top:10px;
   }

   .circle{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:20px;
    width: 300px;
    height: 300px;
    border-radius: 10px;
    background: rgba(243, 206, 143, .3);
    border:none;
    z-index: 1;
    margin:20px 0;
    transform: translate(0px);
    left:revert-layer;
    top:revert-layer;
    right:revert-layer;
    border-bottom: revert-layer;
   }

}
