/* ==========================================================================
   Site header — shared across all pages (loaded via /header.css)
   Structure: .sh-top (utility strip) + .sh-bar (sticky main bar)
   States:   .sh-bar.sh-overlay  — homepage only: navy at top, blends into hero
             .sh-bar.is-scrolled — frosted white once the page scrolls
   ========================================================================== */
:root { --sh-navy: #062f57; --sh-blue: #0a4d8c; --sh-gold: #d99b25; --sh-ink: #16324a; }

/* ---- Utility strip ---- */
.sh-top { background: var(--sh-navy); color: rgba(255,255,255,0.78); font-size: 0.74rem; letter-spacing: 0.01em; }
.sh-top-in { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; height: 2.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sh-top-left, .sh-top-right { display: flex; align-items: center; gap: 1.35rem; min-width: 0; }
.sh-top a { color: inherit; text-decoration: none; transition: color 0.15s ease; white-space: nowrap; }
.sh-top a:hover { color: #fff; }
.sh-top .sh-sep { width: 1px; height: 0.9rem; background: rgba(255,255,255,0.18); }
.sh-top strong { color: #fff; font-weight: 600; }
.sh-pulse { position: relative; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: #34d399; vertical-align: middle; }
.sh-pulse::after { content: ""; position: absolute; inset: -0.2rem; border-radius: 50%; border: 2px solid rgba(52,211,153,0.55); animation: shPulse 1.8s ease-out infinite; }
@keyframes shPulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.sh-top i { color: var(--sh-gold); margin-right: 0.35rem; font-size: 0.7rem; }
@media (max-width: 767px) { .sh-top { display: none; } }

/* ---- Main bar ---- */
.sh-bar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(217,155,37,0.35);
    box-shadow: 0 10px 30px -22px rgba(6,47,87,0.5);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.sh-bar-in { max-width: 80rem; margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (max-width: 767px) { .sh-bar-in { padding: 0.6rem 1.1rem; } }

/* Overlay state (homepage top): navy, blends into the hero */
.sh-bar.sh-overlay:not(.is-scrolled) {
    background: rgba(6,47,87,0.98);
    border-bottom-color: rgba(255,255,255,0.10);
    box-shadow: none;
}

/* ---- Brand ---- */
.sh-brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; text-decoration: none; }
.sh-mark {
    position: relative; flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-style: italic; font-size: 1.25rem; letter-spacing: -0.04em;
    background: linear-gradient(150deg, #0d5aa3, #062f57); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 8px 18px -10px rgba(6,47,87,0.7);
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.sh-mark::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.45rem; height: 2px; border-radius: 2px; background: var(--sh-gold); }
.sh-mark span { position: relative; top: -0.12rem; }
.sh-overlay:not(.is-scrolled) .sh-mark { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.sh-name { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.2rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--sh-blue); white-space: nowrap; transition: color 0.35s ease; }
.sh-tagline { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.22rem; white-space: nowrap; }
.sh-role { font-size: 0.72rem; font-weight: 500; color: #5b6b7d; transition: color 0.35s ease; }
.sh-lbji { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-gold); text-decoration: none; padding: 0.12rem 0.45rem; border: 1px solid rgba(217,155,37,0.5); border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.sh-lbji:hover { background: var(--sh-gold); color: var(--sh-navy); }
.sh-overlay:not(.is-scrolled) .sh-name { color: #fff; }
.sh-overlay:not(.is-scrolled) .sh-role { color: rgba(255,255,255,0.7); }
@media (max-width: 479px) { .sh-lbji { display: none; } .sh-name { font-size: 1.05rem; } }

/* ---- Desktop nav ---- */
.sh-nav { display: none; align-items: center; gap: 0.15rem; }
@media (min-width: 1024px) { .sh-nav { display: flex; } }
.sh-bar .nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.55rem 0.8rem; border-radius: 0; border: 0;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: #35506b; text-decoration: none; white-space: nowrap;
    transition: color 0.2s ease;
}
.sh-bar .nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: 0.05rem; width: 0.3rem; height: 0.3rem; border-radius: 50%;
    background: var(--sh-gold); transform: translate(-50%, 0.3rem) scale(0); opacity: 0;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), opacity 0.25s ease;
}
.sh-bar .nav-link:hover, .sh-bar .nav-link.active { color: var(--sh-blue); }
.sh-bar .nav-link:hover::after, .sh-bar .nav-link.active::after { transform: translate(-50%, 0) scale(1); opacity: 1; }
.sh-overlay:not(.is-scrolled) .nav-link { color: rgba(255,255,255,0.82); }
.sh-overlay:not(.is-scrolled) .nav-link:hover, .sh-overlay:not(.is-scrolled) .nav-link.active { color: #fff; }
.sh-chev { width: 0.8em; height: 0.8em; flex-shrink: 0; opacity: 0.7; transition: transform 0.2s ease; }
.sh-drop:hover > .nav-link .sh-chev, .sh-drop:focus-within > .nav-link .sh-chev { transform: rotate(180deg); }

/* Dropdown panels */
.sh-drop { position: relative; display: inline-flex; }
.sh-panel { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); padding-top: 0.6rem; visibility: hidden; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 60; }
.sh-drop:hover > .sh-panel, .sh-drop:focus-within > .sh-panel { visibility: visible; opacity: 1; }
.sh-panel-in {
    background: #fff; border: 1px solid #e3eaf2; border-radius: 0.9rem; padding: 0.9rem;
    box-shadow: 0 30px 60px -20px rgba(6,47,87,0.35), 0 0 0 1px rgba(217,155,37,0.12);
}
.sh-panel-in::before { content: ""; position: absolute; top: 0.25rem; left: 50%; width: 0.7rem; height: 0.7rem; background: #fff; border-left: 1px solid #e3eaf2; border-top: 1px solid #e3eaf2; transform: translateX(-50%) rotate(45deg); }
.sh-panel-title { display: block; margin: 0.1rem 0.75rem 0.5rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-gold); }
.sh-panel-grid { display: grid; gap: 2px; }
.sh-panel-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 33rem; }
.sh-panel-grid.cols-1 { grid-template-columns: 1fr; width: 17rem; }
.sh-panel-grid a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.86rem; font-weight: 500; color: #35506b; text-decoration: none; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease; }
.sh-panel-grid a:hover { background: #eef5fc; color: var(--sh-blue); padding-left: 0.95rem; }
.sh-panel-grid a small { display: block; margin-top: 0.1rem; font-size: 0.72rem; font-weight: 400; color: #7a8a9c; }

/* ---- CTAs ---- */
.sh-ctas { display: flex; align-items: center; gap: 0.6rem; }
.sh-cta-ask, .sh-cta-call {
    display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; cursor: pointer;
    font-family: inherit; font-size: 0.82rem; font-weight: 700; padding: 0.62rem 1.05rem; border-radius: 999px;
    text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sh-cta-ask { background: transparent; border: 1px solid #c9d6e3; color: var(--sh-blue); }
.sh-cta-ask:hover { background: #eef5fc; transform: translateY(-1px); }
.sh-cta-ask i { color: var(--sh-gold); }
.sh-overlay:not(.is-scrolled) .sh-bar-in .sh-cta-ask { border-color: rgba(255,255,255,0.3); color: #fff; }
.sh-overlay:not(.is-scrolled) .sh-bar-in .sh-cta-ask:hover { background: rgba(255,255,255,0.1); }
.sh-cta-call { position: relative; overflow: hidden; border: 1px solid transparent; background: var(--sh-gold); color: var(--sh-navy); box-shadow: 0 10px 22px -12px rgba(217,155,37,0.9); }
.sh-cta-call:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(217,155,37,1); }
.sh-cta-call::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent); transform: skewX(-20deg); animation: shShine 6s ease-in-out infinite; pointer-events: none; }
@keyframes shShine { 0% { left: -60%; } 30%, 100% { left: 145%; } }
@media (prefers-reduced-motion: reduce) { .sh-cta-call::before, .sh-pulse::after { animation: none; } }
.sh-cta-call .sh-num { font-variant-numeric: tabular-nums; }
@media (max-width: 1279px) { .sh-cta-call .sh-num { display: none; } .sh-cta-call .sh-call-word { display: inline; } }
@media (min-width: 1280px) { .sh-cta-call .sh-call-word { display: none; } }
@media (max-width: 639px) { .sh-cta-ask { display: none; } .sh-cta-call { padding: 0.62rem 0.85rem; } .sh-cta-call .sh-call-word { display: none; } }

/* Burger */
.sh-burger { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid #c9d6e3; border-radius: 0.7rem; background: transparent; color: var(--sh-blue); font-size: 1.05rem; cursor: pointer; transition: background 0.2s ease, color 0.25s ease, border-color 0.25s ease; }
.sh-burger:hover { background: #eef5fc; }
.sh-overlay:not(.is-scrolled) .sh-burger { color: #fff; border-color: rgba(255,255,255,0.3); }
@media (min-width: 1024px) { .sh-burger { display: none; } }

/* ---- Mobile menu ---- */
#mobileMenu.sh-mobile { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; background: #fff; border-top: 1px solid #e9eef4; }
#mobileMenu.sh-mobile.open { max-height: 80vh; overflow-y: auto; opacity: 1; }
@media (min-width: 1024px) { .sh-mobile { display: none; } }
.sh-mobile-in { padding: 0.5rem 1.25rem 1.25rem; }
.sh-acc { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0.85rem 0; border: 0; border-bottom: 1px solid #edf1f5; background: none; font: inherit; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sh-ink); text-align: left; cursor: pointer; }
.sh-acc .sh-chev { transition: transform 0.2s ease; }
.sh-acc[aria-expanded="true"] .sh-chev { transform: rotate(180deg); }
.sh-acc[aria-expanded="true"] { color: var(--sh-blue); }
.sh-sub { display: none; padding: 0.35rem 0 0.6rem 0.9rem; border-bottom: 1px solid #edf1f5; border-left: 2px solid var(--sh-gold); margin: 0.35rem 0 0.35rem 0.15rem; }
.sh-sub.open { display: block; }
.sh-sub a { display: block; padding: 0.42rem 0; font-size: 0.92rem; color: #4b5c6e; text-decoration: none; }
.sh-sub a:hover { color: var(--sh-blue); }
.sh-mobile-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.sh-mobile-ctas a, .sh-mobile-ctas button { display: inline-flex !important; justify-content: center; padding: 0.8rem 1rem; }
.sh-mobile-ctas .sh-cta-ask { border-color: #c9d6e3; color: var(--sh-blue); background: #fff; }
.sh-mobile-meta { margin-top: 0.9rem; font-size: 0.74rem; color: #6b7a8c; text-align: center; }
.sh-mobile-meta .sh-pulse { margin-right: 0.35rem; }
