/* ================================================================
   G7 NAVBAR — nav.css
   Single sticky bar (desktop) + left drawer + bottom tabs (mobile)
   ================================================================ */

/* ---- Sticky wrapper (applied to #menu-top from scope.header.php) */
#menu-top {
    position: sticky;
    top: 0;
    z-index: 900;
    line-height: 1;
}

/* ---- Box-sizing reset ----------------------------------------- */
.g7-navbar, .g7-navbar *,
.g7-drawer, .g7-drawer *,
.g7-bottom-tabs, .g7-bottom-tabs *,
.g7-drawer-backdrop {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.g7-navbar {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 20px;
    background: var(--color1, #005F6B);
    box-shadow: 0 2px 10px rgba(0,0,0,.32);
    gap: 4px;
}

/* Brand */
.g7-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    margin-right: 12px;
}
.g7-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color2, #4ABDAC);
    color: #fff;
    border-radius: 7px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.g7-brand-text {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    color: rgba(255,255,255,.92);
}

/* ---- Desktop nav list ----------------------------------------- */
.g7-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    flex: 1;
    gap: 2px;
}

.g7-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s, color .16s;
    border: none;
    background: none;
    line-height: 1.2;
}
.g7-nav-item:hover,
.g7-has-dropdown.g7-active > .g7-nav-item {
    background: rgba(255,255,255,.14);
    color: #fff;
}

/* Chevron */
.g7-chevron {
    font-size: 9px;
    transition: transform .2s ease;
    pointer-events: none;
    flex-shrink: 0;
}
.g7-has-dropdown.g7-active .g7-nav-item .g7-chevron {
    transform: rotate(180deg);
}

/* ---- Dropdown -------------------------------------------------- */
.g7-has-dropdown {
    position: relative;
}

.g7-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 270px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    padding: 5px 0;
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1100;
}
.g7-dropdown.g7-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.g7-dropdown-right {
    left: auto;
    right: 0;
    min-width: 210px;
}

.g7-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.35;
    transition: background .13s;
    white-space: normal;
}
.g7-dropdown a:hover {
    background: #edf7f6;
    color: var(--color1, #005F6B);
}
.g7-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--color1, #005F6B);
    opacity: .75;
    flex-shrink: 0;
    font-size: 13px;
}
.g7-dropdown hr {
    margin: 4px 16px;
    border: none;
    border-top: 1px solid #eee;
}
.g7-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 8px;
    color: #888;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    cursor: default;
    font-weight: 500;
}

/* ---- User avatar ----------------------------------------------- */
.g7-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color2, #4ABDAC);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,.35);
    transition: border-color .18s, transform .18s;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.g7-avatar:hover {
    border-color: rgba(255,255,255,.85);
    transform: scale(1.06);
}
.g7-avatar-lg {
    width: 46px;
    height: 46px;
    font-size: 17px;
    border: 2px solid rgba(255,255,255,.12);
    cursor: default;
    transform: none !important;
}

/* Right section */
.g7-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ---- Hamburger ------------------------------------------------- */
.g7-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background .16s;
}
.g7-hamburger:hover { background: rgba(255,255,255,.13); }
.g7-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ================================================================
   DRAWER BACKDROP
   ================================================================ */
.g7-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.g7-drawer-backdrop.g7-open {
    opacity: 1;
    pointer-events: auto;
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
.g7-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    height: 100dvh;
    background: #1b2f36;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.g7-drawer.g7-open {
    transform: translateX(0);
}

.g7-drawer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 56px;
    background: var(--color1, #005F6B);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.g7-drawer-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color .15s;
}
.g7-drawer-close:hover { color: #fff; }

.g7-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.g7-drawer-username {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.g7-drawer-nav {
    display: block !important;
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 24px;
}
.g7-drawer-nav > li {
    display: block !important;
    width: 100%;
    float: none !important;
}

.g7-drawer-nav > li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .13s, color .13s;
}
.g7-drawer-nav > li > a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.g7-drawer-nav > li > a i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    opacity: .7;
}

.g7-drawer-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 20px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    cursor: pointer;
    text-align: left;
    transition: background .13s, color .13s;
}
.g7-drawer-toggle:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.g7-drawer-toggle i:first-child {
    width: 18px;
    text-align: center;
    font-size: 15px;
    opacity: .7;
}
.g7-drawer-toggle .g7-chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform .22s;
}
.g7-drawer-group.g7-open > .g7-drawer-toggle .g7-chevron {
    transform: rotate(180deg);
}

.g7-drawer-submenu {
    display: block !important;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(0,0,0,.2);
    transition: max-height .28s ease;
}
.g7-drawer-group.g7-open > .g7-drawer-submenu {
    max-height: 500px;
}
.g7-drawer-submenu li {
    display: block !important;
    width: 100%;
    float: none !important;
}
.g7-drawer-submenu li a {
    display: block !important;
    padding: 11px 20px 11px 52px;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,.03);
    transition: background .12s, color .12s;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
}
.g7-drawer-submenu li a:hover {
    background: rgba(255,255,255,.05);
    color: var(--color2, #4ABDAC);
}

body.g7-noscroll { overflow: hidden; }

/* ================================================================
   BOTTOM TAB BAR
   ================================================================ */
.g7-bottom-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--color1, #005F6B);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 -3px 12px rgba(0,0,0,.28);
    z-index: 900;
    align-items: stretch;
}
.g7-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 10px;
    font-family: 'Roboto', sans-serif;
    padding: 8px 2px;
    transition: color .15s, background .15s;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}
.g7-tab i { font-size: 19px; line-height: 1; }
.g7-tab:hover, .g7-tab:active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .g7-nav-links   { display: none !important; }
    .g7-hamburger   { display: flex; }
    .g7-brand-text  { display: none; }
    .g7-bottom-tabs { display: flex; }
    .g7-user-menu   { display: none; }

    .wrap--content > article {
        margin-bottom: 72px !important;
    }
}

@media (min-width: 769px) {
    .g7-drawer          { display: none !important; }
    .g7-drawer-backdrop { display: none !important; }
    .g7-bottom-tabs     { display: none !important; }
    .g7-hamburger       { display: none !important; }
}
