/* ==========================================================
   Tiger Nav Menu — front-end styles
   ========================================================== */

/* 1. WRAPPER */
.tg-nm-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 2. INLINE NOTICE */
.tg-nm-notice {
    padding: 20px;
    text-align: center;
    border: 1px dashed #ccc;
    color: #999;
}

/* 3. HAMBURGER */
.tg-nm-hamburger-wrap {
    display: none;
    align-items: center;
}
.tg-nm-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 8px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.tg-nm-hamburger i,
.tg-nm-hamburger svg {
    pointer-events: none;
    display: block;
}

/* 4. DESKTOP NAV CONTAINER */
.tg-nm-desktop {
    width: 100%;
}
.tg-nm-wrap .tg-nm-desktop ul,
.tg-nm-wrap .tg-nm-desktop ul ul,
.tg-nm-wrap .tg-nm-oc ul,
.tg-nm-wrap .tg-nm-oc ul ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tg-nm-wrap .tg-nm-desktop ul li,
.tg-nm-wrap .tg-nm-oc ul li {
    list-style: none !important;
    list-style-type: none !important;
}
.tg-nm-wrap .tg-nm-desktop ul li::marker,
.tg-nm-wrap .tg-nm-oc ul li::marker {
    content: none !important;
}
.tg-nm-wrap .tg-nm-desktop ul li::before,
.tg-nm-wrap .tg-nm-oc ul li::before {
    display: none !important;
}
.tg-nm-layout-horizontal .tg-nm-desktop > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.tg-nm-layout-vertical .tg-nm-desktop > ul {
    display: flex;
    flex-direction: column;
}
.tg-nm-desktop > ul > li {
    position: relative;
}
.tg-nm-desktop > ul > li > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* 5. UNDERLINE INDICATOR */
.tg-nm-underline .tg-nm-desktop > ul > li > a {
    position: relative;
}
.tg-nm-underline .tg-nm-desktop > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}
.tg-nm-underline .tg-nm-desktop > ul > li:hover > a::after,
.tg-nm-underline .tg-nm-desktop > ul > li.current-menu-item > a::after,
.tg-nm-underline .tg-nm-desktop > ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* 6. DROPDOWN SUBMENU */
.tg-nm-desktop .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 200px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}
.tg-nm-desktop .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}
.tg-nm-desktop .sub-menu li {
    position: relative;
}
.tg-nm-desktop .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tg-nm-wrap[data-open-on="hover"] .tg-nm-desktop > ul > li:hover > .sub-menu,
.tg-nm-wrap[data-open-on="hover"] .tg-nm-desktop .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tg-nm-wrap[data-open-on="click"] .tg-nm-desktop li.tg-nm-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tg-nm-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: transform 0.2s ease;
    pointer-events: none;
}
li.tg-nm-open > a .tg-nm-arrow,
li:hover > a .tg-nm-arrow {
    transform: rotate(180deg);
}

/* 7. OVERLAY — fixed full-viewport backdrop */
.tg-nm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.tg-nm-overlay.tg-nm-overlay-active {
    visibility: visible;
    opacity: 1;
}

/* 8. OFFCANVAS PANEL — fixed slide-in */
.tg-nm-oc {
    position: fixed;
    top: 0;
    z-index: 9999;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s,
                opacity 0.35s;
}

.tg-nm-slide-left {
    left: 0;
    right: auto;
    transform: translateX(-105%);
}
.tg-nm-slide-right {
    right: 0;
    left: auto;
    transform: translateX(105%);
}

.tg-nm-oc.tg-nm-oc-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.tg-nm-oc-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.tg-nm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.tg-nm-close i,
.tg-nm-close svg {
    pointer-events: none;
    display: block;
}
.tg-nm-oc ul.tg-nm-menu {
    display: flex;
    flex-direction: column;
}
.tg-nm-oc ul.tg-nm-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    padding: 12px 0;
    transition: color 0.2s ease;
}
.tg-nm-oc ul.tg-nm-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    display: none;
    padding-left: 16px;
    transition: none;
    pointer-events: auto;
}
.tg-nm-oc ul.tg-nm-menu li.tg-nm-open > .sub-menu {
    display: block;
}
body.tg-nm-body-lock {
    overflow: hidden !important;
}

/* ==============================================
   9. BREAKPOINTS LOGIC
   ============================================== */

/* ALWAYS — hamburger always shown */
.tg-nm-bp-always .tg-nm-hamburger-wrap { display: flex !important; }
.tg-nm-bp-always .tg-nm-desktop { display: none !important; }

/* TABLET — < 1025px */
@media (max-width: 1024px) {
    .tg-nm-bp-tablet .tg-nm-hamburger-wrap { display: flex !important; }
    .tg-nm-bp-tablet .tg-nm-desktop { display: none !important; }
}
@media (min-width: 1025px) {
    .tg-nm-bp-tablet .tg-nm-oc,
    .tg-nm-bp-tablet .tg-nm-overlay {
        display: none !important;
        transition: none !important;
    }
}

/* MOBILE — < 768px */
@media (max-width: 767px) {
    .tg-nm-bp-mobile .tg-nm-hamburger-wrap { display: flex !important; }
    .tg-nm-bp-mobile .tg-nm-desktop { display: none !important; }
}
@media (min-width: 768px) {
    .tg-nm-bp-mobile .tg-nm-oc,
    .tg-nm-bp-mobile .tg-nm-overlay {
        display: none !important;
        transition: none !important;
    }
}

/* NONE — hamburger never shown */
.tg-nm-bp-none .tg-nm-hamburger-wrap { display: none !important; }
.tg-nm-bp-none .tg-nm-oc,
.tg-nm-bp-none .tg-nm-overlay {
    display: none !important;
}
