/* =========================================================
   HARILAL BRUSH CO.
   MODERN RESPONSIVE NAVIGATION
========================================================= */


/* =========================================================
   NAVIGATION BAR
========================================================= */

.hbc-navigation {

    position: relative;

    width: 100%;

    min-height: 64px;

    background: #172033;

    border: 0;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.08);

    z-index: 9999;

}


/* =========================================================
   CONTAINER
========================================================= */

.hbc-nav-container {

    width: 100%;

    max-width: 1150px;

    min-height: 64px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.hbc-nav-links {

    width: 100%;

    min-height: 64px;

    display: flex;

    align-items: center;

    gap: 3px;

}


/* =========================================================
   NORMAL LINK
========================================================= */

.hbc-nav-links a {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 64px;

    padding: 0 20px;

    color: #d4dbea !important;

    background: transparent !important;

    border: 0 !important;

    outline: none;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    line-height: 64px;

    text-transform: uppercase;

    letter-spacing: .8px;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        color .25s ease,
        background .25s ease;

}


/* =========================================================
   HOVER
========================================================= */

.hbc-nav-links a:hover {

    color: #ffffff !important;

    background: rgba(255,255,255,.06) !important;

    text-decoration: none !important;

}


/* =========================================================
   ACTIVE
========================================================= */

.hbc-nav-links a.active {

    color: #ffffff !important;

}


/* Active blue line */

.hbc-nav-links a.active::after {

    content: "";

    position: absolute;

    left: 18px;

    right: 18px;

    bottom: 0;

    height: 3px;

    background: #1677ff;

    border-radius:
        3px 3px 0 0;

}


/* =========================================================
   ENQUIRY BUTTON
========================================================= */

.hbc-nav-links a.hbc-enquiry {

    height: 40px;

    margin-left: auto;

    padding: 0 18px;

    gap: 9px;

    color: #ffffff !important;

    background: #1677ff !important;

    border-radius: 7px;

    font-size: 11px;

    line-height: 40px;

    box-shadow:
        0 6px 18px rgba(22,119,255,.20);

}


.hbc-nav-links a.hbc-enquiry:hover {

    color: #ffffff !important;

    background: #095dcc !important;

    transform: translateY(-1px);

}


.hbc-nav-links a.hbc-enquiry::after {

    display: none;

}


.hbc-enquiry span {

    font-size: 16px;

    line-height: 1;

}


/* =========================================================
   MOBILE BRAND
========================================================= */

.hbc-mobile-brand {

    display: none;

}


.hbc-mobile-brand a {

    color: #ffffff !important;

    font-size: 15px;

    font-weight: 700;

    text-decoration: none !important;

}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.hbc-menu-toggle {

    display: none;

    width: 44px;

    height: 44px;

    margin-left: auto;

    padding: 0;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 7px;

    background: rgba(255,255,255,.06);

    cursor: pointer;

}


.hbc-menu-toggle span {

    display: block;

    width: 21px;

    height: 2px;

    background: #ffffff;

    border-radius: 2px;

    transition: all .25s ease;

}


/* =========================================================
   HAMBURGER ANIMATION
========================================================= */

.hbc-menu-toggle.open span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.hbc-menu-toggle.open span:nth-child(2) {

    opacity: 0;

}


.hbc-menu-toggle.open span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .hbc-nav-container {

        padding: 0 15px;

    }


    .hbc-nav-links a {

        padding-left: 13px;

        padding-right: 13px;

        font-size: 11px;

    }


    .hbc-nav-links a.active::after {

        left: 13px;

        right: 13px;

    }


    .hbc-nav-links a.hbc-enquiry {

        padding-left: 13px;

        padding-right: 13px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .hbc-navigation {

        min-height: 58px;

    }


    .hbc-nav-container {

        position: relative;

        min-height: 58px;

        padding: 0 15px;

    }


    /* Show mobile brand */

    .hbc-mobile-brand {

        display: block;

    }


    /* Show hamburger */

    .hbc-menu-toggle {

        display: flex;

    }


    /* Hide desktop menu */

    .hbc-nav-links {

        display: none;

        position: absolute;

        top: 58px;

        left: 0;

        right: 0;

        width: 100%;

        min-height: auto;

        padding: 8px 15px 15px;

        flex-direction: column;

        align-items: stretch;

        gap: 2px;

        background: #172033;

        border-top: 1px solid rgba(255,255,255,.08);

        box-shadow:
            0 15px 25px rgba(0,0,0,.15);

    }


    /* Open menu */

    .hbc-nav-links.open {

        display: flex;

    }


    /* Mobile links */

    .hbc-nav-links a {

        width: 100%;

        height: 48px;

        padding: 0 15px;

        justify-content: flex-start;

        color: #d4dbea !important;

        font-size: 12px;

        line-height: 48px;

        border-radius: 6px;

    }


    .hbc-nav-links a:hover {

        background:
            rgba(255,255,255,.07) !important;

    }


    /* Remove desktop active line */

    .hbc-nav-links a.active::after {

        display: none;

    }


    /* Active mobile */

    .hbc-nav-links a.active {

        color: #ffffff !important;

        background:
            rgba(22,119,255,.15) !important;

    }


    /* Enquiry */

    .hbc-nav-links a.hbc-enquiry {

        width: 100%;

        height: 44px;

        margin: 7px 0 0;

        padding: 0 15px;

        justify-content: center;

        line-height: 44px;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .hbc-mobile-brand a {

        font-size: 14px;

    }


    .hbc-nav-container {

        padding-left: 12px;

        padding-right: 12px;

    }

}
