/*
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

DEVELOPER NOTES:
- #page-container selector is intentionally used for scoping to override Divi
  and WordPress core styles, ensuring proper specificity.
- Utility classes (.flex, .grid, .left, .right) are framework utilities available
  for use across the website.
*/

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

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

    /* Rendering */
    text-rendering: optimizeLegibility; 

    /* Modern Text Control */
    text-wrap: pretty;
    
    /* Touch optimization */
    touch-action: manipulation; 
}

/* Fix Divi Theme Builder Header */
.et-l--header #main-header {
    padding: 0;
    z-index: 99999;
}

#main-header .et_menu_container.et_pb_row {
    max-width: 1200px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.et_pb_row.et_menu_container::after {
    display: none;
}

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

#main-header #logo {
    max-width: 180px;
}

/* 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 {
    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 {
        flex-direction: column;
    }

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

.flex {
    display: flex;
}

.grid {
    display: grid;
}

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

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

}
