/* ========================================
   NAVIGATION STYLES 
======================================== */
.navbar-logo {
    width: 173px;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 300;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent-yellow);
}

.navbar {
    background-color: #f3f3f3 !important;
    padding: 15px 0;
}

.navbar-toggler {
    background-color: #198754 !important;
    height: 50px;
    width: 50px;
    display: flex;
    border-radius: 60px;
    justify-content: center;
    align-items: center;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: #1e40af !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: #000 !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-yellow) !important;
}

/* ===== NAVBAR SMOOTH TOP ENTRY ON SCROLL ===== */
.cx-main-header {
    z-index: 999;
    border-bottom: 1px solid #e3e3e3;
    transition: transform 0.45s ease, box-shadow 0.3s ease;
}

@media (min-width: 992px) {
    .cx-main-header {
        transform: translateY(0);
    }

    .cx-header-hidden {
        transform: translateY(-100%);
    }

    .cx-header-visible {
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .cx-header-sticky {
        animation: cx-slide-from-top 0.45s ease forwards;
    }

    @keyframes cx-slide-from-top {
        from { transform: translateY(-100%); }
        to   { transform: translateY(0); }
    }
}

.cx-header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    animation: cx-slide-from-top 0.4s ease forwards;
}

@keyframes cx-slide-from-top {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* Desktop Mega Menu */
.mega-menu {
    width: 620px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 32px;
    background: var(--white);
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 20px !important;
}

.mega-menu.erp-menu {
    width: 380px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .mega-menu {
        width: 495px;
        left: 54%;
    }

    .mega-menu.erp-menu {
        width: 340px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .mega-menu {
        width: 521px;
        left: 61%;
    }
}

@media (min-width: 1400px) and (max-width: 1800px) {
    .mega-menu {
        width: 523px;
        left: 66%;
    }
}

.mega-menu h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    color: #0a257c;
    letter-spacing: -0.3px;
    padding-left: 9px;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-list li {
    margin-bottom: 2px;
}

.mega-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 400;
    padding: 10px 6px;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.mega-list a:hover {
    color: var(--primary-blue);
    background-color: #e8f0f9;
    padding-left: 12px;
}

.mega-list a i {
    width: 16px;
    margin-right: 10px;
    color: var(--text-light);
    font-size: 12px;
}

.mega-list a:hover i {
    color: var(--primary-blue);
}

/* ERP Menu Item */
.erp-menu-item {
    display: block;
    padding: 18px 20px;
    border-radius: 8px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    text-decoration: none;
}

.erp-menu-item:hover {
    background: var(--lighter-bg);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.erp-menu-item strong {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.erp-menu-item strong i {
    margin-right: 10px;
    color: var(--primary-blue);
    font-size: 16px;
}

.erp-menu-item small {
    display: block;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        margin-top: 0;
    }

    .navbar .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Offcanvas */
.offcanvas-dark {
    background-color: #212529;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14.5px;
}

.mobile-menu a:hover {
    color: var(--white);
    padding-left: 6px;
    transition: 0.2s;
}

.mobile-menu .nav-link-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: var(--white);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.mobile-menu .nav-link-item:hover {
    padding-left: 8px;
    color: var(--accent-yellow);
}

.mobile-menu .nav-link-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 16px;
}

.mobile-menu .btn-mobile {
    margin-top: 1rem;
    width: 100%;
}

/* Mobile Accordion */
.mobile-accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-accordion .accordion-button {
    background-color: transparent;
    color: var(--white);
    font-weight: 500;
    padding: 16px 0;
    border: none;
    box-shadow: none;
    font-size: 15px;
}

.mobile-accordion .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--white);
    box-shadow: none;
}

.mobile-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
}

.mobile-accordion .accordion-body {
    padding: 0.5rem 0 1rem 0;
    color: #e5e7eb;
}

.mobile-submenu-title {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-left: 4px;
}

.mobile-submenu-title:first-child {
    margin-top: 0;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 4px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
    color: var(--white);
    padding-left: 12px;
}

.mobile-submenu-link i {
    width: 20px;
    margin-right: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.mobile-get-started {
    font-size: 14px;
    font-weight: 400;
    padding: 12px 18px !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #fff !important;
}

.mobile-call-btn {
    background: linear-gradient(135deg, #198754 0%, #1e3a8a 100%) !important;
}

.mobile-get-started.show {
    display: inline-block !important;
}

/* Mega menu hover indicator */
.navbar .dropdown:hover > .nav-link {
    color: #fbbf24 !important;
    font-weight: 600;
    transform: scale(1.05);
}

/* ========================================
   SCHEDULE A CALL BUTTON — DESKTOP
======================================== */
.nav-item .btn.btn-warning.rounded-pill {
    all: unset;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff !important;
    background: linear-gradient(135deg, #f59e0b 0%, #ef6c00 60%, #f59e0b 100%);
    background-size: 200% auto;
    border-radius: 100px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
    transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.2s ease;
    animation: sac-pulse 2.8s ease-in-out infinite;
}

/* Shimmer sweep */
.nav-item .btn.btn-warning.rounded-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.38) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: sac-shimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

/* Phone icon */
.nav-item .btn.btn-warning.rounded-pill::after {
    content: '📞';
    font-size: 13px;
    display: inline-block;
    animation: sac-ring 3.5s ease-in-out infinite;
}

/* Hover */
.nav-item .btn.btn-warning.rounded-pill:hover {
    background-position: right center;
    box-shadow:
        0 6px 24px rgba(245, 158, 11, 0.65),
        0 0 0 4px rgba(245, 158, 11, 0.18);
    transform: translateY(-2px) scale(1.04);
    color: #fff !important;
    text-decoration: none;
}

/* Click */
.nav-item .btn.btn-warning.rounded-pill:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}

/* Pulsing glow ring */
@keyframes sac-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.45);
    }
    50% {
        box-shadow:
            0 4px 22px rgba(245, 158, 11, 0.75),
            0 0 0 5px rgba(245, 158, 11, 0.12);
    }
}

/* Shimmer sweep */
@keyframes sac-shimmer {
    0%          { left: -75%; opacity: 0; }
    8%          { opacity: 1; }
    55%         { left: 130%; opacity: 1; }
    56%, 100%   { left: 130%; opacity: 0; }
}

/* Phone ring shake */
@keyframes sac-ring {
    0%, 70%, 100% { transform: rotate(0deg); }
    72%           { transform: rotate(-18deg); }
    74%           { transform: rotate(18deg); }
    76%           { transform: rotate(-14deg); }
    78%           { transform: rotate(14deg); }
    80%           { transform: rotate(-8deg); }
    82%           { transform: rotate(8deg); }
    84%           { transform: rotate(0deg); }
}