/*
Theme Name:   NEM
Theme URI:    www.indigenousmarketing.ca/
Description:  A Kadence child theme
Author:       Tye Shutty
Author URI:   www.indigenousmarketing.ca/
Template:     kadence
Version:      1.3.0
Text Domain:  NEM
*/


/* Common CSS */
html {
    scroll-behavior: smooth;
}

.no-wrap {
    white-space: nowrap;
}

@media (min-width: 430px) {
    .no-wrap-430 {
        white-space: nowrap;
    }
}

.word-break-normal {
    word-break: normal;
}

hr {
    opacity: 1;
}

.kb-button,
.user-select-none {
    user-select: none;
}

.pointer-events-none {
    pointer-events: none;
}

a.social-button {
    width: unset;
    height: unset;
}

.no-flex {
    flex: unset !important;
    -webkit-flex: unset !important;
}

.w-100 {
    width: 100% !important;
}

/* user to ensure images in a section with flex row have max width */
.flex-shrink-0 {
    flex-shrink: 0;
}

@media (max-width: 767px) {

    .aspect-ratio-1-mobile,
    .aspect-ratio-1-child-mobile>* {
        aspect-ratio: 1;
        overflow: hidden;
        align-self: unset !important;
        width: 100%;
    }
}

.padding-left-content-width,
*:has(>.padding-left-content-width-parent) {
    padding-left: max(var(--global-content-edge-padding), calc(var(--global-content-edge-padding) + ((100vw - var(--scrollbar-offset)) - var(--global-content-width)) / 2)) !important;
}

/* removing default padding & margin */

footer p {
    margin-block-start: unset;
    margin-block-end: unset;
}

figure {
    margin: unset;
}

.alignfull>.kt-row-layout-inner>.kt-row-column-wrap,
.alignfull>.kt-row-column-wrap {
    padding-left: 0;
    padding-right: 0;
}

.ft-ro-dir-row .footer-section-inner-items-2 .footer-widget-area {
    margin-left: 0;
}

.full-width-row {
    width: var(--global-vw, 100vw);
    margin-left: calc(50% - (var(--global-vw, 100vw) / 2));
    margin-right: calc(50% - (var(--global-vw, 100vw) / 2));
}

.full-width-row>* {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: var(--global-content-width, 1877px);
    padding-left: var(--global-content-edge-padding);
    padding-right: var(--global-content-edge-padding);
}

.narrow-content {
    max-width: var(--global-content-narrow-width, 1877px);
}

.hide {
    display: none !important;
}

/* fix for header shift when disabling scroll in chrome */
.item-is-fixed,
.transparent-header #masthead {
    width: calc(100vw - var(--scrollbar-offset, 0px));
    right: unset;
}

/* fix for floated images having their margin affect paragraph content */
.wp-block-kadence-image:not(:last-child):has(.alignright),
.wp-block-kadence-image:not(:last-child):has(.alignleft) {
    margin-bottom: 0;
}

/* for modals, remove later */

.overflow-hidden {
    overflow: hidden;
}

/* fix for bottom separator not working with nautsamawt-background-image */
.kt-row-layout-bottom-sep {
    z-index: 2;
}

/* fix for link hover underline offset */

a:hover,
a:focus,
a:active {
    text-underline-offset: unset;
}

/* fix for svgs in kadence advanced images having extra space under them */
.wp-block-kadence-image.image-is-svg.flex-unset {
    flex: unset !important;
    -webkit-flex: unset !important;
}


/** fonts **/

