@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --primary-color: #b31740;
    --secondary-color: #243c78;
    color-scheme: only light; /*Disables auto dark theme from enabling*/
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Roboto';
    color: #333;
    line-height: 1.6;
}

ul{
    list-style: none;
}

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

h1,
h2{
    margin: 10px 0;
    font-weight: 400;
}

p{
    margin: 10px 0;
}

img{
    width: 100%;
}

/* Navbar */
.navbar{
    background-color: var(--primary-color);
    color: #fff;
    height: 100px;
    overflow: auto;
}

.navbar .flex{
    justify-content: space-between;
}

.navbar img{
    aspect-ratio: 708 / 197;
    height: 75%;
    width: auto;
}

.navbar ul,
.footer-text ul{
    display: flex;
}

.navbar a,
.footer-text a,
#mobileNav a,
#mobileNav button{
    color:#fff;
    padding: 20px;
    margin: 0 10px;
    text-wrap: nowrap;
}

.navbar a:hover,
.footer-text a:hover,
#mobileNav a:hover,
#mobileNav button:hover{
    border-bottom: #fff solid 2px;
    background: rgb(0, 0, 0, 0.1);
}

/* Side menu button */
.nav-btn{
    font-size: 3rem;
    background-color: rgba(1, 1, 1, 0);
    color: white;
    border: none;
    display: none;
}

#mobileNav{
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: var(--primary-color);
    padding-top: 50px;
    width: 0px;
    overflow-x: hidden;
    transition: 0.5s;
}

#mobileNav .flex{
    justify-content: flex-start;
    flex-direction: column;
    gap: 30px;
}

#mobileNav button{
    border: none;
    background-color: rgba(1, 1, 1, 0);
}

/* Tablet styling for nav */
@media only screen and (max-width: 810px){

    .navbar{
        padding: 40px 40px;
        height: 200px;
    }

    .navbar .flex{
        flex-direction: column;
        align-items: center;
        justify-content: center;   
        gap: 30px; 
    }

    .navbar a{
        padding: 5px 5px;
    }
} 

/* small mobile styling for nav */
@media only screen and (max-width: 600px){

    .navbar{
        padding: 40px 40px;
        height: 200px;
    }

    .navbar .flex{
        flex-direction: row;
        align-items: center;
        justify-content: center;   
        gap: 30px; 
    }

    .navbar a{
        margin: 5px;
    }

    .navbar img{
        height: 50%;
    }

    #desktopNav{
        display: none;
    }

    .nav-btn{
        display: inline-block;
    }
} 

/* Hero */
.hero{
    padding: 40px 0;
    background: var(--secondary-color);
    color:#fff;
    position: relative;
}

.hero-text .grid{
    grid-template-columns: 40% 60%;
    gap: 30px;
}

.associate-images{
    grid-template-columns: repeat(3, 1fr);
    /* padding: 10px 0; */
    margin-bottom: 20px;
}

.hero .image-container{
    padding: 25%;
}

.hero .image-container img{
    height: 100%;
    background-color: white;
    /* filter: grayscale(1); */
    transition: filter 1.5s, transform 1.5s;
    border-radius: 10px;
    aspect-ratio: auto;
    background-size: cover;
}

.hero .image-container img:hover{
    /* filter: grayscale(0); */
    transform: scale(.95);
}

.hero h2{
    font-size: 25px;
}

.hero::after{
    content: '';
    background: #fff;
    height: 150px;
    width: 100%;
    position: absolute;
    transform: skewY(-3deg);
}

/* hero section for mobile screens */
@media only screen and (max-width: 600px) {
    .hero .image-container{
        padding: 10%;
    }
}

/* About Us + Services */
.about-us, .services{
    margin-top: 150px;
}

.about-us h2, .services h2{
    border-bottom: 2px solid #333;
}

.about-us p, .services p{
    font-weight: 400;
}

.about-us-standards .card,
.services .card{
    padding: 10px 40px;
    font-size: 1rem;
    text-align: center;
    height: 300px;
    font-weight: 600;
    font-size: 1rem;
    /* margin: auto; */
}

.services ul{
    list-style-type: decimal;
    list-style-position: inside;
}

.services li{
    text-align: center;
    width: 50%;
    margin: 50px auto;
}

.services .card{   
    height: auto;
}

/* small mobile screen adjustment for about us page card grid + services list */
@media only screen and (max-width: 600px) {
    .services li{
        width: 100%;
    }
    .about-us-standards .grid{
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
}

/* Projects */
.projects{
    position: relative;
}

.projects .container{
    padding: 40px 40px;
}

.projects-text{
    grid-column: 1 / span 3;
}

/* Tablet styling for project section */
@media only screen and (max-width: 810px){
    .projects .grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* small mobile for project section */
@media only screen and (max-width: 600px){
    .projects .grid{
        grid-template-columns: repeat(1, 1fr);
    }

}

.projects-text h2{
    border-bottom: 2px solid #fff;
}

.project-card{
    position: relative;
}

/* #project-1{
    background-image: url("../images/project-1-image.jpg");
    background-position: center;
    background-size: cover;
}

#project-2{
    background-image: url("../images/project-2-image.jpg");
    background-position: center;
    background-size: cover;
}

#project-3{
    background-image: url("../images/project-1-image.jpg");
    background-position: center;
    background-size: cover;
} */

.project-card:hover{
    transform: translateY(-10px);
}

.projects::after{
    content: '';
    background: #fff;
    height: 150px;
    width: 100%;
    position: absolute;
    transform: skewY(3deg);
}

/* Contact Us */
.contact-us{
    padding: 150px 0;
}

.contact-us .container{
    height: auto;
}

.contact-us h2{
    font-size: 2rem;
}

.contact-us .btn{
    font-size: 1.25rem;
}

#contact-details{
    flex-direction: column;
}

#contact-details h2{
    border-bottom: 2px solid #333;
}

.contact-us .form-control input{
    background-color: var(--secondary-color);
    border: none;
    border-bottom: 2px solid #fff;
    caret-color: #fff;
    color: #fff;
    /* width: 75%; */
    margin: 0 auto;
    font-size: 1.25rem;
    padding: 20px 0;
}

.contact-us .form-control input::placeholder{
    color: #fff;
}

.contact-us .form-control input:focus{
    outline: none;
}

#contact-form-container{
    flex-basis: 75%;
}

/* Tablet styling */
@media only screen and (max-width: 810px){
    #contact-us-container{
        flex-direction: column;
        gap: 30px;
    }

    #contact-form-container{
        margin: auto 0;
        flex-basis: 100%;
    }
}

/* Footer */
footer{
    padding: 40px 0;
    overflow: auto;
    margin-top: 150px;
}

.footer-text ul{
    border-top: 2px solid #fff;
    height: 100px;
    justify-content: center;
    align-items: center;
}

.footer-bottom{
    padding: 40px 40px;
    gap: 20%;
    grid-template-columns: 30% 50%;
    border-top: 2px solid #fff;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
}

.footer-bottom p{
    text-align: center;
    font-size: 1rem;
}

.footer-bottom img{
    aspect-ratio: 708 / 197;
    height: 100%;
}

@media only screen and (max-width: 810px){
    footer .grid{
        grid-template-columns: 1fr;
        align-items: center;
        justify-content: center;
    }

    .footer-text a{
        padding: 5px 5px;
    }

}

/* small mobile styling for nav */
@media only screen and (max-width: 600px){

    .footer-text a{
        margin: 5px;
    }

    .footer-text ul{
        height: auto;
        flex-direction: column;
    }

    .footer-text li{
        padding: 10px;
    }
} 