/* html and body*/

html {
    font-size: 62.5%;
}

body {
    margin: 0rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: rgb(255, 255, 255);
}

.spacer {
    flex: 1;
}

/* primary header */
.primary-header {
    z-index: 1000;
    display: flex;
    flex-direction: row;
    background-color: rgb(10, 10, 10);
    position: fixed;
    top:0;
    left:0;
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
}

.logo {
    object-fit: contain;
    height: 10rem;
}

.logo-words {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.logo-words-top {
    color: rgb(217, 144, 22);
    font-size: 3rem;
}

.logo-words-bottom {
    color: white;
    font-size: 3rem;
}

.primary-navigation-bar {
    margin-left: auto; 
    margin-right: 6rem;
}

.primary-navigation {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 5rem;
    margin: 4rem 0 0 0;
}

.navigation-link {
    color: rgb(242, 242, 242);
    text-decoration: none;
    font-size: 2.3rem;
}

.navigation-link:hover {
    color: rgb(217, 144, 22);
}

.social-media-link {
    font-size: 3.3rem;
    color:rgb(242, 242, 242);
    cursor: pointer;
}

.social-media-link:hover {
    color: rgb(217, 144, 22);
}

/* about us page */

#about-us-page-who-we-are-section {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    margin-left: 5rem;
    margin-right: 5rem;
    margin-top: 12rem;
}

#about-us-page-who-we-are-section > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

#about-us-page-who-we-are-section > div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#about-us-page-who-we-are-section > div h1 {
    font-size: 4.5rem;
    letter-spacing: 1rem;
    word-spacing: 0.2rem;
    color: rgb(217, 144, 22);
    border-bottom: 0.1rem solid black;    
}

#about-us-page-who-we-are-section > div p {
    font-size: 2.5rem;
    word-wrap: break-word;
    text-align: left;
    line-height: 3.5rem;
    display: block;
    padding: 0rem;
    margin: 0rem;
}

#about-us-page-our-team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

#about-us-page-our-team-section h1 {
    font-size: 4.5rem;
    letter-spacing: 1rem;
    word-spacing: 0.2rem;
    color: rgb(217, 144, 22);
    margin-bottom: 0rem;
}

#about-us-page-our-team-section > p {
    font-size: 2.5rem;
    word-wrap: break-word;
    text-align: left;
    line-height: 3.5rem;
    display: block;
    padding: 0rem;
    margin: 0rem;
    margin-bottom: 2rem;
    margin-left: 5rem;
    margin-right: 5rem;
}

#about-us-page-our-team-section > hr {
    width: 75%;
    background-color: black;
    margin-bottom: 2rem;
}

#about-us-page-our-team-section > div {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
}

#about-us-page-our-team-section > div figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 30vw;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.05);
}

#about-us-page-our-team-section > div figure img {
    display: block;
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

#about-us-page-our-team-section > div figure figcaption {
    display: flex;
    flex-direction: column;
}

#about-us-page-our-team-section > div figure figcaption h3 {
    font-size: 2.5rem;
    padding: 0;
    margin: 0;
    text-align: center;
}

#about-us-page-our-team-section > div figure figcaption span {
    font-size: 2rem;
    padding: 0;
    margin: 0;
    text-align: center;
}

 /* project gallery page */

 #project-gallery-our-work-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 9rem;
}

#project-gallery-our-work-section > h1 {
    font-size: 4.5rem;
    letter-spacing: 1rem;
    word-spacing: 0.2rem;
    color: rgb(217, 144, 22);
}

#project-gallery-our-work-section > div {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(4, auto);
}

#project-gallery-our-work-section > div figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 40vw;
}

#project-gallery-our-work-section > div figure img {
    display: block;
    width: 100%;
}

/* our services page */

#our-services-page-main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8rem;
    margin-left: 5rem;
    margin-right: 5rem;
}

#our-services-page-main-section > h1 {
    font-size: 4.5rem;
    letter-spacing: 1rem;
    word-spacing: 0.2rem;
    color: rgb(217, 144, 22);
    margin-bottom: 2rem;
}

#our-services-page-main-section > div {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(3, auto);
    gap: 5rem;
    margin-bottom: 2rem;
}

#our-services-page-main-section > div > div {
    display: flex;
    flex-direction: column;
}

#our-services-page-main-section > div > div h3 {
    font-size: 2.7rem;
    color: black;
    max-width: 50rem;
    margin: 0;
    padding: 0;
}

#our-services-page-main-section > div > div ul li {
    font-size: 2.3rem;
    margin-top: 1rem;
}

/* contact us page */

#contact-us-page-main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

#contact-us-page-main-section > h1 {
    font-size: 4.5rem;
    letter-spacing: 1rem;
    word-spacing: 0.2rem;
    color: rgb(217, 144, 22);
    margin-top: 12rem;
}

#contact-us-page-main-section > hr {
    width: 75%;
    background-color: black;
    margin-top: 0rem;
    margin-bottom: 3rem;
}

