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

#mainNavbar{

position:fixed;

top:0;

left:0;

width:100%;

z-index:9999;

padding:18px 0;

background:rgba(255,255,255,.95);

backdrop-filter:blur(18px);

transition:.35s;

border-bottom:1px solid rgba(0,0,0,.05);

}

#mainNavbar.scrolled{

padding:12px 0;

background:#fff;

box-shadow:0 10px 35px rgba(0,0,0,.08);

}

.logo-box{

display:flex;

align-items:center;

gap:10px;

font-size:34px;

font-weight:900;

letter-spacing:-1px;

}

.logo-box img{

height:55px;

width:auto;

}

.logo-potential{

color:var(--primary);

}

.logo-loops{

color:var(--secondary);

}

.navbar-nav{

gap:8px;

}

.nav-link{

padding:12px 18px !important;

font-size:15px;

font-weight:600;

color:var(--dark)!important;

border-radius:30px;

transition:var(--transition);

}

.nav-link:hover,

.nav-link.active{

background:#EEF7FF;

color:var(--primary)!important;

}

.dropdown-menu{

border:none;

border-radius:20px;

padding:18px;

margin-top:15px;

box-shadow:0 20px 50px rgba(0,0,0,.12);

}

.dropdown-item{

padding:12px 18px;

border-radius:12px;

font-weight:500;

transition:var(--transition);

}

.dropdown-item:hover{

background:var(--primary);

color:#fff;

padding-left:25px;

}

.btn-consultation{

padding:14px 28px;

border-radius:50px;

background:var(--primary);

color:#fff;

font-weight:600;

transition:var(--transition);

}

.btn-consultation:hover{

background:var(--secondary);

color:#fff;

transform:translateY(-3px);

}

.navbar-toggler{

border:none;

box-shadow:none!important;

font-size:28px;

}

@media(max-width:991px){

#mainNavbar{

padding:15px 0;

}

.logo-box{

font-size:28px;

}

.logo-box img{

height:45px;

}

.navbar-collapse{

margin-top:18px;

padding:20px;

background:#fff;

border-radius:20px;

box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.navbar-nav{

gap:0;

}

.nav-link{

padding:14px!important;

}

.dropdown-menu{

width:100%;

position:relative!important;

transform:none!important;

box-shadow:none;

padding:10px;

}

.btn-consultation{

display:block;

margin-top:15px;

text-align:center;

}

}


/*=========================================
MEGA MENU
=========================================*/

.mega-menu{

    width:100%;

    left:0 !important;

    right:0;

    margin-top:18px;

    padding:40px 45px;

    background:#ffffff;

    border:1px solid #edf2f7;

    border-radius:18px;

    box-shadow:0 12px 35px rgba(15,76,129,.08);

    animation:megaFade .25s ease;

}

