/* ==========================================
   TIHASE PESA – RESPONSIVE NAVIGATION
========================================== */

.tp-header {
    --tp-nav-ink: #171717;
    --tp-nav-yellow: #ffd521;

    position: relative;
    z-index: 1100;
}

.tp-header *,
.tp-header *::before,
.tp-header *::after {
    box-sizing: border-box;
}

/* ==========================================
   HEADER LAYOUT
========================================== */

.tp-header .tp-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
}

/* ==========================================
   LOGO
========================================== */

.tp-header .tp-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.tp-header .tp-header-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.tp-header .tp-header-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 54px;
    height: auto;
}

/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.tp-header .tp-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
    min-width: 0;
}

.tp-header .tp-menu,
.tp-header .tp-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-header .tp-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.65vw, 26px);
    flex-wrap: nowrap;
}

.tp-header .tp-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-header .tp-menu a {
    display: inline-flex;
    align-items: center;

    color: var(--tp-nav-ink);
    text-decoration: none;

    font-size: clamp(11px, .9vw, 16px);
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;

    transition: none;
}

/* MAIN MENU LINKS */

.tp-header .tp-menu > li > a {
    position: relative;
    padding: 19px 0;
}

/* REMOVE ALL UNDERLINE EFFECTS */

.tp-header .tp-menu > li > a::after {
    display: none !important;
}

.tp-header .tp-menu > li:hover > a,
.tp-header .tp-menu > li:focus-within > a,
.tp-header .tp-menu > li.current-menu-item > a,
.tp-header .tp-menu > li.current-menu-ancestor > a {
    color: var(--tp-nav-ink);
    opacity: 1;
    background: transparent;
}

/* ==========================================
   DESKTOP DROPDOWN
========================================== */

.tp-header .tp-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;

    min-width: 220px;
    padding: 10px;

    background: #fff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);

    transition:
        opacity .2s,
        visibility .2s,
        transform .2s;

    z-index: 5;
}

/* DROPDOWN OPENING REMAINS ACTIVE */

.tp-header .tp-menu > li:hover > .sub-menu,
.tp-header .tp-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* DROPDOWN LINKS */

.tp-header .tp-menu .sub-menu a {
    display: block;
    padding: 11px 12px;
    font-size: 13px;
    white-space: normal;
    color: var(--tp-nav-ink);
    background: transparent;
    opacity: 1;
}

/* NO DROPDOWN HOVER EFFECT */

.tp-header .tp-menu .sub-menu a:hover,
.tp-header .tp-menu .sub-menu a:focus,
.tp-header .tp-menu .sub-menu .current-menu-item > a {
    color: var(--tp-nav-ink);
    background: transparent;
    opacity: 1;
}

/* ==========================================
   MOBILE MENU TOGGLE
========================================== */

.tp-header .tp-menu-toggle {
    display: none;

    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;

    cursor: pointer;
    z-index: 2;
}

.tp-header .tp-menu-toggle span {
    position: absolute;
    left: 9px;
    top: 14px;

    width: 28px;
    height: 2px;

    background: var(--tp-nav-ink);

    transition:
        transform .25s,
        top .25s,
        opacity .2s;
}

.tp-header .tp-menu-toggle span:nth-child(2) {
    top: 22px;
}

.tp-header .tp-menu-toggle span:nth-child(3) {
    top: 30px;
}

/* HAMBURGER → CLOSE */

.tp-header.is-open .tp-menu-toggle span:first-child {
    top: 22px;
    transform: rotate(45deg);
}

.tp-header.is-open .tp-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.tp-header.is-open .tp-menu-toggle span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

/* HIDE MOBILE SUBMENU BUTTON ON DESKTOP */

