/* Add this line if WooCommerce is used on this site */
/* @import "woo-style.css"; */

/* Child theme fonts */
:root {
    --font-family--default: 'brown-pro';
    --font-family--h--1: var(--font-family--default);
    --font-family--h--2: var(--font-family--h--1);
    --font-family--h--3: var(--font-family--h--1);
    --font-family--h--4: var(--font-family--h--1);
    --font-family--h--5: var(--font-family--h--1);
    --font-family--h--6: var(--font-family--h--1);
    --font-family--h--2--footer: var(--font-family--h--1);
    --font-family--h--3--footer: var(--font-family--h--1);
    --font-family--h--4--footer: var(--font-family--h--1);
    --font-family--main-navigation: var(--font-family--default);
    --font-family--dropdown: var(--font-family--default);
    --font-family--megamenu--heading: var(--font-family--h--1);
    --font-family--gallery--caption: var(--font-family--default);
    --font-family--collapsible: var(--font-family--default);
    --font-family--tab: var(--font-family--default);
    --font-family--button: var(--font-family--default);
    --font-family--h--sub-heading--0: var(--font-family--h--1);
    --font-family--h--lead-text--0: 'proxima-sera';
}

/* Mobile navigation background */
@media only screen and (max-width: 1280px) {
    nav.imt-main-nav.offcanvas #imt-offcanvas {
        background-color: var(--wp--custom--imt--header--background-color--mobile) !important;
    }

    /* centre align mobile nav items */
    nav.imt-main-nav.offcanvas #imt-offcanvas>ul>li a {
        display: flex;
        justify-content: center !important;
        text-align: center;
    }

    nav.imt-main-nav>div ul>li>a:hover>span::after,
    nav.imt-main-nav>div ul>li>a.imt-current-menu-item>span::after {
        left: calc(50%) !important;
        transform: translate(-50%) !important;
    }

    li.imt-btn-1 a.imt-menu-link {
        padding: calc(var(--wp--custom--imt--spacer) * 1) !important;
    }

    h2.imt-heading.imt-custom-testimonial-heading-icon.imt-text-align-right {
        text-align: left;
    }
}

/* Logo slider */
.imt-section .imt-logo-slider .imt-slide {
    height: 120px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.imt-section .imt-logo-slider .imt-slide .imt-img-max-width-sm img {
    max-width: var(--wp--custom--imt--image--max-width--sm);
    max-height: var(--wp--custom--imt--image--max-width--sm);
    width: auto;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Testimonial slider */
h2.imt-custom-testimonial-heading-icon:before {
    position: absolute;
    font-weight: var(--wp--custom--imt--font-weight);
    font-family: var(--font-family--h--1);
    content: "\201D";
    color: rgba(255, 255, 255, 0.25);
    font-size: 150px;
    top: 35px;
    left: 50%;
    transform: translate(-50%);
    z-index: -1;
}

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

    /* Testimonial slider */
    .imt-slider-style-2 .slick-slide {
        padding: calc(var(--wp--custom--imt--spacer) * 2) calc(var(--wp--custom--imt--spacer) * 1) !important;
    }

    /* Slider controls */
    .imt-slider .slick-prev {
        top: calc(100% + 22px) !important;
        left: calc(50% - 115px) !important;
    }

    .imt-slider .slick-next {
        top: calc(100% + 22px) !important;
        right: calc(50% - 115px) !important;
    }

    /* Logo slider */
    .imt-logo-slider .slick-slider {
        margin-bottom: 64px;
    }

    .imt-imt-logo-slider .slick-slider .slick-slide {
        min-height: 100px;
    }

    .imt-slider.imt-logo-slider .slick-slide {
        padding: 16px !important;
        margin: 0 !important;
    }
}

@media only screen and (max-width: 800px) {
    /* set updated min-width for mobile to stop overflow of icons */
    nav.imt-main-nav>div ul>li .submenu {
        min-width: 120px !important;
    }
    
    /* add overflow: hidden to stop horizontal scrolling of mobile menu */
    ul#main-navigation-ul {
        overflow: hidden;
    }
}

