/* Services mega menu */
.services-mega-menu {
    background: #102b3b;
    border: 1px solid rgba(225, 174, 53, .35);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(5, 18, 27, .32);
    left: 50% !important;
    margin-top: 18px !important;
    min-width: 0;
    padding: 0;
    transform: translateX(-50%);
    width: min(920px, calc(100vw - 40px));
}

.services-mega-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    display: none;
    font-size: 21px;
    line-height: 1;
    padding: 6px 8px;
    vertical-align: middle;
}

.services-mega-toggle:focus {
    outline: 1px dotted currentColor;
    outline-offset: 2px;
}

.services-mega-toggle span {
    display: inline-block;
    transform: translateY(-2px);
    transition: transform .2s ease;
}

.services-mega-toggle[aria-expanded="true"] span {
    transform: rotate(180deg) translateY(2px);
}

.services-mega-menu:before {
    background: #102b3b;
    border-left: 1px solid rgba(225, 174, 53, .35);
    border-top: 1px solid rgba(225, 174, 53, .35);
    content: "";
    height: 14px;
    left: 50%;
    position: absolute;
    top: -8px;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
}

.services-mega-menu__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-radius: 17px;
}

.services-mega-menu__feature {
    background: radial-gradient(circle at 100% 0, rgba(225, 174, 53, .24), transparent 42%), linear-gradient(145deg, #173f50, #102b3b 75%);
    display: flex;
    flex-direction: column;
    min-height: 345px;
    padding: 30px 28px 24px;
    position: relative;
}

.services-mega-menu__feature:after {
    border: 1px solid rgba(225, 174, 53, .22);
    border-radius: 50%;
    content: "";
    height: 156px;
    position: absolute;
    right: -74px;
    top: -74px;
    width: 156px;
}

.services-mega-menu__eyebrow,
.services-mega-menu__label {
    color: #e1ae35;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.services-mega-menu__feature h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin: 34px 0 14px;
    max-width: 210px;
}

.services-mega-menu__feature p {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.55 !important;
    margin: 0;
    max-width: 235px;
}

.services-mega-menu__feature-link {
    align-items: center;
    color: #e1ae35;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    margin-top: 22px;
    text-decoration: none;
}

.services-mega-menu__feature-link span {
    font-size: 20px;
    line-height: 0;
    transition: transform .2s ease;
}

.services-mega-menu__feature-link:hover,
.services-mega-menu__feature-link:focus {
    color: #f3ce79;
    text-decoration: none;
}

.services-mega-menu__feature-link:hover span,
.services-mega-menu__feature-link:focus span {
    transform: translateX(4px);
}

.services-mega-menu__route {
    align-items: center;
    color: rgba(255, 255, 255, .38);
    display: flex;
    font-size: 9px;
    font-weight: 800;
    gap: 6px;
    letter-spacing: .08em;
    margin-top: auto;
}

.services-mega-menu__route i {
    border-top: 1px dashed rgba(225, 174, 53, .7);
    display: inline-block;
    width: 18px;
}

.services-mega-menu__group {
    padding: 31px 24px 22px;
}

.services-mega-menu__group + .services-mega-menu__group {
    border-left: 1px solid rgba(255, 255, 255, .11);
}

.services-mega-menu__label {
    color: rgba(255, 255, 255, .46);
    display: block;
    margin-bottom: 18px;
}

.services-mega-menu__link {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    gap: 12px;
    padding: 0 0 13px;
    margin-bottom: 13px;
    text-decoration: none;
}

.services-mega-menu__link:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.services-mega-menu__link:hover,
.services-mega-menu__link:focus {
    text-decoration: none;
}

.services-mega-menu__icon {
    align-items: center;
    background: rgba(225, 174, 53, .12);
    border: 1px solid rgba(225, 174, 53, .25);
    border-radius: 10px;
    color: #e1ae35;
    display: flex;
    flex: 0 0 34px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    height: 34px;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
    width: 34px;
}

.services-mega-menu__link:hover .services-mega-menu__icon,
.services-mega-menu__link:focus .services-mega-menu__icon {
    background: #e1ae35;
    color: #102b3b;
}

.services-mega-menu__link strong,
.services-mega-menu__link small {
    display: block;
}

.services-mega-menu__link strong {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: color .2s ease;
}

.services-mega-menu__link:hover strong,
.services-mega-menu__link:focus strong {
    color: #f3ce79;
}

.services-mega-menu__link small {
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
}

@media (min-width: 992px) {
    /* Keep the hover state alive while the pointer crosses the visual gap. */
    .services-menu-item {
        position: relative;
    }

    .services-menu-item:after {
        content: "";
        height: 20px;
        left: 0;
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 1050;
    }

    .navbar .nav-item.dropdown:hover .services-mega-menu,
    .navbar .nav-item.dropdown .services-mega-menu.show {
        display: block;
    }
}

@media (max-width: 991px) {
    .services-mega-menu {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        left: auto !important;
        margin: 8px 0 0 !important;
        transform: none;
        width: 100%;
    }

    .services-mega-menu:before {
        display: none;
    }

    .services-mega-menu__inner {
        grid-template-columns: 1fr 1fr;
    }

    .services-mega-menu__feature {
        grid-column: 1 / -1;
        min-height: 0;
        padding: 24px;
    }

    .services-mega-menu__feature h2 {
        margin-top: 18px;
        max-width: none;
    }

    .services-mega-menu__route {
        margin-top: 24px;
    }

    .services-mega-menu__group {
        padding: 24px 18px 16px;
    }
}

@media (max-width: 575px) {
    .services-mega-menu__inner {
        display: block;
    }

    .services-mega-menu__group + .services-mega-menu__group {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .11);
    }
}

@media (max-width: 767px) {
    /* The header is fixed, so the expanded mobile navigation needs its own
       scroll area when the mega menu is taller than the viewport. */
    .navbar-collapse.collapse.show {
        max-height: calc(100vh - 82px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 28px;
        touch-action: pan-y;
    }

    .services-menu-item {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    .services-menu-item > .services-menu-link {
        flex: 1 1 auto;
    }

    .services-mega-toggle {
        align-items: center;
        background: rgba(225, 174, 53, .14);
        border: 1px solid rgba(225, 174, 53, .65);
        border-radius: 50%;
        color: #e1ae35;
        display: inline-flex;
        height: 40px;
        justify-content: center;
        margin-left: auto;
        width: 40px;
    }

    .services-menu-item .services-mega-menu {
        position: static;
        flex-basis: 100%;
        display: none;
        width: 100%;
    }

    .services-menu-item .services-mega-menu.show {
        display: block;
    }
}
