/* Ballard Consulting Group main style sheet */

@import url(reset.css);
@import url(small.css);
@import url(medium.css);
@import url(large.css);

/* Variables */
:root {
    --background: #f6f6f6;
}

/* General Styles */
html {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

/* Main Text Styles */
h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

strong {
    font-weight: 600;
}

p {
    margin-bottom: 10px;
    line-height: 25px;
}


/* Header */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

    .logo_box {
    }

        .logo_box img {
        }

    .main_nav_box {
    }

        .main_nav_box ul {
        }

            .main_nav_box ul li {
                display: inline;
                margin: 0 19px;
                font-size: 1.4rem;
            }

                .regular-nav {
                    color: rgb(44, 46, 45);
                }

                .active-nav {
                    color: rgb(7, 133, 93);
                }

/* Footer */
.footer_container {
    text-align: center;
}

    .footer_box {
        font-size: 0.8rem;
    }

    .designer_box,
    .designer_box a {
        color: #555;
        font-size: 0.75rem;
        margin-top: 10px;
    }

/* Header Image Section */
.header-image-container {
    height: 350px;
    margin: 30px 0;
    display: flex;
    align-items: center;
}

    .header-image-text { /* For good clamp info, see https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport */
        text-align: center;
        font-size: clamp(2rem, 1.7500rem + 1.0000vw, 3rem);
        padding: 7px;
        width: 90%;
        margin: 0 auto;
        background-color: rgba(13, 13, 232, 0.4);
        color: #fff;
        height: auto;
        /* position: relative; */ /* Old styline. Delete when new flexbox styling confirmed. */
        /* top: 10%; */ /* Old styline. Delete when new flexbox styling confirmed. */
    }

/* Shared Styles */
.intro-text-inner-box {
    width: 90%;
    margin: 0 auto;
}

/* Home */
.home-tile-container {
}

    .home-tile-row {
        /* display: flex; */ /* Add back in if switching back to flexbox */
        align-items: center;
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

        .tile-color-1 {
            background-color: rgba(169,169,169);
        }

        .tile-color-2 {
            background-color: rgba(0,0,128);
        }

        .tile-color-3 {
            background-color: rgba(240,128,128);
        }

        .home-tile-text-box { /* For good clamp info, see https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport */
            font-size: clamp(1rem, 0.5000rem + 2.0000vw, 3rem);
            font-weight: 700;
            color: #fff;
            flex: 0 0 50%;
        }

            .home-title-text {
                padding: 5px;
            }

        .home-tile-image-box {
            /* width: 50%; */ /* Add back in if switching back to flexbox */
            height: 100%;
        }

            .home-tile-image-box img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                /* display: block; */ /* Removes annoying extra space below images */ /* Add back in if switching back to flexbox */
            }

/* Services */
.services-container {
}

    .services-intro-text-container {
        background-color: var(--background);
        padding: 10px;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .services-main-text-container {
        max-width: 90%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

        .service-box { /* For good clamp info, see https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport */
            border: 2px solid darkgreen;
            padding: 10px;
            width: clamp(30%,300px,90%);
            box-shadow: 4px 4px #f6f6f6;
            border-radius: 15px;
            background: #f6f6f6;
        }

/* Portfolio */
.portfolio-container {
}

    .portfolio-intro-text-container {
        background-color: var(--background);
        padding: 10px;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .portfolio-section-header {
        text-align: center;
        margin-top: 30px;
    }    

    .portfolio-main-container {
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 35px;
    }

        .portfolio-box { /* For good clamp info, see https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport */
            border: 1px solid #ccc;
            background-color: var(--background);
            padding: 5px;
            width: clamp(30%,300px,90%);
            /* flex: 0 0 350px; */
        }

            .portfolio-image-box {
                width: 100%;
            }

                .portfolio-image-box img {
                    max-width: 100%;
                }

            .portfolio-case-study-title-box {
                font-size: 1.2rem;
                color: rgb(0, 128, 0);
                margin: 7px 0;
                text-align: center;
            }

            .portfolio-intro-text-box {
                margin-bottom: 10px;
            }

            .portfolio-link-box {
                text-align: center;
                margin-bottom: 10px;
            }

                .portfolio-link-box a {
                    font-weight: 700;
                    background-color: rgb(2, 53, 2);
                    color: #fff;
                    padding: 5px;
                }

                    .portfolio-link-box a:hover {
                        background-color: rgb(5, 136, 5);
                    }

/* Case Study */
.case-study-container {
}

    .case-study-intro-text-container {
        background-color: var(--background);
        padding: 10px;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .case-study-main-text-container {
        max-width: 90%;
        margin: 0 auto;
    }

        .case-study-main-text-box {
        }

        .case-study-portfolio-link-box {
            margin: 30px 0;
        }

            .case-study-portfolio-link-box a {
                border: 1px solid darkgreen;
                padding: 5px;
                color: darkgreen;
                border-radius: 15px;
            }

        .case-study-press-link-box {
            display: inline-block;
            padding: 5px;
            border-top: 1px solid darkgreen;
            border-bottom: 1px solid darkgreen;
            margin: 30px 0;
        }

    .case-study-gallery-container {
        max-width: 90%;
        margin: 30px auto 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

        .case-study-image-box {
            max-width: 300px;
        }

            .case-study-image-box img {
                max-width: 100%;
                display: block; /* Removes the annoying extra image below img */
            }

        .case-study-image-description-box {
            font-size: 0.8rem;
            color: #999;
            font-style: italic;
            text-align: center;
        }

/* About */
.about-container {
}

    .about-intro-text-container {
        background-color: var(--background);
        padding: 10px;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-main-text-container {
        max-width: 90%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-content: center;
    }

        .team-member-box {
            border: 2px solid #ccc;
            padding: 10px;
            flex: 0 0 90%;
        }

            .team-member-box img {
                float: left;
                width: 200px;
                margin-right: 10px;
                shape-outside: circle(45% at 95px 95px);
                shape-margin: 22px;
            }

            .team-member-details-box {
            }

            .team-member-social-link-box a {
                background-color: rgb(8, 1, 66);
                padding: 5px;
                color: #fff;
                cursor: pointer;
                font-size: 1.2rem;
            }

                .team-member-social-link-box a:hover {
                    background-color: rgb(23, 6, 184);
                }

/* Contact Form (embedded in various pages) */
.contact-form-container {
    background-color: rgba(0,100,0);
    width: 100%;
    padding: 15px 0 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

    .contact-form-inner-box {
        color: #fff;
        width: 500px;
    }

        .form-info-box {
            text-align: center;
            width: 100%;
            color: #fff;
            font-size: 1.2rem;
        }

        .contact-form-inner-box form {
            max-width: 90%;
            margin: 0 auto;
        }

        .contact-form-row {
            margin-top: 20px;
            width: 100%;
        }

            .contact-form-row p {
            }

            .contact-form-full-textbox,
            .contact-form-textarea {
                width: 100%;
                padding-left: 5px;
                font-size: 1.1rem;
                color: #ccc;
                background: none;
            }

            .contact-form-full-textbox {
                height: 40px;
                border-bottom: 1px solid #ccc;
                border-top: none;
                border-right: none;
                border-left: none;
            }

            .contact-form-textarea {
                height: 125px;
                border: 1px solid #ccc;
                resize: none;
            }

            .contact-form-submit {
                border: none;
                width: 100%;
                padding: 3px;
                background-color:rgb(7, 133, 93);
                color: #fff;
                font-size: 1.1rem;
                cursor: pointer;
            }

            .contact-form-submit:hover {
                background-color:rgb(127, 255, 212);
                color: #000;
            }

.contact_form_error_box {
    color: red;
}

/* Contact Form Success */
.contact-success-container {
}

    .contact-success-intro-text-container {
        background-color: var(--background);
        padding: 10px;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
        color: rgb(0, 128, 0);
        font-weight: 700;
        font-style: italic;
    }