body, html, * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif;
    color: white;
    font-weight: 600;
} 

body {
    font-size: 20px;  
}


a {  
    text-decoration: none;
    color: #404040;
}


h1 {
    font-size: 5rem;
}

h4 {
    margin-bottom: 1rem;
    color: #ff6600;
}

/*
.background-1 {
     background: radial-gradient(#00cc00, #000000); 
}
*/

p, li {
    font-weight: 400;
}

span {
    color: #ff6600;
}




/*
    NAV BAR
*/

.fixed-nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 15;
    background-color: #FEFBF8;
    
    /* background: radial-gradient(#004d00, #001a33); */
}


.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0em 5vw;
    font-size: 1rem;
    /* border-bottom: #404040 1px solid; */
    opacity: 0;
   
}





nav ul {
   
    display: flex;
    flex-direction: row;
    list-style: none;
}

nav li {
  font-size: 1.15rem;
    margin-left: 2rem;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}


.logo-container img {
    width: 25rem;
}

.company-name {
 
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    font-size: 3rem;
    color: #404040;
}



/* Hover animations for the navigation bar */

nav.stroke ul li a,
nav.fill ul li a {
  position: relative;
}

nav.stroke ul li a:after,
nav.fill ul li a:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 0%;
  content: '.';
  color: transparent;
  background: black;
  height: 1px;
}

nav.stroke ul li a:hover:after {
  width: 100%;
 
}

nav.fill ul li a {
  transition: all 2s;
  padding: 0.25rem 1rem;
}

nav.fill ul li a:after {
  text-align: left;
  content: '.';
  margin: 0;
  opacity: 0;

}

nav.fill ul li a:hover {
    transition: 0.5s;
  color: white;
  z-index: 1;
}

nav.fill ul li a:hover:after {
  z-index: -10;
  animation: fill 0.65s forwards;
  opacity: 1;
  border-radius: 30px;
}

/* Keyframes */

@keyframes fill {
    0% {
        width: 0%;
        height: 3px;
      }
      25% {
      width: 100%;
      height: 3px;
    }
    100% {
      width: 100%;
      height: 100%;
      background: #ff6600;
    }
  }





/*
    SECTION ONE
*/

.homepage-container {
  
    font-size: 1.5rem;  
   
}


.top-container {
  
    /* border-bottom: 1px #404040 solid; */
    position: relative;
    z-index: 1; /* Set a higher z-index for the top-container to ensure it's above the overlay */
}

.top-container:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6; /* Adjust the opacity as needed */
    background-color: black; /* Black overlay */
    z-index: 0; /* Set a lower z-index for the overlay to ensure it's below the top-container content */
}

/* Your existing background image styles */
.top-container:after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('Media/Photos/orange-pipe.jpg');
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    z-index: -1; /* Set an even lower z-index for the existing background image to ensure it's the bottom layer */
}

  .inline-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 15rem 15vw 7rem 15vw;
  }

  .top-container img {
    width: 30rem;
  }

  .text-container {
    width: 30vw;
  }

  .button {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.5rem 0.5rem;
    background-color: #ff6600;
    color: white;
    width: 10rem;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 3rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
  }


  .button:hover {
    transform: translateY(-3px);
  }

  .header-icons {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-top: 7rem;
  }

  .header-icons a {
    display: flex;
    align-items: center;
  }
  
  .icon-sub-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: left;
    transition: 2s;
  }

  #city-guilds-icon {
    width: 7rem;
    height: auto;
    transition: 1s;
  }

  #gas-safe-icon {
    width: 4.45rem;
    height: auto;
    transition: 1s;
    margin-left: 3rem;
  
  }


  #check-a-trade-icon {
    width: 12rem;
    opacity: 0;
    transition: 1s;
    margin-left: 2rem;
  
  }

  #trust-a-trader-icon {
    width: 6rem;
    opacity: 0;
    transition: 1s;
    margin-left: 3rem;
    
  }

  #mybuilder-icon {
    width: 6rem;
    opacity: 0;
    transition: 1s;
    margin-left: 2rem; /* has some weird padding on it */
  
  }







/*
    SECTION TWO
*/

.services-container {
    padding-top: 1rem;
}

.section-heading {
    z-index: 10;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}



.background-2:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4; 
    background-color: black; 
    z-index: 0; 
    
}


