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

/* Child theme fonts */
:root {
    --font-family--default: 'Nunito Sans';
    --font-family--h--1: 'Nunito Sans';
    --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: var(--font-family--default);
}

/* ------- MAIN NAVIGATION ------- */
nav.imt-main-nav {
    margin-right: 0 !important;
}

body header .imt-section#imt-top-bar {
    box-shadow: none !important;
}

/* ------- Megamenu Styling - NO ICONS, COLUMN WRAPPING ------- */
@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: calc(var(--wp--custom--imt--spacer) * 2);
    }
    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;
    }

    li.imt-btn-1 {
        margin-left: calc(var(--wp--custom--imt--spacer) * 1);
    }
}

/* ------- BORDERS ------- */
/* manage border for media rows + callout as border-image */
.imt-section .imt-media-row.imt-media-row-style-default.imt-media-col-right .imt-content-col .imt-content-col__inner .imt-content-col__background {
    border-image: url("/wp-content/uploads/2026/01/Limbachs-BorderImageLeft.png") 50 / 6px round !important;
}

.imt-section .imt-card.imt-form-card {
    border-width: 6px !important;
}

.imt-section .imt-card.imt-form-card,
.imt-section .imt-media-row.imt-media-row-style-default.imt-media-col-left .imt-content-col .imt-content-col__inner .imt-content-col__background {
    border-image: url("/wp-content/uploads/2026/01/Limbachs-BorderImageRight.png") 50 / 6px round !important;
}

/* ------- TEXT FORMATTING ------- */
.imt-paragraphs {
    text-wrap: pretty;
}

.imt-content-item.imt-lead-text--0 {
    font-style: italic;
}

.imt-content-item.imt-lead-text--0,
.imt-content-item.imt-heading {
    text-wrap: balance;
}

strong {
    font-weight: var(--wp--custom--imt--font-weight-bold);
}

/* ------- EXTRAS ------- */
/* assign margin to callouts */
.imt-section:has(.imt-callout) {
    margin: var(--wp--custom--imt--global--media-row--style--default--section--default--margin);
}

/* add focus state bg color for form fields */
form[role=search] .wp-block-search__input:focus,
.gform_fields .chosen-choices .search-choice:focus, .gform_fields .chosen-choices:focus, .gform_fields .chosen-single:focus, .gform_fields input:focus, .gform_fields select:focus, .gform_fields textarea:focus {
    background: var(--wp--custom--imt--color--palette--background--accent--1--900) !important;
}

/* updates for wp base search fields */
input[type="search"]::-webkit-search-cancel-button {
  filter: contrast(0) brightness(2);
}

.wp-block-search__input::placeholder {
  color: #fff;
  opacity: 0.85;
}

button.wp-block-search__button.wp-element-button {
    border: 2px solid white;
}

/* link in bio social links */
.imt-social-links-bio a i {   
    color: var(--wp--custom--imt--color--link--dark);
}

.imt-social-links-bio a:hover i {   
    color: var(--wp--custom--imt--color--link--dark-hover);
}

/* footer cta */
.imt-footer-cta a {
    margin-top: 12px !important;
    padding: var(--wp--custom--imt--button--sm--padding) !important;
    font-size: var(--wp--custom--imt--button--sm--font-size) !important;
}

.imt-footer-cta a span,
.imt-footer-cta a:hover span,
.imt-footer-cta a:focus span {
    color: var(--wp--custom--imt--color--background--secondary--text) !important;
}

/* fix the cards in slider */
@media only screen and (max-width: 940px) {
    .imt-section .imt-slider .imt-card-group.imt-card-style-default.imt-cards-per-row-3>.acf-innerblocks-container .imt-card {
        width: 100% !important;
    }
}

/* style nested cards */
.imt-section .imt-card-group .imt-card .imt-card-group .imt-card.imt-transparent-card .imt-card-bg-color,
.imt-section .imt-card-group .imt-card:hover .imt-card-group .imt-card.imt-transparent-card .imt-card-bg-color {
    background: none !important;
    background-color: transparent !important;
}

.imt-card-color-override-gradient-3 .imt-content-item.imt-heading {
    margin: 0 0 var(--wp--custom--imt--card--global--content-item--default--margin-bottom-heading) !important;
}

@media only screen and (max-width: 800px) {
    .imt-card-color-override-gradient-3 .imt-card-bg-color {
        background: var(--wp--custom--imt--global--color--background--gradient--3--mobile--color) !important;
    }

    .imt-center-align-mobile.imt-content-item, 
    .imt-center-align-mobile.imt-content-item p,
    .imt-card-color-override-gradient-3 .imt-content-item, 
    .imt-card-color-override-gradient-3 .imt-content-item p {
        text-align: center !important;
    }
}

@media only screen and (max-width: 1280px) {
    /* wrap the 4-wide cards because of font wrapping */
    .imt-section .imt-card-group.imt-card-style-default.imt-cards-per-row-4>.acf-innerblocks-container .imt-card {
        width: calc((100% - var(--wp--custom--imt--card-group--style--2--gutter--column--default) * 1) / 2) !important;
    }
}    

/* bug fix showing the correct image ratio on mobile, fix first /4 to /2 */
@media only screen and (max-width: 600px) {
    .imt-gallery-image-crop-1-1 figure, .imt-gallery-image-crop-circle figure {
        padding-top: calc((100% / 2) - (24px - (24px / 2))) !important;
    }

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

/* add active state hover */
body #imt-top-bar a.imt-btn.imt-current-menu-item:hover span, body #imt-top-bar a.imt-current-menu-item:hover span {
    text-decoration: underline !important;
}

/* update btn-2 styles to reflect submenu hover states */
.imt-btn-2 > a.imt-current-menu-item {
    background: var(--wp--custom--imt--main-navigation--link--submenu--active--background) !important;
    color: var(--wp--custom--imt--main-navigation--link--submenu--active--color) !important;
}

.imt-btn-2 > a.imt-current-menu-item:hover {
    background: var(--wp--custom--imt--main-navigation--link--submenu--hover--background) !important;
    color: var(--wp--custom--imt--main-navigation--link--submenu--hover--color) !important;
}