@font-face {
    font-family: 'BC Sans';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/2023_01_01_BCSans-Regular_2f.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/2023_01_01_BCSans-Bold_2f.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/2023_03_14_BCSans-Light_2g.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/2023_01_01_BCSans-Italic_2f.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/2023_01_01_BCSans-BoldItalic_2f.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/2023_01_01_BCSans-LightItalic_2f.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans Hulquminum';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/BCSans-Hulquminum-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans Hulquminum';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/BCSans-Hulquminum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans Hulquminum';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/BCSans-Hulquminum-Light.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans Hulquminum';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/BCSans-Hulquminum-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans Hulquminum';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/BCSans-Hulquminum-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BC Sans Hulquminum';
    src: url('/wp-content/themes/NEM/fonts/BcSansFont_Web/BCSans-Hulquminum-LightItalic.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Swear Deck';
    src: url('/wp-content/themes/NEM/fonts/SwearDeck/SwearDeck-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Swear Deck';
    src: url('/wp-content/themes/NEM/fonts/SwearDeck/SwearDeck-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Swear Deck';
    src: url('/wp-content/themes/NEM/fonts/SwearDeck/SwearDeck-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Swear Display';
    src: url('/wp-content/themes/NEM/fonts/SwearDisplay/SwearDisplay-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Swear Display';
    src: url('/wp-content/themes/NEM/fonts/SwearDisplay/SwearDisplay-Italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
}

p,
li,
body,
.bc-sans {
    font-family: 'BC Sans Hulquminum', 'BC Sans', sans-serif;
}

/* h6 {
    font-weight: 400 !important;
} */

h1,
.swear-display {
    font-family: "Swear Display", serif;
}

h2,
h3,
.swear-deck {
    font-family: "Swear Deck", serif;
}

/* reduce kadence defaults */
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
    margin-top: 0.5em;
}

.wp-block-kadence-image:not(:last-child) {
    margin-bottom: 0.5em;
}

.single-content h1 {
    margin-bottom: 12px;
}

.single-content h2 {
    margin-bottom: 12px;
}

.single-content p {
    margin-bottom: 1em;
}

/* header */


#main-header {
    display: none;
}

#mobile-header {
    display: block;
}

.site-branding a.brand {
    gap: 6px;
}

.site-title {
    font-family: "Swear Display", serif;
}

.site-header-item-mobile-navigation {
    flex-grow: 1;
    margin-bottom: 24px;
}

.mobile-navigation {
    width: unset !important;
}

.popup-drawer .drawer-content.mobile-drawer-content {
    flex-grow: 1;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    padding-bottom: 48px;
}

.menu-toggle-close.drawer-toggle {
    padding-right: calc(var(--scrollbar-offset) * 2) !important;
}

.menu-item a {
    /* header and footer */
    border-bottom: 1px solid transparent !important;
}

.mobile-navigation .menu-item a {
    font-family: "Swear Deck", serif;
    font-size: 68px;
    padding-left: 0;
    padding-right: 0;
    width: max-content;
    min-width: 100%;
}

@media (max-width: 1024px) {
    .mobile-navigation .menu-item a {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .mobile-navigation .menu-item a {
        font-size: 36px;
    }
}

#mobile-menu .menu-item a:hover {
    border-bottom: 1px solid var(--global-palette8) !important;
}

@media (max-width: 1024px) {

    .menu-item a {
        font-size: 50px;
    }
}

.mobile-drawer-content .mobile-drawer-home-link {
    position: absolute;
    left: -14%;
    bottom: 50%;
    transform: translateY(50%);
    width: 50%;
    display: block;
    aspect-ratio: 1 / 1;
    background: url(images/Grey_LogoIcon.svg) center / contain no-repeat;
    color: var(--global-palette4);
    overflow: hidden;
    z-index: 1;
    /* adjust if it needs to sit above/below other items */
}

@media (max-width: 767px) {
    .mobile-drawer-content .mobile-drawer-home-link {
        right: 0;
        left: unset;
        width: max(50%, 800px);
        opacity: 0.2;
    }
}

#masthead {
    position: sticky;
    top: var(--adminbar-height, 0);
}

/*  buttons and links */
.kb-button {
    min-width: 160px;
}

/* apply kadence theme button settings to all buttons */
.kb-button:not(.wp-block-button__link) {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.14px;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 13px 20px 13px 20px;
    border: 2px solid var(--global-palette7);
}


/** footer **/

.above-footer-pictures {
    margin-bottom: calc(-0.095 * (100vw - 60px)) !important;
}

@media (max-width: 767px) {
    .above-footer-pictures {
        margin-bottom: calc(-0.14 * (100vw - 60px)) !important;
    }
}

#colophon {
    z-index: 0;
}

.site-middle-footer-inner-wrap {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1025px) {
    .site-footer-row.site-footer-row-columns-3.site-footer-row-column-layout-center-half {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr);
    }
}

.footer-navigation {
    height: 100%;
}

.footer-menu-container {
    width: 100%;
}


.footer-widget-area .footer-navigation #footer-menu.menu {
    width: 100%;
    max-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 35px;
    column-gap: 24px;
}

@media (max-width: 768px) {
    .site-footer-middle-section-2 {
        display: none;
    }
}

