/*
Theme Name: Loomis Centennial Hub
Theme URI: https://36.agency
Author: 36creative     
Author URI: https://36.agency
Description: Block theme designed to provide a flexible and easy to use editing experience.
Version: 2.2
Requires at least: 6.5.5
Tested up to: 6.5.5
Requires PHP: 8.1.23
Text Domain: blueprint
*/

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    background: #EEE8DC;
}

img {
    max-width: 100%;
    height: auto;    
}

.margin-top-auto {
    margin-top: auto !important;
}

.remove-margin {
    margin: 0 !important;
}

.remove-padding {
    padding: 0 !important;
}

header.wp-block-template-part {
    width: 100vw;
}

:root :where(.is-layout-constrained) > * {
    margin-block-start: 0;
}

footer {
    margin-top: 0;
}

.footer-copyright.wp-block-blueprint-grid >.container {
    grid-template-columns: 1fr 1fr;
}

#wp--skip-link--target {
    margin: 0;
}

.sr-only{
    display: none;
}

@media screen and (max-width: 767px) {
    .footer-copyright .wp-block-blueprint-grid-item {
        text-align: center;
        justify-content: center;
    }    

    .footer-copyright.wp-block-blueprint-grid >.container {
        grid-template-columns: 1fr;
    }
}


#hero{  
    > .container{
        display: flex;
        flex-direction: column;
        /* height: calc(100vh - (238px + 8px));
        min-height: 480px; */
        @media screen and (min-width: 768px) {
            display: grid;
            /* height: calc(100vh - (238px + 20px)); */
        }   
    }
    .intro-video {
        flex-grow: 1;
    }
    .intro-video, .intro-text{
        min-height: 10vh !important;
    }
}

.intro-video {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    @media screen and (min-width: 1032px) {
        border-top-left-radius: var(--wp--custom--border-radius--md);
    border-bottom-left-radius: var(--wp--custom--border-radius--md);
    }
}