#contact-us-page-main-section > div {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(2, auto);
    flex: 1;
    gap: 8rem;
}

#contact-us-page-main-section > div > div {
    display: flex;
    flex-direction: column;
}

#contact-us-page-main-section > div > div h4 {
    font-size: 3rem;
    margin: 0rem;
    padding: 0rem;
    margin-bottom: 1rem;
}

#contact-us-page-main-section > div > div span {
    font-size: 2rem;
    color: rgb(107, 107, 107);
}

#social-media-icon-bar {
    display: flex;
    flex: row;
    gap: 2rem;
}

#social-media-icon-bar > ion-icon {
    font-size: 3.3rem;
    color:rgb(107, 107, 107);
    cursor: pointer;
}

#social-media-icon-bar > ion-icon:hover {
    color: rgb(217, 144, 22);
}

/* primary footer */

.primary-footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: black;
    padding: 1rem 2rem 2rem;
    align-items: center;
    box-sizing: border-box;
}

.footer-top-section {
    display: flex;
    flex-direction: row;
    gap: 15rem;
    margin-bottom: 1rem;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    align-items: flex-start;
}

.footer-navigation ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0rem;
    margin: 0rem;
    gap: 1rem;
    text-align: left;
}

.footer-navigation h1 {
    font-size: 2.5rem;
    padding: 0rem;
    margin: 0rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-navigation > ul > li {
    display: flex;
    flex-direction: column;
}

.footer-navigation-link {
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
}  

.footer-navigation-link:hover {
    color: rgb(217, 144, 22);
}

.footer-contact-info-text {
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    word-wrap: break-word;
}  

.footer-copyright-section {
    text-align: center;
    font-size: 1.5rem;
    color: white;
    margin-top: 1rem;
}

.primary-footer hr {
    width: 70%;
    background-color: white;
}

/* general classes */

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explore-button {
    margin-top: 5rem;
    margin-bottom: 5rem;
    font-size: 2rem;
    width: 25rem;
    height: 5rem;
    color: white;
    background-color: rgb(217, 144, 22);
    text-decoration: none;
    border-width: 0rem;
}

.explore-button:hover {
    background-color: black;
}

/*re-configurations for mobile devices*/

@media (max-device-width: 55em) {
    /* primary header */

    .primary-navigation {
        z-index: 1000;
        flex-direction: column;
        gap: 6rem;
        position: fixed;
        inset: 0 0 0 55%;
        background-color: hsla(38, 77%, 39%, 0.97);
        margin: 0;
        padding:  min(30vh, 12rem) 6rem;

        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        display: block;
        font-size: 4.5rem;
        color: rgb(242, 242, 242);
        border: 0;
        aspect-ratio: 1 / 1;
        top: 2rem;
        right: 2rem;
    }
}


@media (max-device-width: 65em) {
    /* about us page */

    #about-us-page-who-we-are-section {
        flex-direction: column;
        gap: 1rem;
    }

    #about-us-page-who-we-are-section > div h1 {
        font-size: 3.5em;
        letter-spacing: 0.5rem;
        word-spacing: 0.1rem;
    } 

    #about-us-page-our-team-section {
        margin-top: 0rem;
    }
    
    #about-us-page-our-team-section > div  {
        display: flex;
        flex-direction: column;
        gap: 5rem;
    }

    #about-us-page-our-team-section> div figure {
        width: 80vw;
    }

    #about-us-page-our-team-section > p {
        font-size: 2.5rem;
    }

    /* project gallery page */

    #project-gallery-our-work-section > h1 {
        font-size: 3.5em;
        letter-spacing: 0.5rem;
        word-spacing: 0.1rem;
    }

    #project-gallery-our-work-section > div {
        display: flex;
        flex-direction: column;
    }

    #project-gallery-our-work-section > div figure {
        width: 80vw;
    }

    /* our services page */

    #our-services-page-main-section > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #our-services-page-main-section > div > div {
        text-align: center;
    }

    /* primary footer */

     .footer-top-section {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .footer-navigation {
        align-items: center;
    }

    .footer-navigation ul {
        text-align: center;
    }

    .footer-copyright-section {
        font-size: 1.2rem;
    }

    /* general classes */

    .explore-button {
        font-size: 1.8rem;
        width: 15rem;
        height: 5rem;
        color: white;
    }  
}

@media (max-device-width: 52em) {
    /* contact us page */

    .item-1 {order: 2}
    .item-2 {order: 1}

    #contact-us-page-main-section > div {
        gap: 1rem;
        padding: 3rem;
    }

    #contact-us-page-main-section > div > div h4 {
        font-size: 2.5rem;
        margin: 0rem;
        padding: 0rem;
        margin-bottom: 2rem;
    }
    
    #contact-us-page-main-section > div > div span {
        font-size: 1.8rem;
        color: rgb(107, 107, 107);
    }

    /* primary header */

    .social-media-link {
        font-size: 2rem;
    }
}