/**
 * Custom Header Styles
 * Add this to your theme or use a custom CSS plugin
 */

/* ===========================
   HEADER STYLES
   =========================== */
.custom-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-logo {
    z-index: 10001;
}

.header-logo a {
    display: inline-block;
    text-decoration: none;
}

.header-logo img {
    height: 80px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: #2271b1;
}

/* Nav Toggle Button */
.nav-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    background-color: var(--e-global-color-primary);
    border-radius: 50%;
}

.nav-toggle:hover, .nav-toggle:focus, .nav-toggle:active {
    background-color: var(--e-global-color-secondary);
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

/* Nav Toggle Active State */
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===========================
   FULLSCREEN MENU
   =========================== */
.fullscreen-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

/* Menu Background with 45 degree animation */
.fullscreen-menu-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background: #ffffff;
    transform-origin: top right;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    clip-path: polygon(100% 0, 100% 0, 100% 0);
}

.fullscreen-menu.active {
    pointer-events: auto;
}

.fullscreen-menu.active .fullscreen-menu-bg {
    width: 200%;
    height: 200%;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    animation: expandDiagonal 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes expandDiagonal {
    0% {
        clip-path: polygon(100% 0, 100% 0, 100% 0);
    }
    100% {
        clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%);
        width: 100vw;
        height: 100vh;
    }
}

/* Navigation Container */
.fullscreen-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    width: 100%;
    max-width: 800px;
    padding: 0 40px;
}

.fullscreen-menu.active .fullscreen-nav {
    opacity: 1;
}

/* Menu List */
.fullscreen-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.fullscreen-menu-list li {
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.fullscreen-menu.active .fullscreen-menu-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
.fullscreen-menu.active .fullscreen-menu-list li:nth-child(1) {
    transition-delay: 0.3s;
}

.fullscreen-menu.active .fullscreen-menu-list li:nth-child(2) {
    transition-delay: 0.35s;
}

.fullscreen-menu.active .fullscreen-menu-list li:nth-child(3) {
    transition-delay: 0.4s;
}

.fullscreen-menu.active .fullscreen-menu-list li:nth-child(4) {
    transition-delay: 0.45s;
}

.fullscreen-menu.active .fullscreen-menu-list li:nth-child(5) {
    transition-delay: 0.5s;
}

.fullscreen-menu.active .fullscreen-menu-list li:nth-child(6) {
    transition-delay: 0.55s;
    display:inline-block;
}
.fullscreen-menu.active .fullscreen-menu-list li:nth-child(6) a{
    padding-right: 10px;
    padding-left: 10px;
    font-size: 20px;
    font-weight: 600;
}
.fullscreen-menu.active .fullscreen-menu-list li:nth-child(7) {
    transition-delay: 0.6s;
    display:inline-block;
    
}
.fullscreen-menu.active .fullscreen-menu-list li:nth-child(7) a{
    padding-right: 10px;
    padding-left: 10px;
    font-size: 20px;
    font-weight: 600;
}
.fullscreen-menu.active .fullscreen-menu-list li:nth-child(8) {
    transition-delay: 0.65s;
}
.fullscreen-menu .trp-flag-image{
    display:none !important;
}
/* Menu Links */
.fullscreen-menu-list a {
    display: inline-block;
    padding: 20px 30px;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    font-family: "Archivo", sans-serif;
}

.fullscreen-menu-list a::before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--e-global-color-primary);
    transition: transform 0.3s ease;
}

.fullscreen-menu-list a:hover {
    color: var(--e-global-color-primary);
}

.fullscreen-menu-list a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Current Menu Item */
.fullscreen-menu-list .current-menu-item a,
.fullscreen-menu-list .current_page_item a {
    color: #2271b1;
}

.fullscreen-menu-list .current-menu-item a::before,
.fullscreen-menu-list .current_page_item a::before {
    transform: translateX(-50%) scaleX(1);
}

/* Sub Menu (Dropdown) */
.fullscreen-menu-list .sub-menu {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.fullscreen-menu-list .sub-menu li {
    margin: 5px 0;
}

.fullscreen-menu-list .sub-menu a {
    font-size: 24px;
    font-weight: 400;
    padding: 10px 20px;
    text-transform: none;
    letter-spacing: 1px;
}

/* ===========================
   BODY SCROLL LOCK
   =========================== */
body.menu-open {
    overflow: hidden;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .fullscreen-menu-list a {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 15px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .nav-toggle {
        width: 45px;
        height: 45px;
    }
    
    .nav-toggle-bar {
        width: 25px;
    }
    
    .fullscreen-menu-list a {
        font-size: 28px;
        padding: 15px 20px;
    }
    
    .fullscreen-menu-list .sub-menu a {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fullscreen-menu-list a {
        font-size: 24px;
        padding: 12px 15px;
    }
    
    .fullscreen-menu-list .sub-menu a {
        font-size: 18px;
        padding: 8px 15px;
    }
}

/* ===========================
   HEADER SCROLLED STATE
   =========================== */
.custom-site-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.custom-site-header.scrolled .header-container {
    padding: 0px 15px;
}

.custom-site-header.scrolled .header-logo img {
    height: 40px;
}

@media (max-width: 768px) {
    .custom-site-header.scrolled .header-container {
        padding: 10px 20px;
    }
    
    .custom-site-header.scrolled .header-logo img {
        height: 35px;
    }
}
