/*
 * Homepage utility bar + navbar + sticky CTA styles for pages that don't load
 * style.css / responsive.css / header.css (e.g. marketing_contact).
 * Mirrors the rules from those files, scoped to the shared partials.
 */

/* Sticky CTA (layouts.homelayouts.sticky-cta): on the homepage style.css forces
   p{font-size:16px!important;line-height:1.5!important} and body line-height:15px */
.npx-sticky-cta {
    line-height: 15px;
}
.npx-sticky-cta .npx-sticky-cta__title,
.npx-sticky-cta .npx-sticky-cta__subtitle {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Utility bar stays in normal flow; navbar sticks below it */
body .utility-bar {
    position: static;
    font-family: 'Open Sans', sans-serif;
    line-height: 15px;
}
body .utility-bar a {
    font-family: Montserrat, sans-serif;
}
body .utility-bar.utility-hidden {
    max-height: 40px;
    opacity: 1;
    transform: none;
}
body #navbar,
body.np-bar-hidden #navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* Homepage body uses line-height:15px; marketing pages use 1.55, which pushes
   the inline-block links/logo down and makes the bar taller */
#navbar {
    font-family: 'Open Sans', sans-serif;
    line-height: 15px;
}

/* marketingstyle.css widens .container to 1152px; keep Bootstrap widths like the homepage */
@media (min-width: 576px) {
    body .utility-bar .container, #navbar .container { max-width: 540px; }
}
@media (min-width: 768px) {
    body .utility-bar .container, #navbar .container { max-width: 720px; }
}
@media (min-width: 992px) {
    body .utility-bar .container, #navbar .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    body .utility-bar .container, #navbar .container { max-width: 1140px; }
}

#navbar.scrolled {
    background-color: #fff !important;
    transition: background-color .2s linear;
    box-shadow: 0 5px 2px -2px rgb(0 0 0 / .2);
}
#navbar .navbar-brand,
#navbar .navbar-brand:hover,
#navbar .navbar-brand:focus {
    outline: 0;
}
#navbar .imglogo {
    width: 200px;
    max-height: none;
    outline: 0;
}
#navbar .navbar-nav {
    justify-content: end;
}
#navbar .nav-item {
    padding-top: .5rem;
    padding-bottom: .5rem;
}
#navbar .nav-item a {
    display: inline-block;
    color: #000;
    font-family: Montserrat, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    text-decoration: none;
}
#navbar ul li:hover a,
#navbar .nav-item.active a,
#navbar .nav-item:hover a {
    color: #270678;
}
#navbar ul li:last-child {
    background: linear-gradient(84.44deg, #270678 18.57%, #0c09c3 99.11%);
    border-radius: 33px;
    transition: all .3s ease;
}
#navbar ul li:last-child:hover {
    background: linear-gradient(84.44deg, #0c09c3 18.57%, #270678 99.11%);
}
#navbar ul li:last-child a {
    color: #fff !important;
}

/* Services dropdown */
#navbar .nav-item .dropdown-menu {
    margin-top: 0;
    flex-direction: column;
    gap: 8px;
}
#navbar .nav-item .dropdown-menu .dropdown-item {
    display: block;
    padding: 8px 16px;
}
#navbar .nav-item .dropdown-menu .dropdown-item:hover {
    background-color: #270678;
    color: #fff !important;
}

/* marketingstyle.css redefines .mt-3 with !important, which beats Bootstrap's
   .mt-lg-0 on the menu list and adds 12px above it on desktop */
@media (min-width: 992px) {
    #navbar .navbar-nav.mt-lg-0 {
        margin-top: 0 !important;
    }
}

@media only screen and (min-width: 1024.5px) {
    #navbar .px-l-16 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
@media only screen and (min-width: 991px) and (max-width: 1024px) {
    #navbar .nav-item a {
        font-family: 'Open Sans', sans-serif;
        font-size: 15px;
        line-height: 34px;
    }
    #navbar .imglogo {
        width: 160px;
    }
}
@media only screen and (max-width: 991px) {
    #navbar .navbar-nav {
        justify-content: start;
    }
    #navbar ul li:last-child {
        max-width: fit-content;
        padding-left: 16px;
        padding-right: 16px;
    }
}
