html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

:root {
    /* global colors */
    --primary: #02258c;
    --secondary: #1354e5;
    --text: #4a4a4a;
    --accent: #021235;
    --background-primary: #ffffff;
    --background-secondary: #f7f7f7;
    
    /* global values */
    /* --nav-height: 6.5rem; */
    /* --footer-height: 25vh; */

    /* root font size */
    font-size: 15px;

    --nav-height: 6rem;
    --footer-height: 5rem;
}

html, body {
    /* height, margin, padding required in html to allow height percentages elsewhere */
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    min-height: 100%;
    font-size: 1rem;
}

p, li {
    line-height: 1.6rem;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

h1 {

}

h2 {

}

h3 {
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: background-color .5s, color .5s;
}

a:visited {
    color: var(--secondary);
}

a:hover,
a:focus {
    color: var(--accent);
    transition: background-color .4s, color .4s;
}

img {
    max-width: 100%;
    height: auto;
}

a#home_link img {
    width: auto;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-width: 1px 0 0 1px;
    margin: 0 0 1.5em;
    width: 100%;
}

td, th {
    padding: 8px;
    border-width: 0 1px 1px 0;
}

table, td, th {
    border: .5px solid #ddd;
}

/* nav */
#main_nav {
    font-weight: 500;
    height: var(--nav-height);
    align-items: center;
    padding: 0 2.333em;
    display: flex;
    justify-content: space-between;
    clear: both;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 100%;
    position: relative;
}

#main_nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    list-style: none;
    margin: 0;
}

/* image */
#main_nav > #home_link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#main_nav > #home_link > img {
    max-height: 3rem;
}

#main_nav > nav {
    height: 100%;
}

#main_nav > nav li {
    height: 100%;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
}

#main_nav > nav li > a {
    height: 100%;
    display: flex;
    align-items: center;
    scale: 1;
    color: var(--accent);
    white-space: nowrap;
}

#main_nav > nav li > a:focus,
#main_nav > nav li:focus-within > a:hover,
#main_nav > nav li:hover > a {
    color: var(--secondary);
}

#main_nav > nav li:focus-within ul,
#main_nav > nav li:hover ul {
    opacity: 1;
    pointer-events: all;
}

#main_nav > nav ul > li > ul {
    width: 100%;
    padding: 0;
    background-color: white;
    position: absolute;
    top: 100%;
    right: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    flex-direction: column;
}

.pretend_content {
    width: 100%;
    min-height: 46.5rem;
    background-color: #161b43;
}

#main_nav > nav li.page.contact-us a {
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: white;
    border-color: var(--secondary);
    background-color: var(--secondary);
    padding-top: 10px;
    padding-right: 40px;
    padding-bottom: 10px;
    padding-left: 40px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1em;
    height: 2.3rem;
    border-radius: 4px;
}

#main_nav .portal a {
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    border:2px solid var(--secondary);
    color: var(--secondary);
    border-color: var(--secondary);
    background-color: white;
    padding-top: 10px;
    padding-right: 40px;
    padding-bottom: 10px;
    padding-left: 40px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1em;
    height: 2.3rem;
    border-radius: 4px;
}
#main_nav .portal a:hover {
    border-color:var(--primary);
    background-color: var(--primary);
    color:white;
}

#main_nav > nav li.page.contact-us a:hover {
    color: white;
    background-color: var(--primary);
}

#main_nav > nav > ul > li.page:is(.about, .our-products) > a::after,
#main_nav > nav > ul > li.page:has(ul) > a::after {
    margin-left: 0.75rem;
    content: "";
    transition: none;
    font-size: .75rem;
    background-image: url(/templates/spect/assets/nav/chevy.png);
    width: 6px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(90deg);
}

/* sets content min height so footer never leaves bottom */
#content {
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
    margin: auto;
}

.text-cntr {
    padding: 5rem 3rem;
}

.text-cntr .text {
    max-width: 120ch;
    margin: auto;
}

.text-cntr :first-child:is(h3) {
    color: var(--primary)
}

/* footer */
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.333em;
    min-height: var(--footer-height);
    color: #4a4a4a;
}

footer p {
    margin: 1rem;
    color: var(--font);
    font-weight: 400;
}

footer a {
    height: 100%;
    color: var(--primary);
}

footer a img {
    height: 1.1rem;
}

/* buttons */
.button {
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: white;
    border-color: var(--secondary);
    background-color: var(--secondary);
    padding-top: 10px;
    padding-right: 40px;
    padding-bottom: 10px;
    padding-left: 40px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .5s, color .5s;
    display: block;
    text-align: center;
}

.button:visited {
    color: white;
}

.button:hover {
    color: white;
    background-color: var(--primary);
    transition: background-color .4s, color .4s;

}

.button.light {
    background-color: white;
    color: var(--primary);
}

.button.light:hover {
    background-color: whitesmoke;
}

/* contact form */
#contact_form, .contact-banner {
    background-image: linear-gradient(180deg, var( --primary ) 0%, var( --accent ) 100%);
    padding: 5rem 3rem;
}

.contact-us #contact_form {
    background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    padding: 0;
}

#contact_form .contact-form-contents {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#contact_form .description {
    color: white;
    width: 35%;
    padding-right: 5%;
}

