* {
    font-family: proxima-nova, sans-serif;
    margin: 0;
    padding: 0;
   
}

p {
    font-weight: 400;
    line-height: 30px;
    font-size: 18px;
    color: #222222;
}

h1{
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 62px;
    text-transform: uppercase;
}

h2 {
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 700;
}


h3 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 20px;
    line-height: 40px;
    text-transform: uppercase;


}

a {
    text-decoration: none;
    color: #C4B27B;
    
}

.stortext {
    font-size: 54px;
    text-transform: uppercase;
}

header {
    padding: 20px;
}



nav ul li a {
    text-decoration: none;
    color: #101010;
    list-style: none;
    font-size: 18px;
    padding: 0.2rem 1rem;
    transition: 0.1s ease-in-out;
    font-weight: 700;
    text-transform: uppercase;
    
}
nav ul li {
list-style-type: none;

}



nav ul li a:hover {
    color: #F2F2F2;
    background-color: #1D314E;
    transition: 0.3s ease-in-out;
    
}

nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

nav {
    display: grid;
    grid-template-columns: auto auto auto auto;
    align-items: center;
    width: 100%;
    margin: auto;
    
}

.topbar {
    width:100%;
    background-color: #000000;
    height: 60px;
    text-align: center;
}

.topbar > p {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    padding: 15px;
    text-transform: uppercase;
   

}

.topbar > p > a {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    top: 50%;
    text-transform: uppercase;
    

    
}



.linktopbar {
    padding-top: 20px;
}

.sitelogo {
    

    margin-left: 14%;
    height: 100px;
    letter-spacing: 1px;
    text-transform: uppercase;
    
}

.sitelogo a {
    color: #1D314E;
}
.companylogo {
    width: 180px;
   
}

.hamburger {
    display: none;
}

.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: #101010;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/Spillvattensystem.jpg') center;
    background-size: cover;
    padding: 10rem 4rem;
    text-align: center;
}



.hero > * {
    color: white;
  }

.hero > h1 {
    font-size: 4rem;
    padding-bottom: 1rem;
    font-weight: 800;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
  }

.hero > a {
    padding: 1rem 3rem;
    margin-top: 1.75rem;
    border-radius: 2rem;
    text-align: center;
    display: inline-block;
    transition: all .3s;
    text-decoration: none;
    font-size: 1rem;
    color: #302f2d;
    background-color: #f7f7f7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
  }

.hero > a:hover {
    background-color: #C4B27B;
    transition: 0.3s ease-in-out;
    color: #F7F7F7;
}

.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 2%;
background-color: #ffffff;
padding: 3% 4% 3% 4%;
}

.grid-container > div {
text-align: center;
padding: 20% 20%;
font-size: 20px;
font-weight: 700;
box-shadow: 0px 12px 32px -10px rgba(0,0,0,0.29);
border-radius: 12px;
}

.grid-container a {
text-transform: uppercase;
line-height: 4rem;
}

.description {
    background-color: #F7F7F7;
    padding: 5% 10% 5% 10%;
    text-align: left;
}

.description p {
    max-width: 800px;
}

.brochure img{
    width: 80%;
}

.brochure {
    margin-top: 20%;
}

.description.tjanst{
    padding: 5% 10% 10% 10%;
}


.description h2 {
    padding-top: 5%;
    padding-bottom: 10px;
}

.descriptioncenter.medium {
    padding: 1% 22% 1% 22%;
    text-align: center;
}

.descriptioncenter {
    padding: 5% 5%;
}


.light {
    background-color: #ffffff;
}

.logos {
width: 100%;
}
/* 
.aajoda_full_width - Makes the element stretch full width of its parent.
*/

.aajoda_full_width {
    margin-left: -15%;  
    margin-right: -15%; 
}

.referenser {
    background-color: #F7F7F7;
    padding: 5% 5%;
    text-align: center;
    position: relative;
}

.referenser p {
    width: 60%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
}


.ctahome {
    box-shadow: 0px 12px 32px -10px rgba(0,0,0,0.29);
    padding: 10%;
    margin-top: 10%;
    text-align: center;
    border-radius: 20px;

}

.ctahome p {
    margin-bottom: 50px;
    font-size: 16px;
    
}

.ctahome p a{
    font-size: 18px;
    font-weight: 700;
    padding: 1rem 3rem;
    background-color: #c4b27b;
    color: #fff;
    border-radius: 10px;
}


.ctahome > p a:hover{
    background-color: #cebb81;
    transition: 0.5s ease-in-out;
    color: #f7f7f7;
  }
  
  .aajodacode {
    text-align: center;
  }

  .aajodacode h2 {
    margin-bottom: 40px;
  }


.badgehome{
    text-align: center;
   
}

.badgehome img {
    width:200px;
}

.item2 {
    background-color: rgba(255, 255, 255, 0.8);
   /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.15);*/
    border-radius: 5px;
    background: #ffffff;
    box-shadow:  35px 35px 70px #cccccc,
             -35px -35px 70px #ffffff;
    transition: 0.3s ease-in-out;
    font-weight: 700 !important;
    
}

.item2:hover {
    background-color: #fafaf9;
    transition: 0.3s ease-in-out;
}

.item3 {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background: #Ffffff;
    box-shadow:  35px 35px 70px #cccccc,
             -35px -35px 70px #ffffff;
    transition: 0.3s ease-in-out;
    font-weight: 700 !important;
    
}

.item3:hover {
    background-color: #fafaf9;
    transition: 0.3s ease-in-out;
}

.item4 {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background: #Ffffff;
    box-shadow:  35px 35px 70px #cccccc,
             -35px -35px 70px #ffffff;
    transition: 0.3s ease-in-out;
    font-weight: 700 !important;
}