.background-2:after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background-image: url('Media/Photos/bolts.jpg');
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    z-index: -1; 
}



  #services img {
    height: 50rem;
  }

  .what-we-do-list {
      height: 40rem;
  }

  ul {
      list-style: none;
  }

  ul li {
      margin-bottom: 0.5rem;
  }


  .service-item {
    /* background: radial-gradient(#004080, #001a33); */
    background-color: #FEFBF8;
    
    text-align: left;
    border-radius: 5px;
    padding: 0.75rem;
    cursor: pointer;
  }

  .service-item span {
    color: #404040;
    font-weight: bold;
  }

  .service-item i {
        color: #404040;
      margin-right: 5px;
      margin-left: 5px;
      transition: transform 0.3s ease;
      /* Add a transition for smooth rotation */
  }

  .service-item.open i {
      transform: rotate(90deg);
      /* Rotate the arrow when the accordion is open */
  }


  .accordion-item {
    
      overflow: hidden;
      transition: max-height 0.3s ease-out;
      max-height: 0;

  }

  .accordion-content {
    color: #404040;
      margin: 1rem 0 0 1rem;
      /* Adjust as needed */
  }
    






/*
    ICONS SECTION
*/

.column-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 5rem 0;
    /* border-bottom: 1px #404040 solid; 
    border-top: 1px #404040 solid;*/
}

.column-container h4 {
    opacity: 1;

}

.column-container:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6; 
    background-color: black; 
    z-index: 0; 
}

.column-container:after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('Media/Photos/orange-pipe.jpg');
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    z-index: -1; 
}

  .inline-container-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: top;
    padding: 0rem 3vw 5rem 3vw;
  }

  .icon-container {
    text-align: center;
    margin: 0 3rem;
    width: 20vw;
  }

  .icon-container img {
    height: 5rem;
    margin: 2rem 0 3rem 0;
  }


  .icon-container h4 {
    margin-bottom: 1rem;
  }




  #beam-1, #beam-2, #beam-3, #beam-4, #beam-5, #beam-6,  #beam-7 {
    animation: light-up 2.5s infinite;
    transform-origin: center;
  }

  @keyframes light-up {
    0% {
        opacity: 0;
        scale: 1;
    }
    50% {
        opacity: 1;
        scale: 1.1;
    }
    100% {
        opacity: 0;
    }
  }


  #no-review-section {
    margin-bottom: 5rem;
  }






/*
    REVIEWS CAROUSEL
*/

#reviews {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 2rem 0 7rem 0;
    /* border-bottom: 1px #404040 solid; */
    position: relative;
}


.carousel-main-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5rem 20vw 5rem 20vw;
}

.carousel-container {
    position: relative;
    width: 30rem;
    overflow: hidden;   
      
}

.carousel-container i {
    color: #404040;
    font-size: 1.75rem;
}

.carousel-container .section-heading {
    margin-bottom: 2rem;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review {
    /* background: radial-gradient(#004080, #001a33); */
    background-color: #FEFBF8;
    font-style: italic;
    min-width: 30rem;
    padding: 3rem 6rem;
    box-sizing: border-box;
   
    text-align: center;
   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#review-1, #review-2, #review-3, #review-4 {

    color: #404040;
    font-style: italic;
    margin-bottom: 2rem;
    margin-top: 0; /* Add this to remove top margin */
}

.review a {
    font-style: normal;
    margin: 0;
    padding: 0;
}

.arrow {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
}

.arrow-left {
    left: 25px;
}

.arrow-right {
    right: 25px;
}




.carousel-main-container img {
    margin-top: 6rem;
    width: 30rem;
    z-index: 10;
    padding-left: 2rem;
}




/*
    CONTACT MAP
*/

.contact-width {
    padding-right: 15vw;
    padding-left: 15vw;
}

.contact-text-container {
    font-size: 1.5rem;
    width: 30rem;
  }

  
.top-container.contact-width {
    padding-top: 15rem;
}


#contact-map {
    z-index: 10;
}

iframe {
    height: 35rem;
    width: 35rem;
   
}




/*
    FULL WIDTH IMAGES
*/


.full-width-image {
    height: 40rem;
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover; 
    background-image: url("Media/Photos/toolsandbolts.jpg");
}

.full-width-image-2 {
    height: 45rem;
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover; 
    background-image: url("Media/Photos/spanner2.jpeg");
}







/*
    INTERSECTION OBSERVER ANIMATIONS
*/




.slide-down {
    opacity: 0;
    transform: translateY(-200px);
    transition: 0.75s;
}


.show-slide-down {
    opacity: 1;
    transform: translateY(0px);
}

.fade-in {
    opacity: 0;
    transition: 2s;
}

.show-fade-in {
    opacity: 1;
}

.slide-left {
    opacity: 0;
    transform: translateX(200px);
    transition: 1s;
}

