
/* ==============================================================
   Mountain Apex v3.4 — Premium Shell
   Premium header, footer, typography polish, back-to-top
   ============================================================== */

:root{
    --map-navy-950:#03172d;
    --map-navy-900:#041b36;
    --map-navy-850:#062345;
    --map-navy-800:#082b53;
    --map-blue-600:#0f63c5;
    --map-blue-500:#1e78d5;
    --map-sky:#76aeea;
    --map-white:#ffffff;
    --map-cloud:#f4f7fb;
    --map-line:rgba(8,43,83,.12);
    --map-muted:#6b7b8d;
}

.ma-premium-shell{
    background:#fff;
}

/* ---------------- Top bar ---------------- */
.map-topbar{
    background:var(--map-navy-950);
    color:#b8c8d9;
    position:relative;
    z-index:80;
}
.map-topbar-inner{
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.map-origin{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:9px;
    font-weight:800;
    letter-spacing:.15em;
    white-space:nowrap;
}
.map-origin i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#3180d6;
    box-shadow:0 0 0 4px rgba(49,128,214,.12);
}
.map-topbar-right{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:0;
    font-size:10px;
}
.map-topbar-right a,
.map-topbar-right span{
    color:#b8c8d9;
}
.map-topbar-right a:hover{
    color:#fff;
}
.map-topbar-right b,
.map-topbar-right>a>span{
    color:#6ea9e7;
    margin-right:4px;
}
.map-separator{
    width:1px;
    height:13px;
    background:rgba(255,255,255,.12);
}
.map-lang{
    display:flex;
    align-items:center;
    gap:6px;
}
.map-lang a{
    font-weight:800;
    color:#8194aa;
}
.map-lang a.active{
    color:#fff;
}