@keyframes megaFade{

    from{

        opacity:0;

        transform:translateY(8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*========================*/

/*=========================================
COLUMN STYLE
=========================================*/

.mega-card{

    background:transparent;

    padding:0;

    border:none;

    box-shadow:none;

    transition:.25s;

}

/*=========================================
ACTIVE NAVIGATION
=========================================*/

.navbar .nav-link.active{

    color:#0F4C81;

    font-weight:700;

}

.navbar .nav-link.active::after{

    width:100%;

}

.mega-card:hover{

    transform:translateY(-6px);

    box-shadow:0 20px 45px rgba(0,0,0,.08);

    border-color:#0F4C81;

}

/*========================*/

.mega-title{

    display:flex;

    align-items:center;

    margin-bottom:18px;

}

.mega-title i{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    margin-right:15px;

    font-size:20px;

    background:#EEF6FF;

    color:#0F4C81;

}

.mega-title h5{

    margin:0;

    font-size:20px;

    font-weight:700;

    color:#172B4D;

}

.mega-title small{

    font-size:13px;

    color:#7b8794;

}
/*========================*/

.mega-links{

    list-style:none;

    margin:0;

    padding:0;

}

.mega-links li{

    margin-bottom:12px;

}

.mega-links li:last-child{

    margin-bottom:0;

}

.mega-links a{

    display:block;

    text-decoration:none;

    color:#536471;

    font-size:15px;

    font-weight:500;

    transition:.25s;

}

.mega-links a:hover{

    color:#0F4C81;

    transform:translateX(5px);

}
/*=========================================
COLUMN SPACING
=========================================*/

.mega-menu .row{

    row-gap:35px;

}

.mega-menu .col-lg-3{

    position:relative;

}

.mega-menu .col-lg-3:not(:last-child)::after{

    content:"";

    position:absolute;

    top:0;

    right:15px;

    width:1px;

    height:100%;

    background:#eef2f7;

}
/*========================*/

@media(max-width:991px){

    .mega-menu{

        padding:20px;

        border-radius:15px;

    }

    .mega-card{

        margin-bottom:20px;

    }

}
/*=========================================
BOTTOM HELP BAR
=========================================*/

.mega-help{

    margin-top:35px;

    padding-top:20px;

    border-top:1px solid #edf2f7;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.mega-help p{

    margin:0;

    color:#64748B;

    font-size:15px;

}

.mega-help a{

    color:#0F4C81;

    font-weight:700;

    text-decoration:none;

}

.mega-help a:hover{

    color:#00A8A8;

}

/* ==================================================
   FINAL BRAND + MOBILE SERVICES FIX
   ================================================== */

/* Keep Potentialloops as one visual word. */
.potentialloops-brand,
.potentialloops-brand:hover,
.potentialloops-brand:focus{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    text-decoration:none;
}

.logo-text{
    display:inline-block;
    white-space:nowrap;
    color:#0F4C81;
    font-size:32px;
    line-height:1;
    font-weight:800;
    letter-spacing:-1.4px;
}

/* Do not let the mega menu get clipped by the navbar on smaller screens. */
@media (max-width: 1199.98px){
    #mainNavbar .container{
        position:relative;
    }

    #mainNavbar .navbar-collapse{
        max-height:calc(100vh - 88px);
        overflow-y:auto;
        overflow-x:hidden;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:thin;
    }

    #mainNavbar .navbar-nav{
        width:100%;
    }

    #mainNavbar .nav-item{
        width:100%;
    }

    #mainNavbar .nav-link{
        width:100%;
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    /* Services becomes a normal expandable section inside the mobile menu. */
    #mainNavbar .dropdown-menu.mega-menu{
        position:static !important;
        inset:auto !important;
        transform:none !important;
        float:none !important;
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        max-height:calc(100vh - 205px);
        overflow-y:auto;
        overflow-x:hidden;
        margin:4px 0 12px !important;
        padding:18px 14px !important;
        border:1px solid #e6edf5 !important;
        border-radius:18px !important;
        box-shadow:0 12px 35px rgba(15,76,129,.10) !important;
    }

    #mainNavbar .mega-menu .container{
        width:100%;
        max-width:none;
        padding:0;
    }

    #mainNavbar .mega-menu .row{
        margin:0;
        display:block;
    }

    #mainNavbar .mega-menu .col-lg-3{
        width:100%;
        max-width:none;
        padding:0;
        margin:0;
    }

    #mainNavbar .mega-menu .col-lg-3:not(:last-child)::after{
        display:none;
    }

    #mainNavbar .mega-card{
        padding:16px 4px 18px;
        margin:0;
        border-bottom:1px solid #edf2f7;
        transform:none !important;
    }

    #mainNavbar .mega-card:last-child{
        border-bottom:0;
    }

    #mainNavbar .mega-title{
        margin-bottom:12px;
    }

    #mainNavbar .mega-title h5{
        font-size:17px;
    }

    #mainNavbar .mega-title small{
        font-size:11px;
    }

    #mainNavbar .mega-links{
        display:grid;
        grid-template-columns:1fr 1fr;
        column-gap:18px;
        row-gap:0;
    }

    #mainNavbar .mega-links li{
        margin-bottom:0;
    }

    #mainNavbar .mega-links a{
        min-height:42px;
        display:flex;
        align-items:center;
        padding:7px 4px;
        font-size:13px;
        line-height:1.35;
        border-radius:8px;
    }

    #mainNavbar .mega-links a:hover{
        background:#eef7ff;
        transform:none;
    }

    #mainNavbar .mega-help{
        margin-top:12px;
        padding:18px 4px 2px;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:9px;
    }

    #mainNavbar .mega-help p{
        font-size:13px;
    }

    #mainNavbar .mega-help a{
        font-size:13px;
    }
}