/* set 404 page CTA text color */
button.wp-block-search__button.wp-element-button {
    color: var(--wp--custom--imt--color--background--primary--text) !important;
}

button:hover.wp-block-search__button.wp-element-button {
    color: var(--wp--custom--imt--color--background--primary--hover--button--text) !important;
}

/* decrease heading font size for query loop to keep hierarchy but reduce text wrapping */
.wp-block-post h2.imt-heading {
    font-size: var(--wp--custom--imt--h--3--font-size) !important;
}

/* update font weight and text transformation for mobile menu + dropdowns */
li.menu-item {
    font-weight: var(--wp--custom--imt--main-navigation--font--weight);
    text-transform: var(--wp--custom--imt--main-navigation--font--transform);
}

/* hide after accent for mobile cta btn */
.imt-main-nav .imt-btn-1 a span::after {
    display: none;
}

/* vertically align logo in navbar - figure out why it broke */
.imt-logo {
    display: block;
}

/* GRAVITY FORMS FIXES */
/* fix business name font weight in newsletter & confirmation message */
#gform_4 .imt-business-name,
.gform_confirmation_message .imt-business-name {
    font-weight: inherit !important;
    display: inline;
    margin-bottom: 0;
}

/* gravity form drop down carets + field height */
.gform_wrapper.gravity-theme select {
    height: 44px;
    -webkit-appearance: auto;
}

/* clean up file upload layout */
.gform_wrapper.gravity-theme .gform_drop_area {
    background: var(--wp--custom--imt--gravity-forms--input--background) !important;
    border: 2px dashed var(--wp--custom--imt--gravity-forms--input--border--color) !important;
    border-radius: var(--wp--custom--imt--gravity-forms--input--border--radius) !important;
}

/* fix validation link color for error links in form */
#imt-footer-wrapper a.gform_validation_error_link,
.gform_wrapper.gravity-theme .gform_validation_errors>ol a {
    color: var(--wp--custom--imt--color--palette--text--danger) !important;
}

/* apply correct error colour to checkbox items */
.gform_wrapper.gravity-theme .gfield_error label {
    color: var(--wp--custom--imt--color--palette--background--danger) !important;
}

/* update gravity forms button text transform to match site-wide CTAs */
.button.gform_button,
.button.gform_button_select_files {
    text-transform: var(--wp--custom--imt--button--default--transform) !important;
    font-weight: var(--wp--custom--imt--button--default--font-weight) !important;
}

/* fix line height of the checkbox item to vertically center it, add spacing back in afterwards */
.gform_wrapper.gravity-theme .gfield_checkbox label {
    line-height: var(--wp--custom--imt--gravity-forms--label--sub-label--line-height) !important;
}

.gform_wrapper.gravity-theme .gfield_radio label {
    line-height: calc(var(--wp--custom--imt--gravity-forms--label--sub-label--line-height) * 0.7)  !important;
}

/* update trash icon color */
.gform_wrapper .dashicons {
    color: var(--wp--custom--imt--color--link--dark);
}

.gform_wrapper .dashicons:hover {
    color: var(--wp--custom--imt--color--link--dark-hover);
}

/* temporary fix for light link handling in heroes */
.imt-hero .imt-content-item a:not(.imt-link-text):hover {
    color: var(--wp--custom--imt--color--link--light-hover) !important;
}

@media only screen and (max-width: 800px) {
    /* update gradient for mobile specifically with solid overlay for improved legibility
       split out if using different styles of gradients */
    .imt-bg-color-gradient-2 {
        background-image: none;
        background-color: rgba(0,0,0,0.5);
    }
}