/* ---------------- Header ---------------- */
.map-header{
    position:sticky;
    top:0;
    z-index:70;
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(14px);
    box-shadow:0 1px 0 rgba(5,31,61,.08);
    transition:box-shadow .25s ease, transform .25s ease;
}
.map-header.scrolled{
    box-shadow:0 12px 34px rgba(4,27,54,.10);
}
.map-header-inner{
    min-height:96px;
    display:grid;
    grid-template-columns:330px 1fr auto;
    gap:28px;
    align-items:center;
}
.map-brand{
    display:grid;
    gap:4px;
    width:310px;
}
.map-brand img{
    display:block;
    width:100%;
    height:58px;
    object-fit:contain;
    object-position:left center;
}
.map-brand-strap{
    padding-left:55px;
    color:#6a7d91;
    font-size:8px;
    font-weight:800;
    letter-spacing:.13em;
    white-space:nowrap;
}
.map-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:24px;
}
.map-nav>a{
    position:relative;
    display:inline-flex;
    align-items:center;
    min-height:42px;
    color:#18324d;
    font-size:11px;
    font-weight:700;
}
.map-nav>a:after{
    content:"";
    position:absolute;
    left:0;
    right:100%;
    bottom:3px;
    height:2px;
    background:var(--map-blue-600);
    transition:right .22s ease;
}
.map-nav>a:hover,
.map-nav>a.active{
    color:#0a57a5;
}
.map-nav>a:hover:after,
.map-nav>a.active:after{
    right:0;
}
.map-rfq-btn{
    min-height:48px;
    display:flex;
    align-items:center;
    gap:16px;
    background:var(--map-navy-900);
    color:#fff;
    padding:0 17px 0 19px;
    border-radius:7px;
    font-size:11px;
    font-weight:800;
    box-shadow:0 10px 22px rgba(4,27,54,.16);
    transition:.22s ease;
    white-space:nowrap;
}
.map-rfq-btn b{
    width:25px;
    height:25px;
    display:grid;
    place-items:center;
    background:var(--map-blue-600);
    border-radius:5px;
    font-size:13px;
}
.map-rfq-btn:hover{
    transform:translateY(-2px);
    background:#052c59;
    box-shadow:0 14px 30px rgba(4,27,54,.22);
}
.map-header-accent{
    height:3px;
    background:#e8eef5;
    overflow:hidden;
}
.map-header-accent span{
    display:block;
    width:14%;
    height:100%;
    background:linear-gradient(90deg,#0c5fbd,#4f9ee9);
}
.map-menu-toggle{
    display:none;
}

/* Polish page shells without changing structure */
.ma33-inner-hero{
    border-bottom:1px solid rgba(255,255,255,.08);
}
.ma33-inner-copy h1{
    text-shadow:0 2px 26px rgba(1,17,34,.22);
}
.ma33-section{
    position:relative;
}
.ma33-heading h2,
.ma33-intro-grid h2,
.ma33-page-intro h2{
    text-wrap:balance;
}
.ma33-product-card,
.ma33-feature-card,
.ma33-catalogue-card,
.ma33-contact-card,
.ma33-rfq-card{
    box-shadow:0 16px 42px rgba(8,43,83,.045);
}

/* ---------------- Pre-footer CTA ---------------- */
.map-prefooter{
    background:linear-gradient(110deg,#0b62be 0%,#0d58aa 48%,#083e79 100%);
    color:#fff;
    position:relative;
    overflow:hidden;
}
.map-prefooter:before{
    content:"";
    position:absolute;
    width:430px;
    height:430px;
    right:-160px;
    top:-250px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:50%;
    box-shadow:
        0 0 0 54px rgba(255,255,255,.025),
        0 0 0 108px rgba(255,255,255,.018);
}
.map-prefooter-inner{
    min-height:185px;
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}
.map-prefooter-copy{
    max-width:760px;
}
.map-prefooter-copy>span{
    display:block;
    color:#c9e0f8;
    font-size:9px;
    font-weight:800;
    letter-spacing:.16em;
    margin-bottom:11px;
}
.map-prefooter-copy h2{
    margin:0;
    max-width:740px;
    font-size:clamp(30px,3vw,44px);
    line-height:1.08;
    letter-spacing:-.035em;
}
.map-prefooter-actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-width:240px;
    gap:9px;
}
.map-prefooter-primary,
.map-prefooter-secondary{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:0 16px;
    border-radius:6px;
    font-size:10px;
    font-weight:800;
}
.map-prefooter-primary{
    background:#fff;
    color:#073d76;
}
.map-prefooter-primary b{
    font-size:14px;
}
.map-prefooter-secondary{
    color:#fff;
    border:1px solid rgba(255,255,255,.25);
}

/* ---------------- Footer ---------------- */
.map-footer{
    background:var(--map-navy-950);
    color:#fff;
    padding:76px 0 24px;
    position:relative;
    overflow:hidden;
}
.map-footer:before{
    content:"MOUNTAIN APEX";
    position:absolute;
    right:-18px;
    bottom:80px;
    color:rgba(255,255,255,.018);
    font-size:115px;
    line-height:1;
    font-weight:800;
    letter-spacing:-.06em;
    white-space:nowrap;
    pointer-events:none;
}
.map-footer-top{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1.05fr 1fr;
    gap:90px;
    align-items:start;
}
.map-footer-brand{
    max-width:470px;
}
.map-footer-logo-wrap{
    display:inline-flex;
    background:#fff;
    border-radius:8px;
    padding:11px 14px 9px;
    box-shadow:0 18px 38px rgba(0,0,0,.12);
}
.map-footer-logo-wrap img{
    width:270px;
    height:auto;
    display:block;
}
.map-footer-brand p{
    margin:24px 0 22px;
    max-width:440px;
    color:#99acc0;
    font-size:12px;
    line-height:1.85;
}
.map-footer-badges{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.map-footer-badges span{
    border:1px solid rgba(117,169,224,.24);
    background:rgba(41,102,164,.08);
    color:#8fbbe8;
    border-radius:999px;
    padding:7px 9px;
    font-size:8px;
    font-weight:800;
    letter-spacing:.08em;
}
.map-footer-nav{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:42px;
}
.map-footer-col{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.map-footer-col>strong{
    margin-bottom:9px;
    color:#fff;
    font-size:9px;
    font-weight:800;
    letter-spacing:.16em;
}
.map-footer-col a,
.map-footer-col span{
    color:#91a4b8;
    font-size:11px;
    line-height:1.55;
}
.map-footer-col a:hover{
    color:#fff;
}
.map-footer-contact a:first-of-type{
    color:#fff;
    font-size:15px;
    font-weight:700;
}
.map-footer-rfq{
    margin-top:9px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
    color:#75aeea!important;
    font-weight:800;
}
.map-footer-sectorline{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1fr 1fr;
    margin-top:52px;
    border-top:1px solid rgba(255,255,255,.10);
    border-bottom:1px solid rgba(255,255,255,.10);
}
.map-footer-sectorline>a{
    display:grid;
    grid-template-columns:35px minmax(180px,.75fr) 1fr 28px;
    gap:15px;
    align-items:center;
    min-height:84px;
    color:#fff;
    padding:0 18px;
    transition:.2s ease;
}
.map-footer-sectorline>a:first-child{
    border-right:1px solid rgba(255,255,255,.10);
}
.map-footer-sectorline>a:hover{
    background:rgba(255,255,255,.035);
}
.map-footer-sectorline span{
    color:#5e9cdd;
    font-size:9px;
    font-weight:800;
}
.map-footer-sectorline strong{
    font-size:13px;
}
.map-footer-sectorline b{
    color:#8499ae;
    font-size:9px;
    font-weight:600;
}
.map-footer-sectorline i{
    color:#75aeea;
    font-size:15px;
    font-style:normal;
}
.map-footer-bottom{
    position:relative;
    z-index:2;
    min-height:62px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:25px;
    color:#617991;
    font-size:9px;
}
.map-footer-bottom>div{
    display:flex;
    gap:8px;
    align-items:center;
}
.map-footer-bottom i{
    color:#34506d;
}

/* ---------------- Back to top ---------------- */
.map-backtop{
    position:fixed;
    left:22px;
    bottom:22px;
    z-index:82;
    width:52px;
    height:52px;
    border:1px solid rgba(5,38,79,.14);
    border-radius:50%;
    background:rgba(255,255,255,.96);
    color:var(--map-navy-900);
    box-shadow:0 12px 28px rgba(4,27,54,.14);
    display:grid;
    place-items:center;
    align-content:center;
    gap:0;
    opacity:0;
    visibility:hidden;
    transform:translateY(12px);
    cursor:pointer;
    transition:.22s ease;
}
.map-backtop.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.map-backtop:hover{
    background:var(--map-navy-900);
    color:#fff;
    transform:translateY(-3px);
}
.map-backtop span{
    font-size:17px;
    line-height:1;
}
.map-backtop small{
    font-size:6px;
    font-weight:800;
    letter-spacing:.12em;
    margin-top:2px;
}

/* Keep floating WhatsApp clearly opposite */
.ma3-whatsapp{
    right:22px!important;
    bottom:22px!important;
}

/* ---------------- Responsive ---------------- */
@media(max-width:1180px){
    .map-header-inner{
        grid-template-columns:280px 1fr auto;
        gap:20px;
    }
    .map-brand{
        width:265px;
    }
    .map-brand-strap{
        padding-left:46px;
        font-size:7px;
    }
    .map-nav{
        gap:16px;
    }
    .map-nav>a{
        font-size:10px;
    }
    .map-rfq-btn{
        padding:0 12px;
    }
}

@media(max-width:980px){
    .map-topbar-left{
        display:none;
    }
    .map-topbar-inner{
        justify-content:flex-end;
    }
    .map-header-inner{
        min-height:82px;
        grid-template-columns:1fr auto auto;
    }
    .map-brand{
        width:250px;
    }
    .map-brand img{
        height:51px;
    }
    .map-brand-strap{
        display:none;
    }
    .map-menu-toggle{
        display:block;
        width:43px;
        height:43px;
        border:1px solid #dbe5ef;
        border-radius:7px;
        background:#fff;
        padding:9px;
    }
    .map-menu-toggle span{
        display:block;
        height:2px;
        background:#082d5b;
        margin:5px 0;
    }
    .map-nav{
        position:absolute;
        top:82px;
        left:0;
        right:0;
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding:12px 22px 20px;
        background:#fff;
        box-shadow:0 20px 35px rgba(4,27,54,.12);
        border-top:1px solid #e7edf4;
    }
    .map-nav.open{
        display:flex;
    }
    .map-nav>a{
        min-height:44px;
        border-bottom:1px solid #eef2f6;
    }
    .map-nav>a:after{
        display:none;
    }
    .map-rfq-btn{
        min-height:43px;
    }
    .map-footer-top{
        grid-template-columns:1fr;
        gap:48px;
    }
    .map-footer-sectorline{
        grid-template-columns:1fr;
    }
    .map-footer-sectorline>a:first-child{
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.10);
    }
}

@media(max-width:760px){
    .map-topbar-right{
        width:100%;
        justify-content:center;
    }
    .map-topbar-right>span:not(.map-separator),
    .map-topbar-right>a[href^="mailto:"]{
        display:none;
    }
    .map-topbar-right .map-separator{
        display:none;
    }
    .map-header-inner{
        grid-template-columns:1fr auto;
    }
    .map-rfq-btn{
        display:none;
    }
    .map-prefooter-inner{
        min-height:0;
        padding-top:48px;
        padding-bottom:48px;
        align-items:flex-start;
        flex-direction:column;
    }
    .map-prefooter-actions{
        width:100%;
    }
    .map-footer{
        padding-top:58px;
    }
    .map-footer-nav{
        grid-template-columns:1fr 1fr;
        gap:35px;
    }
    .map-footer-contact{
        grid-column:1/-1;
    }
    .map-footer-sectorline>a{
        grid-template-columns:28px 1fr 26px;
        gap:10px;
        padding:15px 8px;
    }
    .map-footer-sectorline b{
        display:none;
    }
    .map-footer-bottom{
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        padding-top:20px;
        padding-bottom:10px;
    }
    .map-footer-bottom>div{
        flex-wrap:wrap;
    }
}

@media(max-width:520px){
    .map-brand{
        width:210px;
    }
    .map-footer-nav{
        grid-template-columns:1fr;
    }
    .map-footer-contact{
        grid-column:auto;
    }
    .map-footer-logo-wrap img{
        width:225px;
    }
    .map-prefooter-copy h2{
        font-size:30px;
    }
    .map-backtop{
        left:14px;
        bottom:14px;
        width:48px;
        height:48px;
    }
    .ma3-whatsapp{
        right:14px!important;
        bottom:14px!important;
    }
}


/* ---------------- Products dropdown ---------------- */
.map-nav-dropdown{
    position:relative;
    display:flex;
    align-items:center;
    min-height:42px;
}
.map-nav-dropdown-toggle{
    position:relative;
    display:flex;
    align-items:center;
    gap:6px;
    min-height:42px;
    padding:0;
    border:0;
    background:transparent;
    color:#18324d;
    font:inherit;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}
.map-nav-dropdown-toggle:after{
    content:"";
    position:absolute;
    left:0;
    right:100%;
    bottom:3px;
    height:2px;
    background:var(--map-blue-600);
    transition:right .22s ease;
}
.map-nav-dropdown:hover .map-nav-dropdown-toggle,
.map-nav-dropdown.active .map-nav-dropdown-toggle{
    color:#0a57a5;
}
.map-nav-dropdown:hover .map-nav-dropdown-toggle:after,
.map-nav-dropdown.active .map-nav-dropdown-toggle:after{
    right:0;
}
.map-nav-dropdown-toggle b{
    font-size:12px;
    font-weight:700;
    transition:transform .2s ease;
}
.map-nav-dropdown.open .map-nav-dropdown-toggle b,
.map-nav-dropdown:hover .map-nav-dropdown-toggle b{
    transform:rotate(180deg);
}
.map-nav-dropdown-menu{
    position:absolute;
    top:calc(100% + 15px);
    left:50%;
    width:410px;
    transform:translate(-50%,10px);
    padding:10px;
    background:#fff;
    border:1px solid #e0e7ef;
    border-radius:10px;
    box-shadow:0 24px 55px rgba(4,27,54,.16);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.2s ease;
}
.map-nav-dropdown-menu:before{
    content:"";
    position:absolute;
    top:-7px;
    left:50%;
    width:13px;
    height:13px;
    background:#fff;
    border-left:1px solid #e0e7ef;
    border-top:1px solid #e0e7ef;
    transform:translateX(-50%) rotate(45deg);
}
.map-nav-dropdown:hover .map-nav-dropdown-menu,
.map-nav-dropdown.open .map-nav-dropdown-menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate(-50%,0);
}
.map-nav-dropdown-menu>a{
    position:relative;
    display:grid;
    grid-template-columns:30px 1fr 20px;
    gap:11px;
    align-items:center;
    min-height:72px;
    padding:10px 12px;
    border-radius:7px;
    color:#17334f;
    transition:.18s ease;
}
.map-nav-dropdown-menu>a:hover{
    background:#f2f7fc;
}
.map-nav-dropdown-menu>a + a{
    border-top:1px solid #edf1f5;
}
.map-dd-index{
    color:#2b74bf;
    font-size:9px;
    font-weight:800;
}
.map-nav-dropdown-menu strong{
    display:block;
    font-size:12px;
    color:#082e5c;
}
.map-nav-dropdown-menu small{
    display:block;
    margin-top:3px;
    color:#75869a;
    font-size:9px;
}
.map-nav-dropdown-menu i{
    color:#3478bc;
    font-style:normal;
    font-size:13px;
}

/* remove old generic nav pseudo behavior from dropdown wrapper */
.map-nav-dropdown:after{
    display:none!important;
}

@media(max-width:980px){
    .map-nav-dropdown{
        display:block;
        min-height:0;
        border-bottom:1px solid #eef2f6;
    }
    .map-nav-dropdown-toggle{
        width:100%;
        min-height:44px;
        justify-content:space-between;
        font-size:10px;
    }
    .map-nav-dropdown-toggle:after{
        display:none;
    }
    .map-nav-dropdown-menu{
        position:static;
        width:100%;
        transform:none!important;
        padding:0 0 8px;
        background:#f7f9fc;
        border:0;
        border-radius:7px;
        box-shadow:none;
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        display:none;
    }
    .map-nav-dropdown.open .map-nav-dropdown-menu{
        display:block;
    }
    .map-nav-dropdown:hover .map-nav-dropdown-menu:not(.force-open){
        opacity:1;
    }
    .map-nav-dropdown-menu:before{
        display:none;
    }
    .map-nav-dropdown-menu>a{
        min-height:62px;
        padding:8px 10px;
    }
}
