/* =====================================================
   HEADER - FINAEGIS DESKTOP STYLE
===================================================== */

.site-header {
    z-index: 1040;
    background: #ffffff;
    border-bottom: 4px solid #6b2c87;
    box-shadow: 0 4px 18px rgba(47, 26, 58, 0.06);
}

.header-desktop-wrapper {
    background: #ffffff;
}

.header-main-row {
    min-height: 116px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
}


/* =====================================================
   LOGO AREA
===================================================== */

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 14px;
}

.brand-icon {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
}

.brand-text h1 {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 400;
    color: #6b2c87;
    margin: 0;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.brand-text span {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 400;
    color: #6b2c87;
    text-transform: uppercase;
    text-align: center;
    margin-top: 6px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}


/* =====================================================
   RIGHT HEADER AREA
===================================================== */

.header-right-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}


/* =====================================================
   TOP CONTACT BAR - ANGLED PURPLE STYLE
===================================================== */

.top-contact-bar {
    width: 100%;
    min-height: 46px;
    /* background: #6b2c87; */
    /* color: #ffffff; */
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 50px;
    padding-right: 15px;
    padding-top: 10px;
}

.top-contact-bar::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 0;
    height: 0;
    /* border-top: 46px solid #ffffff; */
    border-right: 28px solid transparent;
    z-index: 1;
}

.top-contact-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: nowrap;
    padding-right: 0;
    position: relative;
    z-index: 2;
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.top-contact-item:hover {
    color: #40005b;
}

.top-contact-icon {
    width: 31px;
    height: 31px;
    border: 1px solid var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.top-contact-item:hover .top-contact-icon {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}


/* =====================================================
   NAVBAR
===================================================== */

.custom-navbar {
    width: 100%;
    background: transparent;
    padding: 15px 0 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    z-index: 1030;
}

.custom-navbar .container {
    padding: 0;
    max-width: 100%;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #2b2b2b;
    margin: 0 10px;
    padding: 8px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #6b2c87;
}

.custom-navbar .navbar-nav .nav-item {
    position: relative;
}

.custom-navbar .nav-link {
    position: relative;
}


/* Dropdown arrow */

.custom-navbar .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.35;
}


/* =====================================================
   DROPDOWN MENU
===================================================== */

.custom-navbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 10px 0;
    min-width: 245px;
    background: #fdfaff;
    box-shadow: 0 12px 35px rgba(47, 26, 58, 0.16);
    margin-top: 0;
}

.custom-navbar .dropdown-item {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    padding: 10px 18px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
    background: #faefff;
    color: #6b2c87;
    padding-left: 22px;
}


/* Submenu Parent */

.custom-navbar .dropdown-submenu {
    position: relative;
}


/* Sub-sub menu below parent */

