﻿/* ══════════════════════════════════════════
   WISHAPPLES — NAVBAR.CSS
   Professional Sticky Navigation · Light Base
══════════════════════════════════════════ */

.imi-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .imi-nav.scrolled {
        background: rgba(255,255,255,0.97);
        box-shadow: 0 4px 32px rgba(0,0,0,0.08);
        height: 64px;
    }

/* ── LOGO ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    height: 90%;
}


    .nav-logo img {
        height: 80px; /* adjust if needed */
        width: auto;
        display: block;
        padding-block-start: 5px;
    }





.nav-brand {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0F0F0F;
    letter-spacing: -0.3px;
}

    .nav-brand span {
        color: #E8391D;
    }

/* ── LINKS ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

    .nav-links li a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        color: #4B5563;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .nav-links li a:hover {
            background: rgba(15,15,15,0.06);
            color: #0F0F0F;
        }

        .nav-links li a.active {
            background: rgba(232,57,29,0.10);
            color: #E8391D;
        }

/* ── DROPDOWN ── */
.has-dropdown {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 16px;
    padding: 12px;
    min-width: 230px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
    z-index: 999;
}

    .nav-dropdown::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        width: 12px;
        height: 12px;
        background: #FFFFFF;
        border-left: 1px solid rgba(0,0,0,0.10);
        border-top: 1px solid rgba(0,0,0,0.10);
        transform: translateX(-50%) rotate(45deg);
    }

.has-dropdown:hover .nav-dropdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #374151 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    transition: all 0.2s;
    background: transparent !important;
}

    .nav-dropdown a:hover {
        background: rgba(15,15,15,0.05) !important;
        color: #0F0F0F !important;
    }

/* Chip badges */
.dd-chip {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
    flex-shrink: 0;
}

.chip-teal {
    background: #0F766E;
}

.chip-coral {
    background: #E8391D;
}

.chip-violet {
    background: #6D28D9;
}

.chip-gold {
    background: #D97706;
    color: #fff;
}

.chip-cyan {
    background: #0891B2;
}

.chip-green {
    background: #15803D;
}

/* ── CTA BUTTON ── */
.nav-cta {
    flex-shrink: 0;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #E8391D, #6D28D9);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(232,57,29,0.25);
    white-space: nowrap;
}

    .btn-portal:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(232,57,29,0.38);
    }

/* ── HAMBURGER ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: #0F0F0F;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* ═══════════════════════════
   MOBILE MENU
═══════════════════════════ */
.nav-mobile {
    display: none;
    flex-direction: column;
    position: fixed;
    /*    position:absolute;*/

    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px);
    z-index: 999;
    padding: 16px 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.10);
}

    .nav-mobile.open {
        display: flex;
    }

    .nav-mobile > a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 600;
        color: #374151;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.2s;
    }

        .nav-mobile > a:hover {
            background: rgba(15,15,15,0.05);
            color: #0F0F0F;
            transform: translateX(4px);
        }

        .nav-mobile > a i {
            font-size: 16px;
            width: 20px;
            text-align: center;
            color: #9CA3AF;
        }

.mob-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 12px 0;
}

.mob-group {
    border-radius: 14px;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 6px 14px;
}

.mob-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #4B5563;
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.2px;
    user-select: none;
}

#mobArrow {
    font-size: 16px;
    transition: transform 0.3s;
    color: #9CA3AF;
}

.mob-group.open #mobArrow {
    transform: rotate(45deg);
}

.mob-group-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .mob-group-links a {
        padding: 11px 14px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 10px;
        background: rgba(0,0,0,0.03);
        text-decoration: none;
        color: #374151;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        margin-bottom: 2px;
    }

        .mob-group-links a:hover {
            background: rgba(232,57,29,0.08);
            color: #E8391D;
            transform: translateX(4px);
        }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
    .imi-nav {
        padding: 0 24px;
    }

    .nav-links, .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 17px;
    }
}


/* ===== MOBILE FIX FOR FIXED NAVBAR ===== */
@media (max-width:768px) {

    .imi-nav {
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: translateZ(0);
    }
}