/* ================================
   KBI Site Footer
   Navy footer with WordPress nav menus.
   ================================ */
.kbi-footer {
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-primary);
    padding: 48px 0 24px;
}

.kbi-footer__inner {
    box-sizing: border-box;
}

.kbi-footer__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr 1fr;
    gap: 32px;
    align-items: start;
}

.kbi-footer__col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.kbi-footer__col--brand {
    gap: 24px;
}

/* ----- Brand / logo ----- */
.kbi-footer__logo {
    margin-bottom: 4px;
}

.kbi-footer__logo-img {
    display: block;
    width: 120px;
    height: auto;
}

.kbi-footer__logo-custom img {
    width: 120px;
    height: auto;
}

.kbi-footer__logo-text {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

/* ----- Group headings ----- */
.kbi-footer__group {
    display: flex;
    flex-direction: column;
}

.kbi-footer__heading {
    margin: 0 0 12px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

/* ----- Menus ----- */
.kbi-footer__menu,
.kbi-footer__menu .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kbi-footer__menu li {
    margin: 0;
}

.kbi-footer__menu a {
    display: inline-block;
    padding: 5px 0;
    color: #d7d9ec;
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* Nested sub-menus (e.g. Criminal Justice Services, Alerts, Statistics) */
.kbi-footer__menu .sub-menu {
    margin-left: 16px;
}

.kbi-footer__menu .sub-menu a {
    color: #c2c4dd;
    font-size: 18px;
}

/* Beat the Elementor kit link color and apply hover/focus states. */
.kbi-footer a,
body[class*="elementor-kit-"] .kbi-footer a {
    color: #d7d9ec;
    text-decoration: none;
}

.kbi-footer__menu a:hover,
.kbi-footer__menu a:focus,
.kbi-footer__menu a:focus-visible,
body[class*="elementor-kit-"] .kbi-footer__menu a:hover,
body[class*="elementor-kit-"] .kbi-footer__menu a:focus,
body[class*="elementor-kit-"] .kbi-footer__menu a:focus-visible {
    color: var(--color-accent);
    font-weight: 300;
    text-decoration: none;
    transform: none;
}

/* ----- Social ----- */
.kbi-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.kbi-footer__social-item {
    margin: 0;
}

.kbi-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    transition: color 0.15s ease;
}

.kbi-footer__social-link:hover,
.kbi-footer__social-link:focus,
.kbi-footer__social-link:focus-visible,
body[class*="elementor-kit-"] .kbi-footer__social-link:hover,
body[class*="elementor-kit-"] .kbi-footer__social-link:focus,
body[class*="elementor-kit-"] .kbi-footer__social-link:focus-visible {
    color: var(--color-accent);
    transform: none;
}

.kbi-footer__social-icon {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

/* ----- Bottom bar ----- */
.kbi-footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: left;
}

.kbi-footer__legal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kbi-footer__legal-menu li {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.kbi-footer__legal-menu li:not(:last-child)::after {
    content: "|";
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.5);
}

.kbi-footer__legal-menu a,
body[class*="elementor-kit-"] .kbi-footer__legal-menu a {
    color: #d7d9ec;
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.kbi-footer__legal-menu a:hover,
.kbi-footer__legal-menu a:focus,
.kbi-footer__legal-menu a:focus-visible,
body[class*="elementor-kit-"] .kbi-footer__legal-menu a:hover,
body[class*="elementor-kit-"] .kbi-footer__legal-menu a:focus,
body[class*="elementor-kit-"] .kbi-footer__legal-menu a:focus-visible {
    color: var(--color-accent);
    font-weight: 300;
    text-decoration: none;
    transform: none;
}

/* ================================
   Elementor footer layout
   Kit container padding is 0 horizontally; inset footer content to match
   the site column gutter used elsewhere (16px on narrow viewports).
   ================================ */
.elementor-location-footer > .elementor-element.e-con.e-parent {
	--padding-left: var(--kbi-site-gutter, 16px) !important;
	--padding-right: var(--kbi-site-gutter, 16px) !important;
	--padding-inline-start: var(--kbi-site-gutter, 16px) !important;
	--padding-inline-end: var(--kbi-site-gutter, 16px) !important;
	padding-inline: var(--kbi-site-gutter, 16px) !important;
	box-sizing: border-box;
}

.elementor-location-footer .e-con-boxed > .e-con-inner {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--kbi-content-max-width, 1202px);
	margin-inline: auto;
}

/* ================================
   Elementor footer seal alignment
   KBIseal.png has ~7.25% transparent padding on each side, so its visible
   emblem sits inset from the image box. translateX is relative to the
   element's own width, so this aligns the visible seal with the menu text
   below at ANY image width the editor sets.
   ================================ */
.elementor-location-footer .elementor-widget-image img {
    transform: translateX(-7.25%);
}

/* ================================
   Elementor footer menu alignment
   Elementor adds 20px horizontal padding to nav items, indenting the item
   text from the column heading. Zero the left padding on top-level footer
   items so they align flush-left with their heading.
   ================================ */
.elementor-location-footer .elementor-nav-menu--main > ul.elementor-nav-menu > li > a.elementor-item {
    padding-left: 0;
}

/* Keep Elementor footer nav lists visible instead of switching to toggles. */
.elementor-location-footer .elementor-menu-toggle {
    display: none;
}

.elementor-location-footer .elementor-nav-menu--main {
    display: block;
}

.elementor-location-footer .elementor-nav-menu--main .elementor-nav-menu {
    display: block;
}

.elementor-location-footer .elementor-nav-menu--main .elementor-nav-menu,
.elementor-location-footer .elementor-nav-menu--main .sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.elementor-location-footer .elementor-nav-menu--main .elementor-item,
.elementor-location-footer .elementor-nav-menu--main .elementor-sub-item {
    display: inline-block;
    padding: 5px 0;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    transform: none;
    transition: color 0.15s ease;
}

.elementor-location-footer .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-footer .elementor-nav-menu--main .elementor-item:focus,
.elementor-location-footer .elementor-nav-menu--main .elementor-item:focus-visible,
.elementor-location-footer .elementor-nav-menu--main .elementor-sub-item:hover,
.elementor-location-footer .elementor-nav-menu--main .elementor-sub-item:focus,
.elementor-location-footer .elementor-nav-menu--main .elementor-sub-item:focus-visible,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-item:hover,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-item:focus,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-item:focus-visible,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-sub-item:hover,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-sub-item:focus,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-sub-item:focus-visible {
    color: var(--color-accent);
    fill: var(--color-accent);
    font-weight: 300;
    text-decoration: none;
    transform: none !important;
}

/* Kill Elementor Pro pointer/underline/float hover motion in the footer. */
.elementor-location-footer .elementor-widget-nav-menu .elementor-item::before,
.elementor-location-footer .elementor-widget-nav-menu .elementor-item::after,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item::before,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item::after {
    display: none !important;
    content: none !important;
}

.elementor-location-footer .elementor-widget-nav-menu .elementor-item,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item,
.elementor-location-footer .elementor-widget-nav-menu .elementor-item:hover,
.elementor-location-footer .elementor-widget-nav-menu .elementor-item:focus,
.elementor-location-footer .elementor-widget-nav-menu .elementor-item:focus-visible,
.elementor-location-footer .elementor-widget-nav-menu .elementor-item.highlighted,
.elementor-location-footer .elementor-widget-nav-menu .elementor-item.elementor-item-active,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item:hover,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item:focus,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item:focus-visible,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item.highlighted,
.elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item.elementor-item-active,
.elementor-location-footer .elementor-widget-nav-menu [class*="e--pointer"] .elementor-item,
.elementor-location-footer .elementor-widget-nav-menu [class*="e--pointer"] .elementor-item:hover,
.elementor-location-footer .elementor-widget-nav-menu [class*="e--pointer"] .elementor-item:focus,
.elementor-location-footer .elementor-widget-nav-menu [class*="e--pointer"] .elementor-sub-item,
.elementor-location-footer .elementor-widget-nav-menu [class*="e--pointer"] .elementor-sub-item:hover,
.elementor-location-footer .elementor-widget-nav-menu [class*="e--pointer"] .elementor-sub-item:focus,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-nav-menu .elementor-item,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-nav-menu .elementor-item:hover,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-nav-menu .elementor-sub-item:hover {
    transform: none !important;
    font-weight: 300 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.elementor-location-footer .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item,
.elementor-location-footer .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-sub-item,
.elementor-location-footer .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-footer .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:focus,
.elementor-location-footer .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-sub-item:hover,
.elementor-location-footer .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-sub-item:focus {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-item,
.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-item:hover,
.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-item:focus,
.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-item,
.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-item:hover,
.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-item:focus {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-location-footer .elementor-nav-menu--main .elementor-item .sub-arrow,
.elementor-location-footer .elementor-nav-menu--main .elementor-sub-item .sub-arrow {
    display: none;
}

.elementor-location-footer .elementor-nav-menu--layout-vertical .elementor-nav-menu > li {
    display: block;
    margin: 0;
}

.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu,
.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu.elementor-nav-menu--dropdown {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    width: auto !important;
    margin: 0 0 0 16px;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu li {
    display: block;
}

.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item {
    padding: 5px 0;
    color: #c2c4dd;
    background: transparent !important;
}

.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item:hover,
.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item:focus,
.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item.elementor-item-active,
.elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item.highlighted,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item:hover,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item:focus,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item.elementor-item-active,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--layout-vertical .sub-menu .elementor-sub-item.highlighted {
    background: transparent !important;
}

/* ================================
   Elementor footer legal bar (Site Map | Privacy Policy)
   The legal menu sits directly after the divider widget. Force inline
   layout with a pipe divider even when the nav menu is set to vertical.
   ================================ */
.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu {
    width: 100%;
    text-align: left;
}

.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-nav-menu--main,
.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-nav-menu > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-nav-menu > li:not(:last-child)::after {
    content: "|";
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.5);
}

.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-item {
    display: inline-block;
    padding: 0;
}

.elementor-location-footer .elementor-widget-divider + .elementor-widget-nav-menu .elementor-item .sub-arrow {
    display: none;
}

.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu,
.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-nav-menu--main,
.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-nav-menu--main .elementor-nav-menu {
    width: 100%;
    text-align: left;
}

.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-nav-menu--main,
.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-nav-menu--main .elementor-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-nav-menu > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-nav-menu > li:not(:last-child)::after {
    content: "|";
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.5);
}

.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-item {
    display: inline-block;
    padding: 0;
}

.elementor-location-footer .elementor-widget-nav-menu.kbi-footer-legal-menu .elementor-item .sub-arrow {
    display: none;
}

/* ================================
   Elementor footer social icons — design spec ~36px, 12px gap
   Elementor uses --grid-column-gap / word-spacing, not flex gap.
   ================================ */
.elementor-location-footer .elementor-widget-social-icons.kbi-footer-social,
.elementor-location-footer .elementor-widget-social-icons {
    --grid-column-gap: 12px;
    --grid-row-gap: 12px;
}

.elementor-location-footer .elementor-widget-social-icons.kbi-footer-social .elementor-grid,
.elementor-location-footer .elementor-widget-social-icons .elementor-grid {
    grid-column-gap: 12px !important;
    grid-row-gap: 12px !important;
}

.elementor-location-footer .elementor-widget-social-icons.elementor-grid-0 .elementor-grid,
.elementor-location-footer .elementor-widget-social-icons .elementor-grid-0 .elementor-grid {
    word-spacing: 12px !important;
}

.elementor-location-footer .elementor-widget-social-icons.kbi-footer-social .elementor-social-icon,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon {
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 18px;
    line-height: 36px;
}

.elementor-location-footer .elementor-widget-social-icons.kbi-footer-social .elementor-social-icon i,
.elementor-location-footer .elementor-widget-social-icons.kbi-footer-social .elementor-social-icon svg,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon i,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon svg {
    width: 1em;
    height: 1em;
}

.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon {
    transition: color 0.15s ease, opacity 0.15s ease;
}

.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:hover,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus-visible,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:hover,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus-visible {
    --e-social-icon-icon-color: var(--color-accent);
    color: var(--color-accent);
    opacity: 1;
    transform: none;
}

.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:hover i,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus i,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus-visible i,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:hover i,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus i,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus-visible i {
    color: var(--color-accent) !important;
}

.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:hover svg,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus svg,
.elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus-visible svg,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:hover svg,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus svg,
body[class*="elementor-kit-"] .elementor-location-footer .elementor-widget-social-icons .elementor-social-icon:focus-visible svg {
    fill: var(--color-accent) !important;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
    .kbi-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

@media (max-width: 600px) {
    .kbi-footer {
        padding: 32px 0 20px;
    }

    .kbi-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 767px) {
	.elementor-location-footer .elementor-widget-image img {
		transform: none;
	}

	.elementor-location-footer .elementor-widget-nav-menu {
		width: 100%;
	}

    .elementor-location-footer .elementor-menu-toggle {
        display: none !important;
    }

    .elementor-location-footer .elementor-nav-menu--main {
        display: block !important;
    }

    .elementor-location-footer .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        display: none !important;
    }

    .elementor-location-footer .elementor-nav-menu--main .elementor-nav-menu {
        position: static;
        display: block !important;
        width: auto;
    }

    .elementor-location-footer .elementor-nav-menu--main .elementor-item,
    .elementor-location-footer .elementor-nav-menu--main .elementor-sub-item,
    body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-item,
    body[class*="elementor-kit-"] .elementor-location-footer .elementor-nav-menu--main .elementor-sub-item {
        display: inline-block;
        padding: 5px 0;
        color: #d7d9ec;
        fill: #d7d9ec;
        font-family: var(--font-primary);
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
        background: transparent;
    }
}
