@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap');

body, html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--white-color);
    font-family: 'Poppins', sans-serif;
}

:root{
    --white-color: #fff;
    --grey-color: #242629;
    --green-color: #66CC00;
}

h3{
    color: var(--white-color);
    text-align: center;
    font-size: 1.4rem;
    padding: 0 1em;
}

/* Header */

header{
    background-color: var(--grey-color);
    width: 100vw;
    height: 140px;
    display: flex;
    align-items: center;
}

#logo{
    margin-left: 2em;
    height: 60px;
}

/* Tab */

.tab{
    display: flex;
    justify-content: center;
    margin-top: 5em;
}

.tab button {
    background-color: var(--white-color);
    float: left;
    outline: none;
    cursor: pointer;
    padding: .3em 3em;
    font-weight: 600;
    font-family: 'Poppins';
    font-size: 1rem;
    color: var(--grey-color);
    border: 2px solid #939393;
}

.tab button:hover {
    background-color: var(--grey-color);
    color: var(--white-color);
    transition: color, background-color .5s;
    border: 2px solid var(--grey-color);
}

.tab button:not(:last-child) {
    border-right: none;
}

.tab button.active {
    background-color: var(--grey-color);
    color: white;
    border: none;
    border-bottom: 3px solid var(--green-color);
}

.tabcontent{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 8em 10em;
    gap: 2em;
}

.service-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--grey-color);
    padding-top: 3em;
    justify-content: flex-start;
    gap: 2em;
    height: fit-content;
}

.service-options{
    color: #aeaeae;
    list-style-type: none;
    line-height: 1.8;
    height: 180px;
}

.card-image{
    width: 100%;
}

ul li::before {
    content: "\2022";
    color: var(--green-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
  }

.card-button{
    background-color: var(--green-color);
    color: #ffffff;
    border: none;
    padding: .7em 3em;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1em;
}

.card-button > *{
    text-align: center;
}

.card-button:hover{
    background-color: var(--white-color);
    color: var(--grey-color);
    transition: all .5s;
}

#automation, #sound-system{
    display: none;
}

/* Footer */

.our-customers{
    width: 100vw;
    height: auto;
    background-color: var(--grey-color);
    margin-bottom: 2em;
}

.customers-logos{
    display: flex;
    gap: 3em;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.our-customers h2{
    text-align: center;
    color: var(--white-color);
}

footer{
    background-color: var(--grey-color);
    width: 100vw;
    height: auto;
    padding: 5em 0;
}

.contact-details{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3em;
}

#contact{
    text-align: center;
    color: var(--white-color);
    text-transform: uppercase;
    font-weight: 500;
}

.contact-details > *{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.contact-details span{
    color: var(--white-color);
    font-weight: 300;
    font-size: 0.8rem;
}

/* Media queries */

@media only screen and (max-width: 1400px){
    .tabcontent{
        margin: 8em 4em;
    }
}

@media only screen and (max-width: 1150px){
    .tabcontent{
        grid-template-columns: auto;
        justify-content: center;
        gap: 3em;
    }

    .service-card{
        width: 500px;
    }
}

@media only screen and (max-width: 600px){
    header{
        height: 100px;
    }

    .tabcontent{
        margin: 4em 0;
    }

    .tab{
        overflow: scroll;
        justify-content: flex-start;
    }

    .service-card{
        width: auto;
    }

    .contact-details{
        flex-direction: column;
        gap: 1.5em;
    }

    .contact-details > *{
        justify-content: flex-start;
        width: 200px;
    }
}
