@import './vars.css';

body, html{
    font-family: 'Lato', sans-serif;
    color: var(--primary-color);
    background: var(--background-color);
    margin: 0;
    padding: 0;
    *{
        margin: 0;
        padding: 0;
    }
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Poppins', sans-serif;
}
div.wrapper{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header{
    text-align: center;
    background-color: var(--background-color);
}

.hero-overlay{
    background-color: var(--background-color);
    padding: 0 30px 45px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    h2{
        font-size: 2em;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 30px;
        text-align: center;
    }

    hr.divider{
        border: 0;
        height: 1px;
        background-color: #ffffff;
        margin: 30px auto 40px auto;
    }
}

img{
    max-width: 100%;
}

.logo-wrapper{
    img{
        padding: 10px;
        background-color: var(--purple-color);
        border-radius: 50%;
        width: 250px;
        height: 250px;
    }
    max-width: 300px;
    margin: 30px auto 0px auto;
}

.main-content{
    text-align: left;
    padding: 20px 60px 45px 60px;
    background-color: var(--primary-color);
    color: #ffffff;
    flex: 1;
    p{
        font-weight:400;
        font-size: 1.2em;
        line-height: 2em;
    }
    a{
        color: var(--accent-color);
        text-decoration: none;
        transition: all 0.2s ease-in-out;
        font-size: 1.2em;
        line-height: 2em;

    }
    a:hover{
        color: #ffffff;
        transition: all 0.2s ease-in-out;
    }
}

button i, a i{
    font-size: 40px;
    color: var(--primary-color);
}

div.quick-links{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    a{
        text-align: center;
    }
}

div.quick-link:hover{
 i{
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
    color: var(--accent-secondary-color);
 }
 i.second{
    transform: scaleX(-1.1) scaleY(1.05);
    transition: all 0.2s ease-in-out;
    color: #ffffff;
 }
 a, span{
    color: #1f3d66;
    transition: all 0.2s ease-in-out;
 }
 span.arrow-right i{
    color: var(--primary-color);
 }
}

div.quick-link span.arrow-right{
    background: var(--accent-secondary-color);
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    line-height: 24px;
    margin: 0;
    padding: 10px;
    font-size: 24px;
}

div.quick-link span.arrow-right i{
    margin: 0;
    display: block;
    height: 20px;
    width: 20px;
    line-height: 20px;
}

div.quick-link.text-us{
    i{
        margin-left: 0;
        margin-top: -3%;
    }
    i.second{
        left: 12%;
        margin-top: 3%;
    }
    span{
        display:block;
        color: var(--primary-color);
        font-size: 20px;
        font-weight: 600;
        text-align: left;
    }
    span a{
        color: var(--primary-color);
        text-decoration: none;
    }
    .phone-number{
        color: #ffffff;
    }

    div.card-content{
        flex-direction: row;
        flex-wrap: wrap;
    }
    span.arrow-right{
        margin-bottom: -24px;
    }
}

div.quick-link{
    position: relative;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: row;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;

    h3{
        width: 100%;
        font-family: Poppins;
        font-weight: 600;
        font-size: 24px;
        line-height: 1.2;
        color:#ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    h3 i{
        font-size: 12px;
    }
    i{
        z-index:2;
        position: relative;
        color: #ffffff;
    }
    i.second{
        transform: scaleX(-1);
        color: var(--accent-secondary-color);
        position: absolute;
        right: 6%;
        margin-top: 6%;
        z-index:0;
    }
    a{
        text-decoration: none;
        display:flex;
        width: 100%;
        flex-direction: row;
        align-content: stretch;
        justify-content: space-between;
        align-items: center;

    }
    &:hover h3{
        color: var(--accent-secondary-color);
        transition: all 0.2s ease-in-out;
    }

    div.card-content{
        padding: 0;
        display: flex;
        width: 75%;
    }

    span.arrow-right i{
        font-size: 24px;
        line-height: 24px;
        width: 24px;
        height: 24px;
    }
}

div.featured-image{
    background-color: var(--primary-color);
    img{
        display:block;
        margin: 0 auto;
        max-width: 50%;
    }
} 

hr.divider{
    border: 0;
    height: 1px;
    background-color: #ffffff;
    margin: 30px auto;
}

div.footer-content{
    p, a{
        font-size: 1em;
        line-height: 1.5em;
        text-align: center;
    }
    &.legal-lines{
        margin-top: 20px;
        font-size: 0.65em;
    }
}

@media (max-width:1200px){
    div.quick-links{
        grid-template-columns: repeat(2, 1fr);
    }

    div.wrapper{
        padding: 0;
    }
}

@media (max-width:768px){
    div.quick-links{
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 20px;
    }


    div.quick-link.text-us{
        i{
            margin-left: 0;
            left: 0;
        }
        i.second{
            right: 0;
        }
    }
}

@media (max-width:600px){

    .logo-wrapper{
        img{
            padding: 5px;
            width: 185px;
            height: 185px;
        }
        max-width: 200px;
    }

    div.quick-links{
        gap: 30px 20px;
        grid-template-columns: repeat(1, 1fr);
    }

    div.quick-link.text-us{
        i{
            margin-left: 0;
            left: -2%;
            top: 0;
            font-size: 40px;
        }
        i.second{
            left: 8%;
            top: 14%;
        }
        h3{
            order: 1;
            margin-top: 0;
        }
        span.phone-number{
            order: 2;
            text-align: center;
            margin-top: 0;
        }
    }
    
    div.quick-link{
        a{
            width:100%;
            align-content: stretch;
            justify-content: space-between;
        }
        div.card-content{
            width: 80%;
        }
    }
    div.quick-link h3{
        flex-direction: row;
    }
    
    .main-content{
        p, a{
            font-size: 1em;
            line-height: 1.8em;
        }
    }
    div.footer-content{
        p, a{
            font-size: .8em;
            line-height: 1.5em;
            text-align: center;
        }
    }

    hr.divider{
        margin: 15px auto;
    }
}