.tp-header .tp-submenu-toggle {
    display: none;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.tp-header a:focus-visible,
.tp-header button:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE – TABLET & MOBILE
========================================== */

@media (max-width: 1100px) {

    /* HEADER */

    .tp-header .tp-header-inner {
        flex-direction: row;
        align-items: center;
        min-height: 64px;
        gap: 16px;
    }

    /* LOGO */

    .tp-header .tp-header-logo img {
        max-width: 165px;
        max-height: 48px;
    }

    /* HAMBURGER */

    .tp-header .tp-menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* MOBILE NAVIGATION PANEL */

    .tp-header .tp-navigation {
        position: fixed;

        top: var(--tp-menu-top, 76px);
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        height: auto;

        display: block;
        margin: 0;
        padding: 18px 24px 55px;

        background: #fff;

        overflow-y: auto;
        overscroll-behavior: contain;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity .25s,
            visibility .25s,
            transform .25s;

        z-index: 1100;
    }

    /* OPEN MENU */

    .tp-header.is-open .tp-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    /* MOBILE MENU LIST */

    .tp-header .tp-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 0;
        max-width: 740px;
        margin: 0 auto;
    }

    .tp-header .tp-menu > li {
        width: 100%;
        border-bottom: 1px solid #e7e7e7;
    }

    /* MOBILE MENU LINKS */

    .tp-header .tp-menu > li > a {
        display: flex;
        width: calc(100% - 52px);

        font-size: clamp(22px, 4vw, 31px);
        letter-spacing: -.035em;
        white-space: normal;

        padding: 19px 0;
    }

    /* NO HOVER OR ACTIVE EFFECT */

    .tp-header .tp-menu > li > a::after {
        display: none !important;
    }

    .tp-header .tp-menu > li:hover > a,
    .tp-header .tp-menu > li:focus-within > a,
    .tp-header .tp-menu > li.current-menu-item > a,
    .tp-header .tp-menu > li.current-menu-ancestor > a {
        color: var(--tp-nav-ink);
        background: transparent;
        opacity: 1;
    }

    /* MOBILE SUBMENU */

    .tp-header .tp-menu .sub-menu {
        display: none;

        position: static;
        min-width: 0;
        width: 100%;

        padding: 0 0 16px 15px;

        border: 0;
        box-shadow: none;
        background: transparent;

        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    /* OPEN SUBMENU */

    .tp-header .tp-menu li.is-submenu-open > .sub-menu {
        display: block;
    }

    /* SUBMENU LINKS */

    .tp-header .tp-menu .sub-menu a {
        font-size: 16px;
        padding: 12px 0;
        color: var(--tp-nav-ink);
        background: transparent;
    }

    .tp-header .tp-menu .sub-menu a:hover,
    .tp-header .tp-menu .sub-menu a:focus {
        background: transparent;
        color: var(--tp-nav-ink);
        opacity: 1;
    }

    /* SUBMENU TOGGLE */

    .tp-header .tp-submenu-toggle {
        position: absolute;
        top: 11px;
        right: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        border: 0;
        border-radius: 50%;

        background: #f2f2f2;
        cursor: pointer;
    }

    /* SUBMENU ARROW */

    .tp-header .tp-submenu-toggle::after {
        content: "";

        width: 9px;
        height: 9px;

        border-right: 2px solid #171717;
        border-bottom: 2px solid #171717;

        transform: translateY(-2px) rotate(45deg);
        transition: transform .2s;
    }

    /* OPEN SUBMENU ARROW */

    .tp-header .is-submenu-open > .tp-submenu-toggle::after {
        transform: translateY(3px) rotate(225deg);
    }

    /* LOCK BODY SCROLL */

    body.tp-menu-locked {
        overflow: hidden;
    }

    /* KEEP HEADER VISIBLE */

    body.tp-menu-locked.v360-sticky-header.v360-header-hidden
    .v360-header-wrapper {
        transform: none;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .tp-header *,
    .tp-header *::before,
    .tp-header *::after {
        transition-duration: .01ms !important;
    }
}



/* ==========================================
   MINIMAL DESKTOP DROPDOWN
========================================== */
@media (min-width: 1101px) {
    .tp-header .tp-menu > .menu-item-has-children > a::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-left: 9px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        order: 2;
    }

    .tp-header .tp-menu > li > .sub-menu {
        top: calc(100% - 4px);
        left: -14px;
        min-width: 190px;
        width: max-content;
        max-width: 270px;
        padding: 7px;
        background: #171717;
        border: 0;
        border-radius: 12px;
        box-shadow: none;
        transform: translateY(6px);
        z-index: 100;
    }

    .tp-header .tp-menu > li:hover > .sub-menu,
    .tp-header .tp-menu > li:focus-within > .sub-menu {
        transform: translateY(0);
    }

    .tp-header .tp-menu .sub-menu li,
    .tp-header .tp-menu .sub-menu li + li,
    .tp-header .tp-menu .sub-menu li:last-child {
        border: 0;
    }

    .tp-header .tp-menu .sub-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 12px;
        color: #fff;
        background: transparent;
        border: 0;
        border-radius: 7px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        opacity: 1;
        transition: background-color .2s ease;
    }

    .tp-header .tp-menu .sub-menu a::after {
        content: "↗";
        position: static;
        display: inline-block;
        width: auto;
        height: auto;
        color: #ffd521;
        background: transparent;
        font-size: 15px;
        font-weight: 400;
        opacity: .75;
        transform: none;
        transition: opacity .2s ease;
    }

    .tp-header .tp-menu .sub-menu a:hover,
    .tp-header .tp-menu .sub-menu a:focus-visible,
    .tp-header .tp-menu .sub-menu .current-menu-item > a {
        color: #fff;
        background: #303030;
        opacity: 1;
    }

    .tp-header .tp-menu .sub-menu a:hover::after,
    .tp-header .tp-menu .sub-menu a:focus-visible::after {
        opacity: 1;
    }
}

