/* ==========================================================
   SQUEEB BASE
   Public navigation + footer + global reset only.
   Authenticated header lives in authenticated-shell.css.
   ========================================================== */

html,
body{
    width:100%;
    min-height:100%;
    overflow-x:hidden;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

*{
    margin:0;
    padding:0;
}

:root{
    --base-bg:#f5f6f9;
    --base-card:#ffffff;
    --base-text:#12141b;
    --base-muted:#717683;
    --base-border:#e7e9ef;
    --base-primary:#315efb;
    --base-primary-dark:#2447d6;
    --base-navy:#111827;
    --base-footer:#0f172a;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    font-family:Arial,Helvetica,sans-serif;
    background:var(--base-bg);
    color:var(--base-text);
    -webkit-font-smoothing:antialiased;
}

img{
    max-width:100%;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input{
    font:inherit;
}

button{
    -webkit-tap-highlight-color:transparent;
}

[hidden]{
    display:none !important;
}

.site-main{
    width:100%;
    flex:1 0 auto;
}


/* ==========================================================
   PUBLIC HEADER
   ========================================================== */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    padding:16px 18px 0;
    pointer-events:none;
}

.navbar{
    position:relative;
    width:min(100%,1420px);
    min-height:70px;
    margin:0 auto;
    padding:9px 11px 9px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(226,232,240,.94);
    border-radius:22px;
    box-shadow:0 14px 36px rgba(15,23,42,.08);
    backdrop-filter:blur(16px);
    pointer-events:auto;
}

.brand{
    display:flex;
    align-items:center;
    flex:0 0 auto;
}

.brand img{
    width:145px;
    height:auto;
    display:block;
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:24px;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:3px;
    padding:5px;
    background:#f2f4f7;
    border-radius:14px;
}

.nav-links a{
    min-height:40px;
    padding:0 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#273142;
    border-radius:10px;
    font-size:14px;
    font-weight:800;
    transition:color .16s ease,background .16s ease;
}

.nav-links a:hover{
    color:var(--base-primary);
    background:#fff;
}

.nav-actions{
    display:flex;
    align-items:center;
    gap:7px;
}

.login-link{
    min-height:42px;
    padding:0 15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#273142;
    border-radius:11px;
    font-size:14px;
    font-weight:800;
}

.login-link:hover{
    background:#f2f4f7;
}

.signup-btn{
    min-height:43px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:var(--base-navy);
    border-radius:11px;
    font-size:14px;
    font-weight:900;
    transition:.16s ease;
}

.signup-btn:hover{
    background:#263247;
}

.menu-btn{
    width:42px;
    height:42px;
    display:none;
    place-items:center;
    flex:0 0 auto;
    color:#172033;
    background:#f2f4f7;
    border:1px solid #e5e9ef;
    border-radius:11px;
    font-size:18px;
    cursor:pointer;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer{
    width:100%;
    margin-top:64px;
    background:var(--base-footer);
    color:#fff;
}

.footer-top{
    width:min(100%,1400px);
    margin:auto;
    padding:56px 28px 46px;
    display:grid;
    grid-template-columns:minmax(230px,1.8fr) repeat(4,minmax(130px,1fr));
    gap:34px;
}

.footer-brand img{
    width:145px;
    display:block;
    margin-bottom:16px;
}

.footer-brand p{
    max-width:330px;
    color:#9aa7b8;
    font-size:14px;
    line-height:1.65;
}

.social-links{
    margin-top:18px;
    display:flex;
    gap:9px;
}

.social-links a{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    color:#fff;
    background:#1e293b;
    border:1px solid rgba(255,255,255,.06);
    border-radius:11px;
    transition:.16s ease;
}

.social-links a:hover{
    background:#315efb;
}

.footer-column{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

.footer-column h4{
    margin-bottom:4px;
    color:#fff;
    font-size:15px;
}

.footer-column a{
    color:#9aa7b8;
    font-size:13px;
    line-height:1.45;
    transition:.16s ease;
}

.footer-column a:hover{
    color:#fff;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    padding:20px 18px;
    text-align:center;
}

.footer-bottom p{
    color:#8794a8;
    font-size:12px;
}


/* ==========================================================
   PUBLIC MOBILE
   ========================================================== */

@media(max-width:1050px){

    .site-header{
        padding:10px 10px 0;
    }

    .navbar{
        min-height:62px;
        padding:8px 9px 8px 15px;
        border-radius:17px;
    }

    .brand img{
        width:128px;
    }

    .menu-btn{
        display:grid;
    }

    .nav-menu{
        position:absolute;
        top:calc(100% + 8px);
        left:0;
        right:0;
        z-index:1100;
        display:none;
        max-height:calc(100dvh - 96px);
        overflow-y:auto;
        padding:11px;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        background:#fff;
        border:1px solid #e5e7eb;
        border-radius:16px;
        box-shadow:0 18px 45px rgba(15,23,42,.16);
    }

    .nav-menu.active{
        display:flex;
    }

    .nav-links{
        padding:0;
        flex-direction:column;
        align-items:stretch;
        gap:5px;
        background:transparent;
    }

    .nav-links a{
        min-height:46px;
        padding:0 13px;
        justify-content:flex-start;
        background:#f7f8fa;
        border-radius:11px;
        font-size:14px;
    }

    .nav-actions{
        padding-top:10px;
        flex-direction:column;
        align-items:stretch;
        gap:7px;
        border-top:1px solid #eceef2;
    }

    .login-link,
    .signup-btn{
        width:100%;
        min-height:45px;
    }
}

@media(max-width:1000px){

    .footer-top{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:30px 24px;
    }

    .footer-brand{
        grid-column:1 / -1;
    }
}

@media(max-width:640px){

    .site-header{
        padding:8px 8px 0;
    }

    .navbar{
        min-height:58px;
        padding:7px 8px 7px 13px;
        border-radius:15px;
    }

    .brand img{
        width:118px;
    }

    .menu-btn{
        width:40px;
        height:40px;
        border-radius:10px;
        font-size:17px;
    }

    .nav-menu{
        top:calc(100% + 7px);
        border-radius:15px;
    }

    .site-footer{
        margin-top:46px;
    }

    .footer-top{
        padding:38px 18px 34px;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:28px 18px;
    }

    .footer-brand{
        grid-column:1 / -1;
    }

    .footer-brand img{
        width:135px;
    }

    .footer-brand p,
    .footer-column a{
        font-size:13px;
    }

    .footer-column h4{
        font-size:14px;
    }
}

@media(max-width:390px){

    .footer-top{
        grid-template-columns:1fr;
    }

    .footer-brand{
        grid-column:auto;
    }
}
