/* variables */
:root{
    --primary: #51746d;
    --secondary: #ffffff;
    --thirdary: #4b4b4b;
    --fourthary: #f5f5f5;
    --shadowary: #dadada;
}
/* fonts */
@font-face{
    font-family: 'Rubik';
    src: url(fonts/Rubik-VariableFont_wght.ttf);
}
/* reset */
body,p,a,ul,li{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'Rubik';
}
li{
    list-style-type: none;
}

*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

/* Navigation style */
nav{
    background: var(--secondary);
    height: 100px;
    width: 100%;
}
label.logo img{
    height: 90%;
    width: auto;
    line-height: 80px;
    padding: 0;
    float: left;
    margin: 10px 10px;
}
nav ul{
    float: right;
    background: none; 
    padding: 0;
    margin: 0;
}
nav ul li{
    display: inline-block;
    line-height : 80px;
    margin-right: 40px;
    margin-top: 20px;
}
nav ul li a{
    color: var(--thirdary);
    font-size: 1rem;
    padding: 0;
    border-radius: 3px;
}
a:hover{
    background: var(--primary);
    color: var(--secondary);
    transition: .5s;
}
.checkbtn{
    font-size: 2rem;
    color: var(--thirdary);
    float: right;
    line-height: 50px;
    margin-right: 40px;
    margin-top: 5px;
    cursor: pointer;
    display: none;
}
.fa-solid.fa-bars{
    display: none;
}
#check{
    display: none;
}
body{
    margin: 0;
}
body img{
    width: 100%;
   
}
/* 12 column grid set-up*/
.grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr) ;
    gap: 30px;
}
/* column distribution -- main */
main{
    max-width: 100%;
    margin: 20px 0;
    margin-bottom: 0;
    padding: 20px;
    background: var(--fourthary);
}
main img{
   grid-column: span 6;
   width: 100%;
   border-radius: 6px;
}
main .welcome{
    grid-column: 8 / span 5;
    padding: 0px 20px 20px 20px;
}
main h2{
    grid-column: span 12;
    text-align: center;
    font-size: 1.5em;
    padding: 20px;
}
.welcome{
    color: black;
}
.welcome p{
    color: var(--thirdary);
    text-align: justify;
    line-height: 1.4em;
}
.welcome a{
    color: var(--primary);
    font-size: 1em;
}
.welcome a:hover{
    background: var(--primary);
    color: var(--secondary);
    transition: .5s;
}
main .card{
    grid-column: span 4;
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 3px 3px 3px var(--shadowary);
}
#about .card h3{
    color: black;
}
#about .card p{
    color: var(--thirdary);
}
main p{
    text-align: justify;
}
/*section Services */
#services{
    max-width: 1200px;
    margin: 0;
    margin-top: 20px;
    padding: 20px;
    background: var(--fourthary);
}
#services h2{
    grid-column: span 12;
    text-align: center;
    font-size: 1.5em;
    padding-top: 20px;
}
#services .card{
    grid-column: span 4;
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 3px 3px 3px var(--shadowary);
}
#services h3{
    color: var(--thirdary);
    text-align: center;
    padding: 10px;
}
#services p{
    text-align: left;
}
#services a{
    font-size: 2em;
}
/*section About Us */
#about{
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: var(--fourthary);
}
#about h2{
    grid-column: span 12;
    text-align: center;
    font-size: 1.5em;
    padding-top: 20px;
}
#about .card{
    grid-column: span 4;
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 3px 3px 3px var(--shadowary);
}
#about h3{
    color: var(--thirdary);
    text-align: center;
    padding: 10px;
}
#about p{
    text-align: justify;
}
/* Contact section */
#contact{
    max-width: 100%;
    margin: 0;
    padding: 20px;
    background: var(--fourthary);
}
#contact h2{
    grid-column: span 12;
    text-align: center;
    font-size: 1.5em;
    padding-top: 20px;
}
#contact input{
    width: 70%;
    padding: 5px;
    align-content: center;
}
#contact textarea{
    width: 70%;  
    padding: 5px;
}
#contact form{
    display: block;
    text-align: center;
    padding: 150px;
    padding-top: 20px;
    padding-bottom: 20px;
    border: 5px;
}
.button{
    color: var(--primary);
    font-size: 1em;
}
#contact .card{
    grid-column: 4 / 10;
    background: var(--secondary);
    padding: 30px 20px 20px 20px;
    border-radius: 6px;
    box-shadow: 3px 3px 3px var(--shadowary);
}
#contact h3{
    color: var(--thirdary);
    text-align: center;
    margin-bottom: 15px;
}
#contact p{
    color: var(--thirdary);
    text-align: center;
    margin-top: 5px;
    margin-left: 5%;
    margin-right: 5%;
}
#contact button{
    color: var(--secondary);
    background: #51746d;
    padding: 3px;
    border-radius: 20px;
    text-align: center;
}
#contact button{
    padding: 5px;
    border: 5px;
    margin-top: 10px;
}
#contact .button:hover{
    color: var(--shadowary);
    background: var(--thirdary);
    padding: 3px;
    border-radius: 20px;
  }
  footer{
      background: var(--fourthary);
  }
  footer p{
      text-align: center;
      color: #4b4b4b;
      font-size: 0.6em;
  }
