/**
 * Footer Menu Styles 4.0
 * Matches main navigation mega menu typography, colors, and spacing
 * Does NOT modify grid/layout - only menu item styling
 */

/* ============================================
   BASE STYLES (Mobile First)
   ============================================ */

/*logo layer*/
.site-footer .content-wrapper.wrap-wide.col-1-8-9-16 {
    border-bottom: solid 1px rgba(36, 61, 115, 0.2);
    padding: calc(1*var(--verspace)) 0;
}

/* Footer SVG - Fix clipping issue */
.site-footer svg {
    width: 280px;
    height: 29px;
}

.site-footer svg g[clip-path] {
    clip-path: none !important;
}

/* Footer Bottom Layout */
.footer-bottom {
    display: flex;
    flex-direction: column;
    /*gap: 20px;*/
}

.footer-bottom-left {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.footer-bottom-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-editor-content {
    color: rgba(12, 35, 58, 0.7);
    font-size: 14px;
}

/* Footer Copyright Text */
.footer-copyright-text {
    color: rgba(12, 35, 58, 0.7);
    font-size: 14px;
}

.menu-footer-menu-container a {
    color: rgba(12, 35, 58, 0.7);
    font-size: 14px;
}

/* Footer Menu List */
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 24px;
}

.contact-info {
    font-size: 16px;
    margin-top: 6px;
    font-weight: 400;
    background-image: none;
}

.contact-info a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    background-image: linear-gradient(var(--navy), var(--navy)), linear-gradient(transparent, transparent), linear-gradient(var(--navy), var(--navy));
    background-size: 0 2px, 0 2px, 0 2px;
    background-position: 100% 100%, 50% 100%, 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--navy);
    animation-duration: 0.6s;
    animation-name: nav-link-underline;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

/* Hide icons */
.contact-info i,
.mwa-address i,
.mwa-phone i,
.mwa-email i {
    display: none;
    /* Commented out - icons hidden */
}

@keyframes nav-link-underline {
    0% {
        background-size: 0 2px, 0 2px, 0 2px;
    }

    50% {
        background-size: 0 2px, 100% 2px, 0 2px;
    }

    100% {
        background-size: 100% 2px, 0 2px, 0 2px;
    }
}

/* Top Level Menu Items */
.footer-menu-list>li {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 9px;
}

.footer-menu-list>li:last-child {
    padding-bottom: 0;
}

/*footer borders*/

.site-footer .layout-five-cols.section-row {
    border-top: solid 1px rgba(36, 61, 115, 0.2);
}

.site-footer .layout-five-cols.section-row {
    border-bottom: solid 1px rgba(36, 61, 115, 0.2);
}

.site-footer .layout-four-cols.section-row {
    padding: calc(1 * var(--verspace)) 0;
}

.site-footer .copyright-wrapper .layout-two-cols.content-wrapper.wrap-wide {
    border-top: solid 1px rgba(36, 61, 115, 0.2);
}

/* Top Level Links (Column Headings) */
.footer-menu-list>li>a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: rgba(12, 35, 58, 0.7);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 0;
    padding: 0;
    text-transform: none;
    transition: color 0.2s ease;
    text-decoration: none;
    display: block;
}

.footer-menu-list>li>a:hover {
    color: var(--navy);
}

.footer-menu-list>li.current-menu-item>a,
.footer-menu-list>li.current-menu-ancestor>a {
    color: var(--na);
}