@media (max-width: 575.98px){
    .logo-text{
        font-size:25px;
        letter-spacing:-1px;
    }

    #mainNavbar{
        padding:11px 0;
    }

    #mainNavbar .navbar-collapse{
        max-height:calc(100vh - 76px);
        padding:14px !important;
        margin-top:10px;
        border-radius:16px;
    }

    #mainNavbar .dropdown-menu.mega-menu{
        max-height:calc(100vh - 150px);
        padding:12px 10px !important;
    }

    #mainNavbar .mega-links{
        grid-template-columns:1fr;
    }

    #mainNavbar .mega-links a{
        min-height:40px;
    }
}


/* =========================================================
   FINAL DESKTOP MEGA-MENU VISIBILITY FIX
   ========================================================= */

/*
 * The previous menu had 5 Bootstrap columns (the Startup & B2B
 * column wrapped to a second row). That made the lower services
 * appear outside the first viewport. Business & B2B is now combined
 * into the fourth column in the Blade template.
 *
 * Keep the desktop dropdown inside the viewport and allow the menu
 * itself to scroll when a user's screen is short.
 */
@media (min-width: 1200px){

    #mainNavbar .mega-menu{
        width: min(1400px, calc(100vw - 30px));
        max-width: calc(100vw - 30px);
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        margin-top: 14px;
        padding: 30px 34px 20px;
        max-height: calc(100vh - 96px);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #c9d7e5 transparent;
    }

    #mainNavbar .mega-menu::-webkit-scrollbar{
        width:7px;
    }

    #mainNavbar .mega-menu::-webkit-scrollbar-track{
        background:transparent;
    }

    #mainNavbar .mega-menu::-webkit-scrollbar-thumb{
        background:#c9d7e5;
        border-radius:20px;
    }

    #mainNavbar .mega-menu .container{
        max-width:100%;
        padding-left:0;
        padding-right:0;
    }

    #mainNavbar .mega-menu .row{
        margin-left:-14px;
        margin-right:-14px;
        row-gap:0;
    }

    #mainNavbar .mega-menu .col-lg-3{
        padding-left:14px;
        padding-right:14px;
    }

    #mainNavbar .mega-card{
        min-width:0;
        padding:0 4px;
    }

    #mainNavbar .mega-links li{
        margin-bottom:9px;
    }

    #mainNavbar .mega-links a{
        white-space:normal;
        line-height:1.45;
    }

    #mainNavbar .mega-help{
        margin-top:24px;
        padding-top:16px;
    }
}

/* 1200px–1399px: slightly tighter typography so all four
   columns remain comfortable on standard laptop screens. */
@media (min-width: 1200px) and (max-width: 1399.98px){
    #mainNavbar .mega-menu{
        padding-left:26px;
        padding-right:26px;
    }

    #mainNavbar .mega-title h5{
        font-size:17px;
    }

    #mainNavbar .mega-title small{
        font-size:11px;
    }

    #mainNavbar .mega-links a{
        font-size:13px;
    }

    #mainNavbar .mega-links li{
        margin-bottom:7px;
    }
}

/* Desktop dropdown must never be hidden behind the viewport edge. */
@media (min-width: 992px){
    #mainNavbar .dropdown.position-static{
        position:static !important;
    }

    #mainNavbar .mega-menu{
        z-index:10050;
    }
}

/* Unified Potentialloops brand lockup */
.potentialloops-brand .brand-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1}
.potentialloops-brand .logo-text{white-space:nowrap;display:block;color:#0F4C81;font-size:32px;line-height:.95;font-weight:850;letter-spacing:-1.5px}
.potentialloops-brand .brand-copy small{display:block;margin-top:5px;white-space:nowrap;color:#66768a;font-size:9px;line-height:1.1;font-weight:700;letter-spacing:.25px}
.potentialloops-brand:hover .logo-text{color:#0F4C81}
@media(max-width:1199.98px){
 .potentialloops-brand .logo-text{font-size:28px}
 .potentialloops-brand .brand-copy small{font-size:8px}
}
@media(max-width:575.98px){
 .potentialloops-brand .logo-text{font-size:23px;letter-spacing:-1px}
 .potentialloops-brand .brand-copy small{font-size:7px;margin-top:4px}
}
