@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

*h1{
    font-size: 25px;
}

*h2 {
    font-weight: 500;
    font-size: 36px;
    color: rgb(34, 62, 146);
}

*h3 {
    color: rgb(34, 62, 146);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
}

*h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgb(34, 62, 146);
}

/* --------------- Header --------------- */
body{
    height: 100vh;
}

body.dark{
    --body-color: #18191A;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;
    --search-bar: #242526;
}


nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 100px;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 100;
}

#CES-logo{
    margin-right: 25%;
}

#CES-logo1{
    display: none;
}

body.dark nav{
    border: 1px solid #393838;
}

nav .nav-bar{
    position: relative;
    height: 100%;
    width: 100%;
    background-color: #fff;
    color: rgb(34, 62, 146);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


nav .nav-bar .sidebarOpen{
    color: var(--text-color);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a{
    font-size: 25px;
    font-weight: 500;
    color: rgb(34, 62, 146);
    text-decoration: none;
}

.menu .logo-toggle{
    display: none;
}
.nav-bar .nav-links{
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li{
    margin: 0 2.5%;
    list-style: none;
}

.nav-links li a{
    position: relative;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px;
}

.nav-links li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links li:hover a::before{
    opacity: 1;
}

.nav-bar .darkLight-searchBox{
    display: flex;
    align-items: center;
}

.darkLight-searchBox .dark-light,
.darkLight-searchBox .searchToggle{
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.dark-light i,
.searchToggle i{
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun{
    opacity: 0;
    pointer-events: none;
}

.dark-light.active i.sun{
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon{
    opacity: 0;
    pointer-events: none;
}

.searchToggle i.cancel{
    opacity: 0;
    pointer-events: none;
}

.searchToggle.active i.cancel{
    opacity: 1;
    pointer-events: auto;
}

.searchToggle.active i.search{
    opacity: 0;
    pointer-events: none;
}


.searchBox{
    position: relative;
}

.searchBox .search-field{
    position: absolute;
    bottom: -85px;
    right: 5px;
    height: 50px;
    width: 300px;
    display: flex;
    align-items: center;
    background-color: var(--nav-color);
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.searchToggle.active ~ .search-field{
    bottom: -74px;
    opacity: 1;
    pointer-events: auto;
}


.search-field::before{
    content: '';
    position: absolute;
    right: 14px;
    top: -4px;
    height: 12px;
    width: 12px;
    background-color: var(--nav-color);
    transform: rotate(-45deg);
    z-index: -1;
}

.search-field input{
    height: 100%;
    width: 100%;
    padding: 0 45px 0 15px;
    outline: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--search-text);
    background-color: var(--search-bar);
}

body.dark .search-field input{
    color: var(--text-color);
}

.search-field i{
    position: absolute;
    color: var(--nav-color);
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

body.dark .search-field i{
    color: var(--text-color);
}

@media (max-width: 1350px) {
    nav .nav-bar .sidebarOpen{
        display: block;
    }
    
    #CES-logo{
        margin-right:5%;
        width: 35%;
        display: block;
    }
    
    #CES-logo1{
    display: block;
    width: 30%;
    max-height: 80px;
    margin: auto;
    display: block;
	}
    
    .menu{
        position: fixed;
        height: 100%;
        width: 100%;
        left: -100%;
        top: 0;
        padding: 20px;
        margin: 0 auto;
        background-color: rbg(225,225,225);
        z-index: 100;
        transition: all 0.4s ease;
        background-color: #fff;
        color: rgb(34, 62, 146);
    }
    nav.active .menu{
        left: -0%;
    }
    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    nav.active .nav-bar .navLogo{
        display:block;
        
    }
    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .menu .logo-toggle a:hover{
        text-decoration: underline;
    }
    
    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }
    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
    }
    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}

@media (max-width: 1200px)
{
    #CES-logo1
    {
        display: block;
        width: 30%;
        max-height: 100px;
        margin: auto;
        display: block;
    }
}


@media (max-width: 900px)
{
    #CES-logo1
    {
        display: block;
        width: 30%;
        max-height: 70px;
        margin: auto;
        display: block;
    }
}

@media (max-width: 790px) 
{
    
    nav .nav-bar .sidebarOpen
    {
        display: block;
    }
    
    #CES-logo
    {
        width: 35%;
        display: block;
    }
    
    #CES-logo1
    {
        display: block;
        width: 33%;
        max-height: 70px;
        margin: auto;
        display: block;
    }
    
    .menu{
        position: fixed;
        height: 100%;
        width: 100%;
        left: -100%;
        top: 0;
        padding: 20px;
        margin: 0 auto;
        background-color: rbg(225,225,225);
        z-index: 100;
        transition: all 0.4s ease;
        background-color: #fff;
        color: rgb(34, 62, 146);
    }
    nav.active .menu{
        left: -0%;
    }
    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    nav.active .nav-bar .navLogo{
        display:block;
        
    }
    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .menu .logo-toggle a:hover{
        text-decoration: underline;
    }
    
    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }
    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
    }
    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}

@media (max-width: 500px)
{
	#CES-logo{
    	margin-right: 30px;
        width: 60%;
        display: block;
    }
    
    #CES-logo1
    {
        display: block;
        margin-left: 50px;
        width: 60%;
        max-height: 80px;
    }
}