/* ==========================================
   V1.0.6 – FULL VIEWPORT MOBILE OVERLAY
   Overlay covers BOTH top-header and header.
========================================== */
@media (max-width:1100px) {
#tp-main-menu .tp-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 15px;
    border: 1px solid #fece11;
    border-radius: 100px;
    background: #fcce11;
    color: #fff;
    font: inherit;
    font-size: 15px;
    /* font-weight: 600; */
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 330px;
}
	#tp-main-menu .tp-btn a {
    padding: 18px 24px;
    color: #171717 !important;
   
}
    body.tp-menu-locked {overflow:hidden!important;}
    body.tp-menu-locked .v360-header-wrapper[data-v360-header] {
        position:fixed!important;
        inset:0!important;
        width:100%!important;
        height:100dvh!important;
        max-height:none!important;
        transform:none!important;
        overflow:visible!important;
        z-index:99999!important;
        background:transparent!important;
    }
    body.tp-menu-locked .v360-header-wrapper .tp-header {
        position:static!important;
        transform:none!important;
    }
    .tp-header .tp-navigation {
        position:fixed!important;
        inset:0!important;
        top:0!important;
        bottom:0!important;
        width:100%!important;
        height:100dvh!important;
        max-height:none!important;
        margin:0!important;
        padding:clamp(88px,15vh,130px) 26px 40px!important;
        background:#171717!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
        z-index:99999!important;
    }
    .tp-header.is-open .tp-navigation {
        opacity:1!important;
        visibility:visible!important;
        pointer-events:auto!important;
        transform:none!important;
    }
    .tp-header.is-open .tp-menu-toggle {
        position:fixed!important;
        top:calc(20px + var(--wp-admin--admin-bar--height, 0px));
        right:20px;
        z-index:100001!important;
        width:42px;
        height:42px;
        border:1px solid rgba(255,255,255,.3);
        border-radius:50%;
        background:transparent;
    }
    .tp-header.is-open .tp-menu-toggle span {background:#fff!important;width:21px;left:10px;}
    .tp-header.is-open .tp-menu-toggle span:first-child,
    .tp-header.is-open .tp-menu-toggle span:nth-child(3) {top:20px;}
    .tp-header .tp-menu {max-width:640px;}
    .tp-header .tp-menu>li {border-bottom:1px solid rgba(255,255,255,.17)!important;}
    .tp-header .tp-menu>li>a,
    .tp-header .tp-menu>li:hover>a,
    .tp-header .tp-menu>li:focus-within>a,
    .tp-header .tp-menu>li.current-menu-item>a,
    .tp-header .tp-menu>li.current-menu-ancestor>a {
        color:#fff!important;
        background:transparent!important;
        font-weight:650;
        font-size:clamp(23px,6vw,30px);
        padding:17px 0;
        opacity:1!important;
    }
    .tp-header .tp-menu .sub-menu {
        background:transparent!important;
        border:0!important;
        box-shadow:none!important;
        padding:0 0 14px 15px;
    }
    .tp-header .tp-menu .sub-menu a,
    .tp-header .tp-menu .sub-menu a:hover,
    .tp-header .tp-menu .sub-menu a:focus {
        color:#e5e5e5!important;
        background:transparent!important;
        font-size:15px;
        font-weight:400;
        padding:9px 0;
    }
    .tp-header .tp-submenu-toggle {
        top:12px;
        width:38px;
        height:38px;
        border:1px solid rgba(255,255,255,.28);
        border-radius:50%;
        background:transparent!important;
    }
    .tp-header .tp-submenu-toggle::after {border-color:#fff!important;width:7px;height:7px;}
    .tp-header .tp-header-inner {padding-top:0!important;padding-bottom:0!important;}
}
