/* ═══════════════════════════════════════════════════════════════════════════════
   UNIFIED HEADER & FOOTER STYLES - SHARED ACROSS ALL PAGES
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Navigation - Unified Header */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    margin: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.nav-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e40af;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.nav-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #1e40af;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e40af, #06b6d4);
    transition: width 0.3s;
}

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

.nav-btn {
    background: transparent;
    color: #1e40af;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    border: 2px solid #1e40af;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(30, 64, 175, 0.1);
    transform: translateY(-2px);
}

.nav-location {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 64, 175, 0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e40af;
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-location-flag {
    font-size: 1rem;
}

.nav-location-text {
    white-space: nowrap;
}

.nav-menu-toggle {
    display: none;
}

/* Footer - Unified */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    padding: 4.5rem 2.5rem 2rem;
    width: 100%;
    margin: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.05rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-section a:hover {
    color: #06b6d4;
    transform: translateX(4px);
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding-top: 2.5rem;
    text-align: center;
}

.footer-copyright {
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .nav-logo {
        gap: 0.5rem;
        min-width: fit-content;
    }

    .nav-logo-text {
        font-size: 1rem;
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        gap: 1rem;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(30, 64, 175, 0.1);
        flex-wrap: nowrap;
        justify-content: flex-start;
        flex: none;
    }

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

    .nav-location {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        order: 3;
    }

    #darkModeToggle {
        min-width: 40px;
        height: 40px;
        font-size: 1.2rem;
        order: 2;
    }

    .nav-menu-toggle {
        order: 3;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }
}