.footer-widget-area .footer-navigation #footer-menu.menu li a {
    padding: 0 !important;
    /* height: 39px; */
}


.footer-widget-area .footer-navigation #footer-menu.menu li:last-child:not(:nth-child(3n+1)):not(:nth-child(3n)) {
    margin-top: auto;
}

.site-footer-middle-section-1 .footer-widget-area-inner.site-info-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* gap: 40px; */
}

/* button.go-to-top {
    padding: 0;
    border: none;
    background: none;
} */

@media (max-width: 1024px) {

    .site-footer-middle-section-3 .footer-widget-area-inner.site-info-inner .kt-inside-inner-col,
    .site-footer-middle-section-3 .footer-widget-area-inner.site-info-inner .wp-block-kadence-column {
        position: unset;
    }

    .go-to-top {
        position: absolute;
        bottom: -50px;
        right: 0;
    }
}

.site-bottom-footer-inner-wrap {
    padding-top: 0;
}

.page-id-32 .site-top-footer-wrap,
body:has(.custom-footer-top) .site-top-footer-wrap {
    display: none;
}

.site-top-footer-wrap .site-footer-row-container-inner {
    background-image: url(/wp-content/themes/NEM/images/illustration-ocean1_cropped.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.logo-link {
    color: #f2f2f2 !important;
}

.logo-link:hover {
    color: var(--global-palette7) !important;
}


/** Home page **/
@media (min-width: 1025px) {
    .swoop-1 {
        padding-bottom: min(calc(244px + (0.1 * (100vw - 1025px))), calc(25vh + (0.1 * (100vw - 1025px))));
    }

    .swoop-1>.kt-row-column-wrap {
        padding-top: min(244px, calc(15vh)) !important;
    }
}

.swoop-1::after {
    content: url(/wp-content/themes/NEM/images/NEM-greenswoop-bottom-beige.svg);
    position: absolute;
    left: 0;
    bottom: -1px;
    line-height: 0;
    width: 100%;
}

.is-safari .swoop-1::after {
    left: -10px;
    width: calc(100% + 20px);
}

@media (max-width: 767px) {
    .swoop-1::after {
        content: url(/wp-content/themes/NEM/images/NEM-greenswoop-bottom-beige_cropped.svg);
        width: unset;
        transform: translateX(-50%);
        left: 50%;
    }
}

.below-row-pictures {
    padding-top: calc(248px + (0.08 * (100vw - 1025px)));
}

@media (max-width: 1024px) {
    .below-row-pictures {
        padding-top: calc(130px + 28px + (0.08 * (100vw - 768px)));
    }
}

@media (max-width: 767px) {
    .below-row-pictures {
        padding-top: calc(130px + 22px + (0.14 * (100vw - 360px)));
    }
}

.above-row-pictures {
    padding-bottom: calc(54px + (0.08 * (100vw - 1025px)));
}

@media (max-width: 1024px) {
    .above-row-pictures {
        padding-bottom: calc(46px + (0.08 * (100vw - 768px)));
    }
}

@media (max-width: 767px) {
    .above-row-pictures {
        padding-bottom: calc(42px + (0.14 * (100vw - 360px)));
    }
}

/* Reporting */

.certification-accordian .kt-accordion-pane,
.certification-accordian-2 .kt-accordion-pane,
.certification-accordian-3 .kt-accordion-pane {
    padding-left: 60px;
}

.certification-accordian .kt-accordion-pane button::before,
.certification-accordian-2 .kt-accordion-pane button::before,
.certification-accordian-3 .kt-accordion-pane button::before {
    opacity: 0.4;
    left: -60px;
    top: calc(9px + 50%);
    transform: translateY(-50%);
    position: absolute;
}

.certification-accordian .kt-accordion-pane-1 button::before {
    content: url(/wp-content/themes/NEM/images/gida_cropped-2.svg);
    width: 46px;
    height: 46px;
}

.certification-accordian .kt-accordion-pane-2 button::before {
    content: url(/wp-content/themes/NEM/images/OCAP-logo-black_cropped.svg);
    width: 46px;
    height: 46px;
}

.certification-accordian .kt-accordion-pane-3 button::before {
    content: url(/wp-content/themes/NEM/images/iap2-black_cropped.svg);
    width: 46px;
    height: 39px;
}

.certification-accordian-3 .kt-accordion-pane-11 button::before {
    content: url(/wp-content/themes/NEM/images/carfac-logo.svg);
    width: 46px;
    height: 19px;
}

.tree-border {
    position: relative;
}

.tree-border::before {
    content: url('images/tree1_cropped.svg');
    left: -175px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    width: 160px;
}

@media (max-width: 767px) {
    .tree-border::before {
        left: -122px;
        transform: translateY(-50%);
    }
}

.tree-border::after {
    content: url('images/tree2_cropped.svg');
    right: -175px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    width: 160px;
}

@media (max-width: 767px) {
    .tree-border::after {
        right: -122px;
        transform: translateY(-50%);
    }
}

.heron-border {
    position: relative;
}

.heron-border::before {
    content: url('images/illustration-heron_cropped.svg');
    left: -175px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scaleX(-1) rotate(15deg);
    width: 210px;
}

@media (max-width: 767px) {
    .heron-border::before {
        left: -32px;
        width: 140px;
    }
}

.heron-border::after {
    content: url('images/illustration-heron_cropped.svg');
    position: absolute;
    right: -175px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    width: 210px;
}

@media (max-width: 767px) {
    .heron-border::after {
        right: -32px;
        width: 140px;
    }
}


@media (min-width: 1025px) {

    .logo-grid>* {
        justify-content: space-between;
        flex-wrap: nowrap !important;
        gap: min(4rem, 2vw) !important;
    }
}

@media (max-width: 1024px) {

    .logo-grid>* {
        justify-content: center !important;
        gap: 22px !important;
    }
}

.logo-grid figure {
    margin: 0;
    text-align: center;
}

@media (min-width: 1025px) {
    .logo-grid figure {
        flex: 1 1 auto;
    }
}

@media (max-width: 1024px) {

    .logo-grid figure {
        min-width: min(22vw, 100px);
        justify-content: center;
        display: flex;
    }
}

.logo-grid img {
    max-width: min(100px, 6vw);
    opacity: 0.7;
    max-height: 46px;
    width: auto;
    display: block;
    /* margin: 0 auto; */
    border-radius: 0;
}

@media (max-width: 1024px) {
    .logo-grid img {
        height: 32px;
        max-width: min(40vw, 100px);
    }
}

.logo-grid a:hover .kb-image-has-overlay::after {
    opacity: 0;
}

.row-pictures {
    margin-top: calc(-0.07 * (100vw - 60px)) !important;
}

@media (max-width: 767px) {
    .row-pictures {
        margin-top: calc(-0.14 * (100vw - 60px)) !important;
    }
}

/* Event Planning */

.certification-accordian-2 .kt-accordion-pane {
    padding-left: 60px;
}

.certification-accordian-2 .kt-accordion-pane-1 button::before,
.certification-accordian-3 .kt-accordion-pane-1 button::before {
    content: url(/wp-content/themes/NEM/images/IC-logo2_cropped.svg);
    width: 46px;
    height: 60px;
}

.certification-accordian-2 .kt-accordion-pane-2 button::before {
    content: url(/wp-content/themes/NEM/images/IRC-icon-black_cropped.svg);
    width: 46px;
    height: 43px;
}

.certification-accordian-2 .kt-accordion-pane-3 button::before,
.certification-accordian-3 .kt-accordion-pane-3 button::before {
    content: url(/wp-content/themes/NEM/images/Metis_logo-black.svg);
    width: 46px;
    height: 34px;
}

.certification-accordian-2 .kt-accordion-pane-4 button::before {
    content: url(/wp-content/themes/NEM/images/pmi_logo__icon_black_cropped.svg);
    width: 46px;
    height: 46px;
}

.certification-accordian-2 .kt-accordion-pane-5 button::before {
    content: url(/wp-content/themes/NEM/images/StJohnAmbulanc-Logo-icon-black_cropped.svg);
    width: 46px;
    height: 43px;
}

.certification-accordian-2 .kt-accordion-pane-6 button::before {
    content: url(/wp-content/themes/NEM/images/UN_logo-black_cropped.svg);
    width: 46px;
    height: 39px;
}

/* .certification-accordian-3 .kt-accordion-pane-8 button::before,
.certification-accordian-3 .kt-accordion-pane-9 button::before {
    content: "";
    background: url(/wp-content/themes/NEM/images/sfu-b&w.png) center/contain no-repeat;
    width: 46px;
    height: 25px;
    display: inline-block;
} */