/* ==========================================================================
   GITBIT FRONT DESIGN SYSTEM: HEADER, MOBILE NAV & FOOTER
   ========================================================================== */

:root {
    --fn-primary: #4f46e5;
    --fn-primary-dark: #3730a3;
    --fn-cyan: #06b6d4;
    --fn-emerald: #10b981;
    --fn-dark-bg: #080d1c;
    --fn-dark-card: #111827;
    --fn-border: #1e293b;
    --fn-text: #0f172a;
    --fn-muted: #94a3b8;
}

/* ==========================================================================
   1. FRONT HEADER (Frosted Glass luxury HUD)
   ========================================================================== */

header#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header#mainHeader.scrolled {
    padding: 12px 7%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover img {
    transform: scale(1.05);
}

nav.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav.nav-links a {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    padding: 4px 0;
}

nav.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: var(--fn-primary);
    transition: width 0.25s ease;
    border-radius: 2px;
}

nav.nav-links a:hover,
nav.nav-links a.active {
    color: var(--fn-primary);
}

nav.nav-links a:hover::after,
nav.nav-links a.active::after {
    width: 100%;
}

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

.btn-nav-login {
    padding: 10px 22px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav-login:hover {
    border-color: var(--fn-primary);
    color: var(--fn-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.btn-nav-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff !important;
    padding: 11px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
    color: #ffffff !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1e293b;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px 7%;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.mobile-nav-drawer.active {
    display: flex;
}

.mobile-nav-drawer a {
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-drawer a.active {
    color: var(--fn-primary);
}

/* ==========================================================================
   2. FRONT FOOTER (Luxury 4-Column Dark Theme)
   ========================================================================== */

footer.site-footer {
    background: var(--fn-dark-bg);
    color: var(--fn-muted);
    padding: 80px 7% 0;
    border-top: 1px solid var(--fn-border);
    position: relative;
    z-index: 1;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo img {
    height: 42px;
    width: auto;
    margin-bottom: 18px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--fn-muted);
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #818cf8;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #111827;
    border: 1px solid #1e293b;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social-links a:hover {
    color: #ffffff;
    background: var(--fn-primary);
    border-color: var(--fn-primary);
    transform: translateY(-2px);
}

.footer-bottom-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid var(--fn-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #cbd5e1;
}

/* Responsive Header & Footer */
@media (max-width: 1080px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav.nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
