@charset "utf-8";

.header.mega-open {
    background-image: linear-gradient(180deg, #f3f3f3, #ffffff);
}
.has-mega-menu {
    position: static;
}
.mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% - 2px);
    width: 100vw;
    transform: translate(-50%, -10px);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
    border-radius: 0 0 50px 50px;
    box-shadow:
        0 15px 12px #04043f40;
    z-index: 10001;
    box-sizing: border-box;
}
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: auto;
}
.has-mega-menu:hover .mega-menu,
.has-mega-menu .mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.mega-container {
    max-width: 1720px;
    margin: auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.menu-item-card {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 18px 10px;
    display: flex;
    gap: 13px;
    align-items: center;
    transition: .35s;
    position: relative;
}
.menu-item-card:hover {
    transform: translateY(-5px);
    background: var(--orange);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);
}
.menu-item-card i {
    width: 64px;
    height: 64px;
    color: #04043F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}
.menu-item-card h5 {
    color: #04043F;
    font-weight: 500;
    font-family: var(--title-font), sans-serif;
    margin-bottom: 5px;
}
.menu-item-card p {
    color: #373737;
    line-height: 1.5;
    margin: 0;
}
.menu-item-card:hover i,
.menu-item-card:hover h5,
.menu-item-card:hover p {
    color: #fff;
}
.menu-item-card img.default-icon {
    display: block;
    position: relative;
}
.menu-item-card img.hover-icon {
    display: none;
}
.menu-item-card:hover img.default-icon {
    display: none;
}
.menu-item-card:hover img.hover-icon {
    display: block;
}
.mega-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 24px 40px;
    background: #e0e0e5;
    border-radius: 0 0 30px 30px;
    margin: auto;
}
.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.footer-left h3,
.footer-right h3 {
    color: #09114f;
    font-size: 22px;
    margin: 0;
}
.footer-buttons {
    display: flex;
    gap: 15px;
}
.header {
    z-index: 9999;
}
.nav-menu ul {
    display: flex;
    gap: 35px;
}
.nav-menu~.mobmenu-topstip {
    display: none;
}

/* MOBILE MENU */
.mobile-toggle {
    display: none;
    width: 42px;
    cursor: pointer;
    margin: 0;
    padding: 5px;
}
.mobile-toggle img {
    display: block;
    margin: 0;
    max-width: 100%;
}
.mobile-close {
    display: none;
}
.mobmenu-topstip-upper .logo,
.mobmenu-topstip-lower {
    display: none;
}
.mobmenu-topstip-lower .btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobmenu-topstip-lower .btn-fill::before {
    top: auto;
}
.mobmenu-topstip-lower .btn-fill::after {
    top: auto;
}
/* Prevent background scroll when mobile menu is open */
body.menu-open {
    overflow: hidden; height: 100vh;
}
/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 998;
    display: none;
}
@media (max-width: 1440px) {
    .menu-item-card h5 {
        font-size: 18px;
    }   
    .menu-item-card p {
        font-size: 14px;
    }
    .footer-left h3,
    .footer-right h3 {
        font-size: 18px;
    }
}
@media (max-width: 1280px) {
    .nav-menu ul { gap: 15px; }
}

@media(min-width:992px) {
    .mobmenu-topstip-upper {
        display: none;
    }
    .nav-menu ul li a .arrow, .nav-menu ul li a .arrow img{
        transition:all 0.5s ease;
        -webkit-transition:all 0.5s ease;
        -moz-transition:all 0.5s ease;
    }
    .nav-menu ul li a:hover .arrow img{
        transform: rotate(180deg);
    }
    .nav-menu ul > li > a{
        padding-bottom:30px;
    }
}
@media(max-width:991px) {
    .mobmenu-topstip-upper {
        padding: 0 20px;
        height: fit-content;
        position: absolute;
        width: 100%;
        top: 0;
        z-index: 1;
        background: #fff;
        height: 70px;
    }
    .mobmenu-topstip-upper .logo {
        position: absolute;
        top: 20px;
        display: block;
    }
    .mobmenu-topstip-lower {
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: fixed;
        bottom: 0;
        padding: 20px;
        background: #fff;
        z-index: 9;
    }
    /* Mobile close button for off-canvas nav */
    .mobile-close {
        display: none;
        position: absolute;
        right:14px;
        top: 18px;
        width: 28px;
        height:28px;
        border-radius: 6px;
        background: transparent;
        border: none;
        font-size: 28px;
        line-height: 44px;
        text-align: center;
        color: var(--blue, #09114f);
        cursor: pointer;
        z-index: 10001;
    }
    .mobile-close:focus {
        outline: none;
    }
    .nav-menu.active~.mobmenu-topstip,
    .nav-menu.active~.mobile-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 300px;
        z-index: 99999;
        position: relative;
        height: 100vh;
    }
    .nav-menu.active~.mobmenu-topstip-upper .logo,
    .nav-menu.active~.mobile-close,
    .mobile-close.active {
        display: block;
    }
    .has-mega-menu {
        width: 100%;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        z-index: 10000;
        width: 100%;
        max-width: 100%;
        height: 100%;
        background: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right .35s ease, transform .35s ease;
        will-change: right, transform;
    }
    .nav-menu.active {
        right: 0;
        left: auto;
    }
    .nav-menu ul {
        flex-direction: column;
        padding: 100px 20px;
        align-items: flex-start;
        width: 100%;
        height: calc(100vh - 100px);
        overflow-y: scroll;
    }
    .has-mega-menu {
        width: 100%;
    }
    .has-mega-menu>a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        color: inherit;
        cursor: pointer;
    }
    .has-mega-menu>a .arrow {
        transition: transform .3s ease;
    }
    .has-mega-menu.active>a .arrow {
        transform: rotate(180deg);
    }
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0px;
    }
    .has-mega-menu.active .mega-menu {
        display: block !important;
        pointer-events: auto;
        background: #f3f3f3;
    }
    .has-mega-menu:hover .mega-menu,
    .has-mega-menu .mega-menu:hover {
        transform: none !important;
    }
    .header.mega-open,
    .nav-menu.mega-open {
        background-color: #F3F3F3 !important;
    }
    .mega-container {
        grid-template-columns: 1fr;
        padding: 15px 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    /* Mobile adjustments for service cards */
    .menu-item-card {
        padding: 15px 10px;
        gap: 12px;
        border-radius: 12px;
        align-items: center;
    }
    .menu-item-card img {
        width: 26px;
        flex: 0 0 2%;
    }
    .menu-item-card h5 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 0;
    }
    .menu-item-card p {
        font-size: 14px;
        line-height: 1.4;
        color: #666;
        display: none;
    }
    .mega-footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 10px;
    }
    .nav-menu ul li a.btn,
    .nav-menu ul li a.btn-fill {
        max-width: 100%;
    }
    .nav-menu ul li a.btn:after,
    .nav-menu ul li a.btn-fill:after {
        top: 4px; right: 5px; width: 26px; height: 26px;
    }
    .nav-menu ul li a.btn::before, 
    .nav-menu ul li a.btn-fill::before {
        top: 11px; right: 11px;
    }
    .footer-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .footer-left,
    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
    .footer-left h3,
    .footer-right h3 {
        font-size: 18px;
        line-height: 1.3;
    }
}