/* mimic non-query loop page image margin settings for images with no padding or all padding set */
.imt-section-query-loop-wrapper.imt-section .imt-card-group .imt-card.imt-global-card-padding-none>.acf-innerblocks-container>.imt-image-link>.imt-img-container,
.imt-section-query-loop-wrapper.imt-section .imt-card-group .imt-card.imt-global-card-padding-all-sm>.acf-innerblocks-container>.imt-image-link>.imt-img-container {
    margin: 0 0 var(--wp--custom--imt--card--global--content-item--default--margin-bottom-image);
}
 
 @media only screen and (max-width: 800px) {
     .imt-section-query-loop-wrapper.imt-section .imt-card-group .imt-card.imt-global-card-padding-none>.acf-innerblocks-container>.imt-image-link>.imt-img-container,
     .imt-section-query-loop-wrapper.imt-section .imt-card-group .imt-card.imt-global-card-padding-all-sm>.acf-innerblocks-container>.imt-image-link>.imt-img-container {
        margin: 0 0 var(--wp--custom--imt--card--global--content-item--mobile--margin-bottom-image);
    }
}

 /* set lead text in cards to take the default bottom margin for subheading, to separate from any paragraph settings */
.imt-section .imt-card-group .imt-card .imt-content-item.imt-paragraphs.imt-lead-text--0 {
    margin-bottom: var(--wp--custom--imt--card--global--content-item--default--margin-bottom-sub-heading);
}

/* set pagination to blog pagination colors to allow for light/dark link handling */
.imt-section .wp-block-query-pagination a {
    color: var(--wp--custom--imt--blog--pagination--link--color);
}

.imt-section .wp-block-query-pagination a:hover {
    color: var(--wp--custom--imt--blog--pagination--link--color-hover);
}

/* set current page indicator to default text color, replace if needed to suit light/dark layouts */
.imt-section .wp-block-query-pagination .page-numbers.current {
    color: var(--wp--custom--imt--color--text--default);
}

/* ------- REMOVE ANY AND ALL OF THIS CODE IF YOU DO NOT NEED IT :) ------- */
/* center align blog heading */
.imt-blog-heading {
    text-align: center !important;
}

/* add stars via css to avoid them being erased in the editor over time */
/* use this snippet for stars BEFORE the quote */
.imt-stars p:first-of-type::before {
    display: block;
    font-weight: 900;
    font-family: "Font Awesome 6 Pro";
    content: "\f005 \f005 \f005 \f005 \f005";
    color: var(--wp--custom--imt--color--palette--background--accent--4--active);
    margin-bottom: var(--wp--custom--imt--spacer);
}

/* automatically swap media row bg colour, reduce user requirement */
.imt-media-col-left.imt-media-row-style-default .imt-content-col__background {
    border-color: var(--wp--custom--imt--color--palette--background--accent--2--active) !important;
}

/* ------- Megamenu Styling - NO ICONS, COLUMN WRAPPING - Sun Valley ------- */
@media only screen and (min-width: 1281px){
    nav.imt-main-nav.full-mega>div>ul>li.megamenu>.submenu .imt-megamenu-wrapper>li.menu-item:first-of-type{
        flex-basis: calc((100% / 3) * 2) !important;
    }
    
    nav.imt-main-nav.full-mega>div>ul>li.megamenu>.submenu .imt-megamenu-wrapper>li.menu-item:not(:first-of-type){
        flex-basis: calc((100% / 3) - var(--wp--custom--imt--main-navigation--megamenu--wrapper--column-gap)) !important;
    }

    nav.imt-main-nav.full-mega>div>ul>li.megamenu>.submenu .imt-megamenu-wrapper>li.menu-item:first-of-type > ul{
        column-count: 2;
        column-gap: var(--wp--custom--imt--main-navigation--megamenu--wrapper--column-gap);
    }
    nav.imt-main-nav.full-mega>div>ul>li.megamenu>.submenu .imt-megamenu-wrapper>li.menu-item:first-of-type > ul > li{
        break-inside: avoid-column;
    }
}