/* Desktop */
@media (min-width: 400px){
    nav ul li a{
       font-size: 1.5rem;
    }
    .arrow-btn{
        position: fixed;
        bottom: 30px;
        right: 30px;
    }
    .arrow-btn a{
        height: 39px;
        width: 37px;
        text-align: center;
        background: var(--thirdary);
        display: block;
        border-radius: 3px
    }
    .arrow-btn a span{
        color: var(--secondary);
        line-height: 39px;
        font-size: 25px;
        cursor: pointer;
        z-index: 9;
    }
    #contact textarea{
        min-width: 100%;
        padding: 5px;
    }
    #contact input{
        min-width: 100%;
        align-content: center;
    }
}
/* large tablet */
@media (max-width:950px){
    nav{
        background: none;
        height: 75px;
        width: 100%;
    }
    label.logo img{
        height: 90%;
        width: auto;
        line-height: 75px;
        padding: 0;
        float: left;
        margin: 5px 5px;
    }
    nav ul li{
        display: inline-block;
        line-height : 75px;
        margin-right: 20px;
        margin-top: 9px;
    }
    nav ul li a{
        font-size: 1.2rem;   
    }
    main img{
        grid-column:  2 / span 10;
    }
    main .welcome{
        grid-column: 1 / span 12;
        text-align: center;
        padding-bottom: 0px;
    }
    #contact form{
        display: block;
        text-align: center;
        padding: 70px;
        padding-top: 20px;
        padding-bottom: 20px;
        border: 5px;
    }
    #contact button{
        padding: 5pxpx;
        border: 5px;
    }
}
/* small tablet */
@media (max-width:740px){
    nav{
        background: none;
        height: 50px;
        width: 100%;
    }
    label.logo img{
        height: 90%;
        width: auto;
        line-height: 50px;
        padding: 0;
        float: left;
        margin: 5px 5px;
    }
    nav ul li{
        display: inline-block;
        line-height : 50px;
        margin-right: 20px;
        margin-top: 5px;
    }
    nav ul li a{
        font-size: 0.9rem;

    }
    main .card{
        grid-column: 3 / span 8;
    }
    #about .card{
        grid-column: 3 / span 8;
    }
    #contact .card{
        grid-column: 1 / span 12;
    }
    #contact form{
        display: block;
        text-align: center;
        padding: 5px;
        border: 5px;
    }
    #contact input{
        min-width: 30%;
        align-content: center;
    }
    #contact form{
        display: block;
        text-align: center;
        padding: 5px;
        border: 5px;
    }
    #contact h3,p{
        color: var(--thirdary);
        text-align: center;
    }
}
/* smartphone */
@media (max-width:550px){
    #services .card{
        grid-column: 1/ span 12;
    }
    #services{
        max-width: 1200px;
        margin-top: 20px;
    }
    #about .card{
        grid-column: 1 / span 12;
    }
    .checkbtn{
        display:block; 
    }
    /* side bar pop up */
    ul{
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }
    nav ul{
        background: var(--thirdary);
    }
    nav ul li{
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    nav ul li a{
        font-size: 2rem;
        color: var(--secondary);
    }
    a:hover{
        background: var(--primary);
        color: var(--secondary);
    }
    #check:checked ~ ul{
        left: 0;  
    }
    .fa-solid.fa-bars{
        display: block;
        color: var(--thirdary);
    }
    .arrow-btn{
    visibility:hidden;
    }
    nav i{
        overflow: hidden;
        background-color: none;
        position: fixed;
        padding-top: 10px;
        padding-right: 10px;
      }
      
}
