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

/* Keep padding and borders inside declared widths on every device. */
*,
*::before,
*::after{
    box-sizing: border-box;
}

body{
    margin: 0;
}

.work-sans-font {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* shared styles */
.display-flex{
    display: flex;
}

.text-primary{
    color: #FF900E;
}

/* dark 02 */
.text-gray{
    color: #424242;
}

/* dark03 */
.text-light-gray{
    color: #727272;
}

.bg-light{
    background-color: rgba(255, 144, 14, 0.1);
}

.btn-primary{
    background-color: #FF900E;
    color: white;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
}

main{
    max-width: 1440px;
    margin: 0 auto;
}

main > section{
    margin-top: 130px;
}

.section-title{
    font-size: 2.8rem;
    font-weight: 700;
}

/* header styles */

/* navbar related styles */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 20px;
}

.nav-header{
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand{
    font-weight: 700;
    font-size: 3rem;
    margin: 0;
}

.brand-link{
    color: inherit;
    text-decoration: none;
}

.nav-item{
    list-style: none;
}

.nav-links{
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link{
    text-decoration: none;
    font-weight: 500;
}

.nav-link.active{
    color: #FF900E;
}

.nav-toggle{
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #FF900E;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
}

.nav-toggle span{
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background-color: #FF900E;
    border-radius: 2px;
}

.navbar, .banner{
    max-width: 1440px;
    margin: 0 auto;
}

/* banner related styles */
.banner-content{
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.banner-title{
    font-weight: 700;
    font-size: 4rem;
}

.banner-image{
    width: 100%;
}

/* footer styles */
.site-footer{
    max-width: 1440px;
    margin: 130px auto 40px;
    padding: 38px 20px;
    text-align: center;
    border-radius: 8px;
    background-color: #FFF4E7;
}

.site-footer p{
    margin: 0;
    color: #424242;
    font-size: 1.25rem;
    font-weight: 400;
}

/* inner page styles */
.page-hero{
    margin-top: 80px;
    text-align: center;
}

.page-hero p{
    max-width: 760px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.about-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card,
.contact-card,
.contact-form{
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

.about-card p,
.contact-card p{
    line-height: 1.7;
}

.contact-layout{
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: start;
}

.contact-layout > *{
    min-width: 0;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea{
    width: 100%;
    max-width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus{
    outline: none;
    border-color: #FF900E;
    box-shadow: 0 0 0 3px rgba(255, 144, 14, 0.2);
}

.contact-form .btn-primary{
    align-self: flex-start;
}

/* team and feature related styles */
.teams{
    align-items: center;
}

.team-img-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.our-features{
    margin-left: 130px;
    max-width: 530px;
}

#quick-list{
    font-weight: 500;
}

/* features section related styles */

.features{
    gap: 140px;
}

#feature-section-title{
    border-left: 5px solid #FF900E;
    padding-left: 20px;
}

.feature-card{
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.feature-card .feature-title{
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 0px;
    margin-bottom: 0px;
}

#experience-badge{
    padding: 45px 42px;
    font-size: 1.5rem;
    font-weight: 500;
    margin-left: -100px;
    margin-top: -100px;
}

#experience-year{
    font-size: 4rem;
    font-weight: 700;
}

.featured-architect img{
    width: 100%;
}

/* some facts related styles */
.facts-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.fact-card{
    border: 1px solid #FF900E;
    width: 240px;
    height: 240px;
    border-radius: 8px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.fact-number{
    font-size: 2.8rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 10px;
}

.fact-name{
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 10px;
}

.fact-description{
    max-width: 540px;
}


/* sponsor related styles */
.sponsor-info{
    max-width: 540px;
    margin: 50px auto;
    text-align: center;
}

.sponsor-companies{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.sponsor-companies img{
    filter: grayscale(100%);
}


/* responsive media query */
@media screen and (max-width: 576px) {
    .navbar,
    .features,
    .teams{
        flex-direction: column;
    }

    .navbar{
        align-items: stretch;
    }

    .nav-header{
        width: 100%;
        justify-content: space-between;
    }

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

    .team-img-container, 
    .facts-container, 
    .sponsor-companies
    {
        grid-template-columns: 1fr;
    }

    .facts-container{
        justify-items: center;
        gap: 24px;
    }

    .sponsor-companies{
        justify-items: center;
        gap: 50px;
    }

    .our-features{
        margin: 30px 20px 0;
    }

    .brand{
        font-size: 2rem;
        margin: 0;
    }

    .nav-links{
        display: none;
        gap: 16px;
        margin-top: 16px;
        padding: 16px;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
        width: 100%;
        flex-direction: column;
    }

    .nav-links.is-open{
        display: flex;
        align-items: center;
        text-align: center;
    }

    .banner,
    .teams,
    .features,
    .our-sponsors,
    .facts-container,
    main > section{
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-title{
        font-size: 2rem;
    }

    .banner-title{
        font-size: 2.4rem;
    }

    .site-footer{
        margin: 100px 16px 24px;
        padding: 28px 16px;
        border-radius: 6px;
    }

    .site-footer p{
        font-size: 1rem;
        line-height: 1.6;
    }

    .page-hero{
        margin-top: 50px;
    }

    .about-grid,
    .contact-layout{
        grid-template-columns: 1fr;
    }

    .about-card,
    .contact-card,
    .contact-form{
        padding: 20px;
    }

    .contact-form .btn-primary{
        width: 100%;
    }

    #experience-badge{
        margin-top: 20px;
        margin-left: 20px;
        padding: 28px 24px;
    }

    #experience-year{
        font-size: 2.5rem;
    }
}

/* medium size device */
@media screen and (min-width: 576px) and (max-width: 992px) {
    .teams, .features{
        flex-direction: column;
    }

    .about-grid,
    .contact-layout{
        grid-template-columns: 1fr;
    }

    .navbar,
    .banner,
    .teams,
    .features,
    .our-sponsors,
    main > section{
        padding-left: 24px;
        padding-right: 24px;
    }

    .brand{
        font-size: 2.3rem;
        margin: 0;
    }

    .nav-links{
        gap: 20px;
    }

    .about-card,
    .contact-card,
    .contact-form{
        padding: 24px;
    }

    .our-features{
        margin: 50px auto;
    }

    .sponsor-companies, .facts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        justify-items: center;
    }

    #experience-badge{
        margin-top: 20px;
        margin-left: 20px;
    }

    .site-footer{
        margin: 100px 24px 30px;
        padding: 32px 20px;
    }

    .site-footer p{
        font-size: 1.1rem;
    }
}