/* fix content alignment and overlay on short screen heights when using bottom aligned heroes, and apply overlay fix */
@media screen and (max-height: 675px) {
    .imt-section .imt-content.imt-hero.imt-bottom-align {
        align-self: flex-start;
    }

    .imt-bg-color-gradient-2 {
        background-image: none;
        background-color: rgba(0,0,0,0.5);
    }
}

/* ---------- SITE STYLES ---------- */
/* add additional background gradient */
.imt-bg-color-gradient-4 + .imt-section__background.imt-bg-color-gradient-1 {
    background-image: radial-gradient(at top right, rgba(58, 169, 44, 1) 0%, rgba(152, 229, 253, 1) 25%, rgba(152, 229, 253, 0) 60%) !important;
}

/* inline dropdown for pools */
@media only screen and (min-width: 1280px) {
    ul.submenu.imt-menu-level-3 {
        position: relative !important;
        left: 0 !important;
        padding: 16px 0 24px 0 !important;
        margin: 0 !important;
        min-width: 216px !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* adjust margin for desktop images in footer */
    footer.imt-footer .imt-card-group.imt-card-style-default .imt-card .imt-image {
        margin-bottom: 0 !important;
    }
}

/* fix primary outlined button text color */
.imt-btn.imt-btn-primary-outline,
.imt-btn.imt-btn-accent-1-outline,
.imt-btn.imt-btn-accent-2-outline,
.imt-btn.imt-btn-secondary-outline {
    color: var(--wp--custom--imt--color--text--dark) !important;
}

/* add dual border effect to the header */
header.imt-header #imt-header::after {
    content: '';
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 9;
    background: linear-gradient(90deg,rgba(59, 173, 45, 1) 0%, rgba(59, 173, 45, 1) 50%, rgba(0, 180, 229, 1) 50%);
}

footer.imt-footer #imt-footer-wrapper::before {
    content: '';
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9;
    background: linear-gradient(90deg,rgba(59, 173, 45, 1) 0%, rgba(59, 173, 45, 1) 50%, rgba(0, 180, 229, 1) 50%);
}

/* adjust bottom margin for h1 */
.imt-hero h1.imt-heading {
    margin-bottom: calc(var(--wp--custom--imt--spacer) * 0.5) !important;
}

#imt-footer-wrapper .imt-business-address, #imt-footer-wrapper .imt-business-hours, #imt-footer-wrapper .imt-business-name, #imt-footer-wrapper .imt-business-tel, #imt-footer-wrapper .imt-social-links {
    text-transform: uppercase;
}

/* bg image cards do not have a border color setting */
.imt-section .imt-card-group .imt-card.imt-card-color-override-bg-img {
    border-color: var(--wp--custom--imt--color--palette--background--accent--1--active);
}

/* remove extra styling from no border cards, incl box shadow */
.imt-section .imt-card-group .imt-card.imt-card-color-override-none.imt-card-no-border {
    border-color: transparent;
    border-width: 0 !important;
    box-shadow: none !important;
}

.imt-section .imt-card-group .imt-card.imt-card-color-override-none.imt-card-no-border .mapp-layout {
    border-width: 0px;
}

/* custom accordion styling for bio shortening */
.imt-text-collapsible-card h3,
.imt-text-collapsible-card .imt-lead-text--0 {
    padding-left: calc(var(--wp--custom--imt--spacer) * 2) !important;
}

.imt-text-collapsible > button {
    font-size: var(--wp--custom--imt--font-size) !important;
    font-weight: var(--wp--custom--imt--font-weight) !important;
    line-height: var(--wp--custom--imt--line-height) !important; 
    text-transform: none !important;
    padding: calc(var(--wp--custom--imt--spacer) * 1) calc(var(--wp--custom--imt--spacer) * 2) calc(var(--wp--custom--imt--spacer) * 1) !important;
}

.imt-text-collapsible .collapsible > div {
    padding-top: 0 !important;
}