/* ============================================================
   TJH NAV — Standalone mega menu bar
   Sits below top bar, above quick access bar
   No dependency on Medicare styles whatsoever
============================================================ */

/* ── WRAPPER (sticky) ── */
.tjh-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,63,127,.08);
    border-bottom: 1px solid var(--tjh-border);
}

/* ── NAV CONTAINER ── */
.tjh-nav__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ── LOGO ── */
.tjh-nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    margin-right: 8px;
}
.tjh-nav__logo img {
    height: 52px;
    width: auto;
    display: block;
}
.tjh-nav__logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tjh-primary);
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ── DESKTOP NAV LIST ── */
.tjh-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    height: 68px;
    align-items: center;
    flex: 1;
}

.tjh-nav__item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* ── NAV LINKS + BUTTONS ── */
.tjh-nav__link,
.tjh-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: 100%;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--tjh-text) !important;
    text-decoration: none !important;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    line-height: 1;
}
.tjh-nav__link:hover,
.tjh-nav__btn:hover,
.tjh-nav__item--mega.is-open > .tjh-nav__btn {
    color: var(--tjh-secondary) !important;
    border-bottom-color: var(--tjh-secondary);
}

/* Chevron */
.tjh-nav__chevron {
    transition: transform .2s;
    flex-shrink: 0;
    fill: currentColor;
}
.tjh-nav__item--mega.is-open > .tjh-nav__btn .tjh-nav__chevron {
    transform: rotate(180deg);
}

/* ── RIGHT SIDE ── */
.tjh-nav__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Search button */
.tjh-nav__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--tjh-primary);
    border-radius: 4px;
    transition: background .2s;
}
.tjh-nav__search-btn:hover { background: var(--tjh-accent); }
.tjh-nav__search-btn svg { fill: currentColor; }

/* Find a Doctor CTA */
.tjh-nav__cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--tjh-secondary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    text-decoration: none !important;
    border-radius: 4px;
    white-space: nowrap;
    transition: background .2s;
}
.tjh-nav__cta:hover { background: var(--tjh-primary); color: #fff !important; }

/* ── SEARCH BAR ── */
.tjh-nav__search-bar {
    background: var(--tjh-accent);
    border-top: 1px solid var(--tjh-border);
    border-bottom: 1px solid var(--tjh-border);
}
.tjh-nav__search-bar[hidden] { display: none; }
.tjh-nav__search-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tjh-nav__search-inner form {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--tjh-border);
    border-radius: 6px;
    overflow: hidden;
}
.tjh-nav__search-inner input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: .95rem;
    outline: none;
    background: transparent;
}
.tjh-nav__search-inner button[type="submit"] {
    background: var(--tjh-secondary);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.tjh-nav__search-inner button[type="submit"] svg { fill: #fff; }
.tjh-nav__search-close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--tjh-muted);
    padding: 6px;
}
.tjh-nav__search-close:hover { color: var(--tjh-primary); }

/* ── MEGA PANELS ── */
.tjh-mega {
    position: fixed;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 3px solid var(--tjh-secondary);
    box-shadow: 0 8px 32px rgba(0,63,127,.12);
    z-index: 999;
}
.tjh-mega[hidden] { display: none; }
.tjh-mega.is-visible { display: block; }

.tjh-mega__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 32px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* Left panel */
.tjh-mega__left {
    flex-shrink: 0;
    width: 240px;
    padding-right: 48px;
    border-right: 1px solid var(--tjh-border);
}
.tjh-mega__section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--tjh-muted);
    margin: 0 0 10px;
    font-family: 'Montserrat', Arial, sans-serif;
}
.tjh-mega__rule {
    width: 36px;
    height: 3px;
    background: var(--tjh-secondary);
    border-radius: 2px;
    margin-bottom: 14px;
}
.tjh-mega__desc {
    font-size: .875rem;
    color: var(--tjh-text);
    line-height: 1.65;
    margin-bottom: 20px;
}
.tjh-mega__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tjh-secondary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background .2s;
}
.tjh-mega__cta-btn:hover { background: var(--tjh-primary); }