@media (max-width: 400px) 
{
    nav .nav-bar .sidebarOpen{
        display: block;
    }
    
    #CES-logo{
        margin-right: 30px;
        width: 60%;
        display: block;
    }
    .menu{
        position: fixed;
        height: 100%;
        width: 100%;
        left: -100%;
        top: 0;
        padding: 20px;
        margin: 0 auto;
        background-color: rbg(225,225,225);
        z-index: 100;
        transition: all 0.4s ease;
        background-color: #fff;
        color: rgb(34, 62, 146);
    }
    nav.active .menu{
        left: -0%;
    }
    nav.active .nav-bar .navLogo a{
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    nav.active .nav-bar .navLogo{
        display:block;
        
    }
    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .menu .logo-toggle a:hover{
        text-decoration: underline;
    }
    
    .logo-toggle .siderbarClose{
        color: var(--text-color);
        font-size: 40px;
        cursor: pointer;
    }
    .nav-bar .nav-links{
        flex-direction: column;
        padding-top: 30px;
    }
    .nav-links li a{
        display: block;
        margin-top: 20px;
    }
}


/* --------------- Main class --------------- */

.main{ 
    padding: 0;
    height: 500px;
    background: url("photos/CES_MAIN_IMG.jpg") center no-repeat;
    width: 100%;
    background-size: cover;
    margin-bottom: 5%;
}

@media only screen and (max-width: 448px) 
{
  .main{ 
  	height: 300px;
    background-size: contain;
    margin-bottom: 0;
  }
}


/* ------------------------------------------------- About ------------------------------------------------ */
#abt{
    width: 90%;
    margin: 0 auto;
    display: block;
    border-top: 25px;
    border-bottom: 75px;
}

#abt .container{
    width: 55%;
    display: block;
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30%;
    margin: 0 auto;
}

#abt a{
    color: rgb(34, 62, 146);
}

#abt h1 {
    color: rgb(34, 62, 146);
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

#abt h2 {
    color: rgb(34, 62, 146);
    margin-top: 1.25rem;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

#abt p{
    width: 100%;
    line-height: 1.5;
    margin-bottom: 10px;
    margin-top: 10px;
}

@media only screen and (max-width: 448px) 
{
  #about 
  {
  	font-size: 12px;
  }
  
  .about{
    margin-bottom: 25px;
  }
  
  #abt .container{
    width: 80%;
    margin-bottom: 30px;
}
}


/* ----------------------------------------- Services ---------------------------------------------- */


.services{
    background-color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
    flex-wrap: wrap;
    margin-top: 5%;
    margin-bottom: 2.5%;
}

#DGSA{
    text-align: center;
    font-size: 50px;
    color: rgb(34, 62, 146);
    margin-bottom: 40px;
}

.services p{
    line-height: 1.5;
    margin-bottom: 0.3125rem;
    margin-top: 0.3125rem;
    color: rgb(34, 62, 146);
    text-align: justify;
}
    
.services .container .title{
    color: rgb(34, 62, 146);
    text-align: center;
  	font-weight: 300;
}
    
.services .container h1{
  	color: rgb(34, 62, 146);
    margin-top: 1.5625rem;
    font-size: 30px;
    font-weight: 600;
  	text-align: center;
}
    
.services .container .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    margin-top: 3.125rem;
    margin: 0 auto;
    height: 400px;
    width: 80%;
    margin-bottom: 3.125rem;
}
    
.services .container .grid-item1 .title{
    color: rgb(34, 62, 146);
    font-size: 2rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 40px;
    margin-left: 30px;
}
    
    
.services .container .grid-item2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.services .container .grid-item2 img{
    align-items: center;
    height: 100%;
    width: 300px;
    border-radius: 10px;
}
    