.item4:hover {
    background-color: #fafaf9;
    transition: 0.3s ease-in-out;
}

.icon {
    width: 30%;
    padding: 1rem;
}

.footer {
    background-color: #000000;


}

.footer .main {
    background-image: url("img/IMG_5714-Edit3.jpg");
    background-blend-mode: overlay;
    background-position: center;
}

.footer-content {
    width: 30rem;
}


.footer p {
   color: #F0E9DC;
   font-size: 20px;
   font-weight: 400;
}


.certificates {
    height: 140px;
    margin-top: 40px;
}

.links {
    font-size: 20px;
    color: #cebb81;
    text-transform: uppercase;


}

.footer h3 {
    color: #9FACAD;
}


.copyright {
    padding: 1rem;
    text-align: center;
}

.copyright p {
    font-size: 16px;
}

.main {
display: flex;
justify-content: space-evenly;
align-items: baseline;
padding-top: 7rem;
padding-bottom: 7rem;
padding-left: 7rem;
padding-right: 7rem;

}




/*----------------TJÄNSTER-----------------*/

.ctahome.tak {
margin-top: 0;

}


.box1 {
    position:relative;
}

.box1 img{
    width: 100%;
    
}

.box1 h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}


.box2 {
    position:relative;
}
.box2 img{
    width: 100%;
}

.box2 h3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.box3 {
    position: relative;
}
.box3 img{
    width: 100%;
}

.box3 h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.box4 {
    position: relative;
}
.box4 img{
    width: 100%;
}
.box4 h3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.box5 {
    position:relative;
}
.box5 img{
    width: 100%;
}

.box5 h3{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.box6{
    position: relative;
}
.box6 img{
    width: 100%;
}

.box6 h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.boxar a{
    font-size: 24px;
    color: #fff;
}
.boxar a:hover{
color: #e5e6e4;
transition: 3ms ease-in-out;
text-decoration: underline;
}

.sidebar img {
    width: 100%;
    border-radius: 15px;
    margin-top: 5rem;
}







/*----------------MEDIA QUERYS-----------------*/




@media only screen and (min-width: 1200px) {

    .description{
        display: grid;
        grid-template-columns: 700px 450px auto;
        grid-gap: 15% !important;
    }

    .description.tjanst {
        grid-gap: 10%;
    }


    .boxar {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 1%;
    }

    .topbar.mobile {
        display: none;
    }
    

}



@media only screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 100%;
        top: 5rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        
        text-align: center;
        transition: 0.3s;
        box-shadow:
            0 10px 27px rgba(0, 0, 0, 0.05);
            padding-bottom: 1rem;
    }

  h1 {
    font-size: 30px !important;
    font-weight: 700 !important;
}

h2 {
    font-weight: 700 !important;
}
  
    .nav-menu.active {
        left: 0;
    }

    .navbar {
        grid-template-columns: auto auto;
       
    }

    nav ul li a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    nav ul li {
        padding:1rem;
    }
  
  
    .topbar > p > a {
      font-size: 14px !important;  
   
   
  }
  
    .topbar {
      height: 70px;
   
    }

    .topbar.desktop {
        display: none;
    }

    .topbar > p {
    line-height: 1.2;
    padding: 10px;
    text-transform: uppercase;
    font-weight: 700;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .sitelogo {
        font-size: 26px;     
        letter-spacing: 0;   
        height: 60px;
        margin-top: 20px;
    }

    header {
        padding: 0;
    }
    .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);
    }

    .companylogo {
        display: none;
    }


    .referenser p {
        width: 100%;
        text-align: left;
    }

    .aajoda_con .aajoda-tabs-default {
        text-align: left !important;
        padding: 5px !important;
    }

    .certificates {
        height: 40px;
    }
  
  .hero {
    padding: 10rem 0.5rem;
    background-position: left;
  }
    .hero > h1 {
        font-size: 2rem;
        line-height: 1.2;

    }

    .hero a {
        letter-spacing: 1px;
        padding: 1rem;
    }

    .description{
        padding: 10% 10% 10% 10%;
    }
    .descriptioncenter.medium {
        padding: 10%;
        text-align: left;
        
    }
    
    .descriptioncenter {
        padding: 0;
    }
    
    .descriptioncenter div {
        padding-bottom: 20%;
    }

    .stortext {
        font-size: 32px;
        margin-bottom: 1em;
        font-weight: 500 !important;
    }
    
    .grid-container{
    padding: 0 4% 20% 4%;
    }

    .grid-container > div {
        padding: 10%;
    }

    header {
        height: 100px;
    
    }

    .container {
        margin-right: auto;
        margin-left: auto;
        padding: 10% 8%;
    }

    .container h1 {
        font-size: 35px;
        line-height: 50px;
    }
  
  .ctahome {
    padding: 10% 10% 20% 10%;
    text-align: center; 
}

.ctahome h2 {
    margin-bottom: 1em;
}

.ctahome p {
    margin-bottom: 2em;
}

.ctahome a {
    display: inline-block;
    font-size: 16px;
    color: white;
    background-color: #302f2d;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}


.ctahome p a {
    padding: 10px 15px;
    font-size: 16px;
}
.ctahome a:hover {
    background-color: #302f2d;
}

.main {
    display: block;
    padding: 10%;
}

}

/* Style for the sidebar links */
.sidebar a.mail {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1D314E;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* Hover effect */
.sidebar a.mail:hover {
    color: #cebb81; /* Text color change on hover */
    background-color: #f7f7f7; /* Background color change on hover */
    border-left: 3px solid #c4b27b; /* Adding a border to the left on hover */
    padding-left: 10px; /* Increase padding on the left for a subtle slide effect */
    transition: all 0.3s ease-in-out;
}