.intro-text {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media screen and (min-width: 1032px) {
    .intro-text {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-top-right-radius: var(--wp--custom--border-radius--md);
        border-bottom-right-radius: var(--wp--custom--border-radius--md);
    }
}

.main-content{
    margin-bottom: 0 !important;
}

.hero-grid{
    .wp-block-blueprint-grid-item{
        @media screen and (max-width: 1023px) {
            min-height: 0 !important;
        }
    }
}


/*============================= Keyboard Accessible Focus =============================*/
a, button, .swiper-button-prev, .swiper-button-next {
    --outline-color: var(--wp--preset--color--vivid-red);
    outline: none;
    &:focus-visible{
        outline: 2px solid var(--outline-color);
        outline-offset: 6px;
        border-radius: 4px;
    }
}

/*
* Core button overrides
* ************************************************************************/  
.wp-element-button {
    --button-color: var(--wp--preset--color--white);
    --button-background-color: var(--wp--preset--color--brand-accent-light);
    --button-border-color: var(--wp--preset--color--brand-accent-light);

    --button-hover-color: var(--wp--preset--color--white);
    --button-hover-background-color: var(--wp--preset--color--brand-primary);
    --button-hover-border-color: var(--wp--preset--color--brand-primary);

    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    border: 0; 
    border-radius: var(--wp--custom--border-radius--sm);
    padding: 0 18px;
    height: 40px;
    
    line-height: 1.3;
    font-weight: 400;
    transition: all 0.2s ease-in-out 0s;
    text-decoration: none;

    color: var(--button-color);
    background: var(--button-background-color);
    border: 1px solid var(--button-border-color);
    
}

.wp-element-button__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wp-element-button .text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.wp-element-button svg path {
    transition: all 0.3s ease-in-out 0s;
    fill: currentColor;
    stroke: currentColor;
}

.wp-element-button svg line {
    transition: all 0.3s ease-in-out 0s;
    stroke: currentColor;
    fill: currentColor;
}

.wp-element-button:hover{
    color: var(--button-hover-color);
    background-color: var(--button-hover-background-color);
    border-color: var(--button-hover-border-color);
}

/*
* Block button variations
* ************************************************************************/
.is-style-secondary .wp-element-button{    
    --button-color: var(--wp--preset--color--brand-primary);
    --button-background-color: var(--wp--preset--color--white);
    --button-border-color: var(--wp--preset--color--white);

    --button-hover-color: var(--wp--preset--color--white);
    --button-hover-background-color: var(--wp--preset--color--brand-secondary);
    --button-hover-border-color: var(--wp--preset--color--brand-secondary);                 
}

.is-style-link .button-line {
    --button-line-color: var(--wp--preset--color--gray-300);
    --button-line-hover-color: var(--wp--preset--color--brand-secondary);
    display: block;
}
.is-style-link .wp-element-button{    
    --button-color: var(--wp--preset--color--white);
    --button-background-color: transparent;
    --button-border-color: transparent;

    --button-hover-color: var(--wp--preset--color--white);
    --button-hover-background-color: transparent;
    --button-hover-border-color: transparent;                 

    line-height: 181.818%;
    font-size: var(--wp--preset--font-size--custom-3);
    font-family: var(--wp--preset--font-family--ivyora-text);
    justify-content: space-between;
    padding: 15px 0;
    height: auto;
}
.is-style-link .wp-element-button svg {
    width: 11px;
    height: auto;
}
.is-style-link .wp-element-button:hover svg path, 
.is-style-link .wp-element-button:hover svg line {
    fill: var(--wp--preset--color--brand-secondary);
    stroke: var(--wp--preset--color--brand-secondary);
}

/*
* Gravity Forms block overrides
* ************************************************************************/  
.gform_wrapper {
    padding: 0 var(--wp--custom--spacing--30);
    margin-left: var(--wp--custom--spacing--10);
    margin-right: var(--wp--custom--spacing--10);
}  

footer.wp-block-template-part .gform_wrapper form {
    position: relative;
}

footer.wp-block-template-part p.gform_description,
footer.wp-block-template-part h2.gform_title,
footer.wp-block-template-part div.gform_confirmation_message {
    color: var(--wp--preset--color--white);
}

footer.wp-block-template-part h2.gform_title {
    font-size: 28px;
    margin-bottom: var(--wp--preset--spacing--20);
}

footer.wp-block-template-part .gform_fields .gfield {
    margin-top: var(--wp--preset--spacing--50);
    position: relative;
}

footer.wp-block-template-part .gform_fields .gfield .gform-field-label {
    position: absolute;
    line-height: 38px;
    font-size: 16px;    
    transform: translateY(0);    
    font-size: 16px;
    transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

footer.wp-block-template-part .gform_fields .gfield .gform-field-label.active {
    transform: translateY(-100%);
    font-size: 14px;
}

footer.wp-block-template-part .gform_fields .gfield input[type="email"] {
    background: transparent;
    border-radius: 0px;
    border: none;
    font-size: 16px;
    color: var(--wp--preset--color--white);
    padding-left: 0;
    border-bottom: solid 1px var(--wp--preset--color--white);
}

footer.wp-block-template-part .gform_wrapper .gform-footer {        
    position: absolute;
    top: 0;
    right: 0;
}

footer.wp-block-template-part .gform_wrapper .gform_button.button {
    font-size: 0 !important;
    background-color: transparent !important;
    line-height: 0;
    color: transparent;
    padding: 0 !important;    
}

footer.wp-block-template-part .gform_wrapper .gform-footer .label {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="11" viewBox="0 0 12 11" fill="none"><path d="M6.81362 1L11.5 5.5M11.5 5.5L6.81362 10M11.5 5.5L1 5.5" stroke="%234FA6E2" stroke-linecap="square" stroke-linejoin="round"/></svg>');
    background-size: 12px 11px;
    background-repeat: no-repeat;
    background-position: center; 
    display: block;
    width: 24px;
    height: 24px;
}

footer.wp-block-template-part .gform_wrapper .gform-footer .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--wp--preset--color--white);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: spinner 1s linear infinite;
    display: none;
}

footer.wp-block-template-part .gform_wrapper .gform-footer .gform-loader {
    display: none !important;
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

footer.wp-block-template-part .gform_wrapper form[data-active-form="true"] .gform-footer .label {
    display: none;
}

footer.wp-block-template-part .gform_wrapper form[data-active-form="true"] .gform-footer .spinner {
    display: block;
}


footer.wp-block-template-part .wp-block-blueprint-menu-link{
    padding: 0;
    @media screen and (max-width: 1023px) {
        margin-bottom: 0;
    }
}

footer.wp-block-template-part .wp-block-blueprint-row {
    @media screen and (max-width: 1023px) {
        flex-direction: column;
        padding-bottom: 1rem;
    }
}

footer.wp-block-template-part .wp-block-blueprint-paragraph {
    @media screen and (max-width: 1023px) {
        text-align: center;
    }
}