.services .container h2{
  	text-align: center;
  	font-size: 25px;
  	font-weight: 400;
	color: rgb(34, 62, 146);  
}

#scr-txt{
    font-size: 20px;
    color: rgb(34, 62, 146);
    width: 500px;
}

#hazards-img {
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}


@media only screen and (max-width: 448px) 
{
  #hazards-img{
      width: 300px;
  }
  
  #scr-txt{
      width: 300px;
      font-size: 12px;
      text-align: center;
  }
  
  .services .container .grid-container{
      grid-template-columns: repeat(1, 1fr);
      grid-template-rows: repeat(2, 1fr);
      margin-bottom: 200px;
  }
  
  #DGSA{
  	font-size: 16px;
  }
}


/* ---------------------------------------Gallery----------------------------------------------- */

.gallery
{
    width: 100%;
    margin: auto 0;
}
    
.gallery .gallery-container
{
    width: 100%;
    margin-top: 20px;
    z-index: 0;
    color: #FFF;
}
    
.gallery .gallery-container h1
{
    font-size: 30px;
    font-weight: 600;
    color: rgb(34, 62, 146);
    margin-bottom: 3.125rem;
    text-align: center;
}
    
.gallery-container
{
    background-color: #fff;
    padding-bottom: 6.25rem;
}
    
.gallery .gallery-container .swiper 
{
    width: 1000px;
    height: 500px;
}
    
.gallery .gallery-container .swiper-slide
{
    text-align: center;
    font-size: 1.125rem;
    background-color: #FFF;
    width: 1000px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
    
.gallery .gallery-container .swiper-slide img
{
    width: 800px;
    height: 500px;
    margin-left: 1.875rem;
    margin-right: 6.25rem;
    border-radius: 0.3125rem;
}

@media only screen and (max-width: 400px) 
{
    .gallery .gallery-container .swiper 
    {
        width: 80%;
        height: 80%;
    }
    
}


@media only screen and (max-width: 1200px) 
{
    .gallery .gallery-container .swiper 
    {
        width: 80%;
        height: 100%;
    }
    
}


@media only screen and (max-width: 790px) 
{
    .gallery .gallery-container .swiper 
    {
        width: 80%;
        height: 100%;
    }  
}

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

    .gallery .gallery-container .swiper 
    {
        width: 90%;
    }
    
    .gallery .gallery-container .swiper-slide img
    {
        width: 100%;
      	height: 90%;
        margin-left: 0rem;
        margin-right: 0rem;
        border-radius: 0.3125rem;
    }
}

/* ------------------------------------------------ Customer-reviews ----------------------------------------- */

.grid-container{
    display: grid;
    grid-template-columns: 2fr;
    grid-template-rows: 1fr;
    gap: 10px;/
    width: 100%;
    background-color: rgb(255, 255, 255);
    height: 100vh;
  	justify-content: center;
    align-items: center;
}

.grid-container .grid-item{
    height: 300px;
    width: 80%;
  	justify-content: center;
    align-items: center;
}

.grid-container h1{
    padding-top: 40px;
    font-size: 35px;
    font-weight: 600;
    color: rgb(34, 62, 146);
    text-align: center;
}

.grid-item h2{
	padding-top: 20px;
    font-size: 25px;
    font-weight: 300;
    color: rgb(34, 62, 146);
    text-align: center;
}


.grid-container .testimonial{
    width: 600px;
    position: relative;
    padding: 25px 0;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
}

.grid-container .testimonial .slide{
    row-gap: 40px;
}

#review-form{
    color: rgb(34, 62, 146);
  	width: 60%;
}

#name1, 
#company1, 
#message1{
	border: 2px solid rgb(34, 62, 146);
    width: 200px;
}

.slide p{
    text-align: center;
    padding: 0 100px;
    font-size: 18px;
    font-weight: 400;
    color: rgb(34, 62, 146);
}

.slide .quote-icon1{
    font-size: 30px;
    color: rgb(34, 62, 146);
}

.slide .quote-icon2{
    font-size: 30px;
    color: rgb(34, 62, 146);
}