/* Right panel */
.tjh-mega__right { flex: 1; }

.tjh-mega__links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}
.tjh-mega__links--3col { columns: 3; }
.tjh-mega__links--2col { columns: 2; }

.tjh-mega__links li {
    break-inside: avoid;
    margin-bottom: 2px;
}
.tjh-mega__links a {
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
    font-size: 13.5px;
    color: var(--tjh-text) !important;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background .15s, color .15s;
    line-height: 1.3;
}
.tjh-mega__links a:hover {
    background: var(--tjh-accent);
    color: var(--tjh-secondary) !important;
}
.tjh-mega__sub {
    font-size: 11px;
    color: var(--tjh-muted);
    margin-top: 1px;
}
.tjh-mega__view-all a {
    color: var(--tjh-secondary) !important;
    font-weight: 700;
    border-top: 1px solid var(--tjh-border);
    margin-top: 6px;
    padding-top: 10px;
}
.tjh-mega__view-all a:hover {
    color: var(--tjh-primary) !important;
    background: transparent;
}

/* ── HAMBURGER ── */
.tjh-nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 2px solid var(--tjh-border);
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.tjh-nav__hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--tjh-primary);
    border-radius: 2px;
    transition: all .25s;
}
.tjh-nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tjh-nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.tjh-nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE OVERLAY ── */
.tjh-mob {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.tjh-mob.is-open { transform: translateX(0); }

.tjh-mob__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--tjh-primary);
    flex-shrink: 0;
}
.tjh-mob__logo img { max-height: 44px; filter: brightness(0) invert(1); }
.tjh-mob__logo span { color: #fff; font-weight: 700; font-size: 1.1rem; }
.tjh-mob__close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.tjh-mob__close svg { fill: currentColor; }
.tjh-mob__close:hover { background: rgba(255,255,255,.15); }

.tjh-mob__nav { flex: 1; overflow-y: auto; }
.tjh-mob__nav > ul { list-style: none; margin: 0; padding: 0; }
.tjh-mob__nav > ul > li { border-bottom: 1px solid var(--tjh-border); }
.tjh-mob__nav > ul > li > a {
    display: block;
    padding: 16px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--tjh-primary) !important;
    text-decoration: none !important;
    font-family: 'Montserrat', Arial, sans-serif;
}
.tjh-mob__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    color: var(--tjh-primary);
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    text-align: left;
}
.tjh-mob__toggle svg { fill: currentColor; transition: transform .25s; flex-shrink: 0; }
.tjh-mob__has-sub.is-open .tjh-mob__toggle svg { transform: rotate(180deg); }

.tjh-mob__sub {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
}
.tjh-mob__has-sub.is-open .tjh-mob__sub { display: block; }
.tjh-mob__sub li a {
    display: block;
    padding: 11px 20px 11px 36px;
    font-size: .875rem;
    color: var(--tjh-text) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.tjh-mob__sub li a:hover { color: var(--tjh-secondary) !important; background: var(--tjh-accent); }

.tjh-mob__cta {
    display: block;
    margin: 16px 20px;
    padding: 13px 20px;
    background: var(--tjh-secondary);
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    text-decoration: none !important;
    border-radius: 4px;
}

.tjh-mob__foot {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 2px solid var(--tjh-border);
    flex-shrink: 0;
}
.tjh-mob__foot a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--tjh-primary) !important;
    background: var(--tjh-accent);
}
.tjh-mob__foot a:last-child {
    background: var(--tjh-primary);
    color: #fff !important;
}

.tjh-mob__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9998;
    display: none;
}
.tjh-mob__backdrop.is-visible { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .tjh-nav__list { display: none; }
    .tjh-nav__hamburger { display: flex; }
    .tjh-mega { display: none !important; }
    .tjh-nav__search-btn { display: none; }
}
@media (max-width: 600px) {
    .tjh-nav__container { padding: 0 16px; height: 60px; }
    .tjh-nav__logo img { height: 42px; }
}