.custom-navbar .dropdown-submenu>.dropdown-menu {
    position: static !important;
    float: none;
    display: none;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0 0 6px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.custom-navbar .dropdown-submenu>.dropdown-menu .dropdown-item {
    font-size: 15px;
    padding: 8px 18px;
    color: #444;
}

.custom-navbar .dropdown-submenu>.dropdown-menu .dropdown-item:hover {
    color: #6b2c87;
    background: transparent;
    padding-left: 22px;
}

.custom-navbar .dropdown-submenu>.dropdown-toggle::after {
    float: right;
    margin-top: 8px;
}


/* =====================================================
   DESKTOP HOVER BEHAVIOR
===================================================== */

@media (min-width: 1200px) {
    .custom-navbar .custom-dropdown:hover>.dropdown-menu {
        display: block;
    }
    .custom-navbar .products-dropdown:hover>.dropdown-menu {
        display: block;
    }
    .custom-navbar .products-dropdown:hover .dropdown-submenu>.dropdown-menu {
        display: block;
    }
    .custom-navbar .dropdown-menu {
        animation: dropdownFade 0.25s ease;
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   LAPTOP RESPONSIVE ADJUSTMENT
===================================================== */

@media (min-width: 1200px) and (max-width: 1399px) {
    .brand-area {
        /* min-width: 470px; */
        gap: 12px;
    }
    .brand-icon {
        width: 82px;
        height: 82px;
    }
    .brand-text h1 {
        font-size: 30px;
    }
    .brand-text span {
        font-size: 21px;
    }
    .navbar-nav .nav-link {
        margin: 0 9px;
        font-size: 14px;
    }
    .top-contact-right {
        gap: 15px;
    }
    .top-contact-item {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .header-main-row {
        min-height: auto;
    }
    .custom-navbar {
        padding-top: 12px;
    }
    .brand-area {
        padding: 0 10px;
    }
    .brand-icon {
        width: 72px;
        height: 72px;
    }
    .brand-text h1 {
        font-size: 24px;
    }
    .brand-text span {
        font-size: 16px;
    }
    .navbar-nav .nav-link {
        font-size: 14px;
        margin: 0 5px;
    }
}

@media (max-width: 1024px) {
    .brand-text h1 {
        font-size: 20px;
    }
    .brand-text span {
        font-size: 15px;
    }
    .custom-navbar {
        padding-top: 5px;
    }
}


/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 991px) {
    .site-header {
        border-bottom: 3px solid #6b2c87;
    }
    .header-main-row {
        min-height: auto;
        display: flex;
        flex-direction: column !important;
    }
    .brand-area {
        min-width: auto;
        padding: 12px 0;
        gap: 10px;
    }
    .brand-icon {
        width: 54px;
        height: 54px;
    }
    /* .brand-text h1 {
        font-size: 24px;
    } */
    .brand-text span {
        /* font-size: 17px; */
        text-align: left;
    }
    .header-right-area {
        display: block;
    }
    .top-contact-bar {
        min-height: auto;
        padding: 10px 14px;
        justify-content: center;
    }
    .top-contact-bar::before {
        display: none;
    }
    .top-contact-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-contact-item {
        font-size: 13px;
    }
    .top-contact-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .custom-navbar {
        padding: 8px 0 10px;
        position: absolute;
        top: 128px;
    }
    .custom-navbar .navbar-toggler {
        border-color: rgba(107, 44, 135, 0.35);
        margin-left: auto;
        display: block;
    }
    .custom-navbar .navbar-collapse {
        background: #ffffff;
        padding: 10px 0 14px;
    }
    .custom-navbar .navbar-nav {
        align-items: flex-start !important;
        padding: 0 10px;
    }
    .navbar-nav .nav-link {
        margin: 0;
        padding: 10px 0;
        font-size: 15px;
    }
    .custom-navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        min-width: 100%;
        margin-top: 0;
        padding: 6px 0 6px 12px;
        border-radius: 0;
        box-shadow: none;
        background: #f8f4fb;
    }
    .custom-navbar .dropdown-item {
        padding: 9px 14px;
        white-space: normal;
    }
    .custom-navbar .dropdown-submenu>.dropdown-menu {
        display: block;
        padding-left: 18px;
        background: transparent;
    }
    .custom-navbar .dropdown-submenu>.dropdown-toggle::after {
        display: none;
    }
    .custom-navbar .navbar-collapse {
        box-shadow: 0 0 6px rgba(0, 0, 0, .25);
    }
}

@media (max-width: 575px) {
    .brand-area {
        align-items: center;
    }
    .brand-icon {
        width: 50px;
        height: 50px;
    }
    .brand-text h1 {
        font-size: 18px;
        letter-spacing: -0.3px;
    }
    .brand-text span {
        font-size: 13px;
    }
    .top-contact-right {
        overflow-y: scroll;
        /* flex-direction: column; */
        align-items: center;
        gap: 8px;
    }
    .custom-navbar {
        top: 76px;
    }
    .top-contact-bar {
        display: none;
    }
}