/*
 * FLOO SITE FINISH 2.1.6
 * Compact Kadence header + quiet docking jump navigation.
 */

:root {
    --floo-header-height-desktop: 58px;
    --floo-header-height-mobile: 50px;
    --floo-header-bg: #eaf7fb;
    --floo-header-ink: #123a59;
    --floo-header-accent: #812a42;
}

/* =========================================================
   1. COMPACT KADENCE HEADER
   ========================================================= */

#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap,
#masthead .site-main-header-wrap .site-header-row-container-inner {
    min-height: var(--floo-header-height-desktop) !important;
}

#masthead .site-header-row-container-inner > .site-container,
#masthead .site-main-header-inner-wrap {
    min-height: var(--floo-header-height-desktop) !important;
}

#masthead .site-header-item,
#masthead .site-branding {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*
 * The Floo wordmark already contains the name.
 * Hide Kadence's additional written site title/tagline.
 */
#masthead .site-title-wrap,
#masthead .site-title,
#masthead .site-description {
    display: none !important;
}

#masthead .site-branding a.brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
}

#masthead .site-branding img,
#masthead img.custom-logo {
    display: block !important;
    width: auto !important;
    max-width: 132px !important;
    max-height: 46px !important;
    object-fit: contain !important;
}

/* Primary menu: slightly tighter, but still comfortably clickable. */
#masthead .main-navigation .primary-menu-container > ul > li > a,
#masthead .main-navigation .menu > li > a {
    min-height: 0 !important;
    padding-top: 0.48rem !important;
    padding-bottom: 0.48rem !important;
    padding-left: 0.62rem !important;
    padding-right: 0.62rem !important;
    line-height: 1.15 !important;
}

/* =========================================================
   2. JUMP NAVIGATION – SAME VISUAL TONE AS HEADER
   ========================================================= */

.floo-jump-nav {
    position: sticky !important;
    top: var(--floo-header-height-desktop) !important;
    z-index: 65 !important;

    gap: 1px !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    margin: 14px auto 30px !important;
    padding: 3px 5px !important;

    flex-wrap: nowrap !important;
    justify-content: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    color: var(--floo-header-ink) !important;
    background: rgba(234, 247, 251, 0.97) !important;
    border: 1px solid rgba(18, 58, 89, 0.065) !important;
    border-top-color: rgba(18, 58, 89, 0.035) !important;
    border-radius: 0 0 13px 13px !important;
    box-shadow: 0 5px 12px rgba(18, 58, 89, 0.045) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.floo-jump-nav::-webkit-scrollbar {
    display: none;
}

.floo-jump-nav a {
    flex: 0 0 auto !important;
    padding: 0.34rem 0.58rem !important;
    color: #244f6d !important;
    background: transparent !important;
    border-radius: 999px !important;

    font-size: 0.76rem !important;
    font-weight: 640 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.005em;
    text-align: center;
    white-space: nowrap;
}

.floo-jump-nav a:hover,
.floo-jump-nav a:focus-visible {
    color: var(--floo-header-accent) !important;
    background: rgba(255, 255, 255, 0.62) !important;
}

/* Keep anchor targets below sticky header + docked jump bar. */
:where([id]) {
    scroll-margin-top: 108px !important;
}

/* WordPress admin bar while testing logged in. */
body.admin-bar .floo-jump-nav {
    top: calc(var(--floo-header-height-desktop) + 32px) !important;
}

/* =========================================================
   3. MOBILE
   ========================================================= */

@media (max-width: 782px) {
    #masthead .site-mobile-header-wrap,
    #masthead .site-mobile-header,
    #masthead .site-mobile-header-wrap .site-header-row-container-inner,
    #masthead .site-mobile-header-wrap .site-header-row-container-inner > .site-container,
    #masthead .site-mobile-header-wrap .site-main-header-inner-wrap {
        min-height: var(--floo-header-height-mobile) !important;
    }

    #masthead .site-mobile-header-wrap .site-branding img,
    #masthead .site-mobile-header-wrap img.custom-logo,
    #masthead .site-branding img,
    #masthead img.custom-logo {
        max-width: 110px !important;
        max-height: 39px !important;
    }

    /* Keep the trigger compact but easy to tap. */
    #masthead .menu-toggle-open,
    #masthead .mobile-toggle-open-container button {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 7px !important;
    }

    .floo-jump-nav {
        top: var(--floo-header-height-mobile) !important;
        max-width: calc(100vw - 12px) !important;
        margin: 10px auto 25px !important;
        padding: 2px 4px !important;
        justify-content: flex-start !important;
        border-radius: 0 0 11px 11px !important;
        box-shadow: 0 4px 10px rgba(18, 58, 89, 0.04) !important;
    }

    .floo-jump-nav a {
        padding: 0.32rem 0.53rem !important;
        font-size: 0.73rem !important;
    }

    :where([id]) {
        scroll-margin-top: 94px !important;
    }

    body.admin-bar .floo-jump-nav {
        top: calc(var(--floo-header-height-mobile) + 46px) !important;
    }
}