.slide .details{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details .name{
    font-size: 25px;
    font-weight: 600;
    color: rgb(34, 62, 146);
}

.details .company{
    font-size: 16px;
    font-weight: 400;
    color: rgb(34, 62, 146);
}


@media only screen and (max-width: 480px) {
	.grid-container{
     	height: 100vh;
      	width: 100%;
      	display: grid;
      	grid-template-columns: 1fr;
      	grid-template-rows: 2fr;
  	}
  
  	.grid-container .testimonial{
		width: 300px;	
  	}
}

/* --------------- Contact-us --------------- */

.contact-us{
	width: 100%;
  	display: grid;
  	justify-content: center;
  	align-items: center;
  	grid-template-columns: 2fr; /* One column */
  	gap: 10px; /* Optional gap between items */
}

.item {
	color: rgb(34, 62, 146);
  	width: 100%;
  	padding: 10px; /* Optional styling */
  	text-align: center;
}

.item h1{
	font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

.google-location iframe{
	width: 40%;
}

.google-location h2{
	font-size: 20px;
    margin-bottom: 20px;
}

#name, 
#email, 
#subject, 
#message{
	border: 2px solid rgb(34, 62, 146);
    border-radius: 5px;
    width: 40%;
  	margin-top: 5px;
  	margin-bottom: 5px;
}

#send-email-btn{
  	border-radius: 5px;
  	width: 20%;
    color: #fff;
  	background-color: rgb(34, 62, 146);
}

#LandlineTextCES,
#TelephoneTextCES,
#EmailTextCES{
	color: rgb(34, 62, 146);
    font-size: 25px;
  	margin-top: 5px;
  	margin-bottom: 5px;
}

/* Media query for screens under 500px */
@media (max-width: 500px) {
  .grid-container {
  		justify-content: center;
  		align-items: center;
		grid-template-columns: 1fr; /* One column */
    	grid-template-rows: auto auto; /* Two rows */
  }
  .google-location iframe{
    	width: 300px;
  }
}

/* ------------------------------------------ Footer -------------------------------------- */

/* CSS for the footer section */
.footer {
  	width: 100%;
  	background-color: rgb(34, 62, 146);
  	margin: 0 auto;
}

.footer .content{
	margin-top: 50px;
    margin-bottom: 100px;
    width: 100%;
    margin: 0 auto;
}

/* CSS for individual elements within the content div */
.footer h2,
.footer h3,
.footer p,
.footer a {
	display: block;
  	text-align: center;/* Adds vertical spacing between elements */
 	color: white;
}

.footer h2{
  	margin-top: 15%;
    color: #ffffff;
    text-align: center;
    font-size: 30px;
    font-weight: 700px;
}

.footer h3{
    color: #ffffff;
    text-align: center;
    font-size: 30px;
    font-weight: 700px;
}

.footer p{
  color: white;
}

#RHA{
    width: 10%;
    height: 45%;
}

#lnkImg{
	width: 50px;
    height: 25px;
}


#fbImg{
	width: 30px;
    height: 25px;
}

/* Media query for mobile screens */
@media only screen and (max-width: 768px) 
{
	.footer h2{
    	font-size: 20px;
      	margin-top: 30px;
	}
    
    #RHA{
    	width: 150px;
    	height: 50px;
    }
    
    .footer h3{
    	font-size: 14px;
    }
    
}

#emailContainer{
    width: 800px;
    height: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgb(34, 62, 146);;
    transform: translate(-50%, -50%);
    padding: 50px;
    border-radius: 3px;
}

#emailContainer h1{
    font-size: 35px;
    color: #FFF;
    margin-bottom: 20px;
}

#emailContainer h2{
    color: #fff;
}
#emailContainer h3{
    color: #FFF;
}

#emailContainer h4{
    color: #FFF;
    margin-top: 15px;
    margin-bottom: 5px;
}

#emailContainer p{
    color: #FFF;
    margin-bottom: 20px;
}

#rtrn-btn{
    margin-top: 10px;
    background-color: rgb(57, 106, 255);
    color: #fff;
    height: 60px;
    width: 150px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    font-size: 20px;
}

/*------------------------------------REVIEW-SENT----------------------------------------------*/
#reviewContainer{
    width: 800px;
    height: 370px;
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgb(34, 62, 146);;
    transform: translate(-50%, -50%);
    padding: 50px;
    border-radius: 3px;
}

#reviewContainer h1{
    font-size: 35px;
    color: #FFF;
    margin-bottom: 20px;
}

#reviewContainer h2{
    color: #fff;
}
#reviewContainer h3{
    color: #FFF;
}

#reviewContainer h4{
    color: #FFF;
    margin-top: 15px;
    margin-bottom: 5px;
}

#reviewContainer p{
    color: #FFF;
    margin-bottom: 20px;
}