.show-slide-left {
    opacity: 1;
    transform: translateX(0px);
}

.slide-right {
    opacity: 0;
    transform: translateX(-200px);
    transition: 1s;
}


.show-slide-right {
    opacity: 1;
    transform: translateX(0px);
}





/*
    FOOTER
*/

.footer-container {
    background-color: #FEFBF8;
    color: #404040;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 3rem 5vw 3rem 5vw;
    /* border-top: 1px #404040 solid; */
}

.footer-container p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #404040;
}

.footer-address {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 0.75rem;
}

.footer-container i {
    color:#404040;
    font-size: 2rem;
    line-height: 40px;
    letter-spacing: 5px;
    margin: 0 1rem;
    transition: 0.2s;
}

.footer-container i:hover {
   transform: translateY(-3px);
}

.footer-address h3, .footer-address h2 {
    color: #404040;
}

#napit-logo {
    width: 10rem;
}







/* MOBILE HAMBURGER/ NAV STYLING */

#nav-icon {
    margin-top: 0.8rem; /* helps to center the hamburger when using align items: center didn't work */
    margin-right: .65rem;
    width: 30px;
    height: 45px;
    position: relative;
    padding: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
   
   
}

#nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 9px;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    -o-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
    
}


#nav-icon span {
    margin-top: 4px;
    background-color: #404040;
}

#nav-icon.open span {
    background-color: #404040;

}




/* HAMBURGER ICON */

#nav-icon span:nth-child(1) {
    top: 0px;
}

#nav-icon span:nth-child(2),
#nav-icon span:nth-child(3) {
    top: 10px;
}

#nav-icon span:nth-child(4) {
    top: 20px;
}

#nav-icon.open span:nth-child(1) {
    top: 10px;
    width: 0%;
    left: 50%;
}

#nav-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
    top: 10px;
    width: 0%;
    left: 50%;
}

.mobile-nav {
    position: fixed;
    opacity: 1;
    margin: 0;
    padding: 0;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: #0d0d0d;
    z-index: 12;
    transition: 0.4s ease-in;
}

.mobile-nav>ul>li>a {
    color: white;
    font-size: 1.5rem;
}

.mobile-nav.is-active {
    left: 0;
}

.mobile-nav ul {
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mobile-nav li {
    list-style: none;
    padding: 2em 0;
}

.show-on-mobile {
    display: none;
}

.hide-on-mobile {
    display: block;
}


/*
    RESPONSIVE STYLING
*/


@media screen and (max-width: 799px) {

    body .show-on-mobile {
            display: block;
    }
    
    body .hide-on-mobile {
        display: none;
    }

    body,
    html  {
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
    }


    body .logo-container img {
        padding: 1rem 0rem;
        width: 10rem;
        margin-right: 0rem;
    }

    body .company-name {
        text-align: center;
        margin: 0 2rem 0 1rem;
        padding-top: 0.5rem;
        font-size: 1.35rem;
    }

    body .homepage-container.top-container   {
        padding-top: 8rem;
    }

    body .top-container {
        font-size: 1.25rem;
    }

    body .inline-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 2rem 10vw 0rem 10vw;
    }

    body .header-icons {
        align-items: center;
        justify-content: center;
        margin: 0rem 0 4rem 0;
    }

    body .icon-sub-container {
        width: 90vw;
        align-items: left;
        justify-content: center;
    }
    body #city-guilds-icon {
        height: 3rem;
        width: auto;
        margin-bottom: 0;
    }

    body #trust-a-trader-icon {
        height: 3.25rem;
        width: auto;
        margin-bottom: 0;
        margin-left: 2rem;
    }

    body #check-a-trade-icon {
        
        width: 5rem;
        margin-bottom: 0;
        margin-left: 1.5rem;
    } 


    body #mybuilder-icon {
        height: 3.75rem;
        width: auto;
        margin-bottom: 0;
        margin-left: 1.25rem;
    } 

    body #gas-safe-icon {
        height: 3rem;
            width: auto;
        margin-bottom: 0;
        margin-left: 0;
        margin-left: 2rem;
      }


 


    body .inline-container img {
        width: 80vw;
        margin-bottom: 4rem;
    }

    body .text-container {
        width: 80vw;
    }

    body .center-for-mobile {
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    body .button {
        font-weight: 600;
        font-size: 1.25rem;
        margin: 3rem 0 4rem 0;
    }



    /*
        OUR SERVICES
    */

    body .no-background-for-mobile.background-2:after {
        display: none;
        background-image: none;
        background: none;
    }

    body .background-2.no-background-for-mobile {
         /* background: radial-gradient(#009900, #001a00); */
          background: radial-gradient(#a6a6a6, #000000);
    }


    #services img {
        height: auto;
        width: 90vw;
        margin-top: 2rem;
      }
    
    body .what-we-do-list {
          height: auto;  
    }
    

    body ul {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }

    body ul li {
        margin-bottom: 0.5rem;
    }

        
        
    
    /*
        ICONS SECTION
    */

    body .top-margin {
        margin-top: 3rem;
    }
    
    body .column-container {
        flex-direction: column;
        padding: 2rem 0 3rem 0rem;
    }
    
    
    body .inline-container-icons {
        flex-direction: column;
        text-align: center;
        padding: 0rem 10vw 1rem 10vw;
    }

    body .icon-container {
        text-align: center;
        margin: 0 0 2rem 0;
        width: 80vw;
    }

    body .icon-container img {
        margin-bottom: 1.5rem;
        
    }



    

    body #no-review-section {
        margin-bottom: 1rem;
      }
    



