/* =====================================================================
   Site header / navigation (matches frontend home page)
   ---------------------------------------------------------------------
   Two clear responsive states:
     - >= 1200px : horizontal nav bar
     - <  1200px : compact bar with hamburger dropdown
   ===================================================================== */

#tg-header.tg-header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 0;
    position: absolute;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 2px 20px rgba(20, 20, 40, .07);
}

#tg-header .tg-header-inner {
    float: none;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#tg-header .tg-logo {
    flex: 0 0 auto;
    float: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
    line-height: 0;
    width: auto !important;
    text-align: left;
}

#tg-header .tg-logo a {
    display: inline-flex;
    align-items: center;
}

#tg-header .tg-logo img {
    width: 200px;
    height: auto;
}

#tg-header .tg-navigationarea {
    flex: 1 1 auto;
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    width: auto !important;
    text-align: right;
}

/* Desktop nav (>= 1200px) */
#tg-header .tg-nav {
    display: block;
}

#tg-header .tg-nav-mobile {
    display: none;
}

#tg-header .tg-nav .navbar-header {
    display: none;
}

#tg-header .tg-navigation {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    width: auto;
    float: none;
    top: auto;
}

#tg-header .tg-navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: auto;
    float: none;
    text-align: right;
}

#tg-header .tg-navigation > ul > li {
    display: inline-flex;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
    width: auto;
    border: 0;
}

#tg-header .tg-navigation > ul > li > a {
    position: relative;
    display: block;
    padding: 9px 13px;
    color: #2c2c2c;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    font: 600 13px/1.4 Montserrat, Arial, Helvetica, sans-serif;
    transition: color .2s ease, background .2s ease;
}

#tg-header .tg-navigation > ul > li > a:before {
    content: "";
    position: absolute;
    top: auto;
    left: 13px;
    right: 13px;
    bottom: 5px;
    width: auto;
    height: 2px;
    background: #f58634;
    opacity: 0;
    visibility: visible;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity .2s ease, transform .2s ease;
}

#tg-header .tg-navigation > ul > li > a:hover {
    color: #f58634;
    background: rgba(245, 134, 52, .08);
}

#tg-header .tg-navigation > ul > li.tg-active > a {
    color: #f58634;
}

#tg-header .tg-navigation > ul > li.tg-active > a:before,
#tg-header .tg-navigation > ul > li > a:hover:before {
    top: auto;
    opacity: 1;
    transform: scaleX(1);
}

@media (min-width: 1200px) and (max-width: 1339px) {
    #tg-header .tg-navigation > ul > li > a {
        padding: 9px 10px;
        font-size: 12px;
    }
}

/* Hamburger button */
#tg-header .menu-toggle {
    float: none;
    margin: 0;
    padding: 0;
    width: 46px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    border-radius: 10px;
    background: #f58634;
    box-shadow: 0 6px 16px rgba(245, 134, 52, .3);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

#tg-header .menu-toggle:hover {
    background: #e9721c;
    box-shadow: 0 8px 20px rgba(245, 134, 52, .4);
}

#tg-header .menu-toggle:active {
    transform: translateY(1px);
}

#tg-header .menu-toggle .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: #fff;
}

/* Mobile dropdown menu (< 1200px) */
#tg-header .tg-navigation-mobile {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 8px;
    float: none;
    border: 1px solid #efefef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(20, 20, 40, .16);
    z-index: 30;
}

#tg-header .tg-navigation-mobile.open {
    display: block !important;
    animation: tg-menu-in .18s ease-out;
}

@keyframes tg-menu-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tg-header .tg-navigation-mobile ul {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    list-style: none;
    background: transparent;
    font: 600 13px/1.2 Montserrat, Arial, Helvetica, sans-serif;
}

#tg-header .tg-navigation-mobile ul li {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

#tg-header .tg-navigation-mobile ul li a {
    display: block;
    padding: 11px 14px;
    color: #2c2c2c;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: color .2s ease, background .2s ease;
}

#tg-header .tg-navigation-mobile ul li a:hover,
#tg-header .tg-navigation-mobile ul li.tg-active > a {
    color: #f58634;
    background: rgba(245, 134, 52, .08);
}

#tg-header .tg-admin {
    flex: 0 0 auto;
    margin: 0 0 0 12px;
    padding: 0;
}

#tg-header .tg-admin:before {
    display: none;
}

/* Breakpoint switch */
@media (max-width: 1199px) {
    #tg-header .tg-nav {
        display: none !important;
    }

    #tg-header .tg-nav-mobile {
        display: block;
        position: relative;
    }

    #tg-header .tg-nav-mobile .navbar-header {
        float: none;
        margin: 0;
        width: auto;
    }
}

@media (min-width: 1200px) {
    #tg-header .tg-nav-mobile,
    #tg-nav-mobile {
        display: none !important;
    }
}

@media (max-width: 575px) {
    #tg-header .tg-header-inner {
        padding: 10px 16px;
    }

    #tg-header .tg-logo img {
        width: 165px;
    }
}
