/* ══════════════════════════════════════════════════════════════
   Header polish — layered on top of Kadence theme header
   ══════════════════════════════════════════════════════════════ */

/* ── Tighter height ──────────────────────────────────────────── */
.site-main-header-inner-wrap {
    min-height: 70px !important;
}

/* ── Subtle bottom separation ────────────────────────────────── */
.site-header-wrap {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ── Sticky header depth ─────────────────────────────────────── */
.item-is-fixed:not(.item-at-start) .site-header-wrap {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Nav links ───────────────────────────────────────────────── */
#site-navigation .primary-menu-container > ul > li > a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.15s, opacity 0.15s;
}

#site-navigation .primary-menu-container > ul > li > a:hover {
    opacity: 0.75;
}

/* Active page — subtle underline accent */
#site-navigation .primary-menu-container > ul > li.current-menu-item > a {
    font-weight: 600;
}

/* ── Dropdown menu ───────────────────────────────────────────── */
#site-navigation .sub-menu {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#site-navigation .sub-menu li a {
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: background 0.15s;
}

#site-navigation .sub-menu li a:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ── Social icons ────────────────────────────────────────────── */
.header-social-wrap .social-button {
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
}

.header-social-wrap .social-button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ── Logo ────────────────────────────────────────────────────── */
.site-branding .custom-logo {
    transition: opacity 0.15s;
}

.site-branding .custom-logo:hover {
    opacity: 0.85;
}

.mobile-site-branding {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.site-header-row-container-inner {
    background: unset !important;
}

#masthead {
    background: #8babff !important;
}

/* ── Tablet/mobile logo cap ───────────────────────────
   Cap height to 50px so the header stays tight; let width
   scale proportionally to preserve the logo's aspect ratio. */
@media all and (max-width: 1024px) {
    .site-branding a.brand img,
    .site-branding a.brand img.svg-logo-image {
        height: 50px !important;
        max-height: 50px !important;
        width: auto !important;
        max-width: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    /* Homepage transparent header on mobile: put #masthead back in
       normal flow so the hero row sits below it instead of behind it.
       Only the homepage still has `mobile-transparent-header` (the
       body_class filter removes it elsewhere). */
    body.mobile-transparent-header #masthead {
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
}

.site-container {
  padding: 0 !important;
}

.site-branding {
  padding-top: 0 !important;
}
