
 /* ==========================================
   K.J. KIRAN JEWELLERS NAVBAR
========================================== */

.kj-navbar {
    --gold: #b67a00;
    --dark-gold: #8a5b00;
    --cream: #fffaf0;
    --dark: #342514;

    width: 100%;
    position: relative;
    z-index: 9999;

    background: rgba(255, 250, 240, 0.98);

    border-bottom: 1px solid rgba(182, 122, 0, 0.15);

    box-shadow: 0 4px 20px rgba(76, 48, 5, 0.07);
}


/* GOLD TOP LINE */

.nav-gold-line {
    height: 3px;

    background: linear-gradient(
        90deg,
        #8a5b00,
        #d8a62f,
        #f1d88b,
        #b67a00,
        #f1d88b,
        #d8a62f,
        #8a5b00
    );
}


/* MAIN NAVBAR */

.nav-container {
    width: min(94%, 1450px);
    min-height: 88px;

    margin: auto;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* ==========================================
   LOGO
========================================== */

.nav-brand {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    text-decoration: none;
}


.nav-brand img {
    width: 70px;
    height: 70px;

    display: block;

    object-fit: contain;
}


.brand-name {
    color: var(--dark-gold);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.4px;

    white-space: nowrap;
}


/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.nav-menu {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(13px, 1.4vw, 26px);
}


.nav-link {
    position: relative;

    display: flex;
    align-items: center;

    gap: 5px;

    padding: 34px 0;

    border: none;

    background: transparent;

    color: var(--dark);

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition: color 0.25s ease;
}


.nav-link:hover {
    color: var(--gold);
}


/* GOLD UNDERLINE */

.nav-link::after {
    content: "";

    position: absolute;

    bottom: 24px;
    left: 50%;

    width: 0;
    height: 1px;

    background: var(--gold);

    transform: translateX(-50%);

    transition: width 0.25s ease;
}


.nav-link:hover::after {
    width: 100%;
}


/* ==========================================
   DROPDOWNS
========================================== */

.nav-dropdown {
    position: relative;
}


.arrow {
    font-size: 15px;

    transition: transform 0.25s ease;
}


.dropdown-menu {
    position: absolute;

    top: calc(100% - 10px);
    left: 50%;

    width: 245px;

    padding: 10px;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, 10px);

    background: #fffdf8;

    border: 1px solid rgba(182, 122, 0, 0.18);

    box-shadow:
        0 18px 40px rgba(60, 40, 10, 0.13);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}


.dropdown-menu::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #c58a13,
        #f0d483,
        #c58a13,
        transparent
    );
}


.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}


.dropdown-menu a {
    display: block;

    padding: 10px 12px;

    color: #513d24;

    font-size: 12px;

    text-decoration: none;

    border-bottom:
        1px solid rgba(182, 122, 0, 0.07);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}


.dropdown-menu a:last-child {
    border-bottom: none;
}


.dropdown-menu a:hover {
    padding-left: 17px;

    color: var(--dark-gold);

    background: rgba(182, 122, 0, 0.06);
}


/* GOLD DROPDOWN */

.gold-dropdown {
    width: 440px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    column-gap: 10px;
}


/* ==========================================
   CONTACT BUTTON
========================================== */

.visit-btn {
    padding: 11px 18px;

    color: var(--dark-gold);

    border: 1px solid var(--gold);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: 0.25s ease;
}


.visit-btn:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #946100,
        #c58a13
    );

    box-shadow:
        0 6px 18px rgba(120, 75, 0, 0.18);
}


/* ==========================================
   HAMBURGER
========================================== */

.nav-toggle {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    padding: 9px;

    border: 1px solid rgba(182, 122, 0, 0.30);

    background: transparent;

    cursor: pointer;
}


.nav-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--dark-gold);

    transition: 0.3s ease;
}


/* HAMBURGER X */

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}


.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================
   TABLET + MOBILE
========================================== */

@media (max-width: 1180px) {

    .nav-container {
        width: calc(100% - 36px);

        min-height: 78px;
    }


    .nav-brand img {
        width: 60px;
        height: 60px;
    }


    .brand-name {
        font-size: 12px;
    }


    /* SHOW HAMBURGER */

    .nav-toggle {
        display: block;
    }


    /* MOBILE MENU */

    .nav-menu {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: none;

        padding: 12px 20px 25px;

        background: #fffaf0;

        border-top:
            1px solid rgba(182, 122, 0, 0.15);

        box-shadow:
            0 18px 30px rgba(60, 40, 10, 0.12);

        max-height: calc(100vh - 78px);

        overflow-y: auto;
    }


    /* JS OPENS MENU */

    .nav-menu.active {
        display: block;
    }


    .nav-link {
        width: 100%;

        justify-content: space-between;

        padding: 15px 5px;

        border-bottom:
            1px solid rgba(182, 122, 0, 0.10);

        font-size: 13px;
    }


    .nav-link::after {
        display: none;
    }


    /* DROPDOWN */

    .nav-dropdown {
        width: 100%;
    }


    .dropdown-menu,
    .gold-dropdown {

        position: static;

        width: 100%;

        display: none;

        grid-template-columns: 1fr;

        padding: 6px 10px;

        opacity: 1;
        visibility: visible;

        transform: none;

        border: none;

        box-shadow: none;

        background: rgba(182, 122, 0, 0.04);
    }


    /*
       VERY IMPORTANT:
       Prevent desktop hover from opening menu
       on touch/mobile devices.
    */

    .nav-dropdown:hover > .dropdown-menu {
        display: none;

        opacity: 1;

        visibility: visible;

        transform: none;
    }


    /* JS DROPDOWN OPEN */

    .nav-dropdown.open > .dropdown-menu,
    .nav-dropdown.open:hover > .dropdown-menu {
        display: block;
    }


    .nav-dropdown.open .arrow {
        transform: rotate(180deg);
    }


    .dropdown-menu a {
        padding: 11px 14px;

        font-size: 12px;
    }


    .visit-btn {
        display: block;

        width: 100%;

        margin-top: 16px;

        padding: 13px;

        text-align: center;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .nav-container {
        width: calc(100% - 24px);

        min-height: 70px;
    }


    .nav-brand {
        gap: 7px;
    }


    .nav-brand img {
        width: 67px;
        height: 67px;
    }


    .brand-name {
        font-size: 14px;

        letter-spacing: 0.1px;
    }


    .nav-toggle {
        width: 40px;
        height: 40px;

        padding: 8px;
    }


    .nav-menu {
        max-height: calc(100vh - 70px);

        padding:
            8px 16px 25px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .nav-brand img {
        width: 43px;
        height: 43px;
    }


    .brand-name {
        max-width: 175px;

        font-size: 9px;

        white-space: normal;

        line-height: 1.25;
    }

}