/*
    REVIEWS CAROUSEL
*/

body #reviews {
    padding: 0rem 0 3rem 0;
    overflow-x: visible;
}


body .carousel-main-container {
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5vw 2rem 5vw;
}

body .carousel-container {
    width: 90vw;  
}

body .review {
    min-width: 90vw;
    padding: 2rem 3.5rem;
    margin-top: 2rem;
}

body .arrow-left {
    left: 10px;
}

body .arrow-right {
    right: 10px;
}

body .carousel-main-container img {
    width: 90vw;
    margin-top: 5rem;
    padding: 0;
}




    
/*
    CONTACT PAGE
*/

    body .top-container.contact-width {
        padding-top: 9rem;
    }

    body .contact-text-container {
        font-size: 1.25rem;
        width: 90vw;
    }
  
    body iframe {
        height: 90vw;
        width: 90vw; 
        margin: 5rem 0;
    }



/*
    FULL WIDTH IMAGES
*/


    body .full-width-image {
        height: 30rem;
    }

    body .full-width-image-2 {
        height: 20rem;
    }



/*
    FOOTER
*/

    body .footer-address p {
        font-size: 14px;
    }

    body .socials-container {
        display: flex;
        flex-direction: column;
    }

    body .footer-container i {
        margin: 0 0 1rem 0;
    }

    body .footer-container i:hover {
        transform: translateY(0px);
     }

    body  #napit-logo {
        width: 5rem;
    }


}

@media screen and (max-width: 999px) and (min-width: 800px) {

    body, html {
        font-size: 11px;
    }

    body iframe {
        height: 30rem;
        width: 30rem;  
    }

    body .homepage-container.top-container {
        padding: 15rem 5vw 7rem 5vw;
    }
    
    body .inline-container {
        padding: 15rem 5vw 7rem 5vw;
      }

    body .carousel-main-container {
        padding: 5rem 5vw 5rem 5vw;
    }

    
    body .homepage-container {
        font-size: 1.5rem;
    }
}



@media screen and (max-width: 1549px) and (min-width: 1000px) {

    body, html  {
        font-size: 14px;
    }

    body iframe {
        height: 30rem;
        width: 30rem;
    }

    body .text-container {
        width: 35vw;
    }

    body .homepage-container.top-container {
        padding: 15rem 10vw 7rem 10vw;
    }


    body .inline-container {
        padding: 15rem 10vw 7rem 10vw;
      }

     body .icon-sub-container {
        flex-wrap: wrap;
     }

     body #services img {
        margin-right: 2rem;
      }
    

    body .carousel-main-container {
        padding: 5rem 15vw 5rem 15vw;
    }

    body .carousel-container {
        width: 25rem;    
    }
    

    body .review {
        min-width: 25rem;
    }
    
    body .carousel-main-container img {
        width: 25rem;

    }

    body .homepage-container {
        font-size: 1.5rem;
    }


    
}

@media screen and (max-width: 1800px) and (min-width: 1550px) {

    body, html {
        font-size: 16px;
    }

    body .homepage-container {
        font-size: 1.5rem;
    }

    body .carousel-main-container {
        padding: 5rem 15vw 5rem 15vw;
    }

    body .homepage-container.top-container {
        padding: 15rem 10vw 7rem 10vw;
    }


}

@media screen and (max-width: 4000px) and (min-width: 2400px) {

    body, html {
        font-size: 24px;
    }

    body .homepage-container {
        font-size: 1.5rem;
    }

}