/*
Default install styles for the FSM Foundation
Version: 5.0.0
Description: Framework styles for FSM Foundation websites
Author: Full Spectrum Marketing
Author URI: http://www.fsm.agency
*/

html,
body {
    background-color: var(--background-primary) !important;
}

body {
    /* Font Smoothing (Keep) */
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

    /* Base Typography (Keep) */
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    /* Rendering (Optional, Keep or remove/change to 'auto') */
    text-rendering: optimizeLegibility;

    /* Modern Text Control (Keep) */
    text-wrap: pretty;

    /* Touch optimization (Optional, can move to specific elements) */
    touch-action: manipulation;
}

/* Fix Divi Theme Builder Header */
.et-l--header {
    position: relative;
    z-index: 10;
}

.et-l--header #main-header,
.et-l--header #top-header {
    padding: 0;
    z-index: 99999;
}

#main-header .et_menu_container.et_pb_row,
#top-header .et_pb_row,
#page-container #et-boc .et-l #top-header .et_pb_row,
#page-container #et-boc .et-l #main-header .et_menu_container.et_pb_row {
    max-width: var(--header-max-width) !important;
    width: 100% !important;
    padding-left: var(--header-inline-inset);
    padding-right: var(--header-inline-inset);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

#main-header .logo_container,
#main-header .logo_container.et_pb_column {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: var(--header-logo-max-width);
}

#main-header>.et_menu_container>.et_pb_column {
    width: auto !important;
    margin: auto 0;
}

#main-header #logo {
    max-width: var(--header-logo-max-width);
    width: 100%;
    height: auto;
}

#main-header #logo img {
    width: 100%;
    height: auto;
    max-width: var(--header-logo-max-width);
    aspect-ratio: 151 / 98;
    object-fit: contain;
}

/* Remove Divi Bottom Bar */
#footer-bottom {
    display: none !important;
}

/* Basic Gravity Forms */
#page-container .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
#page-container .gform_wrapper textarea.textarea,
#page-container div.form_saved_message div.form_saved_message_emailform form input[type=text] {
    border: 1px solid rgba(0, 0, 0, .5);
    font-size: 1em;
    padding: 1em 1em;
    min-height: auto;
    max-height: none;
    background: rgba(255, 255, 255, .5);
    border-radius: 5px;
}

#page-container .gform_wrapper label {
    font-size: 1em;
    line-height: 1em;
}

.gform_wrapper input[type=text]:focus,
.gform_wrapper input[type=search]:focus,
.gform_wrapper input[type=radio]:focus,
.gform_wrapper input[type=tel]:focus,
.gform_wrapper input[type=time]:focus,
.gform_wrapper input[type=url]:focus,
.gform_wrapper input[type=week]:focus,
.gform_wrapper input[type=password]:focus,
.gform_wrapper input[type=checkbox]:focus,
.gform_wrapper input[type=color]:focus,
.gform_wrapper input[type=date]:focus,
.gform_wrapper input[type=datetime]:focus,
.gform_wrapper input[type=datetime-local]:focus,
.gform_wrapper input[type=email]:focus,
.gform_wrapper input[type=month]:focus,
.gform_wrapper input[type=number]:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, .2);
}

body #page-container .et_pb_button,
body #page-container .gform_button {
    cursor: pointer;
}

/* Responsive font sizes */

.et_divi_theme h1,
.et_divi_theme h2,
.et_divi_theme h3,
.et_divi_theme h4,
.et_divi_theme h5,
.et_divi_theme h6 {
    padding-bottom: 0;
    margin-bottom: .5rem;
}

/* Fix blurb max-width issue */

#page-container .et_pb_blurb_content {
    max-width: 100%;
}


/* Side-By-Side */
.side-by-side {
    display: flex;
    justify-content: center;
    margin-top: 3vh;

    a:first-child {
        margin-right: 1vh !important;

    }
}


@media only screen and (max-width:980px) {

    .side-by-side {
        display: flex;
        flex-direction: column;
    }

    .side-by-side a:first-child {
        margin-right: 0 !important;
        margin-bottom: 1vh !important;
    }

    ul#menu-footer-menu-1 {
        padding-left: 0;
    }

    #page-container .et_pb_row_0_tb_footer.et_pb_row.et_pb_gutters3.et_block_row {
        padding-bottom: unset;
    }

    .et_pb_row_2_tb_footer.et_pb_row.et_flex_row {
        display: flex;
        align-items: center;
        flex-direction: column-reverse;
    }

    .et_pb_row_2_tb_footer.et_pb_row.et_flex_row {
        display: flex;
        align-items: center;
        flex-direction: column-reverse;
    }

    #top-header .et_pb_row .et_pb_column {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }

    #main-header {
        margin-top: 0px ! IMPORTANT;
        background: transparent !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .logo_container img {
        width: 5.91494rem;
        height: 3.80781rem;
    }

    ul#mega-menu-primary-menu {
        background: #1E1A1B !important;
    }

}

@media only screen and (max-width: 1152px) {
    #main-header .logo_container,
    #main-header .logo_container.et_pb_column,
    #main-header #logo {
        max-width: var(--header-mobile-logo-max-width);
    }

    #main-header #logo img {
        max-width: var(--header-mobile-logo-max-width);
        max-height: var(--header-mobile-logo-height);
        width: auto;
        height: auto;
        aspect-ratio: 151 / 98;
        object-fit: contain;
    }

    #page-container #main-header {
        background: transparent !important;
    }

    #mega-menu-wrap-primary-menu .mega-menu-toggle {
        z-index: 1;
        cursor: pointer;
        background: transparent;
        border-radius: 4px;
        line-height: 40px;
        height: 50px;
        text-align: left;
        user-select: none;
        outline: none;
        white-space: nowrap;
        display: flex;
        position: relative;
        border: 2px solid #B92732;
    }
}


div#main-footer {
    padding-top: 13rem;
}


.flex {
    display: flex;
}

.grid {
    display: grid;
}

.left {
    text-align: left;
    align-items: flex-start;
}

.right {
    text-align: right;
    align-items: flex-end;

}

.width-500 {
    max-width: 32rem;
}

.width-600 {
    max-width: 38rem;
}

.width-700 {
    max-width: 44rem;
}

.width-800 {
    max-width: 50rem;
}

/* Remove spacing and max-width from Post Content Module
.et_pb_module.et_pb_post_content .et_pb_row,
.et_pb_module.et_pb_post_content .et_pb_section {
    padding: 0;
    width: 100%;
}*/

/* Footer icon styles 
footer .et_pb_social_media_follow li a.icon:before {
    font-size: 20px !important;
    transition: 0.3s ease all;

}

footer li.et_pb_social_icon:hover {
    scale: 1.1;
    transition: 0.3s ease all;

}

footer a:not(.et_pb_button, .et_pb_social_icon a) {
    border-radius: 4px;
    padding: 2px;
    transition: ease all .2s;
    display: inline;
    overflow: hidden;
    text-decoration: underline;
}

footer a:not(.et_pb_button, .et_pb_social_icon a):hover {
    border-radius: 3px;
    background-color: rgba(21, 43, 55, .2);
    transition: ease all .2s;
}
*/