/* Sub-menu Container */
.footer-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Sub-menu Items */
.footer-menu-list .sub-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sub-menu Links */
.footer-menu-list .sub-menu a {
    color: rgba(36, 61, 115, 0.7);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    padding: 0;
    display: inline-block;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer-menu-list .sub-menu a:hover {
    color: var(--navy);
}

/* Active state for sub-menu items (match simple desktop nav: navy + medium weight) */
.footer-menu-list .sub-menu li.current-menu-item>a,
.footer-menu-list .sub-menu li.current_page_item>a {
    color: var(--navy);
    font-weight: 500;
}

.site-footer .widget_nav_menu ul.menu .sub-menu li.current-menu-item>a,
.site-footer .widget_nav_menu ul.menu .sub-menu li.current_page_item>a {
    color: var(--navy);
    font-weight: 500;
}

.site-footer .list-labels .list-label {
    padding-bottom: 0;
    border-bottom: none;
}

/*footer list labels*/
.site-footer .list-label-title {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.3;
}

.site-footer .list-labels .list-label {
    grid-gap: 12px;
}

/*footer Trusted*/
.section-col.trusted h2 {
    text-align: left;
}

.site-footer .layout-five-cols .section-col {
    padding-bottom: calc(1.5 * var(--verspace));
}

.social-profiles a:hover {
    color: var(--navy);
    transition: background .3s ease;
    color: var(--light);
}

.social-profiles-wrap.content-row {
    margin-top: 2em;
}

/* Footer form — see css/gravity-forms.css */
/*
.site-footer select,
.site-footer textarea,
.site-footer input[type="tel"],
.site-footer input[type="date"],
.site-footer input[type="number"],
.site-footer input[type="email"],
.site-footer input[type="text"] {
    color: var(--light);
    width: 100%;
    padding: 14px 18px;
    border-radius: 500px;
    background: var(--navy);
    border: none;
}

.site-footer input::placeholder,
.site-footer textarea::placeholder {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.site-footer form .gfield {
    margin-bottom: 14px;
}

.site-footer form .gform_footer {
    margin-top: 0;
}
*/

/* ============================================
   TABLET & DESKTOP STYLES
   Match existing breakpoints from style.css
   ============================================ */

@media only screen and (min-width: 768px) {

    /* Bottom Footer Layout - Custom Grid Columns */
    .site-footer .layout-two-cols.content-wrapper.wrap-wide>.section-col:first-child {
        grid-column: 1 / span 14;
    }

    .site-footer .layout-two-cols.content-wrapper.wrap-wide>.section-col:last-child {
        grid-column: 15 / span 10;
        text-align: right;
    }


    /*Footer Menu Grid*/
    .site-footer .layout-five-cols .section-col .footer-menu-list {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 0;
    }

    /*footer Trusted*/
    .section-col.trusted h2 {
        text-align: right;
    }

}

@media only screen and (min-width: 992px) {

    /* Footer Menu List */
    .footer-menu-list {
        margin-top: 12px;
    }

    /* Footer GF desktop layout — see css/gravity-forms.css */
    /*
    .site-footer form {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        align-items: end;
        grid-gap: 14px;
    }

    .site-footer .gform-body {
        display: contents;
    }

    .site-footer .gform-body .gform_fields {
        display: contents;
    }

    .site-footer .mwa-gf-form_wrapper .gform_footer {
        margin-top: 0;
    }

    .site-footer .gform-body .gfield {
        grid-column: unset;
        margin-bottom: 0;
    }
    */

}

/* 1024px - Desktop Navigation Kicks In */
@media only screen and (min-width: 1024px) {

    /* List label title larger on desktop */
    .list-labels.content-row {
        grid-gap: 2em;
    }



    /* Match desktop navigation sub-item size */
    .footer-menu-list .sub-menu a {
        font-size: 16px;
    }

    /* Match desktop navigation gap */
    .footer-menu-list .sub-menu {
        grid-gap: 12px;
    }


    /* Footer bottom - side by side layout */
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-bottom-right {
        justify-content: flex-end;
    }

}

@media only screen and (min-width: 1200px) {

    .site-footer .layout-five-cols.section-row {
        padding-bottom: 0;
        padding-top: 0;
    }

    .site-footer .layout-five-cols>.col-1-4-5-4-10-4-14-4-19-6>.section-col:nth-child(1) {
        grid-column: 1 / span 5;
        padding-right: 30px;
    }

    .site-footer .layout-five-cols>.col-1-4-5-4-10-4-14-4-19-6>.section-col:nth-child(2) {
        grid-column: 6 / span 5;
        border-right: solid 1px rgba(36, 61, 115, 0.2);
        padding-right: 30px;
    }

    .site-footer .layout-five-cols>.col-1-4-5-4-10-4-14-4-19-6>.section-col:nth-child(3) {
        grid-column: 11 / span 4;
        padding-left: 30px;
    }

    .site-footer .layout-five-cols>.col-1-4-5-4-10-4-14-4-19-6>.section-col:nth-child(4) {
        grid-column: 15 / span 4;
        border-right: solid 1px rgba(36, 61, 115, 0.2);
        padding-left: 30px;
    }

    .site-footer .layout-five-cols>.col-1-4-5-4-10-4-14-4-19-6>.section-col:nth-child(5) {
        grid-column: 20 / span 5;
    }
}