/* ============================================
   HEADER - Corbett Ultimus
   Author: Yogesh Upadhyay
   ============================================ */

.cu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px 0;
    background: var(--cu-green-900); /* Footer wala dark green */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Scroll par blur glass effect */
/*.cu-header.is-scrolled {*/
/*    padding: 12px 0;*/
/*    background: rgba(11, 31, 26, 0.65);*/
/*    backdrop-filter: blur(20px) saturate(180%);*/
/*    -webkit-backdrop-filter: blur(20px) saturate(180%);*/
/*    border-bottom: 1px solid rgba(212, 175, 55, 0.25);*/
/*    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);*/
/*}*/


/* ULTRA GLASS — deep green → light translucent glass */
.cu-header.is-scrolled {
    padding: 12px 0;

    background:
        linear-gradient(
            120deg,
            rgba(82, 145, 122, 0.62) 0%,
            rgba(35, 91, 72, 0.48) 35%,
            rgba(15, 52, 42, 0.32) 65%,
            rgba(118, 158, 138, 0.42) 100%
        );

    backdrop-filter:
        blur(35px)
        saturate(320%)
        brightness(1.08)
        contrast(108%);

    -webkit-backdrop-filter:
        blur(35px)
        saturate(320%)
        brightness(1.08)
        contrast(108%);

    border-bottom: 1px solid rgba(230, 205, 120, 0.55);

    box-shadow:
        0 12px 45px rgba(0, 0, 0, 0.22),
        0 2px 12px rgba(70, 130, 105, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

/* Soft glass shine */
.cu-header.is-scrolled::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            transparent 55%,
            rgba(255, 255, 255, 0.10) 100%
        );

    pointer-events: none;
    opacity: 0.9;
}

/* Subtle gold glow */
.cu-header.is-scrolled::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -1px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.8),
        rgba(255, 225, 130, 0.95),
        rgba(212, 175, 55, 0.8),
        transparent
    );

    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
    pointer-events: none;
}


.cu-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ---------- LOGO (FIXED SIZE) ---------- */
.cu-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cu-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.cu-logo__img {
    height: 52px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain;
    display: block;
    transition: height 0.4s ease;
}

.cu-header.is-scrolled .cu-logo__img {
    height: 42px !important;
}

/* ---------- NAVIGATION ---------- */
.cu-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.cu-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.cu-nav__list li {
    position: relative;
}

.cu-nav__list li a {
    color: #FFFFFF;
    font-family: var(--cu-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 6px 0;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline hover animation */
.cu-nav__list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--cu-gold);
    transition: width 0.35s ease;
}

.cu-nav__list li a:hover {
    color: var(--cu-gold);
}

.cu-nav__list li a:hover::after {
    width: 100%;
}

/* Active menu item */
.cu-nav__list li.current-menu-item > a {
    color: var(--cu-gold);
}

.cu-nav__list li.current-menu-item > a::after {
    width: 100%;
}

/* ---------- CTA BUTTON ---------- */
.cu-header__cta {
    flex-shrink: 0;
}

.cu-header__cta .cu-btn {
    padding: 12px 26px;
    font-size: 12px;
    white-space: nowrap;
}

/* ---------- HAMBURGER ---------- */
.cu-hamburger {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
}

.cu-hamburger span {
    width: 26px;
    height: 2px;
    background: #FFFFFF;
    transition: 0.3s ease;
    display: block;
}

.cu-hamburger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.cu-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.cu-hamburger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- MOBILE ---------- */
@media (max-width: 992px) {
    .cu-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--cu-green-900);
        padding: 120px 40px 40px;
        transition: right 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        justify-content: flex-start;
    }

    .cu-nav.is-open {
        right: 0;
    }

    .cu-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .cu-nav__list li {
        width: 100%;
    }

    .cu-nav__list li a {
        font-size: 16px;
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .cu-hamburger {
        display: flex;
    }

    .cu-header__cta {
        display: none;
    }

    .cu-header {
        background: rgba(11, 31, 26, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .cu-logo__img {
        height: 44px !important;
    }

    .cu-header.is-scrolled .cu-logo__img {
        height: 38px !important;
    }
}

@media (max-width: 576px) {
    .cu-logo__img {
        height: 40px !important;
    }
    .cu-header.is-scrolled .cu-logo__img {
        height: 34px !important;
    }
    .cu-header {
        padding: 16px 0;
    }
}