/* NT 2026-09-29 D1 topbar (pklawfirm.sk): black bar above HFE headers 3964 / 10291, shortcode [nt_topbar]
   in container 90b8f11 (class nt-topbar). Sizes taken from stand 8083 (menu 14px/500, phone and e-mail 17px/700).
   On tablet and phone the bar is hidden by Elementor (hide_tablet_extra and below), nothing changes there. */

.nt-topbar {
    position: relative;
    --nt-tb-gap: 26px;
    --nt-tb-info-gap: 22px;
}
/* above the header row (z-index 99) only while in use, so the open side panel still covers the bar */
.nt-topbar:hover,
.nt-topbar:focus-within {
    z-index: 120;
}
.nt-topbar > .nt-topbar-sc {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.nt-topbar .nt-tb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 32px;
    white-space: nowrap;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
}
.nt-topbar .nt-tb ul,
.nt-topbar .nt-tb li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nt-topbar .nt-tb li::before {
    content: none;
    display: none;
}

/* ---------- left: menu ---------- */
.nt-topbar .nt-tb-nav {
    display: block;
    flex: 0 1 auto;
}
.nt-topbar ul.nt-tb-menu {
    display: flex;
    align-items: center;
    gap: var(--nt-tb-gap);
}
.nt-topbar ul.nt-tb-menu > li {
    position: relative;
}
.nt-topbar ul.nt-tb-menu > li > a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    color: #fff;
    text-decoration: none;
    transition: color .2s;
}
.nt-topbar ul.nt-tb-menu > li > a:hover,
.nt-topbar ul.nt-tb-menu > li:hover > a,
.nt-topbar ul.nt-tb-menu > li:focus-within > a,
.nt-topbar ul.nt-tb-menu > li.current-menu-item > a,
.nt-topbar ul.nt-tb-menu > li.current-menu-ancestor > a {
    color: #166574;
}
.nt-topbar ul.nt-tb-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 7px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform .2s;
}
.nt-topbar ul.nt-tb-menu > li.menu-item-has-children:hover > a::after,
.nt-topbar ul.nt-tb-menu > li.menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
}
/* dropdown: white card over the header row */
.nt-topbar ul.nt-tb-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 1000;
    display: block;
    min-width: 240px;
    padding: 10px 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 38px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.nt-topbar ul.nt-tb-menu > li:hover > .sub-menu,
.nt-topbar ul.nt-tb-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.nt-topbar ul.nt-tb-menu .sub-menu a {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #1f1f1f;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}
.nt-topbar ul.nt-tb-menu .sub-menu a:hover,
.nt-topbar ul.nt-tb-menu .sub-menu a:focus,
.nt-topbar ul.nt-tb-menu .sub-menu .current-menu-item > a {
    color: #1f1f1f;
    background-color: rgba(22, 101, 116, .18);
}

/* ---------- right: address, phone, e-mail, socials ---------- */
.nt-topbar .nt-tb-info {
    display: flex;
    align-items: center;
    gap: var(--nt-tb-info-gap);
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    color: #fff;
}
.nt-topbar .nt-tb-addr {
    color: #fff;
    text-decoration: none;
    transition: color .2s;
}
.nt-topbar .nt-tb-addr:hover {
    color: #166574;
}
.nt-topbar .nt-tb-label {
    color: #fff;
}
.nt-topbar .nt-tb-phone a,
.nt-topbar .nt-tb-mail a {
    font-size: 17px;
    font-weight: 700;
    color: #166574;
    text-decoration: none;
    transition: color .2s;
}
.nt-topbar .nt-tb-phone a:hover,
.nt-topbar .nt-tb-mail a:hover {
    color: #0f4c57;
}
.nt-topbar ul.nt-tb-social {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}
.nt-topbar ul.nt-tb-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    border-left: 1px solid #43413e;
    color: #fff;
    transition: color .2s;
}
.nt-topbar ul.nt-tb-social li:last-child a {
    width: 32px;
    justify-content: flex-end;
}
.nt-topbar ul.nt-tb-social a:hover,
.nt-topbar ul.nt-tb-social a:focus {
    color: #166574;
}
.nt-topbar ul.nt-tb-social svg {
    width: 13px;
    height: 13px;
    display: block;
}
.nt-topbar ul.nt-tb-social li:nth-child(4) svg {
    width: 15px;
}

/* ---------- widths: the bar is always one line ----------
   Full content (menu 7 items + address + phone + e-mail + socials) needs about 1860 px of viewport.
   <1860: address hidden; <1600: labels "Volajte 24/7:" and "E-mail:" hidden, smaller gaps and side padding;
   <1400: menu 13px, social cells narrower; <1300: social icons hidden. Tablet and phone: bar hidden by Elementor. */
@media (max-width: 1859px) {
    .nt-topbar .nt-tb-addr {
        display: none;
    }
    .nt-topbar {
        --nt-tb-gap: 18px;
        --nt-tb-info-gap: 16px;
    }
}
@media (max-width: 1599px) {
    .e-con.e-flex.elementor-element.nt-topbar {
        --padding-left: 24px;
        --padding-right: 24px;
    }
    .nt-topbar {
        --nt-tb-gap: 14px;
        --nt-tb-info-gap: 12px;
    }
    .nt-topbar .nt-tb {
        gap: 14px;
    }
    .nt-topbar .nt-tb-label {
        display: none;
    }
    .nt-topbar ul.nt-tb-menu > li.menu-item-has-children > a::after {
        margin-left: 5px;
    }
}
@media (max-width: 1399px) {
    .nt-topbar {
        --nt-tb-gap: 12px;
        --nt-tb-info-gap: 10px;
    }
    .nt-topbar ul.nt-tb-menu > li > a {
        font-size: 13px;
    }
    .nt-topbar ul.nt-tb-social a {
        width: 30px;
    }
    .nt-topbar ul.nt-tb-social li:last-child a {
        width: 26px;
    }
}
@media (max-width: 1299px) {
    .nt-topbar ul.nt-tb-social {
        display: none;
    }
}