.contact-us #contact_form .description {
    display: none;
}

#contact_form .description h3 {
    font-weight: 500;
    font-size: 1.875rem;
}

.separator {
    width: 125px;
    border-top: 2px solid white;
    display: flex;
    margin: 0;
    direction: ltr;
    margin-bottom: 1.5rem;
}

.separator.blue {
    border-top: 2px solid var(--primary);
}

#contact_form .form {
    width: 60%;
    background-color: white;
    padding: 3rem;
    border-radius: 5px;
}

.contact-us #contact_form .form {
    width: 100%;
}

#contact_form a,
#contact_form a:visited,
#contact_form a:hover {
    font-weight: bold;
    color: white;
}

#contact_form .required label::after {
    text-transform: lowercase;
    content: " *";
}

#contact_form .form_contain {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#contact_form .form_field {
    width: 49%;
    margin-bottom: 1rem;
}
.small-spect-order-form #contact_form .form_field.field.field_id_email,
.acr-order-form #contact_form .form_field.field.field_id_email,
#contact_form .form_field.field_id_petap,
#contact_form .form_field.field_id_company, 
#contact_form .form_field.field_id_message {
    width: 100%;
}

#contact_form .form_field.field_id_message textarea {
    height: 7.5rem;
}


#contact_form .control {
    margin-top: .5rem;
}
#contact_form .label {
    min-height: 1rem;
    min-width: 1rem;
    display: block;
}


.acr-order-form section.contain, .small-spect-order-form section.contain {
    text-align: center;
}

.acr-order-form section#contact_form, .small-spect-order-form section#contact_form  {
    padding-top: 0;
}

input:not(input[type="file"]), 
textarea, 
select {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    display: inline;
    padding: .5rem;
    height: 3rem;
    border-radius: 5px;
    border-color: #919191;
    background-color: white;
    width: 100%;
    caret-color: var(--primary);
    resize: none;
    border-style: solid;
    border-width: 1px;
    color: black;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #02258c;
    color: var(--text-color);
    box-shadow: 0 1px 1px rgb(0 0 0 / 8%) inset, 0 0 8px rgb(2 37 140 / 60%);
}

label.checkbox {
    display: flex;
    align-items: center;
}

input#quoteconsent {
    width: fit-content;
    height: fit-content;
}

/* hero */

.hero.homepage {
    --hero-height: 36.71875rem;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
    --hero-height: 36.71875rem;
    height: var(--hero-height);
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.hero h2 {
    margin: 0;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    font-weight: 400;
}

.hero img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    position: absolute;
    height: var(--hero-height);
}

.hero > div.description {
    z-index: 1;
    text-align: center;
}

.hero.homepage > div.description {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;

    text-align: left;
}

/* TODO: get this working */
.blue_overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    opacity: 0.7;
    /* z-index: 1; */
    position: absolute;
    height: var(--hero-height);
    width: 100%;
}

.contain {
    max-width: 1140px;
    padding: 2rem 0;
    margin-left: auto;
    margin-right: auto;
}

.banner_section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0;
    gap: 4rem;
}
.banner_section_wrapper:nth-child(even) .banner_section {
    flex-direction: row-reverse;
}
.banner_section_wrapper:nth-child(even) {
    background-color: var(--background-secondary);
}
.banner_section .desc_cntr {
    width: 60%;
    line-height: 2.5rem;
}
.banner_section .desc_cntr h3 {
    color: var(--primary);
}
.banner_section .img_cntr {
    width: 40%;
}
.banner_section .img_cntr img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5)
}

.alert.notification {display:none;}

.captcha-field {
    max-width: 100%;
    overflow: hidden;
}

@media only screen and (max-width: 1200px) {
    .banner_section_wrapper {
        padding: 5%;
    }
    .contain {
        max-width: 80%;
    }
}

@media only screen and (max-width: 900px){
    .distributor_container .distributor_wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

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


    .banner_section {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .banner_section_wrapper:nth-child(even) .banner_section {
        flex-direction: column-reverse;
    }
    .banner_section .desc_cntr, .banner_section .img_cntr {
        width: 100%;
    }

    #contact_form .contact-form-contents {
        flex-direction: column;
    }
    #contact_form .contact-form-contents .description, #contact_form .contact-form-contents .form {
        width: 100%;
    }
    #contact_form .field {
        width: 100%;
    }

    .people_list_wrapper {
        flex-direction: column;

        --image_size: 100% !important;
    }
    .product_wrapper .product {
        width: 45%;
    }
    .product_flex_wrapper {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .product_category_wrapper {
        width: 80%;
        margin: auto;
    }
    
    .product_flex_wrapper .product_flex_one, .product_flex_wrapper .product_flex_two {
        width: 100%;
    }
    .blog_wrapper {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .blog_wrapper .blog_items, .blog_wrapper .blog_nav {
        width: 100%;
        padding: 0;
    }
    .blog_wrapper .blog_items {
        padding-right: 0;
        border-right: 0px solid white;
    }

    footer {
        flex-direction: column;
        font-size: .9rem;
        text-align: center;
    }

    footer a img {
        height: 1rem;
    }
}