/* ============================================
   OTRSUPPLIER - Components Styles
   Header, Footer, Mobile Menu improvements
   ============================================ */

/* === IMPROVED STICKY HEADER === */
.main-header{
    background:var(--secondary);
    padding:12px 0;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 20px rgba(0,0,0,.1);
    transition:padding .3s ease,box-shadow .3s ease;
}
.main-header.scrolled{
    padding:8px 0;
    box-shadow:0 4px 25px rgba(0,0,0,.2);
}

/* === LARGER LOGO === */
.logo-main{
    font-size:30px;
    font-weight:800;
    color:var(--primary);
    letter-spacing:-0.5px;
    line-height:1;
}
.logo-tagline{
    font-size:11px;
    color:rgba(255,255,255,.65);
    font-weight:500;
    margin-top:0;
    letter-spacing:.5px;
}

/* === IMPROVED MEGA MENU === */
.mega-dropdown{position:static!important}
.mega-menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border-radius:0 0 12px 12px;
    box-shadow:0 12px 40px rgba(0,0,0,.15);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    transition:opacity .25s ease,visibility .25s ease,transform .25s ease;
    z-index:1001;
    padding:24px;
}
.mega-dropdown:hover .mega-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.mega-menu-inner{
    max-width:960px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:24px;
    align-items:start;
}
.mega-col{display:flex;flex-direction:column;gap:10px}
.mega-col-title{
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1.5px;
    color:#999;
    font-weight:700;
    margin-bottom:6px;
    padding-bottom:8px;
    border-bottom:2px solid #f0f0f0;
}
.mega-col-cta{
    background:#f8f9fa;
    border-radius:10px;
    padding:18px;
    border:1px solid #eee;
}
.mega-sizes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.mega-sizes a{
    padding:6px 14px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:15px;
    font-size:12px;
    font-weight:600;
    color:#0B2B40;
    text-decoration:none;
    transition:all .2s;
}
.mega-sizes a:hover{background:#E85D04;color:#fff;border-color:#E85D04}
.mega-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:16px 12px;
    border-radius:10px;
    text-decoration:none;
    color:var(--secondary);
    border:1px solid #eee;
    transition:all .2s ease;
    text-align:center;
    background:#fff;
}
.mega-card:hover{
    border-color:var(--primary);
    box-shadow:0 4px 15px rgba(232,93,4,.12);
    transform:translateY(-2px);
}
.mega-icon{font-size:26px;margin-bottom:6px}
.mega-title{font-size:14px;font-weight:700;margin-bottom:2px}
.mega-desc{font-size:11px;color:var(--text-muted)}

/* === IMPROVED MOBILE MENU === */
.mobile-nav{
    display:none;
    position:fixed;
    top:0;
    right:-320px;
    width:320px;
    max-width:85vw;
    height:100vh;
    height:100dvh;
    background:var(--secondary);
    z-index:999;
    transition:right .25s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
}
.mobile-nav.active{right:0}
.mobile-nav-overlay{
    display:none;
    position:fixed;
    top:0;left:0;right:0;bottom:0;
    background:rgba(0,0,0,.5);
    z-index:998;
    opacity:0;
    transition:opacity .25s ease;
}
.mobile-nav-overlay.active{display:block;opacity:1}
.mobile-nav-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    border-bottom:1px solid rgba(255,255,255,.1);
    position:sticky;
    top:0;
    background:var(--secondary);
    z-index:1;
}
.mobile-nav-title{color:white;font-weight:700;font-size:18px}
.mobile-nav-close{background:none;border:none;color:white;font-size:28px;cursor:pointer;padding:4px 8px;line-height:1}
.mobile-nav-link{
    display:block;
    padding:14px 20px;
    color:white;
    text-decoration:none;
    font-weight:500;
    font-size:15px;
    border-bottom:1px solid rgba(255,255,255,.08);
    transition:background .15s ease,color .15s ease;
    -webkit-tap-highlight-color:transparent;
}
.mobile-nav-link:hover,.mobile-nav-link.active{
    background:rgba(232,93,4,.12);
    color:var(--primary);
}
.mobile-dropdown-menu{
    display:none;
    list-style:none;
    margin:0;padding:0;
    background:var(--dark-bg);
}
.mobile-dropdown-menu.active{display:block}
.mobile-dropdown-menu li a{
    display:block;
    padding:12px 20px 12px 40px;
    color:rgba(255,255,255,.8);
    text-decoration:none;
    font-size:14px;
    transition:background .15s ease;
    -webkit-tap-highlight-color:transparent;
}
.mobile-dropdown-menu li a:hover{
    background:rgba(232,93,4,.08);
    color:var(--primary);
}
.mobile-dropdown-toggle{
    float:right;
    font-size:14px;
    transition:transform .2s ease;
    padding:4px 8px;
    cursor:pointer;
}
.mobile-nav-footer{
    padding:18px 20px;
    border-top:1px solid rgba(255,255,255,.1);
    position:sticky;
    bottom:0;
    background:var(--secondary);
}
.mobile-whatsapp-btn{
    display:block;
    background:var(--whatsapp);
    color:white;
    padding:14px;
    border-radius:var(--radius);
    text-decoration:none;
    text-align:center;
    font-weight:600;
    font-size:14px;
    transition:background .2s ease;
    -webkit-tap-highlight-color:transparent;
}
.mobile-whatsapp-btn:hover{background:var(--whatsapp-hover)}

/* === BACK TO TOP IMPROVED === */
.back-to-top{
    position:fixed;
    bottom:100px;right:25px;
    background:var(--secondary);
    color:white;
    width:46px;height:46px;
    border-radius:50%;
    border:none;
    cursor:pointer;
    display:none;
    align-items:center;
    justify-content:center;
    box-shadow:var(--shadow-md);
    z-index:997;
    transition:all .3s ease;
    opacity:0;
    transform:translateY(10px);
}
.back-to-top.show{display:flex;opacity:1;transform:translateY(0)}
.back-to-top:hover{background:var(--primary);transform:translateY(-3px)}

/* === RESPONSIVE HEADER === */
@media(max-width:968px){
    .desktop-nav,.header-cta{display:none}
    .mobile-menu-toggle{display:flex}
    .brand-bar-label{display:none}
    .brand-bar-all{display:none}
    .brand-bar-links{
        justify-content:flex-start;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .brand-bar-links::-webkit-scrollbar{display:none}
    .mega-menu-inner{grid-template-columns:1fr}
    .top-bar-content{flex-direction:column;gap:6px}
    .contact-info{flex-direction:column;gap:6px}
    .social-links{flex-wrap:wrap;justify-content:center}
    .logo-main{font-size:24px}
}
@media(max-width:600px){
    .logo-main{font-size:22px}
    .logo-tagline{font-size:10px}
    .brand-bar-link{font-size:10px;padding:4px 8px}
    .floating-whatsapp{width:52px;height:52px;bottom:20px;right:20px}
    .back-to-top{width:42px;height:42px;bottom:80px;right:18px}
}
